aboutsummaryrefslogtreecommitdiffstats
path: root/main/py-country/APKBUILD
blob: bb2c262fe4e03a99a74dc20410569cf9bec7ca10 (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
# Contributor: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py-country
_pkgname=pycountry
pkgver=1.10
pkgrel=1
pkgdesc="ISO country, subdivision, language, currency and script definitions and their translations"
url=https://pypi.python.org/pypi/pycountry
arch="noarch"
license="LGPL2+"
depends="python2"
makedepends="python2-dev py-setuptools"
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 --prefix=/usr --root="$pkgdir" || return 1
}

md5sums="617635a7e94dc3d18ebcb5382cd3c93f  pycountry-1.10.zip"
sha256sums="29bd07e5f0d0471c260cea14e2ca4b7d705228ebb024b4de139dc87795576e67  pycountry-1.10.zip"
sha512sums="076de329c5b9d7626fbf0aace654504a2cd2d1d7bdf2ec89ba4763b38b756a6e75c7f3032c4b8785693d291ace7a206673cac1a457c4dd59e8c3ce1cd70d7d60  pycountry-1.10.zip"