# Contributor: Kaarle Ritvanen # Maintainer: 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="http://pypi.python.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"