wok annotate netsurf/receipt @ rev 10515
efreet: up and fix bdeps
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Wed May 25 15:57:19 2011 +0200 (2011-05-25) |
parents | 16c6a94a2c94 |
children | 27f52fdaa413 |
rev | line source |
---|---|
pankso@2827 | 1 # SliTaz package receipt. |
pankso@2827 | 2 |
pankso@2827 | 3 PACKAGE="netsurf" |
slaxemulator@6531 | 4 VERSION="2.6" |
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 \ |
slaxemulator@6531 | 9 libcurl libglade librsvg libgsf libcss libmng zlib libxml2" |
slaxemulator@6531 | 10 BUILD_DEPENDS="$DEPENDS gtk+-dev libglade-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 \ |
slaxemulator@6531 | 12 libcss-dev libwapcaplet-dev libmng-dev zlib-dev libxml2-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 |
slaxemulator@9241 | 23 sed -i 's#GtkNotebookPage#GtkWidget#' gtk/gtk_tabs.c |
slaxemulator@9241 | 24 sed -i 's#GTK_WIDGET_SET_FLAGS(GTK_WIDGET(g->layout), GTK_CAN_FOCUS);#gtk_widget_set_can_focus(GTK_WIDGET(g->layout), true);#' \ |
slaxemulator@9241 | 25 gtk/gtk_window.c |
slaxemulator@9241 | 26 |
slaxemulator@9700 | 27 cp -a $stuff/Makefile.config . |
erjo@5932 | 28 |
erjo@5932 | 29 # Fix install target |
erjo@5932 | 30 sed -i 's/cp -vRL/cp -RL/' Makefile |
erjo@5932 | 31 sed -i 's/cp -v/cp /' Makefile |
erjo@5932 | 32 sed -i 's|/usr/local|/usr|' Makefile.defaults |
erjo@5932 | 33 |
slaxemulator@9241 | 34 make install DESTDIR=$PWD/_pkg PREFIX=/usr |
slaxemulator@9241 | 35 |
pankso@2827 | 36 } |
pankso@2827 | 37 |
pankso@2827 | 38 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@2827 | 39 genpkg_rules() |
pankso@2827 | 40 { |
erjo@5932 | 41 mkdir -p $fs/usr/share \ |
erjo@5932 | 42 $fs/usr/lib/netsurf |
erjo@5932 | 43 |
erjo@5932 | 44 cp -a $_pkg/usr/bin $fs/usr |
erjo@5932 | 45 cp -a $_pkg/usr/share/netsurf $fs/usr/share |
erjo@5932 | 46 |
erjo@5932 | 47 |
pankso@2827 | 48 # Remove files to save some space |
pankso@2827 | 49 rm -rf $fs/usr/share/netsurf/docs |
pankso@2827 | 50 rm -rf $fs/usr/share/netsurf/*.xpm |
pankso@2827 | 51 rm -rf $fs/usr/share/netsurf/license |
pankso@2835 | 52 # Webhome |
pankso@2835 | 53 cp -a stuff/webhome $fs/usr/share |
pankso@2835 | 54 chown -R root.root $fs |
pankso@2827 | 55 } |