blob: aac25e7aee6c120a2ebbb6ec4f8c788806f8eaad (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
# 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"
|