Date: Thursday, August 31, 2017 @ 14:19:54 Author: felixonmars Revision: 304380
archrelease: copy trunk to extra-any Added: python-pyasn1-modules/repos/extra-any/PKGBUILD (from rev 304379, python-pyasn1-modules/trunk/PKGBUILD) Deleted: python-pyasn1-modules/repos/extra-any/PKGBUILD ----------+ PKGBUILD | 94 ++++++++++++++++++++++++++++++++----------------------------- 1 file changed, 50 insertions(+), 44 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2017-08-31 14:19:31 UTC (rev 304379) +++ PKGBUILD 2017-08-31 14:19:54 UTC (rev 304380) @@ -1,44 +0,0 @@ -# $Id$ -# Maintainer: Felix Yan <felixonm...@archlinux.org> - -pkgbase=python-pyasn1-modules -pkgname=('python-pyasn1-modules' 'python2-pyasn1-modules') -pkgver=0.0.11 -pkgrel=1 -pkgdesc="A collection of ASN.1-based protocols modules" -arch=('any') -license=('BSD') -url="http://pypi.python.org/pypi/pyasn1-modules" -makedepends=('python-pyasn1' 'python2-pyasn1' 'python-setuptools' 'python2-setuptools') -source=("https://pypi.io/packages/source/p/pyasn1-modules/pyasn1-modules-$pkgver.tar.gz") -sha512sums=('0c9943f1fe49453a97ede8aa14248340dc1e331d0d80fa948b507743d3f30fe61d99323b99ca43930d22c863611ae4a2bd9859726620756f345ff2d5873efb8d') - -prepare() { - cp -a pyasn1-modules-$pkgver{,-py2} -} - -build() { - # Build python 3 module - cd "$srcdir"/pyasn1-modules-$pkgver - python3 setup.py build - - # Build python 2 module - cd "$srcdir"/pyasn1-modules-$pkgver-py2 - python2 setup.py build -} - -package_python-pyasn1-modules() { - depends=('python-pyopenssl' 'python-pyasn1') - - cd pyasn1-modules-$pkgver - python3 setup.py install --root="$pkgdir" --optimize=1 --skip-build - install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt -} - -package_python2-pyasn1-modules() { - depends=('python2-pyopenssl' 'python2-pyasn1') - - cd pyasn1-modules-$pkgver-py2 - python2 setup.py install --root="$pkgdir" --optimize=1 --skip-build - install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt -} Copied: python-pyasn1-modules/repos/extra-any/PKGBUILD (from rev 304379, python-pyasn1-modules/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2017-08-31 14:19:54 UTC (rev 304380) @@ -0,0 +1,50 @@ +# $Id$ +# Maintainer: Felix Yan <felixonm...@archlinux.org> + +pkgbase=python-pyasn1-modules +pkgname=('python-pyasn1-modules' 'python2-pyasn1-modules') +pkgver=0.1.1 +pkgrel=1 +pkgdesc="A collection of ASN.1-based protocols modules" +arch=('any') +license=('BSD') +url="http://pypi.python.org/pypi/pyasn1-modules" +makedepends=('python-pyasn1' 'python2-pyasn1' 'python-setuptools' 'python2-setuptools') +source=("https://pypi.io/packages/source/p/pyasn1-modules/pyasn1-modules-$pkgver.tar.gz") +sha512sums=('63cba7522da6d93d4c9059377e8b4b11e9fb362b0c17d603119508f28944f45cb48d31f541eb11bcd734493b9726637b8fe1fcd4cc67845d71b1fa67f9ca69e9') + +prepare() { + cp -a pyasn1-modules-$pkgver{,-py2} +} + +build() { + cd "$srcdir"/pyasn1-modules-$pkgver + python setup.py build + + cd "$srcdir"/pyasn1-modules-$pkgver-py2 + python2 setup.py build +} + +check() { + cd "$srcdir"/pyasn1-modules-$pkgver + PYTHONPATH=. python tests/__main__.py + + cd "$srcdir"/pyasn1-modules-$pkgver-py2 + PYTHONPATH=. python2 tests/__main__.py +} + +package_python-pyasn1-modules() { + depends=('python-pyopenssl' 'python-pyasn1') + + cd pyasn1-modules-$pkgver + python setup.py install --root="$pkgdir" --optimize=1 --skip-build + install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt +} + +package_python2-pyasn1-modules() { + depends=('python2-pyopenssl' 'python2-pyasn1') + + cd pyasn1-modules-$pkgver-py2 + python2 setup.py install --root="$pkgdir" --optimize=1 --skip-build + install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt +}