# Contributor: Peter Bui # Maintainer: William Pitcock pkgname=py-asn1 pkgver=0.1.8 pkgrel=0 pkgdesc="A python ASN1 library" url="http://pyasn1.sourceforge.net/" arch="noarch" license="BSD" depends="" depends_dev="python-dev py-setuptools" makedepends="$depends_dev" install="" subpackages="" source="http://sourceforge.net/projects/pyasn1/files/pyasn1/$pkgver/pyasn1-$pkgver.tar.gz" _builddir="$srcdir"/pyasn1-$pkgver prepare() { local i cd "$_builddir" for i in $source; do case $i in *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; esac done } build() { cd "$_builddir" python setup.py build || return 1 } package() { cd "$_builddir" python setup.py install --root="$pkgdir" || return 1 } md5sums="7f6526f968986a789b1e5e372f0b7065 pyasn1-0.1.8.tar.gz" sha256sums="5d33be7ca0ec5997d76d29ea4c33b65c00c0231407fff975199d7f40530b8347 pyasn1-0.1.8.tar.gz" sha512sums="0a0b9b8018ae80a0e0d84ea3a4f217951bf42dce909a354c97890d4b4fc4f49b19d9d0757103ac9002c17c6c622c8e8d66e1f8242b8545a7da455ef3583acdfa pyasn1-0.1.8.tar.gz"