aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py-asn1/APKBUILD
blob: 30473ff4873176738afc3811a9c51257b9088112 (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: William Pitcock <nenolod@dereferenced.org>
# Maintainer: William Pitcock <nenolod@dereferenced.org>
pkgname=py-asn1
pkgver=0.1.7
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="2cbd80fcd4c7b1c82180d3d76fee18c8  pyasn1-0.1.7.tar.gz"
sha256sums="e4f81d53c533f6bd9526b047f047f7b101c24ab17339c1a7ad8f98b25c101eab  pyasn1-0.1.7.tar.gz"
sha512sums="af2ac05fb7e18b25bd125f92bd7c8389a00c18018c1ff48d94c196f5ab41b09c8991d2e326d492cfaed755b06cd4c75d88719b4a390bdab6d84fe3c8791620af  pyasn1-0.1.7.tar.gz"