wok-6.x diff htmldoc/receipt @ rev 11655

Add obfsproxy (Tor proxy to help users in censored counties reach the web)
author Christophe Lincoln <pankso@slitaz.org>
date Sun Feb 12 00:07:26 2012 +0100 (2012-02-12)
parents
children ce500f4b78ff
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/htmldoc/receipt	Sun Feb 12 00:07:26 2012 +0100
     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