aboutsummaryrefslogtreecommitdiffstats
path: root/main/py-phonenumbers/APKBUILD
blob: e660c454191fd514bc1e7a38110ffdc4e50ea3a1 (plain) (blame)
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: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>
# Maintainer: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>
pkgname=py-phonenumbers
_pkgname=phonenumbers
pkgver=7.5.2
pkgrel=0
pkgdesc="International phone number library for Python"
url=https://github.com/daviddrysdale/python-phonenumbers
arch="noarch"
license="ASL 2.0"
depends="python"
depends_dev=""
makedepends="python-dev py-setuptools"
install=""
subpackages=""
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"

_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 --prefix=/usr --root="$pkgdir" || return 1
}

md5sums="66a5b458d29c209456588499d3050f80  phonenumbers-7.5.2.tar.gz"
sha256sums="66cef748ec45cc23add7cea3409a958eeb9d27ff0b5aac4b3c68ec861551d3ad  phonenumbers-7.5.2.tar.gz"
sha512sums="1a65dea60e50cc23a00ae3e1fdb8b0780964361a5ea9e9c1d71c01ed2edcd8573492d847ea23217e6c74aa7ddfad7a75fa0c8148462f2c8811da8891afd8be38  phonenumbers-7.5.2.tar.gz"