wok view htmldoc/receipt @ rev 21754
Up firefox-official (67.0.3), tinyproxy (1.10.0)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Jun 19 17:26:14 2019 +0200 (2019-06-19) |
parents | e2ed49678df3 |
children | 5b6c86ca3faa |
line source
1 # SliTaz package receipt.
3 PACKAGE="htmldoc"
4 VERSION="1.8.27"
5 CATEGORY="utilities"
6 SHORT_DESC="Convert HTML pages into a PDF document."
7 MAINTAINER="gokhlayeh@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION-source.tar.bz2"
10 WEB_SITE="http://www.htmldoc.org"
11 WGET_URL="http://ftp.easysw.com/pub/$PACKAGE/$VERSION/$TARBALL"
13 DEPENDS="jpeg libpng fltk"
14 BUILD_DEPENDS="jpeg-dev libpng-dev fltk-dev"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 sed -i -e 's|\(jpeg_read_header.*\)1|\1boolean(1)|' \
20 -e 's|\(quantize.*\)0|\1boolean(0)|' htmldoc/image.cxx
22 # make sure not to use the libs htmldoc ships with
23 mkdir foo ; mv jpeg foo/ ; mv png foo/ ; mv zlib foo/
25 { ./configure && \
26 sed -i 's|^bindir.*$|bindir = ${prefix}/bin|' Makedefs && \
27 make && make prefix=$DESTDIR/usr install; } || return 1
29 # fix freedesktop stuff
30 install -Dm 644 desktop/htmldoc-128.png \
31 $DESTDIR/usr/share/pixmaps/htmldoc.png
32 echo "MimeType=application/vnd.htmldoc-book;" >> desktop/htmldoc.desktop
33 sed -i 's|X-Red-Hat.*$||' desktop/htmldoc.desktop
34 install -Dm 644 desktop/htmldoc.desktop \
35 $DESTDIR/usr/share/applications/htmldoc.desktop
36 }
38 # Rules to gen a SliTaz package suitable for Tazpkg.
39 genpkg_rules()
40 {
41 mkdir -p $fs/usr/share
42 cp -a $install/usr/bin $fs/usr
43 cp -a $install/usr/share/htmldoc $fs/usr/share
44 }