diff options
Diffstat (limited to 'testing/py-us')
-rw-r--r-- | testing/py-us/APKBUILD | 41 |
1 files changed, 41 insertions, 0 deletions
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 <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" |