diff --git a/srcpkgs/python-html2text/template b/srcpkgs/python-html2text/template new file mode 100644 index 00000000000..f83a3a4c020 --- /dev/null +++ b/srcpkgs/python-html2text/template @@ -0,0 +1,23 @@ +# Template file for 'python2-html2text' +# Remove after calibre moves to py3 +pkgname=python-html2text +version=2019.8.11 +revision=2 +archs=noarch +wrksrc="${pkgname#*-}-${version}" +build_style=python2-module +pycompile_module="html2text" +hostmakedepends="python-setuptools" +depends="python" +short_desc="HTML to Markdown-formatted text converter (Python2)" +maintainer="q66 " +license="GPL-3.0-only" +homepage="https://github.com/Alir3z4/html2text/" +distfiles="${PYPI_SITE}/h/html2text/html2text-${version}.tar.gz" +checksum=f516b9c10284174e2a974d86f91cab02b3cf983a17752075da751af0e895ef5e + +post_install() { + rm -rf ${DESTDIR}/usr/bin + # for some reason the permissions are wrong (600) + chmod 644 ${DESTDIR}/${py2_sitelib}/html2text-*.egg-info/* +}