# Contributor: André Klitzing # Maintainer: André Klitzing setvar pkgname = 'py-asn1crypto' setvar _pkgname = 'asn1crypto' setvar pkgver = '0.23.0' setvar pkgrel = '0' setvar pkgdesc = ""Python ASN.1 library with a focus on performance and a pythonic API"" setvar url = ""https://github.com/wbond/asn1crypto"" setvar arch = ""noarch"" setvar license = ""MIT"" setvar makedepends = ""python2-dev py-setuptools python3-dev"" setvar subpackages = ""py3-${pkgname#py-}:_py3 py2-${pkgname#py-}:_py2"" setvar source = ""$_pkgname-$pkgver.tar.gz::https://github.com/wbond/asn1crypto/archive/$pkgver.tar.gz"" setvar builddir = ""$srcdir/$_pkgname-$pkgver"" proc build { cd $builddir python2 setup.py build python3 setup.py build } proc check { cd $builddir python2 run.py tests python3 run.py tests } proc package { mkdir -p $pkgdir } proc _py { local python="$1" setvar pkgdesc = ""$pkgdesc (for $python)"" setvar depends = "$python" setvar install_if = ""$pkgname=$pkgver-r$pkgrel $python"" cd $builddir $python setup.py install --prefix=/usr --root="$subpkgdir" } proc _py2 { setvar replaces = "$pkgname" _py python2 } proc _py3 { _py python3 } setvar sha512sums = ""1f702d80050c2b198bc6a829bdef74d7722222f808a5ca6856482f16d1e0e9f36476845eac64ef27ca141ab6280b7da3ca60fa33edda6b886f27dc72c00d3650 asn1crypto-0.23.0.tar.gz""