wok-next view htmldoc/receipt @ rev 20391

Up htmldoc (1.9.1)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Dec 01 15:47:18 2017 +0100 (2017-12-01)
parents e2ed49678df3
children 7e6db3d3e591
line source
1 # SliTaz package receipt.
3 PACKAGE="htmldoc"
4 VERSION="1.9.1"
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.gz"
10 WEB_SITE="https://michaelrsweet.github.io/htmldoc"
11 WGET_URL="https://github.com/michaelrsweet/htmldoc/releases/download/v$VERSION/$TARBALL"
13 DEPENDS="jpeg libpng fltk"
14 BUILD_DEPENDS="jpeg-dev libpng-dev fltk-dev libjpeg-turbo"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 # make sure not to use the libs htmldoc ships with
20 mkdir foo ; mv jpeg foo/ ; mv png foo/ ; mv zlib foo/
22 { ./configure && \
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 $install/usr/bin $fs/usr
39 cp -a $install/usr/share/htmldoc $fs/usr/share
40 }