Commit 7b3b9158 authored by Fabian Affolter's avatar Fabian Affolter Committed by Natanael Copa

testing/py-us: new aport

A Python US state meta information module
https://github.com/sunlightlabs/python-us
parent 838aaac0
# 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"
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment