wok view htmldoc/receipt @ rev 25625

Add opendkim (again)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Nov 08 17:14:09 2023 +0000 (12 months ago)
parents 5ea0ce1cecc0
children ea688ca719bb
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 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - ${WGET_URL%/down*} 2>/dev/null | \
21 sed '/tag\//!d;s|.*tag/v*||;s|".*||;q'
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 sed -i -e 's|\(jpeg_read_header.*\)1|\1boolean(1)|' \
28 -e 's|\(quantize.*\)0|\1boolean(0)|' \
29 htmldoc/image.cxx
31 # make sure not to use the libraries htmldoc ships with
32 mkdir foo
33 mv jpeg foo/
34 mv png foo/
35 mv zlib foo/
37 ./configure \
38 --prefix=/usr \
39 $CONFIGURE_ARGS &&
40 make &&
41 make prefix=$DESTDIR/usr install
43 # fix freedesktop stuff
44 install -Dm 644 desktop/htmldoc-128.png \
45 $DESTDIR/usr/share/pixmaps/htmldoc.png
46 echo "MimeType=application/vnd.htmldoc-book;" >> desktop/htmldoc.desktop
47 sed -i 's|X-Red-Hat.*$||' desktop/htmldoc.desktop
48 install -Dm 644 desktop/htmldoc.desktop \
49 $DESTDIR/usr/share/applications/htmldoc.desktop
50 }
52 # Rules to gen a SliTaz package suitable for Tazpkg.
53 genpkg_rules()
54 {
55 mkdir -p $fs/usr/share
57 cp -a $install/usr/bin $fs/usr
58 cp -a $install/usr/share/htmldoc $fs/usr/share
59 }