wok annotate 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
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@24055 19 current_version()
pascal@24055 20 {
pascal@24055 21 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
pascal@24055 22 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q'
pascal@24055 23 }
pascal@24055 24
pankso@13566 25 # Rules to configure and make the package.
pankso@13566 26 compile_rules()
pankso@13566 27 {
pankso@13566 28 python setup.py install --root="$DESTDIR" --optimize=1
pankso@13566 29 }
pankso@13566 30
pankso@13566 31 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@13566 32 genpkg_rules()
pankso@13566 33 {
Hans-G?nter@25194 34 mkdir -p $fs/usr
Hans-G?nter@25194 35 mkdir -p $install/usr/share
Hans-G?nter@25194 36
Hans-G?nter@25194 37 cp -a $install/usr/lib $fs/usr
Hans-G?nter@25194 38 cp -a $install/usr/bin $fs/usr
Hans-G?nter@25194 39 # 2019.8.11 not available
Hans-G?nter@25194 40 # cp -a $src/docs $install/usr/share/doc
Hans-G?nter@25194 41 cp -a $src/COP* $install/usr/share/doc
Hans-G?nter@25194 42 cp -a $src/RE* $install/usr/share/doc
pankso@13566 43 }