PKGBUILD 1011 B

12345678910111213141516171819202122232425262728293031323334
  1. # Maintainer(Arch): Felix Yan <felixonmars@archlinux.org>
  2. # Contributor: Simon Sapin <simon dot sapin at exyr dot org>
  3. # Maintainer: Sagar Acharya <sagar@hyperbola.info>
  4. pkgname=python-cssselect
  5. pkgver=1.1.0
  6. pkgrel=1
  7. license=('Modified-BSD')
  8. arch=('any')
  9. url="https://github.com/scrapy/cssselect"
  10. pkgdesc="A Python3 library that parses CSS3 Selectors and translates them to XPath 1.0"
  11. depends=('python')
  12. makedepends=('python-setuptools')
  13. #checkdepends=('python-pytest-runner' 'python-lxml')
  14. source=("https://github.com/scrapy/cssselect/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
  15. sha512sums=('b33bca6a026f4de37b75606fd238dbd170b57d06288fbff3ea97ce79685a99af275fb8522b04ea9d6693aba5a18541d70b657191fdad881be79718bcf2e7655c')
  16. build() {
  17. cd cssselect-$pkgver
  18. python setup.py build
  19. }
  20. #check() {
  21. # cd cssselect-$pkgver
  22. # python setup.py pytest
  23. #}
  24. package() {
  25. cd cssselect-$pkgver
  26. python setup.py install --root="$pkgdir" --optimize=1
  27. install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
  28. }