# Contributor: Natanael Copa # Maintainer: Natanael Copa pkgname=py3-crypto _pkgname=pycrypto pkgver=2.6.1 pkgrel=5 pkgdesc="A Python3 collection of cryptographic algorithms and protocols" url="https://www.dlitz.net/software/pycrypto/" arch="all" license="BSD" makedepends="gmp-dev python3-dev" source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz python-3.8.patch " builddir="$srcdir/$_pkgname-$pkgver" replaces="py-crypto" # Backwards compatibility provides="py-crypto=$pkgver-r$pkgrel" # Backwards compatibility build() { cd "$builddir" python3 setup.py build } check() { cd "$builddir" python3 setup.py test } package() { cd "$builddir" python3 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 } sha512sums="20a4aed4dac4e9e61d773ebc1d48ea577e9870c33f396be53d075a9bf8487d93e75e200179882d81e452efd0f6751789bac434f6f431b3e7c1c8ef9dba392847 pycrypto-2.6.1.tar.gz 2228e36a59be9a23c13a44a037765798131d2a5a4b783dd936f8ce5b8476efab7187c77e681bd3544d43e73b3248a25bdea0504546d5ce6e56f39589475f59ba python-3.8.patch"