wok view netsurf/receipt @ rev 2835

netsurf: Add custom home page
author Christophe Lincoln <pankso@slitaz.org>
date Thu Apr 30 20:06:35 2009 +0200 (2009-04-30)
parents 87b399540000
children 3dce3a64acf3
line source
1 # SliTaz package receipt.
3 PACKAGE="netsurf"
4 VERSION="2.0"
5 CATEGORY="network"
6 SHORT_DESC="A simple, fast and light web browser using GTK."
7 MAINTAINER="pankso@slitaz.org"
8 DEPENDS="gtk+ openssl libpng jpeg lcms libparserutils hubbub libnsgif"
9 BUILD_DEPENDS="gtk+-dev openssl-dev libpng-dev jpeg-dev lcms-dev re2c lemon \
10 libparserutils-dev hubbub-dev libnsgif-dev"
11 TARBALL="$PACKAGE-$VERSION-src.tar.gz"
12 WEB_SITE="http://www.netsurf-browser.org/"
13 WGET_URL="http://www.netsurf-browser.org/downloads/releases/$TARBALL"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 cd $src
19 cp -a ../stuff/Makefile.defaults .
20 make
21 }
23 # Rules to gen a SliTaz package suitable for Tazpkg.
24 genpkg_rules()
25 {
26 mkdir -p $fs/usr/share $fs/usr/bin $fs/usr/lib/netsurf
27 cp -RL $src/gtk/res $fs/usr/share/netsurf
28 cp $src/nsgtk $fs/usr/lib/netsurf
29 cp $src/netsurf $fs/usr/bin
30 sed -i -e 's|NETSURFRES=`dirname $0`/gtk/res/|NETSURFRES=/usr/share/netsurf/res/|' \
31 $fs/usr/bin/netsurf
32 sed -i -e 's|exec `dirname $0`/nsgtk "$@" 2>$LOG|exec /usr/lib/netsurf/nsgtk "$@" 2>$LOG|' \
33 $fs/usr/bin/netsurf
34 # Remove files to save some space
35 rm -rf $fs/usr/share/netsurf/docs
36 rm -rf $fs/usr/share/netsurf/*.xpm
37 rm -rf $fs/usr/share/netsurf/license
38 # Webhome
39 cp -a stuff/webhome $fs/usr/share
40 chown -R root.root $fs
41 }