wok annotate netsurf/receipt @ rev 5410

Up: bzip2, bzip2-dev, bzlib (1.0.5)
author Christopher Rogers <slaxemulator@gmail.com>
date Mon May 03 01:03:55 2010 +0000 (2010-05-03)
parents bee79018e13a
children 1798f81abf2e
rev   line source
pankso@2827 1 # SliTaz package receipt.
pankso@2827 2
pankso@2827 3 PACKAGE="netsurf"
pankso@4175 4 VERSION="2.1"
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@4334 8 DEPENDS="gtk+ libssl libpng jpeg lcms libparserutils hubbub libnsgif \
pascal@5004 9 libcurl libglade librsvg libgsf"
pankso@4175 10 BUILD_DEPENDS="$DEPENDS gtk+-dev openssl-dev libpng-dev jpeg-dev lcms-dev \
pankso@4175 11 re2c lemon libparserutils-dev hubbub-dev libnsgif-dev librsvg-dev"
pankso@2827 12 TARBALL="$PACKAGE-$VERSION-src.tar.gz"
pankso@2827 13 WEB_SITE="http://www.netsurf-browser.org/"
pankso@2827 14 WGET_URL="http://www.netsurf-browser.org/downloads/releases/$TARBALL"
jozee@4969 15 TAGS="browser"
pankso@2827 16
pankso@2827 17 # Rules to configure and make the package.
pankso@2827 18 compile_rules()
pankso@2827 19 {
pankso@4175 20 mv netsurf $PACKAGE-$VERSION 2>/dev/null
pankso@2827 21 cd $src
pankso@2827 22 cp -a ../stuff/Makefile.defaults .
pankso@2827 23 make
pankso@2827 24 }
pankso@2827 25
pankso@2827 26 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@2827 27 genpkg_rules()
pankso@2827 28 {
pankso@2827 29 mkdir -p $fs/usr/share $fs/usr/bin $fs/usr/lib/netsurf
pankso@2827 30 cp -RL $src/gtk/res $fs/usr/share/netsurf
pankso@2827 31 cp $src/nsgtk $fs/usr/lib/netsurf
pankso@2827 32 cp $src/netsurf $fs/usr/bin
pankso@2827 33 sed -i -e 's|NETSURFRES=`dirname $0`/gtk/res/|NETSURFRES=/usr/share/netsurf/res/|' \
pankso@2827 34 $fs/usr/bin/netsurf
pankso@2827 35 sed -i -e 's|exec `dirname $0`/nsgtk "$@" 2>$LOG|exec /usr/lib/netsurf/nsgtk "$@" 2>$LOG|' \
pankso@2827 36 $fs/usr/bin/netsurf
pankso@2827 37 # Remove files to save some space
pankso@2827 38 rm -rf $fs/usr/share/netsurf/docs
pankso@2827 39 rm -rf $fs/usr/share/netsurf/*.xpm
pankso@2827 40 rm -rf $fs/usr/share/netsurf/license
pankso@2835 41 # Webhome
pankso@2835 42 cp -a stuff/webhome $fs/usr/share
pankso@2835 43 chown -R root.root $fs
pankso@2827 44 }