wok annotate python-html2text/receipt @ rev 25638
Up tinyssh (20240101 CVE-2023-48795)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Jan 05 10:31:44 2024 +0000 (5 months ago) |
parents | 2ef0a22a082b |
children |
rev | line source |
---|---|
pankso@13566 | 1 # SliTaz package receipt. |
pankso@13566 | 2 |
pankso@13566 | 3 PACKAGE="python-html2text" |
Hans-G?nter@25194 | 4 VERSION="2019.8.11" |
pankso@13566 | 5 CATEGORY="network" |
pascal@20105 | 6 SHORT_DESC="Convert HTML into clean, easy-to-read markdown-formatted text." |
pankso@13566 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@14999 | 8 LICENSE="GPL3" |
Hans-G?nter@25194 | 9 WEB_SITE="https://pypi.org/project/html2text/" |
Hans-G?nter@25194 | 10 REPOLOGY="python:html2text" |
Hans-G?nter@25194 | 11 |
Hans-G?nter@25194 | 12 SOURCE="html2text" |
Hans-G?nter@25194 | 13 TARBALL="$SOURCE-$VERSION.tar.gz" |
Hans-G?nter@25194 | 14 WGET_URL="https://files.pythonhosted.org/packages/source/${SOURCE:0:1}/$SOURCE/$TARBALL" |
pankso@13566 | 15 |
pankso@13566 | 16 DEPENDS="python" |
pascal@21582 | 17 BUILD_DEPENDS="python-dev python-distribute python-setuptools" |
pankso@13566 | 18 |
pascal@25601 | 19 # What is the latest version available today? |
pascal@24055 | 20 current_version() |
pascal@24055 | 21 { |
pascal@25601 | 22 wget -O - https://github.com/Alir3z4/html2text/releases 2>/dev/null | \ |
pascal@25601 | 23 sed '/tag\//!d;s|.*tag/v*||;s|".*||;q' |
pascal@24055 | 24 } |
pascal@24055 | 25 |
pankso@13566 | 26 # Rules to configure and make the package. |
pankso@13566 | 27 compile_rules() |
pankso@13566 | 28 { |
pankso@13566 | 29 python setup.py install --root="$DESTDIR" --optimize=1 |
pankso@13566 | 30 } |
pankso@13566 | 31 |
pankso@13566 | 32 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@13566 | 33 genpkg_rules() |
pankso@13566 | 34 { |
Hans-G?nter@25194 | 35 mkdir -p $fs/usr |
Hans-G?nter@25194 | 36 mkdir -p $install/usr/share |
Hans-G?nter@25194 | 37 |
Hans-G?nter@25194 | 38 cp -a $install/usr/lib $fs/usr |
Hans-G?nter@25194 | 39 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@25194 | 40 # 2019.8.11 not available |
Hans-G?nter@25194 | 41 # cp -a $src/docs $install/usr/share/doc |
Hans-G?nter@25194 | 42 cp -a $src/COP* $install/usr/share/doc |
Hans-G?nter@25194 | 43 cp -a $src/RE* $install/usr/share/doc |
pankso@13566 | 44 } |