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

Felix Yan felixonmars at archlinux.org
Thu Jul 27 06:57:58 UTC 2017


    Date: Thursday, July 27, 2017 @ 06:57:57
  Author: felixonmars
Revision: 246519

upgpkg: python-positional 1.1.2-1

Modified:
  python-positional/trunk/PKGBUILD

----------+
 PKGBUILD |   31 +++++++++++++++++--------------
 1 file changed, 17 insertions(+), 14 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-07-27 06:54:23 UTC (rev 246518)
+++ PKGBUILD	2017-07-27 06:57:57 UTC (rev 246519)
@@ -4,34 +4,37 @@
 
 pkgbase=python-positional
 pkgname=(python-positional python2-positional)
-pkgver=1.1.1
-pkgrel=2
+pkgver=1.1.2
+pkgrel=1
 pkgdesc="Library to enforce positional or key-word arguments"
 arch=('any')
 url="https://github.com/morganfainberg/positional"
 license=('Apache')
-makedepends=('git' 'python-setuptools' 'python2-setuptools' 'python-pbr' 'python2-pbr' 'python-wrapt' 'python2-wrapt')
+makedepends=('python-setuptools' 'python2-setuptools' 'python-pbr' 'python2-pbr' 'python-wrapt'
+             'python2-wrapt')
 checkdepends=('python-testrepository' 'python2-testrepository')
-source=("git+https://github.com/morganfainberg/positional.git#tag=$pkgver")
-md5sums=('SKIP')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/morganfainberg/positional/archive/$pkgver.tar.gz")
+sha512sums=('29d6200d6f612daa933c3c99df7829e6a7ab04b278d22a0fd4075a6ad6aaea915a219ae179e904f2fd5d2d26c5cb580c0bd744be2e5ae44454b1af386599d84a')
 
 prepare() {
-  cp -a positional{,-py2}
+  cp -a positional-$pkgver{,-py2}
+
+  export PBR_VERSION=$pkgver
 }
 
 build() {
-  cd "$srcdir"/positional
+  cd "$srcdir"/positional-$pkgver
   python setup.py build
 
-  cd "$srcdir"/positional-py2
+  cd "$srcdir"/positional-$pkgver-py2
   python2 setup.py build
 }
 
 check() {
-  cd "$srcdir"/positional
+  cd "$srcdir"/positional-$pkgver
   python setup.py testr
 
-  cd "$srcdir"/positional-py2
+  cd "$srcdir"/positional-$pkgver-py2
   PYTHON=python2 python2 setup.py testr
 }
 
@@ -38,15 +41,15 @@
 package_python-positional() {
   depends=('python-pbr' 'python-wrapt')
 
-  cd "$srcdir"/positional
-  python setup.py install --root="$pkgdir/" --optimize=1
+  cd "$srcdir"/positional-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
 }
 
 package_python2-positional() {
   depends=('python2-pbr' 'python2-wrapt')
 
-  cd "$srcdir"/positional-py2
-  python2 setup.py install --root="$pkgdir/" --optimize=1
+  cd "$srcdir"/positional-$pkgver-py2
+  python2 setup.py install --root="$pkgdir" --optimize=1
 }
 
 # vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list