wok view python-html2text/receipt @ rev 25601

Update some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Jul 16 18:06:38 2023 +0000 (10 months ago)
parents 2ef0a22a082b
children
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 # What is the latest version available today?
20 current_version()
21 {
22 wget -O - https://github.com/Alir3z4/html2text/releases 2>/dev/null | \
23 sed '/tag\//!d;s|.*tag/v*||;s|".*||;q'
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 python setup.py install --root="$DESTDIR" --optimize=1
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 mkdir -p $fs/usr
36 mkdir -p $install/usr/share
38 cp -a $install/usr/lib $fs/usr
39 cp -a $install/usr/bin $fs/usr
40 # 2019.8.11 not available
41 # cp -a $src/docs $install/usr/share/doc
42 cp -a $src/COP* $install/usr/share/doc
43 cp -a $src/RE* $install/usr/share/doc
44 }