wok-stable diff htmldoc/receipt @ rev 10790

Move rocrail to undigest
author Christophe Lincoln <pankso@slitaz.org>
date Thu Jun 02 00:48:24 2011 +0200 (2011-06-02)
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/htmldoc/receipt	Thu Jun 02 00:48:24 2011 +0200
     1.3 @@ -0,0 +1,40 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="htmldoc"
     1.7 +VERSION="1.8.27"
     1.8 +CATEGORY="utilities"
     1.9 +SHORT_DESC="Convert HTML pages into a PDF document."
    1.10 +MAINTAINER="gokhlayeh@slitaz.org"
    1.11 +DEPENDS="libjpeg libpng fltk"
    1.12 +TARBALL="$PACKAGE-$VERSION-source.tar.bz2"
    1.13 +WEB_SITE="http://www.htmldoc.org"
    1.14 +WGET_URL="http://ftp.easysw.com/pub/$PACKAGE/$VERSION/$TARBALL"
    1.15 +
    1.16 +# Rules to configure and make the package.
    1.17 +compile_rules()
    1.18 +{
    1.19 +	cd $src
    1.20 +
    1.21 +	# make sure not to use the libs htmldoc ships with
    1.22 +	mkdir foo ; mv jpeg foo/ ; mv png foo/ ; mv zlib foo/
    1.23 +
    1.24 +	{ ./configure && \
    1.25 +	sed -i 's|^bindir.*$|bindir  = ${prefix}/bin|' Makedefs && \
    1.26 +	make && make prefix=$DESTDIR/usr install; } || return 1
    1.27 +
    1.28 +	# fix freedesktop stuff
    1.29 +	install -Dm 644 desktop/htmldoc-128.png \
    1.30 +		$DESTDIR/usr/share/pixmaps/htmldoc.png
    1.31 +	echo "MimeType=application/vnd.htmldoc-book;" >> desktop/htmldoc.desktop
    1.32 +	sed -i 's|X-Red-Hat.*$||' desktop/htmldoc.desktop
    1.33 +	install -Dm 644 desktop/htmldoc.desktop \
    1.34 +		$DESTDIR/usr/share/applications/htmldoc.desktop
    1.35 +}
    1.36 +
    1.37 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.38 +genpkg_rules()
    1.39 +{
    1.40 +	mkdir -p $fs/usr/share
    1.41 +	cp -a $_pkg/usr/bin $fs/usr
    1.42 +	cp -a $_pkg/usr/share/htmldoc $fs/usr/share
    1.43 +}
    1.44 \ No newline at end of file