void-packages/srcpkgs/python-html2text/template

30 lines
899 B
Bash

# Template file for 'python-html2text'
pkgname=python-html2text
version=2018.1.9
revision=1
noarch=yes
wrksrc="${pkgname#*-}-${version}"
build_style=python-module
pycompile_module="html2text"
hostmakedepends="python-setuptools python3-setuptools"
short_desc="HTML to Markdown-formatted text converter (Python2)"
depends="python"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="GPL-3"
homepage="https://github.com/Alir3z4/html2text/"
distfiles="${PYPI_SITE}/h/html2text/html2text-${version}.tar.gz"
checksum=627514fb30e7566b37be6900df26c2c78a030cc9e6211bda604d8181233bcdd4
alternatives="html2text:html2text:/usr/bin/html2text2"
python3-html2text_package() {
noarch=yes
depends="python3"
pycompile_module="html2text"
short_desc="${short_desc/Python2/Python3}"
alternatives="html2text:html2text:/usr/bin/html2text3"
pkg_install() {
vmove usr/bin/html2text3
vmove usr/lib/python3*
}
}