blob: 7135955174918491a32b9921c0473f617c10f3e6 (
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: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>
# Maintainer: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>
pkgname=py-phonenumbers
_pkgname=phonenumbers
pkgver=7.0.1
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="262f2877122848aa57a1033236739e04 phonenumbers-7.0.1.tar.gz"
sha256sums="d7f1e71c629a93790bd0ac95c8ce32006edd3e7c68659ada06cbef524c8506ec phonenumbers-7.0.1.tar.gz"
sha512sums="6c9ef6d0ffd5d438ea80f51ab1d1cea06712a710f4951488dfaeab738b99768ecd52b02a459299db7c812c0858034c84da546f52b5374e50269e98e2b47534d0 phonenumbers-7.0.1.tar.gz"
|