wok-next annotate 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 |
rev | line source |
---|---|
gokhlayeh@8883 | 1 # SliTaz package receipt. |
gokhlayeh@8883 | 2 |
gokhlayeh@8883 | 3 PACKAGE="htmldoc" |
pascal@20391 | 4 VERSION="1.9.1" |
gokhlayeh@8883 | 5 CATEGORY="utilities" |
gokhlayeh@8883 | 6 SHORT_DESC="Convert HTML pages into a PDF document." |
gokhlayeh@8883 | 7 MAINTAINER="gokhlayeh@slitaz.org" |
pascal@15077 | 8 LICENSE="GPL2" |
pascal@20391 | 9 TARBALL="$PACKAGE-$VERSION-source.tar.gz" |
pascal@20391 | 10 WEB_SITE="https://michaelrsweet.github.io/htmldoc" |
pascal@20391 | 11 WGET_URL="https://github.com/michaelrsweet/htmldoc/releases/download/v$VERSION/$TARBALL" |
gokhlayeh@8883 | 12 |
pascal@15123 | 13 DEPENDS="jpeg libpng fltk" |
pascal@20391 | 14 BUILD_DEPENDS="jpeg-dev libpng-dev fltk-dev libjpeg-turbo" |
pascal@15077 | 15 |
gokhlayeh@8883 | 16 # Rules to configure and make the package. |
gokhlayeh@8883 | 17 compile_rules() |
gokhlayeh@8883 | 18 { |
gokhlayeh@8883 | 19 # make sure not to use the libs htmldoc ships with |
gokhlayeh@8883 | 20 mkdir foo ; mv jpeg foo/ ; mv png foo/ ; mv zlib foo/ |
gokhlayeh@8883 | 21 |
gokhlayeh@8883 | 22 { ./configure && \ |
gokhlayeh@8883 | 23 make && make prefix=$DESTDIR/usr install; } || return 1 |
gokhlayeh@8883 | 24 |
gokhlayeh@8883 | 25 # fix freedesktop stuff |
gokhlayeh@8883 | 26 install -Dm 644 desktop/htmldoc-128.png \ |
gokhlayeh@8883 | 27 $DESTDIR/usr/share/pixmaps/htmldoc.png |
gokhlayeh@8883 | 28 echo "MimeType=application/vnd.htmldoc-book;" >> desktop/htmldoc.desktop |
gokhlayeh@8883 | 29 sed -i 's|X-Red-Hat.*$||' desktop/htmldoc.desktop |
gokhlayeh@8883 | 30 install -Dm 644 desktop/htmldoc.desktop \ |
gokhlayeh@8883 | 31 $DESTDIR/usr/share/applications/htmldoc.desktop |
gokhlayeh@8883 | 32 } |
gokhlayeh@8883 | 33 |
gokhlayeh@8883 | 34 # Rules to gen a SliTaz package suitable for Tazpkg. |
gokhlayeh@8883 | 35 genpkg_rules() |
gokhlayeh@8883 | 36 { |
gokhlayeh@8883 | 37 mkdir -p $fs/usr/share |
pascal@15077 | 38 cp -a $install/usr/bin $fs/usr |
pascal@15077 | 39 cp -a $install/usr/share/htmldoc $fs/usr/share |
gokhlayeh@8883 | 40 } |