void-packages/srcpkgs/python-html2text/template

30 lines
911 B
Bash

# Template file for 'python-html2text'
pkgname=python-html2text
version=2019.8.11
revision=1
archs=noarch
wrksrc="${pkgname#*-}-${version}"
build_style=python-module
pycompile_module="html2text"
hostmakedepends="python-setuptools python3-setuptools"
depends="python"
short_desc="HTML to Markdown-formatted text converter (Python2)"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="GPL-3.0-only"
homepage="https://github.com/Alir3z4/html2text/"
distfiles="${PYPI_SITE}/h/html2text/html2text-${version}.tar.gz"
checksum=f516b9c10284174e2a974d86f91cab02b3cf983a17752075da751af0e895ef5e
alternatives="html2text:html2text:/usr/bin/html2text2"
python3-html2text_package() {
archs=noarch
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*
}
}