pkgbase=python-html5lib pkgname=('python2-html5lib' 'python3-html5lib') pkgver=0.999 pkgrel=1 arch=('any') url="https://github.com/html5lib" license=('MIT') makedepends=('python2' 'python3' 'unzip') source=("https://github.com/html5lib/html5lib-python/archive/${pkgver}.tar.gz" 'LICENSE') sha256sums=('77f9897bdef4f668491bdb591c963f3a5004c94d6cad7f86535a6b06ae19b4cf' '89807acf2309bd285f033404ee78581602f3cd9b819a16ac2f0e5f60ff4a473e') package_python3-html5lib() { pkgdesc="A Python HTML parser/tokenizer based on the WHATWG HTML5 spec" depends=('python3') cd html5lib-python-${pkgver} python3 setup.py install --root="${pkgdir}" install -Dm755 "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" } package_python2-html5lib() { depends=('python2' 'python2-six') pkgdesc="A Python2 HTML parser/tokenizer based on the WHATWG HTML5 spec" cd html5lib-python-${pkgver} python2 setup.py install --root=${pkgdir} install -Dm755 "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" }