Date: Thursday, April 12, 2018 @ 05:55:45
  Author: felixonmars
Revision: 321613

upgpkg: python-wstools 0.4.6-1

Modified:
  python-wstools/trunk/PKGBUILD

----------+
 PKGBUILD |   31 ++++++++++++++++---------------
 1 file changed, 16 insertions(+), 15 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2018-04-12 05:34:48 UTC (rev 321612)
+++ PKGBUILD    2018-04-12 05:55:45 UTC (rev 321613)
@@ -3,46 +3,47 @@
 
 pkgbase=python-wstools
 pkgname=('python-wstools' 'python2-wstools')
-pkgver=0.4.5
-_commit=c57464fb6b79624742921a8aa0a2c0657c8b20b0
+pkgver=0.4.6
 pkgrel=1
 pkgdesc="WSDL parsing services package for Web Services for Python"
 arch=('any')
 url="https://github.com/pycontribs/wstools";
 license=('custom')
-makedepends=('python-pip' 'python2-pip' 'python-docutils' 'python2-docutils' 
'git')
+makedepends=('python-pbr' 'python2-pbr' 'python-setuptools' 
'python2-setuptools')
 checkdepends=('python-pytest-runner' 'python2-pytest-runner' 'autopep8' 
'python2-autopep8'
               'python-hacking' 'python2-hacking' 'python-pytest-cov' 
'python2-pytest-cov')
-source=("git+https://github.com/pycontribs/wstools.git#commit=$_commit";)
-md5sums=('SKIP')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/pycontribs/wstools/archive/$pkgver.tar.gz";)
+sha512sums=('23d815ec7f58d30fdcefdb4bd7db544d61ecd6eed39666b09ad857ce9e6d8ccc148a3419698cab8dbc9d6d61fbd498de9c2afa12fc2c9aef47e2a94f687c276d')
 
 prepare() {
-  cp -a wstools{,-py2}
+  cp -a wstools-$pkgver{,-py2}
   sed -e 's|#! /usr/bin/env python$|#!/usr/bin/env python2|' \
       -e 's|#!/usr/bin/env python$|#!/usr/bin/env python2|' \
-      -i 
wstools-py2/wstools/{c14n.py,Namespaces.py,XMLSchema.py,Utility.py,__init__.py}
+      -i 
wstools-$pkgver-py2/wstools/{c14n.py,Namespaces.py,XMLSchema.py,Utility.py,__init__.py}
+
+  export PBR_VERSION=$pkgver
 }
 
 build() {
-  cd "$srcdir"/wstools
+  cd "$srcdir"/wstools-$pkgver
   python setup.py build
 
-  cd "$srcdir"/wstools-py2
+  cd "$srcdir"/wstools-$pkgver-py2
   python2 setup.py build
 }
 
 check() {
-  cd "$srcdir"/wstools
+  cd "$srcdir"/wstools-$pkgver
   python setup.py test
 
-  cd "$srcdir"/wstools-py2
+  cd "$srcdir"/wstools-$pkgver-py2
   python2 setup.py test
 }
 
 package_python-wstools() {
-  depends=('python-six' 'python-docutils')
+  depends=('python-six' 'python-setuptools')
 
-  cd wstools
+  cd wstools-$pkgver
   python setup.py install --root="$pkgdir" --optimize=1
 
   install -d "$pkgdir/usr/share/licenses/$pkgname"
@@ -50,9 +51,9 @@
 }
 
 package_python2-wstools() {
-  depends=('python2-six' 'python2-docutils')
+  depends=('python2-six' 'python2-setuptools')
 
-  cd wstools-py2
+  cd wstools-$pkgver-py2
   python2 setup.py install --root="$pkgdir" --optimize=1
 
   install -d "$pkgdir/usr/share/licenses/$pkgname"

Reply via email to