[arch-commits] Commit in python-phonenumbers/repos (2 files)
Felix Yan
fyan at archlinux.org
Sat Sep 19 13:21:53 UTC 2015
Date: Saturday, September 19, 2015 @ 15:21:53
Author: fyan
Revision: 140817
archrelease: copy trunk to community-staging-any
Added:
python-phonenumbers/repos/community-staging-any/
python-phonenumbers/repos/community-staging-any/PKGBUILD
(from rev 140816, python-phonenumbers/trunk/PKGBUILD)
----------+
PKGBUILD | 49 +++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 49 insertions(+)
Copied: python-phonenumbers/repos/community-staging-any/PKGBUILD (from rev 140816, python-phonenumbers/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2015-09-19 13:21:53 UTC (rev 140817)
@@ -0,0 +1,49 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-phonenumbers
+pkgname=(python-phonenumbers python2-phonenumbers)
+_pypiname=phonenumbers
+pkgver=7.0.11
+pkgrel=2
+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=('0ba02af4111bd1457c29565248ee8bc6a0c39a4a1df0bf853707d861604f80a0afcc18d801c6cccb644b8812100319f41c0d90d541862d3631921cff1bbd9088')
+
+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}"
+}
More information about the arch-commits
mailing list