wok-6.x view htmldoc/receipt @ rev 15090
pinentry: add bdeps...
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Aug 13 21:20:52 2013 +0000 (2013-08-13) |
parents | fea0477a2ec7 |
children | e2ed49678df3 |
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="libjpeg libpng fltk"
14 BUILD_DEPENDS="libjpeg-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 }