31 lines
966 B
Text
31 lines
966 B
Text
# Contributor: Galen Abell <galen@galenabell.com>
|
|
# Maintainer: Galen Abell <galen@galenabell.com>
|
|
pkgname="py3-html2text"
|
|
_pyname="html2text"
|
|
pkgver="2020.1.16"
|
|
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"
|
|
provides="py2-html2text"
|
|
|
|
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="95d3f560932a68e5cfe4f7d1f87cb7e4235efe57251813d148c7a19a5202ff3dc3ea5c047884803e10b64e7b7e1e2ef70aec87e5eb5f15ea89aeb542eaa9e053 html2text-2020.1.16.tar.gz"
|