summaryrefslogtreecommitdiffstats
path: root/abs/core/python_modules/python-pyasn1-modules
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2018-09-06 16:35:27 (GMT)
committerBritney Fransen <brfransen@gmail.com>2018-09-06 16:35:27 (GMT)
commit5669815ec3a539cf7b5ac7d8da2cbba3aeff44be (patch)
treef13051093a52f47f5954c2ee2a783bc2f0f62f96 /abs/core/python_modules/python-pyasn1-modules
parent8d35f28049488f2585ef765bf48e7a58958fd587 (diff)
parent04697136037cb5341ee6c051f8aaa265c0400c82 (diff)
downloadlinhes_pkgbuild-5669815ec3a539cf7b5ac7d8da2cbba3aeff44be.zip
linhes_pkgbuild-5669815ec3a539cf7b5ac7d8da2cbba3aeff44be.tar.gz
linhes_pkgbuild-5669815ec3a539cf7b5ac7d8da2cbba3aeff44be.tar.bz2
Merge branch 'testing'
Diffstat (limited to 'abs/core/python_modules/python-pyasn1-modules')
-rw-r--r--abs/core/python_modules/python-pyasn1-modules/PKGBUILD50
1 files changed, 50 insertions, 0 deletions
diff --git a/abs/core/python_modules/python-pyasn1-modules/PKGBUILD b/abs/core/python_modules/python-pyasn1-modules/PKGBUILD
new file mode 100644
index 0000000..282cca9
--- /dev/null
+++ b/abs/core/python_modules/python-pyasn1-modules/PKGBUILD
@@ -0,0 +1,50 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars@archlinux.org>
+
+pkgbase=python-pyasn1-modules
+pkgname=('python-pyasn1-modules' 'python2-pyasn1-modules')
+pkgver=0.2.1
+pkgrel=1
+pkgdesc="A collection of ASN.1-based protocols modules"
+arch=('any')
+license=('BSD')
+url="http://pypi.python.org/pypi/pyasn1-modules"
+makedepends=('python-pyasn1' 'python2-pyasn1' 'python-setuptools' 'python2-setuptools')
+source=("https://pypi.io/packages/source/p/pyasn1-modules/pyasn1-modules-$pkgver.tar.gz")
+sha512sums=('2d8b6bee59434fee41747625236c1d7eb5081a1cef66aa0a0e9e75869c3641a418d21544edafe65f1808ad0dacd9cf1047dd036ff5ce668bb3bf1f6e662e4a5e')
+
+prepare() {
+ cp -a pyasn1-modules-$pkgver{,-py2}
+}
+
+build() {
+ cd "$srcdir"/pyasn1-modules-$pkgver
+ python setup.py build
+
+ cd "$srcdir"/pyasn1-modules-$pkgver-py2
+ python2 setup.py build
+}
+
+check() {
+ cd "$srcdir"/pyasn1-modules-$pkgver
+ PYTHONPATH=. python tests/__main__.py
+
+ cd "$srcdir"/pyasn1-modules-$pkgver-py2
+ PYTHONPATH=. python2 tests/__main__.py
+}
+
+package_python-pyasn1-modules() {
+ depends=('python-pyopenssl' 'python-pyasn1')
+
+ cd pyasn1-modules-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+ install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt
+}
+
+package_python2-pyasn1-modules() {
+ depends=('python2-pyopenssl' 'python2-pyasn1')
+
+ cd pyasn1-modules-$pkgver-py2
+ python2 setup.py install --root="$pkgdir" --optimize=1 --skip-build
+ install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt
+}