summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--user/py3-asn1crypto/APKBUILD33
1 files changed, 33 insertions, 0 deletions
diff --git a/user/py3-asn1crypto/APKBUILD b/user/py3-asn1crypto/APKBUILD
new file mode 100644
index 000000000..fc90861c4
--- /dev/null
+++ b/user/py3-asn1crypto/APKBUILD
@@ -0,0 +1,33 @@
+# Contributor: André Klitzing <aklitzing@gmail.com>
+# Maintainer: zlg <zlg+adelie@zlg.space>
+pkgname=py3-asn1crypto
+_pkgname=${pkgname#py3-}
+pkgver=0.24.0
+pkgrel=0
+pkgdesc="Python ASN.1 library with a focus on performance and a pythonic API"
+url="https://github.com/wbond/asn1crypto"
+arch="noarch"
+license="MIT"
+depends="python3"
+makedepends="python3-dev"
+subpackages=""
+source="$_pkgname-$pkgver.tar.gz::https://github.com/wbond/asn1crypto/archive/$pkgver.tar.gz"
+builddir="$srcdir/$_pkgname-$pkgver"
+
+build() {
+ cd "$builddir"
+ python3 setup.py build
+}
+
+check() {
+ cd "$builddir"
+ python3 run.py tests
+}
+
+package() {
+ mkdir -p "$pkgdir"
+ cd "$builddir"
+ python3 setup.py install --prefix=/usr --root="$pkgdir"
+}
+
+sha512sums="426cc380903b4dd7aadd7b831e3a11ee3442c961a33b856d4aa8d9060e829f2e0ad905a60c4d6504569718fe2cee01d9be31628c89ef030bc34281e381c898e8 asn1crypto-0.24.0.tar.gz"