Date: Thursday, May 25, 2017 @ 07:26:47 Author: felixonmars Revision: 230024
upgpkg: scrapy 1.4.0-1 Modified: scrapy/trunk/PKGBUILD ----------+ PKGBUILD | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2017-05-25 07:22:26 UTC (rev 230023) +++ PKGBUILD 2017-05-25 07:26:47 UTC (rev 230024) @@ -4,7 +4,7 @@ # Contributor: Anibal Pacheco <[email protected]> pkgname=scrapy -pkgver=1.3.3 +pkgver=1.4.0 pkgrel=1 pkgdesc="A fast high-level scraping and web crawling framework." arch=('any') @@ -13,20 +13,24 @@ 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') -makedepends=('git') checkdepends=('python-pytest-runner' 'python-pillow' 'python-testfixtures' 'python-botocore' 'python-jmespath' 'mitmproxy') optdepends=('ipython: for enhanced support of the interactive scraping shell') -source=("git+https://github.com/scrapy/scrapy.git#tag=${pkgver}") -md5sums=('SKIP') +source=("$pkgname-$pkgver.tar.gz::https://github.com/scrapy/scrapy/archive/$pkgver.tar.gz") +md5sums=('1be2bb5325cfebca07c66788b0734fbc') +build() { + cd scrapy-$pkgver + python setup.py build +} + check() { - cd scrapy + cd scrapy-$pkgver python setup.py pytest --addopts tests } package() { - cd scrapy + cd scrapy-$pkgver python setup.py install -O1 --root="$pkgdir" install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
