wok-current view htmldoc/receipt @ rev 22064
updated twisted (13.2.0 -> 19.7.0)
author | Hans-G?nter Theisgen |
---|---|
date | Thu Oct 24 17:19:52 2019 +0100 (2019-10-24) |
parents | eccd0a10e94e |
children | 4636144009a9 |
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="https://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 }