From c024cdc3912b4ae996e6d20e7f9f0df6218f069c Mon Sep 17 00:00:00 2001 From: Britney Fransen Date: Thu, 7 Feb 2019 00:19:16 +0000 Subject: python-pycryptodomex: initial inclusion. refs #1029 --- .../python_modules/python-pycryptodomex/PKGBUILD | 49 ++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 abs/core/python_modules/python-pycryptodomex/PKGBUILD diff --git a/abs/core/python_modules/python-pycryptodomex/PKGBUILD b/abs/core/python_modules/python-pycryptodomex/PKGBUILD new file mode 100644 index 0000000..9e69c6d --- /dev/null +++ b/abs/core/python_modules/python-pycryptodomex/PKGBUILD @@ -0,0 +1,49 @@ +# Maintainer: Johannes Löthberg +# Contributor: Ivan Shapovalov + +pkgbase=python-pycryptodomex +pkgname=(python-pycryptodomex python2-pycryptodomex) +pkgver=3.7.3 +pkgrel=1 + +pkgdesc='A self-contained Python package of low-level cryptographic primitives' +url='http://www.pycryptodome.org/' +arch=('x86_64') +license=('BSD') + +makedepends=('python-setuptools' + 'python2-setuptools') + +source=("https://pypi.org/packages/source/p/pycryptodomex/pycryptodomex-$pkgver.tar.gz") + +md5sums=('c9ed9aeb5c46fc5fc7cc8cb1ce542040') + +prepare() { + cp -a pycryptodomex-$pkgver{,-python2} +} + +build() { + cd "$srcdir"/pycryptodomex-$pkgver + python setup.py build + + cd "$srcdir"/pycryptodomex-$pkgver-python2 + python2 setup.py build +} + +package_python-pycryptodomex() { + depends=('python') + + cd pycryptodomex-$pkgver + python setup.py install --root="$pkgdir" --optimize=1 --skip-build + + install -Dm644 LICENSE.rst "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.rst +} + +package_python2-pycryptodomex() { + depends=('python2') + + cd pycryptodomex-$pkgver-python2 + python2 setup.py install --root="$pkgdir" --optimize=1 --skip-build + + install -Dm644 LICENSE.rst "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.rst +} -- cgit v0.12