Date: Saturday, September 23, 2017 @ 05:19:59 Author: felixonmars Revision: 306138
archrelease: copy trunk to testing-any Added: python-asn1crypto/repos/testing-any/ python-asn1crypto/repos/testing-any/PKGBUILD (from rev 306137, python-asn1crypto/trunk/PKGBUILD) ----------+ PKGBUILD | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) Copied: python-asn1crypto/repos/testing-any/PKGBUILD (from rev 306137, python-asn1crypto/trunk/PKGBUILD) =================================================================== --- testing-any/PKGBUILD (rev 0) +++ testing-any/PKGBUILD 2017-09-23 05:19:59 UTC (rev 306138) @@ -0,0 +1,52 @@ +# $Id$ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Ionut Biru <ib...@archlinux.org> +# Contributor: Massimiliano Torromeo < massimiliano DOT torromeo AT gmail DOT com > + +pkgbase=python-asn1crypto +pkgname=('python-asn1crypto' 'python2-asn1crypto') +pkgver=0.23.0 +pkgrel=1 +arch=('any') +license=('MIT') +pkgdesc="Python ASN.1 library with a focus on performance and a pythonic API" +url="https://github.com/wbond/asn1crypto" +makedepends=('python-setuptools' 'python2-setuptools') +source=("$pkgbase-$pkgver.tar.gz::https://github.com/wbond/asn1crypto/archive/$pkgver.tar.gz") +sha512sums=('1f702d80050c2b198bc6a829bdef74d7722222f808a5ca6856482f16d1e0e9f36476845eac64ef27ca141ab6280b7da3ca60fa33edda6b886f27dc72c00d3650') + +prepare() { + cp -a asn1crypto-$pkgver{,-py2} +} + +build() { + cd "$srcdir"/asn1crypto-$pkgver + python setup.py build + + cd "$srcdir"/asn1crypto-$pkgver-py2 + python2 setup.py build +} + +check() { + cd "$srcdir"/asn1crypto-$pkgver + python run.py tests + + cd "$srcdir"/asn1crypto-$pkgver-py2 + python2 run.py tests +} + +package_python-asn1crypto() { + depends=('python') + + cd asn1crypto-$pkgver + python setup.py install --root="$pkgdir" --optimize=1 + install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/python-asn1crypto/LICENSE +} + +package_python2-asn1crypto() { + depends=('python2') + + cd asn1crypto-$pkgver-py2 + python2 setup.py install --root="$pkgdir" --optimize=1 + install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/python2-asn1crypto/LICENSE +}