wok-stable view netsurf/receipt @ rev 4839
mirror-tools: add --sources
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Jan 28 16:26:39 2010 +0100 (2010-01-28) |
parents | 5a780c98c23b |
children | bee79018e13a |
line source
1 # SliTaz package receipt.
3 PACKAGE="netsurf"
4 VERSION="2.1"
5 CATEGORY="network"
6 SHORT_DESC="A simple, fast and light web browser using GTK."
7 MAINTAINER="pankso@slitaz.org"
8 DEPENDS="gtk+ libssl libpng jpeg lcms libparserutils hubbub libnsgif \
9 libcurl libglade librsvg"
10 BUILD_DEPENDS="$DEPENDS gtk+-dev openssl-dev libpng-dev jpeg-dev lcms-dev \
11 re2c lemon libparserutils-dev hubbub-dev libnsgif-dev librsvg-dev"
12 TARBALL="$PACKAGE-$VERSION-src.tar.gz"
13 WEB_SITE="http://www.netsurf-browser.org/"
14 WGET_URL="http://www.netsurf-browser.org/downloads/releases/$TARBALL"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 mv netsurf $PACKAGE-$VERSION 2>/dev/null
20 cd $src
21 cp -a ../stuff/Makefile.defaults .
22 make
23 }
25 # Rules to gen a SliTaz package suitable for Tazpkg.
26 genpkg_rules()
27 {
28 mkdir -p $fs/usr/share $fs/usr/bin $fs/usr/lib/netsurf
29 cp -RL $src/gtk/res $fs/usr/share/netsurf
30 cp $src/nsgtk $fs/usr/lib/netsurf
31 cp $src/netsurf $fs/usr/bin
32 sed -i -e 's|NETSURFRES=`dirname $0`/gtk/res/|NETSURFRES=/usr/share/netsurf/res/|' \
33 $fs/usr/bin/netsurf
34 sed -i -e 's|exec `dirname $0`/nsgtk "$@" 2>$LOG|exec /usr/lib/netsurf/nsgtk "$@" 2>$LOG|' \
35 $fs/usr/bin/netsurf
36 # Remove files to save some space
37 rm -rf $fs/usr/share/netsurf/docs
38 rm -rf $fs/usr/share/netsurf/*.xpm
39 rm -rf $fs/usr/share/netsurf/license
40 # Webhome
41 cp -a stuff/webhome $fs/usr/share
42 chown -R root.root $fs
43 }