Date: Tuesday, November 5, 2019 @ 20:38:41 Author: felixonmars Revision: 524216
archrelease: copy trunk to community-staging-x86_64 Added: python-pycryptodome/repos/community-staging-x86_64/PKGBUILD (from rev 524215, python-pycryptodome/trunk/PKGBUILD) Deleted: python-pycryptodome/repos/community-staging-x86_64/PKGBUILD ----------+ PKGBUILD | 114 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 57 insertions(+), 57 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2019-11-05 20:38:27 UTC (rev 524215) +++ PKGBUILD 2019-11-05 20:38:41 UTC (rev 524216) @@ -1,57 +0,0 @@ -# Maintainer: Felix Yan <felixonm...@archlinux.org> -# Contributor: Josip Ponjavic <josipponjavic at gmail dot com> - -pkgbase=python-pycryptodome -pkgname=('python-pycryptodome' 'python2-pycryptodome') -pkgver=3.9.0 -pkgrel=3 -license=('BSD') -arch=('x86_64') -url='https://www.pycryptodome.org/' -makedepends=('gmp' 'python-setuptools' 'python2-setuptools') -source=("pycryptodome-${pkgver}.tar.gz::https://github.com/Legrandin/pycryptodome/archive/v${pkgver}.tar.gz") -sha512sums=('1f1490d2854c9f5ed0fbb4a41b63ef47758bf07610f7c6c5bab14c93c760dc2e62d38ff101956e3739a8609bcba83c73ec77c665fe847b2d317996134212ddf7') - -prepare() { - cp -a "pycryptodome-$pkgver"{,-python2} -} - -build() { - cd "$srcdir/pycryptodome-$pkgver" - python setup.py build - - cd "$srcdir/pycryptodome-$pkgver-python2" - python2 setup.py build -} - -check() { - cd "$srcdir/pycryptodome-$pkgver" - python setup.py test - - cd "$srcdir/pycryptodome-$pkgver-python2" - python2 setup.py test -} - -package_python-pycryptodome() { - pkgdesc="Collection of cryptographic algorithms and protocols, implemented for use from Python 3." - depends=('python' 'gmp') - conflicts=('python-crypto') - provides=('python-crypto') - replaces=('python-crypto') - - cd "pycryptodome-$pkgver" - python setup.py install --root="$pkgdir" --optimize=1 --skip-build - install -Dm644 LICENSE.rst "$pkgdir/usr/share/licenses/$pkgname/LICENSE.rst" -} - -package_python2-pycryptodome() { - pkgdesc="Collection of cryptographic algorithms and protocols, implemented for use from Python 2." - depends=('python2' 'gmp') - conflicts=('python2-crypto') - provides=('python2-crypto') - replaces=('python2-crypto') - - cd "pycryptodome-$pkgver-python2" - python2 setup.py install --root="$pkgdir" --optimize=1 --skip-build - install -Dm644 LICENSE.rst "$pkgdir/usr/share/licenses/$pkgname/LICENSE.rst" -} Copied: python-pycryptodome/repos/community-staging-x86_64/PKGBUILD (from rev 524215, python-pycryptodome/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2019-11-05 20:38:41 UTC (rev 524216) @@ -0,0 +1,57 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Josip Ponjavic <josipponjavic at gmail dot com> + +pkgbase=python-pycryptodome +pkgname=('python-pycryptodome' 'python2-pycryptodome') +pkgver=3.9.1 +pkgrel=2 +license=('BSD') +arch=('x86_64') +url='https://www.pycryptodome.org/' +makedepends=('gmp' 'python-setuptools' 'python2-setuptools') +source=("pycryptodome-${pkgver}.tar.gz::https://github.com/Legrandin/pycryptodome/archive/v${pkgver}.tar.gz") +sha512sums=('512b348d8f9dad2232024584b518fc7c3d3c5cb52563a33f1b9c5d8d86a9d913d4e8b9c7cb4f2bcb5ca1bd6f3423ffcdb6d041ef0285713c3408516dd2572155') + +prepare() { + cp -a "pycryptodome-$pkgver"{,-python2} +} + +build() { + cd "$srcdir/pycryptodome-$pkgver" + python setup.py build + + cd "$srcdir/pycryptodome-$pkgver-python2" + python2 setup.py build +} + +check() { + cd "$srcdir/pycryptodome-$pkgver" + python setup.py test + + cd "$srcdir/pycryptodome-$pkgver-python2" + python2 setup.py test +} + +package_python-pycryptodome() { + pkgdesc="Collection of cryptographic algorithms and protocols, implemented for use from Python 3." + depends=('python' 'gmp') + conflicts=('python-crypto') + provides=('python-crypto') + replaces=('python-crypto') + + cd "pycryptodome-$pkgver" + python setup.py install --root="$pkgdir" --optimize=1 --skip-build + install -Dm644 LICENSE.rst "$pkgdir/usr/share/licenses/$pkgname/LICENSE.rst" +} + +package_python2-pycryptodome() { + pkgdesc="Collection of cryptographic algorithms and protocols, implemented for use from Python 2." + depends=('python2' 'gmp') + conflicts=('python2-crypto') + provides=('python2-crypto') + replaces=('python2-crypto') + + cd "pycryptodome-$pkgver-python2" + python2 setup.py install --root="$pkgdir" --optimize=1 --skip-build + install -Dm644 LICENSE.rst "$pkgdir/usr/share/licenses/$pkgname/LICENSE.rst" +}