summaryrefslogtreecommitdiffstats
path: root/abs/core
diff options
context:
space:
mode:
Diffstat (limited to 'abs/core')
-rw-r--r--abs/core/python_modules/python-pyasn1/PKGBUILD39
-rw-r--r--abs/core/python_modules/python-pyasn1/__changelog1
2 files changed, 40 insertions, 0 deletions
diff --git a/abs/core/python_modules/python-pyasn1/PKGBUILD b/abs/core/python_modules/python-pyasn1/PKGBUILD
new file mode 100644
index 0000000..ae8b69c
--- /dev/null
+++ b/abs/core/python_modules/python-pyasn1/PKGBUILD
@@ -0,0 +1,39 @@
+# $Id$
+# Maintainer: Eric BĂ©langer <eric@archlinux.org>
+
+pkgbase=python-pyasn1
+pkgname=('python2-pyasn1')
+pkgver=0.1.9
+pkgrel=1
+arch=('any')
+url="http://sourceforge.net/projects/pyasn1/"
+license=('BSD')
+makedepends=('python2-setuptools')
+replaces=('pyasn1')
+provides=('pyasn1')
+source=(http://downloads.sourceforge.net/sourceforge/pyasn1/pyasn1-${pkgver}.tar.gz)
+sha1sums=('d19599c5d9d039ead21ffcd1a2392c29a838ae03')
+
+check() {
+ cd pyasn1-${pkgver}
+ python2 setup.py test
+ python setup.py test
+}
+
+package_python-pyasn1() {
+ pkgdesc="ASN.1 library for Python 3"
+ depends=('python')
+
+ cd pyasn1-${pkgver}
+ python setup.py install --root="${pkgdir}"
+ install -D -m 644 LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
+
+package_python2-pyasn1() {
+ pkgdesc="ASN.1 library for Python 2"
+ depends=('python2')
+
+ cd pyasn1-${pkgver}
+ python2 setup.py install --root="${pkgdir}"
+ install -D -m 644 LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
diff --git a/abs/core/python_modules/python-pyasn1/__changelog b/abs/core/python_modules/python-pyasn1/__changelog
new file mode 100644
index 0000000..60db758
--- /dev/null
+++ b/abs/core/python_modules/python-pyasn1/__changelog
@@ -0,0 +1 @@
+PKGBUILD: remove py3 stuff