From 7b3b91585c4d883faa3874373bc7b2bc53276697 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 15 Sep 2013 20:54:01 +0000 Subject: testing/py-us: new aport A Python US state meta information module https://github.com/sunlightlabs/python-us --- testing/py-us/APKBUILD | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 testing/py-us/APKBUILD (limited to 'testing') diff --git a/testing/py-us/APKBUILD b/testing/py-us/APKBUILD new file mode 100644 index 000000000..1f9066723 --- /dev/null +++ b/testing/py-us/APKBUILD @@ -0,0 +1,41 @@ +# Contributor: Fabian Affolter +# Maintainer: Fabian Affolter +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" -- cgit v1.2.3