wok-6.x rev 5932

Up: netsurf(2.5)
author Eric Joseph-Alexandre <erjo@slitaz.org>
date Fri Jul 30 16:57:43 2010 +0200 (2010-07-30)
parents f5289b9f8c11
children 2489aa1de154
files netsurf/receipt
line diff
     1.1 --- a/netsurf/receipt	Fri Jul 30 16:51:43 2010 +0200
     1.2 +++ b/netsurf/receipt	Fri Jul 30 16:57:43 2010 +0200
     1.3 @@ -1,14 +1,15 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="netsurf"
     1.7 -VERSION="2.1"
     1.8 +VERSION="2.5"
     1.9  CATEGORY="network"
    1.10  SHORT_DESC="A simple, fast and light web browser using GTK."
    1.11  MAINTAINER="pankso@slitaz.org"
    1.12  DEPENDS="gtk+ libssl libpng jpeg lcms libparserutils hubbub libnsgif \
    1.13 -libcurl libglade librsvg libgsf"
    1.14 +libcurl libglade librsvg libgsf libcss libmng"
    1.15  BUILD_DEPENDS="$DEPENDS gtk+-dev openssl-dev libpng-dev jpeg-dev lcms-dev \
    1.16 -re2c lemon libparserutils-dev hubbub-dev libnsgif-dev librsvg-dev"
    1.17 +re2c lemon libparserutils-dev hubbub-dev libnsgif-dev librsvg-dev curl-dev pango-dev \
    1.18 +libcss-dev libwapcaplet-dev libmng-dev"
    1.19  TARBALL="$PACKAGE-$VERSION-src.tar.gz"
    1.20  WEB_SITE="http://www.netsurf-browser.org/"
    1.21  WGET_URL="http://www.netsurf-browser.org/downloads/releases/$TARBALL"
    1.22 @@ -19,21 +20,26 @@
    1.23  {
    1.24  	mv netsurf $PACKAGE-$VERSION 2>/dev/null
    1.25  	cd $src
    1.26 -	cp -a ../stuff/Makefile.defaults .
    1.27 -	make
    1.28 +	cp -a ../stuff/Makefile.config .
    1.29 +	
    1.30 +	# Fix install target
    1.31 +	sed -i 's/cp -vRL/cp -RL/' Makefile
    1.32 +	sed -i 's/cp -v/cp /' Makefile
    1.33 +	sed -i 's|/usr/local|/usr|' Makefile.defaults
    1.34 +	
    1.35 +	make && make DESTDIR=$PWD/_pkg install
    1.36  }
    1.37  
    1.38  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.39  genpkg_rules()
    1.40  {
    1.41 -	mkdir -p $fs/usr/share $fs/usr/bin $fs/usr/lib/netsurf
    1.42 -	cp -RL $src/gtk/res $fs/usr/share/netsurf
    1.43 -	cp $src/nsgtk $fs/usr/lib/netsurf
    1.44 -	cp $src/netsurf $fs/usr/bin
    1.45 -	sed -i -e 's|NETSURFRES=`dirname $0`/gtk/res/|NETSURFRES=/usr/share/netsurf/res/|' \
    1.46 -		$fs/usr/bin/netsurf
    1.47 -	sed -i -e 's|exec `dirname $0`/nsgtk "$@" 2>$LOG|exec /usr/lib/netsurf/nsgtk "$@" 2>$LOG|' \
    1.48 -		$fs/usr/bin/netsurf
    1.49 +	mkdir -p $fs/usr/share \
    1.50 +		$fs/usr/lib/netsurf
    1.51 +	
    1.52 +	cp -a $_pkg/usr/bin $fs/usr
    1.53 +	cp -a $_pkg/usr/share/netsurf $fs/usr/share
    1.54 +
    1.55 +	
    1.56  	# Remove files to save some space
    1.57  	rm -rf $fs/usr/share/netsurf/docs
    1.58  	rm -rf $fs/usr/share/netsurf/*.xpm