30 lines
935 B
Bash
30 lines
935 B
Bash
# Template file for 'python-html2text'
|
|
pkgname=python-html2text
|
|
version=2017.10.4
|
|
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=02ab8df206e90a395b7e188e26eb1906680439ce4a636a00217851cef58c1fad
|
|
alternatives="html2text:html2text:/usr/bin/html2text2"
|
|
|
|
python3-html2text_package() {
|
|
noarch=yes
|
|
depends="python3"
|
|
pycompile_module="html2text"
|
|
replaces="python3.4-html2text>=0"
|
|
short_desc="${short_desc/Python2/Python3}"
|
|
alternatives="html2text:html2text:/usr/bin/html2text3"
|
|
pkg_install() {
|
|
vmove usr/bin/html2text3
|
|
vmove usr/lib/python3*
|
|
}
|
|
}
|