aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabian Affolter <fabian@affolter-engineering.ch>2013-09-15 20:54:01 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2013-09-17 15:01:35 +0000
commit7b3b91585c4d883faa3874373bc7b2bc53276697 (patch)
tree4530753abccf5d1a97e8309656904d0141f3108a
parent838aaac0ec6ec826a149d1a886ed9a1cc6c3d231 (diff)
downloadaports-7b3b91585c4d883faa3874373bc7b2bc53276697.tar.bz2
aports-7b3b91585c4d883faa3874373bc7b2bc53276697.tar.xz
testing/py-us: new aport
A Python US state meta information module https://github.com/sunlightlabs/python-us
-rw-r--r--testing/py-us/APKBUILD41
1 files changed, 41 insertions, 0 deletions
diff --git a/testing/py-us/APKBUILD b/testing/py-us/APKBUILD
new file mode 100644
index 0000000000..1f9066723f
--- /dev/null
+++ b/testing/py-us/APKBUILD
@@ -0,0 +1,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"