void-packages/srcpkgs/python-html5lib/template

35 lines
916 B
Bash

# Template file for 'python-html5lib'
pkgname=python-html5lib
version=1.0.1
revision=1
noarch=yes
wrksrc="html5lib-${version}"
build_style=python-module
hostmakedepends="python-setuptools python3-setuptools"
depends="python-six python-webencodings"
pycompile_module="html5lib"
short_desc="Python2 HTML parser based on the WHATWG HTML5 specification"
maintainer="Alessio Sergi <al3hex@gmail.com>"
homepage="https://github.com/html5lib/html5lib-python"
license="MIT"
distfiles="${PYPI_SITE}/h/html5lib/html5lib-${version}.tar.gz"
checksum=66cb0dcfdbbc4f9c3ba1a63fdb511ffdbd4f513b2b6d81b80cd26ce6b3fb3736
pre_build() {
sed -i '/setuptools>=/d' setup.py
}
post_install() {
vlicense LICENSE
}
python3-html5lib_package() {
noarch=yes
pycompile_module="html5lib"
depends="python3-six python3-webencodings"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
vlicense LICENSE
}
}