PKGBUILD 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. # Maintainer(Arch): Eli Schwartz <eschwartz@archlinux.org>
  2. # Maintainer(Arch): Jelle van der Waa <jelle@archlinux.org>
  3. # Contributor: Daniel J Griffiths <ghost1227@archlinux.us>
  4. # Contributor: Erol V. Aktay <e.aktay@gmail.com>
  5. # Maintainer: Sagar Acharya <sagar@hyperbola.info>
  6. pkgbase=python-html5lib
  7. pkgname='python-html5lib'
  8. pkgdesc="A Python HTML parser/tokenizer based on the WHATWG HTML5 spec"
  9. pkgver=1.1
  10. pkgrel=1
  11. arch=('any')
  12. url="https://github.com/html5lib"
  13. license=('Expat')
  14. makedepends=('python-setuptools' 'python-six' 'python-webencodings')
  15. depends=('python-six' 'python-webencodings')
  16. checkdepends=('python-pytest' 'python-pytest-expect' 'python-mock' 'python-lxml')
  17. optdepends=('python-lxml: lxml treebuilder' 'python-genshi: genshi treewalker')
  18. source=("$pkgbase-$pkgver.tar.gz::https://github.com/html5lib/html5lib-python/archive/${pkgver}.tar.gz")
  19. sha512sums=('2a9bd43e7d69a846978ebcaba1f9682ba63ebb72dbd8b2efdb24c9976330c1d78e8efcfafc3f59c7b416316d81dc453222686eb3d73fda7b5a65f4df59944bd7')
  20. build() {
  21. cd "${srcdir}"/html5lib-python-${pkgver}
  22. python setup.py build
  23. }
  24. #check() {
  25. # cd "${srcdir}"/html5lib-python-${pkgver}
  26. #
  27. # py.test
  28. #}
  29. package_python-html5lib() {
  30. cd "${srcdir}"/html5lib-python-${pkgver}
  31. python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
  32. install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
  33. }