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

Felix Yan felixonmars at archlinux.org
Fri Oct 25 16:38:55 UTC 2019


    Date: Friday, October 25, 2019 @ 16:38:54
  Author: felixonmars
Revision: 519517

archrelease: copy trunk to community-staging-any

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

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

Copied: python-w3lib/repos/community-staging-any/PKGBUILD (from rev 519515, python-w3lib/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2019-10-25 16:38:54 UTC (rev 519517)
@@ -0,0 +1,51 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Bence Balint <balintbence1337 at gmail.com>
+
+pkgbase=python-w3lib
+pkgname=('python-w3lib' 'python2-w3lib')
+pkgver=1.21.0
+pkgrel=2
+pkgdesc="Library of web-related functions"
+arch=('any')
+license=('BSD')
+url="https://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=('7b55e31e3a942ef1ba3db0ac4d325d7a547ed45764b22d91503358d65dbef6e84abe9777899b3a966882013f1d02314b990078849c68c2e249a41e32025bb92e')
+
+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