wok view python-html2text/receipt @ rev 25194
updated python-html2text (2017.10.4 -> 2019.8.11)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Jul 13 10:52:13 2022 +0100 (2022-07-13) |
parents | 5ea0ce1cecc0 |
children | 0262035dc1e7 |
line source
1 # SliTaz package receipt.
3 PACKAGE="python-html2text"
4 VERSION="2019.8.11"
5 CATEGORY="network"
6 SHORT_DESC="Convert HTML into clean, easy-to-read markdown-formatted text."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL3"
9 WEB_SITE="https://pypi.org/project/html2text/"
10 REPOLOGY="python:html2text"
12 SOURCE="html2text"
13 TARBALL="$SOURCE-$VERSION.tar.gz"
14 WGET_URL="https://files.pythonhosted.org/packages/source/${SOURCE:0:1}/$SOURCE/$TARBALL"
16 DEPENDS="python"
17 BUILD_DEPENDS="python-dev python-distribute python-setuptools"
19 current_version()
20 {
21 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
22 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q'
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 python setup.py install --root="$DESTDIR" --optimize=1
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 mkdir -p $fs/usr
35 mkdir -p $install/usr/share
37 cp -a $install/usr/lib $fs/usr
38 cp -a $install/usr/bin $fs/usr
39 # 2019.8.11 not available
40 # cp -a $src/docs $install/usr/share/doc
41 cp -a $src/COP* $install/usr/share/doc
42 cp -a $src/RE* $install/usr/share/doc
43 }