wok view html2text/receipt @ rev 24776

jack1: added build dependency gcc83
author Hans-G?nter Theisgen
date Sat Mar 19 17:48:51 2022 +0100 (2022-03-19)
parents af8d823a3077
children
line source
1 # SliTaz package receipt.
3 PACKAGE="html2text"
4 VERSION="2.0.0"
5 CATEGORY="utilities"
6 SHORT_DESC="Command line utility that converts HTML into plain text."
7 MAINTAINER="al.bobylev@gmail.com"
8 LICENSE="GPL"
9 WEB_SITE="http://www.mbayer.de/html2text/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://github.com/grobian/$PACKAGE/archive/v$VERSION.tar.gz"
14 DEPENDS="gcc83-lib-base"
15 BUILD_DEPENDS="gcc83"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - https://github.com/grobian/html2text/tags 2>/dev/null | \
21 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 # http://www.mbayer.de/html2text/downloads/patch-utf8-html2text-1.3.2a.diff
28 # patch -p1 -i $stuff/patch-utf8-html2text-1.3.2a.diff
30 export CC=gcc-83
31 export CXX=g++-83
33 ./configure $CONFIGURE_ARGS
34 sed -i 's|/usr/local|/usr|' Makefile
35 make DESTDIR=$DESTDIR
36 make install DESTDIR=$DESTDIR
37 }
39 # Rules to gen a SliTaz package suitable for Tazpkg.
40 genpkg_rules()
41 {
42 cook_copy_folders bin
43 }