wok diff netsurf/receipt @ rev 2827

Add netsurf (Fast and light web browser)
author Christophe Lincoln <pankso@slitaz.org>
date Wed Apr 29 21:33:46 2009 +0200 (2009-04-29)
parents
children aee6cba53f3b
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/netsurf/receipt	Wed Apr 29 21:33:46 2009 +0200
     1.3 @@ -0,0 +1,38 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="netsurf"
     1.7 +VERSION="2.0"
     1.8 +CATEGORY="network"
     1.9 +SHORT_DESC="A simple, fast and light web browser using GTK."
    1.10 +MAINTAINER="pankso@slitaz.org"
    1.11 +DEPENDS="gtk+ openssl libpng jpeg lcms libparserutils hubbub libnsgif"
    1.12 +BUILD_DEPENDS="gtk+-dev openssl-dev libpng-dev jpeg-dev lcms-dev re2c lemon \
    1.13 +libparserutils-dev hubbub-dev libnsgif-dev"
    1.14 +TARBALL="$PACKAGE-$VERSION-src.tar.gz"
    1.15 +WEB_SITE="http://www.netsurf-browser.org/"
    1.16 +WGET_URL="http://www.netsurf-browser.org/downloads/releases/$TARBALL"
    1.17 +
    1.18 +# Rules to configure and make the package.
    1.19 +compile_rules()
    1.20 +{
    1.21 +	cd $src
    1.22 +	cp -a ../stuff/Makefile.defaults .
    1.23 +	make
    1.24 +}
    1.25 +
    1.26 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.27 +genpkg_rules()
    1.28 +{
    1.29 +	mkdir -p $fs/usr/share $fs/usr/bin $fs/usr/lib/netsurf
    1.30 +	cp -RL $src/gtk/res $fs/usr/share/netsurf
    1.31 +	cp $src/nsgtk $fs/usr/lib/netsurf
    1.32 +	cp $src/netsurf $fs/usr/bin
    1.33 +	sed -i -e 's|NETSURFRES=`dirname $0`/gtk/res/|NETSURFRES=/usr/share/netsurf/res/|' \
    1.34 +		$fs/usr/bin/netsurf
    1.35 +	sed -i -e 's|exec `dirname $0`/nsgtk "$@" 2>$LOG|exec /usr/lib/netsurf/nsgtk "$@" 2>$LOG|' \
    1.36 +		$fs/usr/bin/netsurf
    1.37 +	# Remove files to save some space
    1.38 +	rm -rf $fs/usr/share/netsurf/docs
    1.39 +	rm -rf $fs/usr/share/netsurf/*.xpm
    1.40 +	rm -rf $fs/usr/share/netsurf/license
    1.41 +}