wok-6.x view htmldoc/receipt @ rev 19399

memtest: DOS shutdown
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Sep 03 09:48:39 2016 +0200 (2016-09-03)
parents ce500f4b78ff
children eccd0a10e94e
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 cd $src
21 # make sure not to use the libs htmldoc ships with
22 mkdir foo ; mv jpeg foo/ ; mv png foo/ ; mv zlib foo/
24 { ./configure && \
25 sed -i 's|^bindir.*$|bindir = ${prefix}/bin|' Makedefs && \
26 make && make prefix=$DESTDIR/usr install; } || return 1
28 # fix freedesktop stuff
29 install -Dm 644 desktop/htmldoc-128.png \
30 $DESTDIR/usr/share/pixmaps/htmldoc.png
31 echo "MimeType=application/vnd.htmldoc-book;" >> desktop/htmldoc.desktop
32 sed -i 's|X-Red-Hat.*$||' desktop/htmldoc.desktop
33 install -Dm 644 desktop/htmldoc.desktop \
34 $DESTDIR/usr/share/applications/htmldoc.desktop
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 mkdir -p $fs/usr/share
41 cp -a $install/usr/bin $fs/usr
42 cp -a $install/usr/share/htmldoc $fs/usr/share
43 }