Date: Tuesday, February 9, 2021 @ 17:54:43 Author: felixonmars Revision: 851220
archrelease: copy trunk to community-x86_64 Added: python-pycryptodome/repos/community-x86_64/PKGBUILD (from rev 851218, python-pycryptodome/trunk/PKGBUILD) Deleted: python-pycryptodome/repos/community-x86_64/PKGBUILD ----------+ PKGBUILD | 126 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 63 insertions(+), 63 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2021-02-09 17:54:42 UTC (rev 851219) +++ PKGBUILD 2021-02-09 17:54:43 UTC (rev 851220) @@ -1,63 +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.9 -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=('a1aad4d52256220fe3d5d7f399c2c5e7338d6eb88058da0571fe1c686d74d33ff4bc1c275d4b9373e0ff22f4ddcded75a25387e76fc65047f8612f8856c1bd4d') - -prepare() { - cp -a "pycryptodome-$pkgver"{,-python2} -} - -build() { - export PYTHONHASHSEED=0 - - cd "$srcdir/pycryptodome-$pkgver" - python setup.py build - - cd "$srcdir/pycryptodome-$pkgver-python2" - python2 setup.py build -} - -check() { - cd "$srcdir/pycryptodome-$pkgver" - python -B setup.py test - - cd "$srcdir/pycryptodome-$pkgver-python2" - python2 -B 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" - - rm -r "$pkgdir"/usr/lib/python3.*/site-packages/Crypto/SelfTest/ -} - -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" - - rm -r "$pkgdir"/usr/lib/python2.*/site-packages/Crypto/SelfTest/ -} Copied: python-pycryptodome/repos/community-x86_64/PKGBUILD (from rev 851218, python-pycryptodome/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2021-02-09 17:54:43 UTC (rev 851220) @@ -0,0 +1,63 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Josip Ponjavic <josipponjavic at gmail dot com> + +pkgbase=python-pycryptodome +pkgname=('python-pycryptodome' 'python2-pycryptodome') +pkgver=3.10.0 +pkgrel=1 +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=('a2806ba7438bd690437ac36f68b853ced5fb9b05691f7f8ca24327e2edfdf27bbcae7aef34f81c96ec01fd980e0fda1cb5573a1def9c94b0f720841095859ba7') + +prepare() { + cp -a "pycryptodome-$pkgver"{,-python2} +} + +build() { + export PYTHONHASHSEED=0 + + cd "$srcdir/pycryptodome-$pkgver" + python setup.py build + + cd "$srcdir/pycryptodome-$pkgver-python2" + python2 setup.py build +} + +check() { + cd "$srcdir/pycryptodome-$pkgver" + python -B setup.py test + + cd "$srcdir/pycryptodome-$pkgver-python2" + python2 -B 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" + + rm -r "$pkgdir"/usr/lib/python3.*/site-packages/Crypto/SelfTest/ +} + +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" + + rm -r "$pkgdir"/usr/lib/python2.*/site-packages/Crypto/SelfTest/ +}