wok-6.x annotate htmldoc/receipt @ rev 16211

Up mesa-wayland-dev (9.1.3)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Mar 31 11:30:38 2014 +0000 (2014-03-31)
parents ce500f4b78ff
children eccd0a10e94e
rev   line source
gokhlayeh@8883 1 # SliTaz package receipt.
gokhlayeh@8883 2
gokhlayeh@8883 3 PACKAGE="htmldoc"
gokhlayeh@8883 4 VERSION="1.8.27"
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"
gokhlayeh@8883 9 TARBALL="$PACKAGE-$VERSION-source.tar.bz2"
gokhlayeh@8883 10 WEB_SITE="http://www.htmldoc.org"
gokhlayeh@8883 11 WGET_URL="http://ftp.easysw.com/pub/$PACKAGE/$VERSION/$TARBALL"
gokhlayeh@8883 12
pascal@15123 13 DEPENDS="jpeg libpng fltk"
pascal@15123 14 BUILD_DEPENDS="jpeg-dev libpng-dev fltk-dev"
pascal@15077 15
gokhlayeh@8883 16 # Rules to configure and make the package.
gokhlayeh@8883 17 compile_rules()
gokhlayeh@8883 18 {
gokhlayeh@8883 19 cd $src
gokhlayeh@8883 20
gokhlayeh@8883 21 # make sure not to use the libs htmldoc ships with
gokhlayeh@8883 22 mkdir foo ; mv jpeg foo/ ; mv png foo/ ; mv zlib foo/
gokhlayeh@8883 23
gokhlayeh@8883 24 { ./configure && \
gokhlayeh@8883 25 sed -i 's|^bindir.*$|bindir = ${prefix}/bin|' Makedefs && \
gokhlayeh@8883 26 make && make prefix=$DESTDIR/usr install; } || return 1
gokhlayeh@8883 27
gokhlayeh@8883 28 # fix freedesktop stuff
gokhlayeh@8883 29 install -Dm 644 desktop/htmldoc-128.png \
gokhlayeh@8883 30 $DESTDIR/usr/share/pixmaps/htmldoc.png
gokhlayeh@8883 31 echo "MimeType=application/vnd.htmldoc-book;" >> desktop/htmldoc.desktop
gokhlayeh@8883 32 sed -i 's|X-Red-Hat.*$||' desktop/htmldoc.desktop
gokhlayeh@8883 33 install -Dm 644 desktop/htmldoc.desktop \
gokhlayeh@8883 34 $DESTDIR/usr/share/applications/htmldoc.desktop
gokhlayeh@8883 35 }
gokhlayeh@8883 36
gokhlayeh@8883 37 # Rules to gen a SliTaz package suitable for Tazpkg.
gokhlayeh@8883 38 genpkg_rules()
gokhlayeh@8883 39 {
gokhlayeh@8883 40 mkdir -p $fs/usr/share
pascal@15077 41 cp -a $install/usr/bin $fs/usr
pascal@15077 42 cp -a $install/usr/share/htmldoc $fs/usr/share
gokhlayeh@8883 43 }