wok-current annotate 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 |
rev | line source |
---|---|
pankso@13566 | 1 # SliTaz package receipt. |
pankso@13566 | 2 |
pankso@13566 | 3 PACKAGE="python-html2text" |
pascal@20104 | 4 VERSION="2017.10.4" |
pankso@13566 | 5 SOURCE="html2text" |
pankso@13566 | 6 CATEGORY="network" |
pascal@20105 | 7 SHORT_DESC="Convert HTML into clean, easy-to-read markdown-formatted text." |
pankso@13566 | 8 MAINTAINER="pankso@slitaz.org" |
pascal@14999 | 9 LICENSE="GPL3" |
pankso@13566 | 10 TARBALL="${SOURCE}-${VERSION}.tar.gz" |
pascal@20104 | 11 WEB_SITE="http://alir3z4.github.io/html2text" |
pascal@20104 | 12 WGET_URL="https://github.com/Alir3z4/html2text/archive/$VERSION.tar.gz" |
pankso@13566 | 13 |
pankso@13566 | 14 DEPENDS="python" |
pascal@21582 | 15 BUILD_DEPENDS="python-dev python-distribute python-setuptools" |
pankso@13566 | 16 |
pascal@24055 | 17 current_version() |
pascal@24055 | 18 { |
pascal@24055 | 19 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ |
pascal@24055 | 20 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q' |
pascal@24055 | 21 } |
pascal@24055 | 22 |
pankso@13566 | 23 # Rules to configure and make the package. |
pankso@13566 | 24 compile_rules() |
pankso@13566 | 25 { |
pankso@13566 | 26 python setup.py install --root="$DESTDIR" --optimize=1 |
pankso@13566 | 27 } |
pankso@13566 | 28 |
pankso@13566 | 29 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@13566 | 30 genpkg_rules() |
pankso@13566 | 31 { |
pascal@20104 | 32 mkdir -p $fs/usr $install/usr/share |
pankso@13566 | 33 cp -a $install/usr/lib $fs/usr |
pankso@13566 | 34 cp -a $install/usr/bin $fs/usr |
pascal@20104 | 35 cp -a $src/docs $install/usr/share/doc |
pascal@20104 | 36 cp -a $src/COP* $src/RE* $install/usr/share/doc |
pankso@13566 | 37 } |