[arch-commits] Commit in python-w3lib/repos (2 files)

Felix Yan felixonmars at archlinux.org
Sat Jun 30 16:58:46 UTC 2018


    Date: Saturday, June 30, 2018 @ 16:58:46
  Author: felixonmars
Revision: 348600

archrelease: copy trunk to community-staging-any

Added:
  python-w3lib/repos/community-staging-any/
  python-w3lib/repos/community-staging-any/PKGBUILD
    (from rev 348599, python-w3lib/trunk/PKGBUILD)

----------+
 PKGBUILD |   52 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 52 insertions(+)

Copied: python-w3lib/repos/community-staging-any/PKGBUILD (from rev 348599, python-w3lib/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2018-06-30 16:58:46 UTC (rev 348600)
@@ -0,0 +1,52 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Bence Balint <balintbence1337 at gmail.com>
+
+pkgbase=python-w3lib
+pkgname=('python-w3lib' 'python2-w3lib')
+pkgver=1.19.0
+pkgrel=2
+pkgdesc="Library of web-related functions"
+arch=('any')
+license=('BSD')
+url="http://w3lib.readthedocs.org"
+makedepends=('python-setuptools' 'python2-setuptools' 'python-six' 'python2-six')
+checkdepends=('python-pytest' 'python2-pytest')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/scrapy/w3lib/archive/v$pkgver.tar.gz")
+sha512sums=('7fa6275e7934164aa66e8fe205320f596e35c49805dccdab0194b409e77b3f41decd6ef132c48698bd2abcb7c319e669505dc6849b9f1a194f74d302abac6d80')
+
+prepare() {
+  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-$pkgver
+  py.test
+
+  cd "$srcdir"/w3lib-$pkgver-py2
+  py.test2
+}
+
+package_python-w3lib() {
+  depends=('python-six')
+
+  cd w3lib-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+package_python2-w3lib() {
+  depends=('python2-six')
+
+  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