mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-01 18:42:09 +02: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.4
|
|
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="python2-dev py-lxml py-setuptools"
|
|
install=""
|
|
subpackages=""
|
|
source="https://files.pythonhosted.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"
|
|
python2 setup.py build || return 1
|
|
}
|
|
|
|
package() {
|
|
cd "$_builddir"
|
|
python2 setup.py install --root=$pkgdir/ || return 1
|
|
}
|
|
|
|
md5sums="72f18d648215ababf1b82246a4fbe9d8 pycountry-1.4.zip"
|
|
sha256sums="c8e8dd244ad32bc1dbb55565b83f9277d0e0ad423c190844acd7e4b9831c3652 pycountry-1.4.zip"
|
|
sha512sums="59e6741f8c4a92412391ea672f6dc3778d87fcc38a5f37615bb60c8d022990425cdd8c04724c8eac1d503f11fea68a21989cd24fed060fe3efbdbeb7ef9177be pycountry-1.4.zip"
|