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

Felix Yan felixonmars at archlinux.org
Sat Oct 26 06:44:34 UTC 2019


    Date: Saturday, October 26, 2019 @ 06:44:33
  Author: felixonmars
Revision: 520309

archrelease: copy trunk to community-staging-any

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

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

Copied: python-parsel/repos/community-staging-any/PKGBUILD (from rev 520307, python-parsel/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2019-10-26 06:44:33 UTC (rev 520309)
@@ -0,0 +1,29 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-parsel
+pkgver=1.5.2
+pkgrel=2
+pkgdesc="Parsel is a library to extract data from HTML and XML using XPath and CSS selectors"
+arch=('any')
+license=('BSD')
+url="https://github.com/scrapy/parsel"
+depends=('python-cssselect' 'python-lxml' 'python-six' 'python-w3lib')
+makedepends=('python-pytest-runner')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/scrapy/parsel/archive/v$pkgver.tar.gz")
+sha512sums=('89394b52d33469d8ddd60800ecaaeb2179490631d7adc5a8689d62efe9ddadcc35d6fdef92351b310e5ecd2bf20ee8c977df755b539cb83a3be64f1a3296ec36')
+
+build() {
+  cd parsel-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd parsel-$pkgver
+  python setup.py pytest
+}
+
+package() {
+  cd parsel-$pkgver
+  python 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