PKGBUILD 955 B

123456789101112131415161718192021222324252627282930313233
  1. # Maintainer(Arch): Felix Yan <felixonmars@archlinux.org>
  2. # Maintainer: Sagar Acharya <sagar@hyperbola.info>
  3. pkgname=python-soupsieve
  4. pkgver=2.2.1
  5. pkgrel=1
  6. pkgdesc="A CSS4 selector implementation for Beautiful Soup"
  7. url="https://github.com/facelessuser/soupsieve"
  8. license=('Expat')
  9. arch=('any')
  10. depends=('python')
  11. makedepends=('python-setuptools')
  12. #checkdepends=('python-pytest' 'python-beautifulsoup4' 'python-html5lib' 'python-lxml')
  13. source=("https://github.com/facelessuser/soupsieve/archive/$pkgver/$pkgname-$pkgver.tar.gz")
  14. sha512sums=('c1339cfca237af7f8915b6d644b8271f769f9a37aa68f8acf536236551baaf9bb44a2f2a736f9168a7649cde14d37b8c24614c9491acbf81e3f4fdaea96b4928')
  15. build() {
  16. cd soupsieve-$pkgver
  17. python setup.py build
  18. }
  19. #check() {
  20. # cd soupsieve-$pkgver
  21. # pytest
  22. #}
  23. package() {
  24. cd soupsieve-$pkgver
  25. python setup.py install --root="$pkgdir" --optimize=1
  26. install -Dm644 LICENSE.md "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.md
  27. }