summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorGI_Jack2019-06-19 21:00:06 -0400
committerGI_Jack2019-06-19 21:00:06 -0400
commit78669969db4dda034ea9dcd830fc5393b8eae1bf (patch)
treeb8857219b30fa7f239e7d1de9b640ee0f6b43a33
downloadaur-78669969db4dda034ea9dcd830fc5393b8eae1bf.tar.gz
initial commit
-rw-r--r--.SRCINFO14
-rw-r--r--PKGBUILD28
2 files changed, 42 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..2976bcc66da
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,14 @@
+pkgbase = python2-phonenumbers
+ pkgdesc = Python version of Google's common library for parsing, formatting, storing and validating international phone numbers
+ pkgver = 8.10.13
+ pkgrel = 1
+ url = https://github.com/daviddrysdale/python-phonenumbers
+ arch = any
+ license = Apache
+ makedepends = python-setuptools
+ depends = python2
+ source = python2-phonenumbers-8.10.13.tar.gz::https://github.com/daviddrysdale/python-phonenumbers/archive/v8.10.13.tar.gz
+ sha512sums = ca5dd22f8184b44d2d373dbfe090b497147e4f0855e6ba597a878b7147b8d58290b69a7f92bba6782530469338ea867b0538014405945f13c74496dc1fae2ef5
+
+pkgname = python2-phonenumbers
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..8c60c74d799
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,28 @@
+# Maintainer: GI_Jack <GI_Jack@hackermail.com>
+
+pkgname=python2-phonenumbers
+pkgver=8.10.13
+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')
+depends=('python2')
+makedepends=("python-setuptools")
+source=("$pkgname-$pkgver.tar.gz::https://github.com/daviddrysdale/python-phonenumbers/archive/v$pkgver.tar.gz")
+sha512sums=('ca5dd22f8184b44d2d373dbfe090b497147e4f0855e6ba597a878b7147b8d58290b69a7f92bba6782530469338ea867b0538014405945f13c74496dc1fae2ef5')
+
+build() {
+ cd python-phonenumbers-$pkgver
+ python2 setup.py build
+}
+
+check() {
+ cd python-phonenumbers-$pkgver
+ python2 setup.py test
+}
+
+package() {
+ cd python-phonenumbers-$pkgver
+ python2 setup.py install -O1 --root "$pkgdir"
+}