testing/py3-us: clarify license, modernize

- fix upstream url
This commit is contained in:
prspkt 2019-03-25 01:46:41 +02:00
parent 4a841da8f2
commit e6bc045985
No known key found for this signature in database
GPG Key ID: 24BA3D41BDA6E870

View File

@ -4,39 +4,26 @@ pkgname=py3-us
_pkgname=us
pkgver=1.0.0
pkgrel=0
pkgdesc="A Python US state meta information module"
url="https://github.com/sunlightlabs/python-us"
pkgdesc="US state meta information and other fun stuff"
url="https://github.com/unitedstates/python-us"
arch="noarch"
license="BSD"
license="BSD-3-Clause"
replaces="py-us" # for backwards compatibility
provides="py-us=$pkgver-r$pkgrel" # for backwards compatibility
depends="py3-jellyfish py3-setuptools python3"
depends_dev=""
makedepends="py3-setuptools python3-dev"
install=""
subpackages=""
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz
fix-requires.patch"
_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
}
builddir="$srcdir"/$_pkgname-$pkgver
build() {
cd "$_builddir"
python3 setup.py build || return 1
cd "$builddir"
python3 setup.py build
}
package() {
cd "$_builddir"
python3 setup.py install --prefix=/usr --root="$pkgdir" || return 1
cd "$builddir"
python3 setup.py install --prefix=/usr --root="$pkgdir"
}
sha512sums="942e3b5af01e5ecab58fbc84905976ce57085e766bde00cc08f02586d7387069270a8927d6f6dbfcba324f290046763efe3d64c7568667dcf86f080048960a25 us-1.0.0.tar.gz