[arch-commits] Commit in python-paramiko/repos/community-any (PKGBUILD PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Wed Sep 19 09:38:46 UTC 2018
Date: Wednesday, September 19, 2018 @ 09:38:45
Author: felixonmars
Revision: 383353
archrelease: copy trunk to community-any
Added:
python-paramiko/repos/community-any/PKGBUILD
(from rev 383352, python-paramiko/trunk/PKGBUILD)
Deleted:
python-paramiko/repos/community-any/PKGBUILD
----------+
PKGBUILD | 117 ++++++++++++++++++++++++++++++-------------------------------
1 file changed, 58 insertions(+), 59 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2018-09-19 09:38:26 UTC (rev 383352)
+++ PKGBUILD 2018-09-19 09:38:45 UTC (rev 383353)
@@ -1,59 +0,0 @@
-# $Id$
-# Maintainer: Angel Velasquez <angvp at archlinux.org>
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-# Contributor: Douglas Soares de Andrade <douglas at archlinux.org>
-# Contributor: Mario Danic <mario.danic at gmail.com>
-
-pkgbase=python-paramiko
-pkgname=(python-paramiko python2-paramiko)
-pkgver=2.4.1
-pkgrel=2
-pkgdesc="Python module that implements the SSH2 protocol"
-url="https://github.com/paramiko/paramiko/"
-license=('LGPL')
-arch=('any')
-makedepends=('python-setuptools' 'python2-setuptools' 'python-bcrypt' 'python2-bcrypt'
- 'python-cryptography' 'python2-cryptography' 'python-pyasn1' 'python2-pyasn1'
- 'python-pynacl' 'python2-pynacl')
-checkdepends=('python-pytest-runner' 'python2-pytest-runner' 'python-pytest-relaxed'
- 'python2-pytest-relaxed')
-source=("$pkgbase-$pkgver.tar.gz::https://github.com/paramiko/paramiko/archive/$pkgver.tar.gz")
-sha512sums=('5a580d25e7911937f228ef4a2b89b5a1efd771f576c6c68cf1c36e1abbc38adbc6ad5dc91400de7112238fcf7803f5f26c13fe10be4af8a2a86af9398da7a8de')
-
-prepare() {
- cp -a paramiko-$pkgver{,-py2}
-
- find paramiko-$pkgver-py2 -name '*.py' -print0 | xargs -0 \
- sed -i -e 's,^#!/usr/bin/env python$,#!/usr/bin/env python2,' \
- -e 's,^#!/usr/bin/python$,#!/usr/bin/python2,'
-}
-
-check() {
- cd "$srcdir"/paramiko-$pkgver
- LANG=en_US.UTF-8 python setup.py pytest
-
- cd "$srcdir"/paramiko-$pkgver-py2
- LANG=en_US.UTF-8 python2 setup.py pytest
-}
-
-package_python-paramiko() {
- depends=('python-bcrypt' 'python-cryptography' 'python-pyasn1' 'python-pynacl')
-
- cd paramiko-$pkgver
-
- python setup.py install --root="$pkgdir" --optimize=1
- install -dm755 "$pkgdir"/usr/share/doc/$pkgname/demos
- install -m644 demos/* "$pkgdir"/usr/share/doc/$pkgname/demos
- chmod 755 "$pkgdir"/usr/share/doc/$pkgname/demos/*.py
-}
-
-package_python2-paramiko() {
- depends=('python2-bcrypt' 'python2-cryptography' 'python2-pyasn1' 'python2-pynacl')
-
- cd paramiko-$pkgver-py2
-
- python2 setup.py install --root="$pkgdir" --optimize=1
- install -dm755 "$pkgdir"/usr/share/doc/$pkgname/demos
- install -m644 demos/* "$pkgdir"/usr/share/doc/$pkgname/demos
- chmod 755 "$pkgdir"/usr/share/doc/$pkgname/demos/*.py
-}
Copied: python-paramiko/repos/community-any/PKGBUILD (from rev 383352, python-paramiko/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2018-09-19 09:38:45 UTC (rev 383353)
@@ -0,0 +1,58 @@
+# Maintainer: Angel Velasquez <angvp at archlinux.org>
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Douglas Soares de Andrade <douglas at archlinux.org>
+# Contributor: Mario Danic <mario.danic at gmail.com>
+
+pkgbase=python-paramiko
+pkgname=(python-paramiko python2-paramiko)
+pkgver=2.4.2
+pkgrel=1
+pkgdesc="Python module that implements the SSH2 protocol"
+url="https://github.com/paramiko/paramiko/"
+license=('LGPL')
+arch=('any')
+makedepends=('python-setuptools' 'python2-setuptools' 'python-bcrypt' 'python2-bcrypt'
+ 'python-cryptography' 'python2-cryptography' 'python-pyasn1' 'python2-pyasn1'
+ 'python-pynacl' 'python2-pynacl')
+checkdepends=('python-pytest-runner' 'python2-pytest-runner' 'python-pytest-relaxed'
+ 'python2-pytest-relaxed' 'python-mock' 'python2-mock')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/paramiko/paramiko/archive/$pkgver.tar.gz")
+sha512sums=('894c2ebfcfb35a84fe74670d0eb67022a49b7bf165f31acd929045c17509d8a2be111e8319f20513b5034efd033edc6432b2ca2e7027dc7e3c6703166a96790f')
+
+prepare() {
+ cp -a paramiko-$pkgver{,-py2}
+
+ find paramiko-$pkgver-py2 -name '*.py' -print0 | xargs -0 \
+ sed -i -e 's,^#!/usr/bin/env python$,#!/usr/bin/env python2,' \
+ -e 's,^#!/usr/bin/python$,#!/usr/bin/python2,'
+}
+
+check() {
+ cd "$srcdir"/paramiko-$pkgver
+ LANG=en_US.UTF-8 python setup.py pytest
+
+ cd "$srcdir"/paramiko-$pkgver-py2
+ LANG=en_US.UTF-8 python2 setup.py pytest
+}
+
+package_python-paramiko() {
+ depends=('python-bcrypt' 'python-cryptography' 'python-pyasn1' 'python-pynacl')
+
+ cd paramiko-$pkgver
+
+ python setup.py install --root="$pkgdir" --optimize=1
+ install -dm755 "$pkgdir"/usr/share/doc/$pkgname/demos
+ install -m644 demos/* "$pkgdir"/usr/share/doc/$pkgname/demos
+ chmod 755 "$pkgdir"/usr/share/doc/$pkgname/demos/*.py
+}
+
+package_python2-paramiko() {
+ depends=('python2-bcrypt' 'python2-cryptography' 'python2-pyasn1' 'python2-pynacl')
+
+ cd paramiko-$pkgver-py2
+
+ python2 setup.py install --root="$pkgdir" --optimize=1
+ install -dm755 "$pkgdir"/usr/share/doc/$pkgname/demos
+ install -m644 demos/* "$pkgdir"/usr/share/doc/$pkgname/demos
+ chmod 755 "$pkgdir"/usr/share/doc/$pkgname/demos/*.py
+}
More information about the arch-commits
mailing list