12345678910111213141516171819202122232425262728293031323334353637383940 |
- # Maintainer(Arch): Eli Schwartz <eschwartz@archlinux.org>
- # Maintainer(Arch): Jelle van der Waa <jelle@archlinux.org>
- # Contributor: Daniel J Griffiths <ghost1227@archlinux.us>
- # Contributor: Erol V. Aktay <e.aktay@gmail.com>
- # Maintainer: Sagar Acharya <sagar@hyperbola.info>
- pkgbase=python-html5lib
- pkgname='python-html5lib'
- pkgdesc="A Python HTML parser/tokenizer based on the WHATWG HTML5 spec"
- pkgver=1.1
- pkgrel=1
- arch=('any')
- url="https://github.com/html5lib"
- license=('Expat')
- makedepends=('python-setuptools' 'python-six' 'python-webencodings')
- depends=('python-six' 'python-webencodings')
- checkdepends=('python-pytest' 'python-pytest-expect' 'python-mock' 'python-lxml')
- optdepends=('python-lxml: lxml treebuilder' 'python-genshi: genshi treewalker')
- source=("$pkgbase-$pkgver.tar.gz::https://github.com/html5lib/html5lib-python/archive/${pkgver}.tar.gz")
- sha512sums=('2a9bd43e7d69a846978ebcaba1f9682ba63ebb72dbd8b2efdb24c9976330c1d78e8efcfafc3f59c7b416316d81dc453222686eb3d73fda7b5a65f4df59944bd7')
- build() {
- cd "${srcdir}"/html5lib-python-${pkgver}
- python setup.py build
- }
- #check() {
- # cd "${srcdir}"/html5lib-python-${pkgver}
- #
- # py.test
- #}
- package_python-html5lib() {
- cd "${srcdir}"/html5lib-python-${pkgver}
- python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
- install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
- }
|