[arch-commits] Commit in python-ukpostcodeparser/trunk (PKGBUILD)

Felix Yan felixonmars at archlinux.org
Sun Nov 26 05:33:40 UTC 2017


    Date: Sunday, November 26, 2017 @ 05:33:39
  Author: felixonmars
Revision: 268569

upgpkg: python-ukpostcodeparser 1.1.2-1

Modified:
  python-ukpostcodeparser/trunk/PKGBUILD

----------+
 PKGBUILD |   21 ++++++++++-----------
 1 file changed, 10 insertions(+), 11 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-11-26 05:33:29 UTC (rev 268568)
+++ PKGBUILD	2017-11-26 05:33:39 UTC (rev 268569)
@@ -3,8 +3,7 @@
 
 pkgbase=python-ukpostcodeparser
 pkgname=('python-ukpostcodeparser' 'python2-ukpostcodeparser')
-pkgver=1.1.1
-_commit=dae25cd340ec69b4e9e97ed0b979883ea5c51cf6
+pkgver=1.1.2
 pkgrel=1
 pkgdesc="UK Postcode parser"
 arch=('any')
@@ -11,18 +10,18 @@
 license=('MIT')
 url="https://github.com/hamstah/ukpostcodeparser"
 makedepends=('python-setuptools' 'python2-setuptools')
-source=("$pkgbase-$_commit.tar.gz::https://github.com/hamstah/ukpostcodeparser/archive/$_commit.tar.gz")
-sha512sums=('e9b797548a064c295ef94afba2df88a050f3bf27f78164a889f0a7ba8ea22dade849a13e8b6fe663386e7c83aa78390ca51a5354b524cebb68d99254080d4a5c')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/hamstah/ukpostcodeparser/archive/v$pkgver.tar.gz")
+sha512sums=('8113522b728c095f937a9f53f21c369130e3e63c4fc3546dbea4ad1c53648742fb0e766b1254c76ee65d69dec585f1a90caa7d39ca540de1765ff5f989a702de')
 
 prepare() {
-  cp -a ukpostcodeparser-$_commit{,-py2}
+  cp -a ukpostcodeparser-$pkgver{,-py2}
 }
 
 build() {
-  cd "$srcdir"/ukpostcodeparser-$_commit
+  cd "$srcdir"/ukpostcodeparser-$pkgver
   python setup.py build
 
-  cd "$srcdir"/ukpostcodeparser-$_commit-py2
+  cd "$srcdir"/ukpostcodeparser-$pkgver-py2
   python2 setup.py build
 }
 
@@ -29,10 +28,10 @@
 check() {
   # Expected failure: https://github.com/hamstah/ukpostcodeparser/issues/8
 
-  cd "$srcdir"/ukpostcodeparser-$_commit
+  cd "$srcdir"/ukpostcodeparser-$pkgver
   python -m unittest discover -s ukpostcodeparser/test -p '*.py' || warning "Tests failed"
 
-  cd "$srcdir"/ukpostcodeparser-$_commit-py2
+  cd "$srcdir"/ukpostcodeparser-$pkgver-py2
   python2 -m unittest discover -s ukpostcodeparser/test -p '*.py' || warning "Tests failed"
 }
 
@@ -39,7 +38,7 @@
 package_python-ukpostcodeparser() {
   depends=('python')
 
-  cd ukpostcodeparser-$_commit
+  cd ukpostcodeparser-$pkgver
   python setup.py install --root="$pkgdir" --optimize=1
 }
 
@@ -46,7 +45,7 @@
 package_python2-ukpostcodeparser() {
   depends=('python2')
 
-  cd ukpostcodeparser-$_commit-py2
+  cd ukpostcodeparser-$pkgver-py2
   python2 setup.py install --root="$pkgdir" --optimize=1
 }
 


More information about the arch-commits mailing list