wok view netsurf/receipt @ rev 4969
add/improve TAGS n* receipts
author | Rohit Joshi <jozee@slitaz.org> |
---|---|
date | Wed Feb 24 10:31:06 2010 +0000 (2010-02-24) |
parents | 6d1807fb3ac5 |
children | 5b44af8c1257 |
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"
15 TAGS="browser"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 mv netsurf $PACKAGE-$VERSION 2>/dev/null
21 cd $src
22 cp -a ../stuff/Makefile.defaults .
23 make
24 }
26 # Rules to gen a SliTaz package suitable for Tazpkg.
27 genpkg_rules()
28 {
29 mkdir -p $fs/usr/share $fs/usr/bin $fs/usr/lib/netsurf
30 cp -RL $src/gtk/res $fs/usr/share/netsurf
31 cp $src/nsgtk $fs/usr/lib/netsurf
32 cp $src/netsurf $fs/usr/bin
33 sed -i -e 's|NETSURFRES=`dirname $0`/gtk/res/|NETSURFRES=/usr/share/netsurf/res/|' \
34 $fs/usr/bin/netsurf
35 sed -i -e 's|exec `dirname $0`/nsgtk "$@" 2>$LOG|exec /usr/lib/netsurf/nsgtk "$@" 2>$LOG|' \
36 $fs/usr/bin/netsurf
37 # Remove files to save some space
38 rm -rf $fs/usr/share/netsurf/docs
39 rm -rf $fs/usr/share/netsurf/*.xpm
40 rm -rf $fs/usr/share/netsurf/license
41 # Webhome
42 cp -a stuff/webhome $fs/usr/share
43 chown -R root.root $fs
44 }