# Contributor: Kaarle Ritvanen # Maintainer: pkgname=py-phonenumbers _pkgname=phonenumbers pkgver=6.2.0 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="d646c84459fbe41607dfed28f6fee246 phonenumbers-6.2.0.tar.gz" sha256sums="30ca5cb631339849b9698abea2f2e0c6b11adfdddb62136c02833654d3658777 phonenumbers-6.2.0.tar.gz" sha512sums="785dc6724f4f9ef1a27be1eb35f6d93039767b908b404e128a3b3f520fb5987689650540d56a76bd1dc10c60a6da61a6e47d1dfc29963f5b3ff976c60cfe8f77 phonenumbers-6.2.0.tar.gz"