aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
Diffstat (limited to 'main')
-rw-r--r--main/py-asn1/APKBUILD40
1 files changed, 40 insertions, 0 deletions
diff --git a/main/py-asn1/APKBUILD b/main/py-asn1/APKBUILD
new file mode 100644
index 0000000000..30473ff487
--- /dev/null
+++ b/main/py-asn1/APKBUILD
@@ -0,0 +1,40 @@
+# Contributor: William Pitcock <nenolod@dereferenced.org>
+# Maintainer: William Pitcock <nenolod@dereferenced.org>
+pkgname=py-asn1
+pkgver=0.1.7
+pkgrel=0
+pkgdesc="A python ASN1 library"
+url="http://pyasn1.sourceforge.net/"
+arch="noarch"
+license="BSD"
+depends=""
+depends_dev="python-dev py-setuptools"
+makedepends="$depends_dev"
+install=""
+subpackages=""
+source="http://sourceforge.net/projects/pyasn1/files/pyasn1/$pkgver/pyasn1-$pkgver.tar.gz"
+
+_builddir="$srcdir"/pyasn1-$pkgver
+prepare() {
+ local i
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+}
+
+build() {
+ cd "$_builddir"
+ python setup.py build || return 1
+}
+
+package() {
+ cd "$_builddir"
+ python setup.py install --root="$pkgdir" || return 1
+}
+
+md5sums="2cbd80fcd4c7b1c82180d3d76fee18c8 pyasn1-0.1.7.tar.gz"
+sha256sums="e4f81d53c533f6bd9526b047f047f7b101c24ab17339c1a7ad8f98b25c101eab pyasn1-0.1.7.tar.gz"
+sha512sums="af2ac05fb7e18b25bd125f92bd7c8389a00c18018c1ff48d94c196f5ab41b09c8991d2e326d492cfaed755b06cd4c75d88719b4a390bdab6d84fe3c8791620af pyasn1-0.1.7.tar.gz"