diff options
author | André Klitzing <aklitzing@gmail.com> | 2017-02-19 18:36:09 +0100 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2017-02-21 06:46:45 +0000 |
commit | 0e206cb46284fcf7676b415292183118db5d4ce1 (patch) | |
tree | cf8cd99c2d5704ef5ce6a60cdcd08a04f6b7042d /testing | |
parent | e33dd69b45870cf5bf18389feea4591eb8d45ff2 (diff) | |
download | aports-0e206cb46284fcf7676b415292183118db5d4ce1.tar.bz2 aports-0e206cb46284fcf7676b415292183118db5d4ce1.tar.xz |
testing/py-asn1crypto: new aport
Diffstat (limited to 'testing')
-rw-r--r-- | testing/py-asn1crypto/APKBUILD | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/testing/py-asn1crypto/APKBUILD b/testing/py-asn1crypto/APKBUILD new file mode 100644 index 0000000000..75343538e7 --- /dev/null +++ b/testing/py-asn1crypto/APKBUILD @@ -0,0 +1,45 @@ +# Contributor: Andre Klitzing <aklitzing@gmail.com> +# Maintainer: Andre Klitzing <aklitzing@gmail.com> +pkgname=py-asn1crypto +_pkgname=asn1crypto +pkgver=0.21.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" +makedepends="python2-dev py-setuptools python3-dev" +subpackages="py3-${pkgname#py-}:_py3 py2-${pkgname#py-}:_py2" +source="$_pkgname-$pkgver.tar.gz::https://github.com/wbond/asn1crypto/archive/$pkgver.tar.gz" +builddir="$srcdir/$_pkgname-$pkgver" + +build() { + cd "$builddir" + python2 setup.py build || return 1 + python3 setup.py build || return 1 +} + +package() { + mkdir -p "$pkgdir" +} + +_py() { + local python="$1" + pkgdesc="$pkgdesc (for $python)" + depends="$python" + install_if="$pkgname=$pkgver-r$pkgrel $python" + + cd "$builddir" + $python setup.py install --prefix=/usr --root="$subpkgdir" +} + +_py2() { + replaces="$pkgname" + _py python2 +} + +_py3() { + _py python3 +} + +sha512sums="34b4a3faed4b01ad47073a759424b3690f514682051c494b910948fba0dc9214747e8b76d13a15c7edf0959c39734b41a8611bcd17d9e11887a5e491d994dcfa asn1crypto-0.21.0.tar.gz" |