diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2017-03-21 13:04:39 +0100 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2017-03-21 13:04:39 +0100 |
commit | 39ba4aeccac44d2978ad6e9a456f8e05d57d48ab (patch) | |
tree | a981914030d606bf951f327c638bfdc088886e7b /main/py-asn1crypto/APKBUILD | |
parent | 9b29837cc5e034d5c207c30af552bef62c090e49 (diff) | |
download | aports-39ba4aeccac44d2978ad6e9a456f8e05d57d48ab.tar.bz2 aports-39ba4aeccac44d2978ad6e9a456f8e05d57d48ab.tar.xz |
main/py-asn1crypto: move from testing (needed by py-cryptography)
main/py-cryptography needs py-asn1crypto since 1.8
Diffstat (limited to 'main/py-asn1crypto/APKBUILD')
-rw-r--r-- | main/py-asn1crypto/APKBUILD | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/main/py-asn1crypto/APKBUILD b/main/py-asn1crypto/APKBUILD new file mode 100644 index 0000000000..2952bc6bfe --- /dev/null +++ b/main/py-asn1crypto/APKBUILD @@ -0,0 +1,45 @@ +# Contributor: André Klitzing <aklitzing@gmail.com> +# Maintainer: André Klitzing <aklitzing@gmail.com> +pkgname=py-asn1crypto +_pkgname=asn1crypto +pkgver=0.22.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="d7d88e81323d4e70a32723967aa7df912671c4039b26801846ccf3337ef3015528f9b0d23a25988b0d823291f069323e6985c8ef25f681cc1edb85d64d42d0e5 asn1crypto-0.22.0.tar.gz" |