archrelease: copy trunk to staging-x86_64
[arch-packages.git] / python-asn1crypto / trunk / PKGBUILD
blob39801dc15f92a8e00da96787eac70f710b2d971c
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
2 # Contributor: Ionut Biru <ibiru@archlinux.org>
3 # Contributor: Massimiliano Torromeo < massimiliano DOT torromeo AT gmail DOT com >
5 pkgname=python-asn1crypto
6 pkgver=1.5.1
7 pkgrel=2
8 arch=('any')
9 license=('MIT')
10 pkgdesc="Python ASN.1 library with a focus on performance and a pythonic API"
11 url="https://github.com/wbond/asn1crypto"
12 depends=('python')
13 makedepends=('python-setuptools')
14 source=("$pkgname-$pkgver.tar.gz::https://github.com/wbond/asn1crypto/archive/$pkgver.tar.gz")
15 sha512sums=('1bcb93d82a2602e3b5c66a180f5d16cd3a9731d86d89fbd44c1e23d735e708e9bf9bb6cbabc2a5d60619f51a7c38dfb1f7ed63820f422ccf42800a39f4637626')
17 build() {
18   cd "$srcdir"/asn1crypto-$pkgver
19   python setup.py build
22 check() {
23   cd "$srcdir"/asn1crypto-$pkgver
24   python run.py tests
27 package() {
28   cd asn1crypto-$pkgver
29   python setup.py install --root="$pkgdir" --optimize=1
30   install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/python-asn1crypto/LICENSE