diff options
author | Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi> | 2015-09-25 22:23:44 +0300 |
---|---|---|
committer | Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi> | 2015-09-25 22:23:44 +0300 |
commit | c3980af68fcee6e6bed003f723d095eb30d1111e (patch) | |
tree | 79609da4c6d860153010954328f544e0ae17e4a2 /main/py-country | |
parent | 560b4588fc0e36985b72703d70b8fccd4be0ac6d (diff) | |
download | aports-c3980af68fcee6e6bed003f723d095eb30d1111e.tar.bz2 aports-c3980af68fcee6e6bed003f723d095eb30d1111e.tar.xz |
main/py-country: moved from testing
Diffstat (limited to 'main/py-country')
-rw-r--r-- | main/py-country/APKBUILD | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/main/py-country/APKBUILD b/main/py-country/APKBUILD new file mode 100644 index 0000000000..041cec243f --- /dev/null +++ b/main/py-country/APKBUILD @@ -0,0 +1,38 @@ +# Contributor: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi> +# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch> +pkgname=py-country +_pkgname=pycountry +pkgver=1.10 +pkgrel=1 +pkgdesc="ISO country, subdivision, language, currency and script definitions and their translations" +url=https://pypi.python.org/pypi/pycountry +arch="noarch" +license="LGPL2+" +depends="python" +makedepends="python-dev py-setuptools" +source="http://pypi.python.org/packages/source/${_pkgname:0:1}/$_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 --prefix=/usr --root="$pkgdir" || return 1 +} + +md5sums="617635a7e94dc3d18ebcb5382cd3c93f pycountry-1.10.zip" +sha256sums="29bd07e5f0d0471c260cea14e2ca4b7d705228ebb024b4de139dc87795576e67 pycountry-1.10.zip" +sha512sums="076de329c5b9d7626fbf0aace654504a2cd2d1d7bdf2ec89ba4763b38b756a6e75c7f3032c4b8785693d291ace7a206673cac1a457c4dd59e8c3ce1cd70d7d60 pycountry-1.10.zip" |