upgpkg: ocaml-topkg 1.0.5-2
[arch-packages.git] / python-pyasn1-modules / trunk / PKGBUILD
blob9d3cee2c49c36baf9824b3127979e7aa217b8040
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
3 pkgname=python-pyasn1-modules
4 pkgver=0.2.8
5 pkgrel=7
6 pkgdesc="A collection of ASN.1-based protocols modules"
7 arch=('any')
8 license=('BSD')
9 url="https://pypi.python.org/pypi/pyasn1-modules"
10 depends=('python-pyasn1')
11 makedepends=('python-setuptools')
12 source=("https://pypi.io/packages/source/p/pyasn1-modules/pyasn1-modules-$pkgver.tar.gz")
13 sha512sums=('fdfcaa065deffdd732deaa1fa30dec2fc4a90ffe15bd12de40636ce0212f447611096d2f4e652ed786b5c47544439e6a93721fabe121f3320f13965692a1ca5b')
15 build() {
16   cd pyasn1-modules-$pkgver
17   python setup.py build
20 check() {
21   cd pyasn1-modules-$pkgver
22   PYTHONPATH=. python tests/__main__.py
25 package() {
26   cd pyasn1-modules-$pkgver
27   python setup.py install --root="$pkgdir" --optimize=1 --skip-build
28   install -Dm644 LICENSE.txt -t "$pkgdir"/usr/share/licenses/$pkgname/