wok-6.x view 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
line source
1 # SliTaz package receipt.
3 PACKAGE="html2text"
4 VERSION="1.3.2a"
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/"
10 TARBALL="$PACKAGE-$VERSION.tar.gz"
11 WGET_URL="http://ftp.ibiblio.org/pub/linux/apps/www/converters/$TARBALL"
13 DEPENDS=""
14 BUILD_DEPENDS=""
16 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - https://github.com/grobian/html2text/tags 2>/dev/null | \
20 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 # http://www.mbayer.de/html2text/downloads/patch-utf8-html2text-1.3.2a.diff
27 patch -p1 -i $stuff/patch-utf8-html2text-1.3.2a.diff
29 ./configure $CONFIGURE_ARGS
30 sed -i 's|/usr/local/bin|/usr/bin|; s|/usr/local/man|/usr/share/man|;
31 s|$(BINDIR)|$(DESTDIR)&|; s|$(MANDIR)|$(DESTDIR)&|; s|$(DOCDIR)|$(DESTDIR)&|' \
32 $src/Makefile
33 make
34 mkdir -p $install/usr/bin $install/usr/share/man/man1 \
35 $install/usr/share/man/man5
36 make install
37 }
39 # Rules to gen a SliTaz package suitable for Tazpkg.
40 genpkg_rules()
41 {
42 cp -a $install/* $fs
43 rm -r $fs/usr/share/doc
44 }