summaryrefslogtreecommitdiffstats
path: root/testing/py-us/APKBUILD
blob: 1f9066723fe064d8d64f7e30e3c068aaef3a1e9c (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
41
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py-us
_pkgname=us
pkgver=0.7
pkgrel=0
pkgdesc="A Python US state meta information module"
url="https://github.com/sunlightlabs/python-us"
arch="noarch"
license="BSD"
depends="python"
depends_dev=""
makedepends="python-dev py-setuptools"
install=""
subpackages=""
source="http://pypi.python.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"

_builddir="$srcdir"/$_pkgname-$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 --prefix=/usr --root="$pkgdir" || return 1
}

md5sums="a2ae2b09a5beb1a5f279e544ba1c4a76  us-0.7.tar.gz"
sha256sums="64e2b347ca8f0a69e66fe9315666dc21ac007ba9f522d3b51c881fb8777f5a0d  us-0.7.tar.gz"
sha512sums="a0fa2797cd36da10bcfeed427dd0e9de4da9b1cdc341f6c9889d57af0c646e05b5b89f73ab7efe220bb55ec9320e26045b5518574c65391a8b900d637ccafb6f  us-0.7.tar.gz"