archrelease: copy trunk to community-any
[ArchLinux/community.git] / python-protego / trunk / PKGBUILD
blobeb4496f40840d7c99e2efca4269630d4a639eae7
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
3 pkgname=python-protego
4 pkgver=0.2.1
5 pkgrel=2
6 pkgdesc="A pure-Python robots.txt parser with support for modern conventions"
7 url="https://github.com/scrapy/protego"
8 license=('BSD')
9 arch=('any')
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')
16 build() {
17   cd protego-$pkgver
18   python setup.py build
21 check() {
22   cd protego-$pkgver
23   python setup.py pytest
26 package() {
27   cd protego-$pkgver
28   python setup.py install --root="$pkgdir" --optimize=1
30   install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/