wok-6.x annotate html2text/receipt @ rev 24451

updated cyrus-imapd and cyrus-imapd-dev (3.0.13 -> 3.4.3)
author Hans-G?nter Theisgen
date Tue Feb 15 14:10:08 2022 +0100 (2022-02-15)
parents 27b321c14ae7
children 699084c53652
rev   line source
al@18840 1 # SliTaz package receipt.
al@18840 2
al@18840 3 PACKAGE="html2text"
al@18840 4 VERSION="1.3.2a"
al@18840 5 CATEGORY="utilities"
al@18840 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/"
al@18840 10 TARBALL="$PACKAGE-$VERSION.tar.gz"
al@18840 11 WGET_URL="http://ftp.ibiblio.org/pub/linux/apps/www/converters/$TARBALL"
al@18840 12
al@18840 13 DEPENDS=""
al@18840 14 BUILD_DEPENDS=""
al@18840 15
pascal@24445 16 # What is the latest version available today?
pascal@24445 17 current_version()
pascal@24445 18 {
pascal@24445 19 wget -O - https://github.com/grobian/html2text/tags 2>/dev/null | \
pascal@24445 20 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
pascal@24445 21 }
pascal@24445 22
al@18840 23 # Rules to configure and make the package.
al@18840 24 compile_rules()
al@18840 25 {
al@18840 26 # http://www.mbayer.de/html2text/downloads/patch-utf8-html2text-1.3.2a.diff
al@18840 27 patch -p1 -i $stuff/patch-utf8-html2text-1.3.2a.diff
al@18840 28
al@18840 29 ./configure $CONFIGURE_ARGS
al@18840 30 sed -i 's|/usr/local/bin|/usr/bin|; s|/usr/local/man|/usr/share/man|;
al@18840 31 s|$(BINDIR)|$(DESTDIR)&|; s|$(MANDIR)|$(DESTDIR)&|; s|$(DOCDIR)|$(DESTDIR)&|' \
al@18840 32 $src/Makefile
al@18840 33 make
al@18840 34 mkdir -p $install/usr/bin $install/usr/share/man/man1 \
al@18840 35 $install/usr/share/man/man5
al@18840 36 make install
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 {
al@18840 42 cp -a $install/* $fs
al@18840 43 rm -r $fs/usr/share/doc
al@18840 44 }