wok-next view htmldoc/receipt @ rev 11343

protobuf-dev: Add protobuf to depends.
author Christopher Rogers <slaxemulator@gmail.com>
date Sat Nov 26 12:39:23 2011 +0000 (2011-11-26)
parents
children ce500f4b78ff
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 DEPENDS="libjpeg libpng fltk"
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 # Rules to configure and make the package.
14 compile_rules()
15 {
16 cd $src
18 # make sure not to use the libs htmldoc ships with
19 mkdir foo ; mv jpeg foo/ ; mv png foo/ ; mv zlib foo/
21 { ./configure && \
22 sed -i 's|^bindir.*$|bindir = ${prefix}/bin|' Makedefs && \
23 make && make prefix=$DESTDIR/usr install; } || return 1
25 # fix freedesktop stuff
26 install -Dm 644 desktop/htmldoc-128.png \
27 $DESTDIR/usr/share/pixmaps/htmldoc.png
28 echo "MimeType=application/vnd.htmldoc-book;" >> desktop/htmldoc.desktop
29 sed -i 's|X-Red-Hat.*$||' desktop/htmldoc.desktop
30 install -Dm 644 desktop/htmldoc.desktop \
31 $DESTDIR/usr/share/applications/htmldoc.desktop
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 mkdir -p $fs/usr/share
38 cp -a $_pkg/usr/bin $fs/usr
39 cp -a $_pkg/usr/share/htmldoc $fs/usr/share
40 }