Date: Friday, February 4, 2022 @ 19:57:26 Author: alerque Revision: 1125878
archrelease: copy trunk to community-x86_64 Added: python-pycryptodome/repos/community-x86_64/PKGBUILD (from rev 1125877, python-pycryptodome/trunk/PKGBUILD) Deleted: python-pycryptodome/repos/community-x86_64/PKGBUILD ----------+ PKGBUILD | 124 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 62 insertions(+), 62 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2022-02-04 19:57:11 UTC (rev 1125877) +++ PKGBUILD 2022-02-04 19:57:26 UTC (rev 1125878) @@ -1,62 +0,0 @@ -# Maintainer: Felix Yan <felixonm...@archlinux.org> -# Maintainer: Caleb Maclennan <ca...@alerque.com> -# Contributor: Josip Ponjavic <josipponjavic at gmail dot com> - -pkgbase=python-pycryptodome -pkgname=('python-pycryptodome' 'python2-pycryptodome') -pkgver=3.14.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=('2f20a3a2bfef14a0f4c05587d64da3a4be7303ae37aaee02e49a3c7ef69009fa958e4b7151c1441f2cc63833cc29642d6d13c1006fb0f215743178d36c9de802') - -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 -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 1125877, python-pycryptodome/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2022-02-04 19:57:26 UTC (rev 1125878) @@ -0,0 +1,62 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Maintainer: Caleb Maclennan <ca...@alerque.com> +# Contributor: Josip Ponjavic <josipponjavic at gmail dot com> + +pkgbase=python-pycryptodome +pkgname=('python-pycryptodome' 'python2-pycryptodome') +pkgver=3.14.1 +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=('08e904aa2f3df19fcc75a8283fc867349617afe3919532912801d8abc9610f1cb64b878b56202cbdf0759cf5506ec5f793123093e21f18ba99acbf42fa4d9cf1') + +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 -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/ +}