wok-next annotate htmldoc/receipt @ rev 10211

Up: libgnomeprintui to 2.18.6. Add $CONFIGURE_ARGS.
author Christopher Rogers <slaxemulator@gmail.com>
date Fri May 20 23:36:35 2011 +0000 (2011-05-20)
parents
children ce500f4b78ff
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"
gokhlayeh@8883 8 DEPENDS="libjpeg libpng fltk"
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
gokhlayeh@8883 13 # Rules to configure and make the package.
gokhlayeh@8883 14 compile_rules()
gokhlayeh@8883 15 {
gokhlayeh@8883 16 cd $src
gokhlayeh@8883 17
gokhlayeh@8883 18 # make sure not to use the libs htmldoc ships with
gokhlayeh@8883 19 mkdir foo ; mv jpeg foo/ ; mv png foo/ ; mv zlib foo/
gokhlayeh@8883 20
gokhlayeh@8883 21 { ./configure && \
gokhlayeh@8883 22 sed -i 's|^bindir.*$|bindir = ${prefix}/bin|' Makedefs && \
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
gokhlayeh@8883 38 cp -a $_pkg/usr/bin $fs/usr
gokhlayeh@8883 39 cp -a $_pkg/usr/share/htmldoc $fs/usr/share
gokhlayeh@8883 40 }