mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-23 11:15:13 +03:00
this marginally increases install speed by not checking if it needs a rebuild. also remove --prefix=/usr as it defaults to /usr already. might break a build or two, will fix later
35 lines
959 B
Text
35 lines
959 B
Text
# Contributor: Galen Abell <galen@galenabell.com>
|
|
# Maintainer: Galen Abell <galen@galenabell.com>
|
|
pkgname=py3-html2text
|
|
_pyname=html2text
|
|
pkgver=2020.1.16
|
|
pkgrel=3
|
|
pkgdesc="Convert HTML to Markdown-formatted text"
|
|
url="https://github.com/Alir3z4/html2text"
|
|
arch="noarch"
|
|
license="GPL-3.0-only"
|
|
depends="python3"
|
|
makedepends="py3-setuptools"
|
|
checkdepends="py3-pytest"
|
|
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
|
|
}
|
|
|
|
check() {
|
|
PYTHONPATH="." pytest
|
|
}
|
|
|
|
doc() {
|
|
cd "$builddir"
|
|
mkdir -p "$subpkgdir/usr/share/doc/$_pyname"
|
|
mv docs/* "$subpkgdir/usr/share/doc/$_pyname"
|
|
}
|
|
|
|
package() {
|
|
python3 setup.py install --skip-build --root="$pkgdir"
|
|
}
|
|
sha512sums="95d3f560932a68e5cfe4f7d1f87cb7e4235efe57251813d148c7a19a5202ff3dc3ea5c047884803e10b64e7b7e1e2ef70aec87e5eb5f15ea89aeb542eaa9e053 html2text-2020.1.16.tar.gz"
|