wok-current view python-html2text/receipt @ rev 25119
updated peazip (6.8.0 -> 8.4.0)
author | Hans-G?nter Theisgen |
---|---|
date | Sun Jun 26 09:56:47 2022 +0100 (2022-06-26) |
parents | 814362194a8d |
children | 2ef0a22a082b |
line source
1 # SliTaz package receipt.
3 PACKAGE="python-html2text"
4 VERSION="2017.10.4"
5 SOURCE="html2text"
6 CATEGORY="network"
7 SHORT_DESC="Convert HTML into clean, easy-to-read markdown-formatted text."
8 MAINTAINER="pankso@slitaz.org"
9 LICENSE="GPL3"
10 TARBALL="${SOURCE}-${VERSION}.tar.gz"
11 WEB_SITE="http://alir3z4.github.io/html2text"
12 WGET_URL="https://github.com/Alir3z4/html2text/archive/$VERSION.tar.gz"
14 DEPENDS="python"
15 BUILD_DEPENDS="python-dev python-distribute python-setuptools"
17 current_version()
18 {
19 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
20 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q'
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 python setup.py install --root="$DESTDIR" --optimize=1
27 }
29 # Rules to gen a SliTaz package suitable for Tazpkg.
30 genpkg_rules()
31 {
32 mkdir -p $fs/usr $install/usr/share
33 cp -a $install/usr/lib $fs/usr
34 cp -a $install/usr/bin $fs/usr
35 cp -a $src/docs $install/usr/share/doc
36 cp -a $src/COP* $src/RE* $install/usr/share/doc
37 }