wok-current diff dillo-hg/receipt @ rev 2820

Add Dillo (Hg version) - Provide CSS support!
author Christophe Lincoln <pankso@slitaz.org>
date Wed Apr 29 21:18:16 2009 +0200 (2009-04-29)
parents
children 23c5897a0eb4
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/dillo-hg/receipt	Wed Apr 29 21:18:16 2009 +0200
     1.3 @@ -0,0 +1,58 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="dillo-hg"
     1.7 +VERSION="1058"
     1.8 +CATEGORY="network"
     1.9 +SHORT_DESC="Light and fast web browse using FLTK (Hg version)."
    1.10 +MAINTAINER="pankso@slitaz.org"
    1.11 +WEB_SITE="http://www.dillo.org/"
    1.12 +DEPENDS="fltk-2.0.x libpng jpeg zlib"
    1.13 +BUILD_DEPENDS="$DEPENDS fltk-2.0.x-dev libpng-dev jpeg-dev zlib-dev \
    1.14 +python mercurial"
    1.15 +CONFLICTS="dillo"
    1.16 +
    1.17 +# Rules to configure and make the package.
    1.18 +compile_rules()
    1.19 +{
    1.20 +	[ -d "$PACKAGE-$VERSION" ] && rm -rf $PACKAGE-$VERSION
    1.21 +	echo "Cloning revision $VERSIN from Dillo repository..."
    1.22 +	hg clone --rev $VERSION \
    1.23 +		http://hg.dillo.org/dillo $PACKAGE-$VERSION || exit 0
    1.24 +	cd $src
    1.25 +	./autogen.sh &&
    1.26 +	./configure \
    1.27 +		--sysconfdir=/etc/dillo \
    1.28 +		--prefix=/usr \
    1.29 +		$CONFIGURE_ARGS &&
    1.30 +	make &&
    1.31 +	make DESTDIR=$PWD/_pkg install
    1.32 +}
    1.33 +
    1.34 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.35 +genpkg_rules()
    1.36 +{
    1.37 +	mkdir -p $fs/usr/lib \
    1.38 +		$fs/usr/share/webhome \
    1.39 +		$fs/usr/share/applications \
    1.40 +		$fs/usr/share/pixmaps
    1.41 +	cp -a $_pkg/usr/bin $fs/usr
    1.42 +	cp -a $_pkg/usr/lib/dillo $fs/usr/lib
    1.43 +	strip -s $fs/usr/lib/dillo/dpi/*/*
    1.44 +	chmod +x $fs/usr/bin/*
    1.45 +	# Config files with custom dillorc and webhome page.
    1.46 +	cp -a $_pkg/etc $fs
    1.47 +	cp stuff/dillorc $fs/etc/dillo
    1.48 +	cp stuff/dillo-index.html $fs/usr/share/webhome
    1.49 +	cp stuff/dillo.css $fs/usr/share/webhome
    1.50 +	cp -a stuff/pics $fs/usr/share/webhome
    1.51 +	cp -a stuff/dillo.desktop $fs/usr/share/applications
    1.52 +	cp -a stuff/dillo.png $fs/usr/share/pixmaps
    1.53 +	chown -R root.root $fs
    1.54 +}
    1.55 +
    1.56 +pre_install()
    1.57 +{
    1.58 +	if [ -d $1/var/lib/tazpkg/installed/$CONFLICTS ]; then
    1.59 +		echo "y" | tazpkg remove $CONFLICTS
    1.60 +	fi
    1.61 +}