wok annotate html2text/receipt @ rev 25097

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