summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2019-02-07 00:19:16 (GMT)
committerBritney Fransen <brfransen@gmail.com>2019-02-07 00:19:16 (GMT)
commitc024cdc3912b4ae996e6d20e7f9f0df6218f069c (patch)
treee455bb8b1a67c0e7184390c1a8847a99678b7974
parentcf8f02fc656b9af942b270abc6af925da737d117 (diff)
downloadlinhes_pkgbuild-c024cdc3912b4ae996e6d20e7f9f0df6218f069c.zip
linhes_pkgbuild-c024cdc3912b4ae996e6d20e7f9f0df6218f069c.tar.gz
linhes_pkgbuild-c024cdc3912b4ae996e6d20e7f9f0df6218f069c.tar.bz2
python-pycryptodomex: initial inclusion. refs #1029
-rw-r--r--abs/core/python_modules/python-pycryptodomex/PKGBUILD49
1 files changed, 49 insertions, 0 deletions
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 <johannes@kyriasis.com>
+# Contributor: Ivan Shapovalov <intelfx@intelfx.name>
+
+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
+}