mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-02-16 21:32:22 +01:00
42 lines
1.2 KiB
Plaintext
42 lines
1.2 KiB
Plaintext
# Contributor: Francesco Colista <francesco.colista@gmail.com>
|
|
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
|
|
pkgname=py-pycountry
|
|
_pkgname=pycountry
|
|
pkgver=1.0
|
|
pkgrel=0
|
|
pkgdesc="ISO country, subdivision, language, currency and script definitions and their translations"
|
|
url="http://pypi.python.org/pypi/pycountry"
|
|
arch="noarch"
|
|
license="LGPL2+"
|
|
depends=""
|
|
depends_dev=""
|
|
makedepends="python-dev py-lxml py-setuptools"
|
|
install=""
|
|
subpackages=""
|
|
source="http://pypi.python.org/packages/source/p/${_pkgname}/${_pkgname}-$pkgver.zip"
|
|
|
|
_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 --root=$pkgdir/ || return 1
|
|
}
|
|
|
|
md5sums="5e92360d9bb4df56eeda1b2cc79a7a1a pycountry-1.0.zip"
|
|
sha256sums="a09616ec9c9f73be27de8087bc57c255dd80b4fbbac9b8dbdbbe50abbae33d27 pycountry-1.0.zip"
|
|
sha512sums="f2ca782c1ac6050d992dc83428e5bc3f95a797c4d86c1745e050ce386785cfb7d9b5df0a359bf80089f9e0addada510d5f54c71a2dccb278617d7544ba2b329c pycountry-1.0.zip"
|