aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py-pycountry/APKBUILD
blob: 252bb07e7ffbacf68594055ff0b5a71b25027e5b (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
35
36
37
38
39
40
41
# 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"