wok-current annotate netsurf/receipt @ rev 6112

Up rrdtool (1.4.4)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Sep 04 14:56:38 2010 +0200 (2010-09-04)
parents 5b44af8c1257
children 7ae832eb290f
rev   line source
pankso@2827 1 # SliTaz package receipt.
pankso@2827 2
pankso@2827 3 PACKAGE="netsurf"
erjo@5932 4 VERSION="2.5"
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 \
erjo@5932 9 libcurl libglade librsvg libgsf libcss libmng"
pankso@4175 10 BUILD_DEPENDS="$DEPENDS gtk+-dev openssl-dev libpng-dev jpeg-dev lcms-dev \
erjo@5932 11 re2c lemon libparserutils-dev hubbub-dev libnsgif-dev librsvg-dev curl-dev pango-dev \
erjo@5932 12 libcss-dev libwapcaplet-dev libmng-dev"
pankso@2827 13 TARBALL="$PACKAGE-$VERSION-src.tar.gz"
pankso@2827 14 WEB_SITE="http://www.netsurf-browser.org/"
pankso@2827 15 WGET_URL="http://www.netsurf-browser.org/downloads/releases/$TARBALL"
jozee@4969 16 TAGS="browser"
pankso@2827 17
pankso@2827 18 # Rules to configure and make the package.
pankso@2827 19 compile_rules()
pankso@2827 20 {
pankso@4175 21 mv netsurf $PACKAGE-$VERSION 2>/dev/null
pankso@2827 22 cd $src
erjo@5932 23 cp -a ../stuff/Makefile.config .
erjo@5932 24
erjo@5932 25 # Fix install target
erjo@5932 26 sed -i 's/cp -vRL/cp -RL/' Makefile
erjo@5932 27 sed -i 's/cp -v/cp /' Makefile
erjo@5932 28 sed -i 's|/usr/local|/usr|' Makefile.defaults
erjo@5932 29
erjo@5932 30 make && make DESTDIR=$PWD/_pkg install
pankso@2827 31 }
pankso@2827 32
pankso@2827 33 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@2827 34 genpkg_rules()
pankso@2827 35 {
erjo@5932 36 mkdir -p $fs/usr/share \
erjo@5932 37 $fs/usr/lib/netsurf
erjo@5932 38
erjo@5932 39 cp -a $_pkg/usr/bin $fs/usr
erjo@5932 40 cp -a $_pkg/usr/share/netsurf $fs/usr/share
erjo@5932 41
erjo@5932 42
pankso@2827 43 # Remove files to save some space
pankso@2827 44 rm -rf $fs/usr/share/netsurf/docs
pankso@2827 45 rm -rf $fs/usr/share/netsurf/*.xpm
pankso@2827 46 rm -rf $fs/usr/share/netsurf/license
pankso@2835 47 # Webhome
pankso@2835 48 cp -a stuff/webhome $fs/usr/share
pankso@2835 49 chown -R root.root $fs
pankso@2827 50 }