# Contributor: Natanael Copa # Maintainer: Natanael Copa pkgname=py3-crypto _pkgname=pycrypto pkgver=2.6.1 pkgrel=4 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" 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"