aboutsummaryrefslogtreecommitdiffstats
path: root/main/py3-phonenumbers/APKBUILD
blob: a98269a04d8b4c49aab80056dd190c9821d6fa52 (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
# Contributor: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>
# Maintainer: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>
pkgname=py3-phonenumbers
_pkgname=phonenumbers
pkgver=8.11.0
pkgrel=0
pkgdesc="International phone number library for Python"
url="https://github.com/daviddrysdale/python-phonenumbers"
arch="noarch"
license="Apache-2.0"
depends="python3"
makedepends="py3-setuptools"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

replaces="py-phonenumbers" # Backwards compatibility
provides="py-phonenumbers=$pkgver-r$pkgrel" # Backwards compatibility

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="ef6282eb53898e6add2909ee693f9078180bee59a9395693e6aa1cf98cc3853d7c4cebb4b4a86f18af81797d8187ce0336b974a583d25ee3cf3e3434d53e4733  phonenumbers-8.11.0.tar.gz"