void-packages/srcpkgs/python-html5lib/template
Alessio Sergi 217e7d31f2 srcpkgs: remove python3.4-* transitional dummy packages
After more than a year the switch to python3 packages, it is time to say
them goodbye. So long, and thanks for all the fish.
2017-12-20 11:29:51 +01:00

34 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
}
}