aboutsummaryrefslogtreecommitdiffstats
path: root/main/py-asn1/APKBUILD
blob: f106b5312f3c98b16afd597eff251d54ea7c1c60 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Contributor: Peter Bui <pnutzh4x0r@gmail.com>
# Maintainer: William Pitcock <nenolod@dereferenced.org>
pkgname=py-asn1
pkgver=0.1.9
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="f00a02a631d4016818659d1cc38d229a  pyasn1-0.1.9.tar.gz"
sha256sums="853cacd96d1f701ddd67aa03ecc05f51890135b7262e922710112f12a2ed2a7f  pyasn1-0.1.9.tar.gz"
sha512sums="c72bdba84c4cc860a1790d752861dc9de30dabb61e5146a551597b4a97e64797dbd6e575e61cb9a8b23ffc58bced143b0ed55a7c98d0a85834ccd60b17856df5  pyasn1-0.1.9.tar.gz"