summaryrefslogtreecommitdiffstats
path: root/testing/py-pycountry/APKBUILD
blob: e4ad4f3afe9bc443fe0be2c2c38caa0024ff20fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Contributor: Francesco Colista <francesco.colista@gmail.com>
# Maintainer:
pkgname=py-pycountry
_pkgname=pycountry
pkgver=0.12.1
pkgrel=1
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="python-dev py-lxml py-setuptools"
makedepends="$depends_dev"
install=""
subpackages=""
source="http://pypi.python.org/packages/source/p/${_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
}
package() {
	cd "$_builddir"
	python setup.py install --root=$pkgdir/ || return 1
}
md5sums="d593c50b446850ee40c4a342677100d5  pycountry-0.12.1.tar.gz"