aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py-pycountry/APKBUILD
blob: 47cb7ed22f2c943fc9287d5f3c2403d70c3b7f54 (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=0.14.8
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="2c775e379ba5ca2363f4f595ac9304ba  pycountry-0.14.8.zip"
sha256sums="5252b5378ba6f1971aa718248d797fb1e2a33d0bdb975400e4b801549102e2fa  pycountry-0.14.8.zip"
sha512sums="99d8ded3addd3dbd03e15d6ed31bd53d3c369c4b516c03f3e7bfa7ed42feda769153f6df0a43fd9129f8123b8ebc22341722dc5883c885b0f4a42ba591b475cd  pycountry-0.14.8.zip"