From bae061751f86a8a22305ea1935006d4bf4385ca8 Mon Sep 17 00:00:00 2001 From: Galen Abell Date: Tue, 26 Nov 2019 17:47:53 +0100 Subject: testing/py3-html2text: new aport https://github.com/Alir3z4/html2text Convert HTML to Markdown-formatted text --- testing/py3-html2text/APKBUILD | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 testing/py3-html2text/APKBUILD (limited to 'testing/py3-html2text') diff --git a/testing/py3-html2text/APKBUILD b/testing/py3-html2text/APKBUILD new file mode 100644 index 0000000000..d0501b930a --- /dev/null +++ b/testing/py3-html2text/APKBUILD @@ -0,0 +1,30 @@ +# Contributor: Galen Abell +# Maintainer: Galen Abell +pkgname="py3-html2text" +_pyname="html2text" +pkgver="2019.8.11" +pkgrel=0 +pkgdesc="Convert HTML to Markdown-formatted text" +url="https://github.com/Alir3z4/html2text" +arch="noarch" +license="GPL-3.0-only" +depends="python3 py3-setuptools" +options="!check" # TODO tests fail for some reason +subpackages="$pkgname-doc" +source="$_pyname-$pkgver.tar.gz::https://github.com/Alir3z4/html2text/archive/$pkgver.tar.gz" +builddir="$srcdir/$_pyname-$pkgver" + +build() { + python3 setup.py build +} + +doc() { + cd "$builddir" + mkdir -p "$subpkgdir/usr/share/doc/$_pyname" + mv docs/* "$subpkgdir/usr/share/doc/$_pyname" +} + +package() { + python3 setup.py install --prefix=/usr --root="$pkgdir" +} +sha512sums="a6638c026d9e6dc4bca880f9775ca9ada69d70cae40f18a8442966f2038ab3b8d52c91cb5eb4b698e4f96c6c799360410c6bf35206312806d84b42e4404d14c7 html2text-2019.8.11.tar.gz" -- cgit v1.2.3