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

Felix Yan felixonmars at archlinux.org
Thu Aug 3 19:52:55 UTC 2017


    Date: Thursday, August 3, 2017 @ 19:52:54
  Author: felixonmars
Revision: 247912

upgpkg: python-w3lib 1.18.0-1

Modified:
  python-w3lib/trunk/PKGBUILD

----------+
 PKGBUILD |   26 +++++++++++++++++---------
 1 file changed, 17 insertions(+), 9 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-08-03 19:52:27 UTC (rev 247911)
+++ PKGBUILD	2017-08-03 19:52:54 UTC (rev 247912)
@@ -4,26 +4,34 @@
 
 pkgbase=python-w3lib
 pkgname=('python-w3lib' 'python2-w3lib')
-pkgver=1.17.0
+pkgver=1.18.0
 pkgrel=1
 pkgdesc="Library of web-related functions"
 arch=('any')
 license=('BSD')
 url="http://w3lib.readthedocs.org"
-makedepends=('python-setuptools' 'python2-setuptools' 'python-six' 'python2-six' 'git')
+makedepends=('python-setuptools' 'python2-setuptools' 'python-six' 'python2-six')
 checkdepends=('python-pytest' 'python2-pytest')
-source=("git+https://github.com/scrapy/w3lib.git#tag=v$pkgver")
-md5sums=('SKIP')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/scrapy/w3lib/archive/v$pkgver.tar.gz")
+sha512sums=('8409398fdf543e961d87317d6c8474d0522ac3d563808a75f52f6c5129e831af36ede33bf5235233e6c8c49931c7615d77db87288ae704de6940a713b0b08167')
 
 prepare() {
-  cp -a w3lib{,-py2}
+  cp -a w3lib-$pkgver{,-py2}
 }
 
+build() {
+  cd "$srcdir"/w3lib-$pkgver
+  python setup.py build
+
+  cd "$srcdir"/w3lib-$pkgver-py2
+  python2 setup.py build
+}
+
 check() {
-  cd "$srcdir"/w3lib
+  cd "$srcdir"/w3lib-$pkgver
   py.test
 
-  cd "$srcdir"/w3lib-py2
+  cd "$srcdir"/w3lib-$pkgver-py2
   py.test2
 }
 
@@ -30,7 +38,7 @@
 package_python-w3lib() {
   depends=('python-six')
 
-  cd w3lib
+  cd w3lib-$pkgver
   python setup.py install --root="$pkgdir" --optimize=1
   install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
 }
@@ -38,7 +46,7 @@
 package_python2-w3lib() {
   depends=('python2-six')
 
-  cd w3lib-py2
+  cd w3lib-$pkgver-py2
   python2 setup.py install --root="$pkgdir" --optimize=1
   install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
 }



More information about the arch-commits mailing list