summaryrefslogtreecommitdiffstats
path: root/testing/py-pycountry/APKBUILD
blob: ae47d628d831af2b3e14a5e13da90bdbf68f4482 (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
32
33
34
# Contributor: Francesco Colista <francesco.colista@gmail.com>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py-pycountry
_pkgname=pycountry
pkgver=0.14.5
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.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
}

package() {
	cd "$_builddir"
	python setup.py install --root=$pkgdir/ || return 1
}

md5sums="1834b32f2b4ca3f1b6518388959f2bbc  pycountry-0.14.5.zip"