PKGBUILD 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. # Maintainer(Arch): Tim Savannah <kata198@gmail.com>
  2. # Maintainer: Sagar Acharya <sagar@hyperbola.info>
  3. pkgname=('python-advancedhtmlparser' 'python-advancedhtmlparser-tools')
  4. pkgver=9.0.1
  5. pkgrel=1
  6. pkgdesc="Fast Indexed python HTML parser which builds a DOM node tree, providing common getElementsBy* functions for scraping, testing, modification, and formatting"
  7. arch=('any')
  8. license=('LGPL-3')
  9. url="http://github.com/kata198/AdvancedHTMLParser"
  10. makedepends=('python-setuptools' 'python')
  11. depends=('python-setuptools' 'python')
  12. optdepends=('python-queryablelist: Support for advanced "filter" functions')
  13. source=("https://github.com/kata198/AdvancedHTMLParser/archive/${pkgver}.tar.gz")
  14. sha512sums=("4e19103c25224b5b220053ec0ccbc2ddaf927ccbbf2f9ccd5e3f4b403013c17db01ee9e0d7117a6ce7c7ccec157aa877c7cdba6763f649bab50371beab89bf73")
  15. build() {
  16. cd "$srcdir"/AdvancedHTMLParser-$pkgver
  17. python setup.py build
  18. }
  19. package_python-advancedhtmlparser() {
  20. cd AdvancedHTMLParser-$pkgver
  21. python setup.py install --root="$pkgdir" --optimize=1 --skip-build
  22. install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/python-advancedhtmlparser/LICENSE
  23. # Remove tools from lib package
  24. rm -Rf "$pkgdir/usr/bin"
  25. }
  26. package_python-advancedhtmlparser-tools() {
  27. depends=('python-advancedhtmlparser')
  28. conflicts=('tauthon-advancedhtmlparser-tools')
  29. cd AdvancedHTMLParser-$pkgver
  30. python setup.py install --root="$pkgdir" --optimize=1 --skip-build
  31. install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/python-advancedhtmlparser-tools/LICENSE
  32. # Remove lib from tools package
  33. rm -Rf "${pkgdir}/usr/lib"
  34. }