wok-6.x view netsurf/receipt @ rev 4283

neon: use gnutls
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Sep 26 10:58:56 2009 +0200 (2009-09-26)
parents 3dce3a64acf3
children 6d1807fb3ac5
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+ openssl 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 }