[arch-commits] Commit in scrapy/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Mon Nov 4 06:12:46 UTC 2019
Date: Monday, November 4, 2019 @ 06:12:46
Author: felixonmars
Revision: 523327
archrelease: copy trunk to community-staging-any
Added:
scrapy/repos/community-staging-any/
scrapy/repos/community-staging-any/PKGBUILD
(from rev 523325, scrapy/trunk/PKGBUILD)
----------+
PKGBUILD | 38 ++++++++++++++++++++++++++++++++++++++
1 file changed, 38 insertions(+)
Copied: scrapy/repos/community-staging-any/PKGBUILD (from rev 523325, scrapy/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2019-11-04 06:12:46 UTC (rev 523327)
@@ -0,0 +1,38 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: PyroDevil <p dot devil at gmail dot com>
+# Contributor: Anibal Pacheco <apacheco.uy at gmail.com>
+
+pkgname=scrapy
+pkgver=1.7.4
+pkgrel=2
+pkgdesc="A fast high-level scraping and web crawling framework."
+arch=('any')
+license=('BSD')
+url="https://scrapy.org"
+depends=('python-twisted' 'libxml2' 'python-w3lib' 'python-lxml' 'python-six' 'python-queuelib'
+ 'python-setuptools' 'python-cssselect' 'python-pyopenssl' 'python-parsel'
+ 'python-pydispatcher' 'python-service-identity')
+checkdepends=('python-pytest-runner' 'python-pillow' 'python-testfixtures' 'python-botocore'
+ 'python-jmespath' 'mitmproxy')
+optdepends=('ipython: for enhanced support of the interactive scraping shell')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/scrapy/scrapy/archive/$pkgver.tar.gz")
+sha512sums=('28f3899e2a6edbb2da4dcc7f766221a6a4b6b94c5bc90383801331406426abf89e2f27c8faf6bf4c1c3de0df6c31b9c72d9cd324343ba58fe8858280fc337809')
+
+build() {
+ cd scrapy-$pkgver
+ python setup.py build
+}
+
+check() {
+ cd scrapy-$pkgver
+ python setup.py pytest --addopts tests
+}
+
+package() {
+ cd scrapy-$pkgver
+ python setup.py install -O1 --root="$pkgdir"
+
+ install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+ install -D -m644 README.rst "$pkgdir"/usr/share/doc/$pkgname/README.rst
+ install -D -m644 docs/intro/install.rst "$pkgdir"/usr/share/doc/$pkgname/INSTALL.rst
+}
More information about the arch-commits
mailing list