wok view htmldoc/receipt @ rev 25005

updated ntl (11.4.3 -> 11.5.1)
author Hans-G?nter Theisgen
date Mon May 16 16:29:07 2022 +0100 (2022-05-16)
parents 4636144009a9
children 20ad21d5532c
line source
1 # SliTaz package receipt.
3 PACKAGE="htmldoc"
4 VERSION="1.9.8"
5 CATEGORY="utilities"
6 SHORT_DESC="Convert HTML pages into a PDF document."
7 MAINTAINER="gokhlayeh@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://www.htmldoc.org"
11 TARBALL="$PACKAGE-$VERSION-source.tar.gz"
12 WGET_URL="https://github.com/michaelrsweet/$PACKAGE/releases/download/v$VERSION/$TARBALL"
14 DEPENDS="fltk jpeg libpng"
15 BUILD_DEPENDS="fltk-dev jpeg-dev libpng-dev"
17 current_version()
18 {
19 wget -O - ${WGET_URL%/down*} 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 sed -i -e 's|\(jpeg_read_header.*\)1|\1boolean(1)|' \
27 -e 's|\(quantize.*\)0|\1boolean(0)|' \
28 htmldoc/image.cxx
30 # make sure not to use the libraries htmldoc ships with
31 mkdir foo
32 mv jpeg foo/
33 mv png foo/
34 mv zlib foo/
36 ./configure \
37 --prefix=/usr \
38 $CONFIGURE_ARGS &&
39 make &&
40 make prefix=$DESTDIR/usr install
42 # fix freedesktop stuff
43 install -Dm 644 desktop/htmldoc-128.png \
44 $DESTDIR/usr/share/pixmaps/htmldoc.png
45 echo "MimeType=application/vnd.htmldoc-book;" >> desktop/htmldoc.desktop
46 sed -i 's|X-Red-Hat.*$||' desktop/htmldoc.desktop
47 install -Dm 644 desktop/htmldoc.desktop \
48 $DESTDIR/usr/share/applications/htmldoc.desktop
49 }
51 # Rules to gen a SliTaz package suitable for Tazpkg.
52 genpkg_rules()
53 {
54 mkdir -p $fs/usr/share
56 cp -a $install/usr/bin $fs/usr
57 cp -a $install/usr/share/htmldoc $fs/usr/share
58 }