New package: python-html2text-2019.8.11

This is necessary for calibre to function properly.
This commit is contained in:
q66 2020-04-06 16:35:27 +02:00
parent 5c7c0adfbb
commit 0f43428a36

View file

@ -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 <daniel@octaforge.org>"
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/*
}