1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
6 pkgdesc="A pure-Python robots.txt parser with support for modern conventions"
7 url="https://github.com/scrapy/protego"
10 depends=('python-six')
11 makedepends=('python-setuptools')
12 checkdepends=('python-pytest-runner')
13 source=("$pkgname-$pkgver.tar.gz::https://github.com/scrapy/protego/archive/$pkgver.tar.gz")
14 sha512sums=('ef8a8196d8ece577eec90cc2e2cca2899625bd777c18f01c8e72a6130d4c2c13f71fa6e32a3e8e43b749f7556f4e3dbb1662e5e94ae18e6c8a7eef950779be1b')
23 python setup.py pytest
28 python setup.py install --root="$pkgdir" --optimize=1
30 install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/