# Maintainer: Jesus E. pkgname=python-html5lib pkgver=1.1 pkgrel=1 arch=('any') pkgdesc="A Python HTML parser/tokenizer based on the WHATWG HTML5 spec" url='https://github.com/html5lib' license=('Expat') depends=('python-six' 'python-webencodings') makedepends=('python-setuptools') optdepends=('python-lxml: lxml treebuilder') source=("$pkgname-$pkgver.tar.gz::https://github.com/html5lib/html5lib-python/archive/${pkgver}.tar.gz") sha512sums=('2a9bd43e7d69a846978ebcaba1f9682ba63ebb72dbd8b2efdb24c9976330c1d78e8efcfafc3f59c7b416316d81dc453222686eb3d73fda7b5a65f4df59944bd7') build() { cd html5lib-python-${pkgver} python setup.py build } package() { cd html5lib-python-${pkgver} python setup.py install --root="${pkgdir}" --optimize=1 --skip-build install -Dm644 LICENSE -t "${pkgdir}"/usr/share/licenses/${pkgname} }