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