aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py-pycountry/APKBUILD
blob: 94e3260e901c5bc4b0caef9da99de8a3d4b24ba0 (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.4
pkgrel=0
pkgdesc="ISO country, subdivision, language, currency and script definitions and their translations"
url="http://pypi.python.org/pypi/pycountry"
arch="noarch"
license="LGPL-2.0-or-later"
depends=""
depends_dev=""
makedepends="python2-dev py-lxml py-setuptools"
install=""
subpackages=""
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 --root=$pkgdir/ || return 1
}

md5sums="72f18d648215ababf1b82246a4fbe9d8  pycountry-1.4.zip"
sha256sums="c8e8dd244ad32bc1dbb55565b83f9277d0e0ad423c190844acd7e4b9831c3652  pycountry-1.4.zip"
sha512sums="59e6741f8c4a92412391ea672f6dc3778d87fcc38a5f37615bb60c8d022990425cdd8c04724c8eac1d503f11fea68a21989cd24fed060fe3efbdbeb7ef9177be  pycountry-1.4.zip"