Date: Sunday, March 29, 2015 @ 06:34:54 Author: fyan Revision: 130180
addpkg: python-phonenumbers 7.0.4-1 Added: python-phonenumbers/ python-phonenumbers/repos/ python-phonenumbers/trunk/ python-phonenumbers/trunk/PKGBUILD ----------+ PKGBUILD | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) Added: python-phonenumbers/trunk/PKGBUILD =================================================================== --- python-phonenumbers/trunk/PKGBUILD (rev 0) +++ python-phonenumbers/trunk/PKGBUILD 2015-03-29 04:34:54 UTC (rev 130180) @@ -0,0 +1,49 @@ +# $Id$ +# Maintainer: Felix Yan <[email protected]> + +pkgname=python-phonenumbers +pkgname=(python-phonenumbers python2-phonenumbers) +_pypiname=phonenumbers +pkgver=7.0.4 +pkgrel=1 +pkgdesc="Python version of Google's common library for parsing, formatting, storing and validating international phone numbers" +arch=('any') +url="https://github.com/daviddrysdale/python-phonenumbers" +license=('Apache') +makedepends=("python-setuptools" "python2-setuptools") +source=("https://pypi.python.org/packages/source/p/$_pypiname/$_pypiname-$pkgver.tar.gz") +sha512sums=('434dfd133dd981a87256e35ae3f863246c36e5913ac5e6d0be4822d23e1d5c7141fd3fad09d1e6aef0566e2c2f70635ab09133c229b63faf188fa5f0ba5d2de5') + +prepare() { + cp -a $_pypiname-$pkgver{,-py2} +} + +build() { + cd $_pypiname-$pkgver + python setup.py build + + cd ../$_pypiname-$pkgver + python2 setup.py build +} + +check() { + cd $_pypiname-$pkgver + python setup.py test + + cd ../$_pypiname-$pkgver + python2 setup.py test +} + +package_python-phonenumbers() { + depends=('python') + + cd $_pypiname-$pkgver + python setup.py install -O1 --root "${pkgdir}" +} + +package_python2-phonenumbers() { + depends=('python2') + + cd $_pypiname-$pkgver + python2 setup.py install -O1 --root "${pkgdir}" +} Property changes on: python-phonenumbers/trunk/PKGBUILD ___________________________________________________________________ Added: svn:keywords ## -0,0 +1 ## +Id \ No newline at end of property
