wok view netsurf/receipt @ rev 14394
imagemagick: update WGET_URL
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Apr 23 13:48:09 2013 +0200 (2013-04-23) |
parents | d1768332cee0 |
children | 7896f0694ef6 |
line source
1 # SliTaz package receipt.
3 PACKAGE="netsurf"
4 VERSION="2.6"
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 libgsf libcss libmng zlib libxml2"
10 BUILD_DEPENDS="$DEPENDS gtk+-dev libglade-dev openssl-dev libpng-dev jpeg-dev lcms-dev \
11 re2c lemon libparserutils-dev hubbub-dev libnsgif-dev librsvg-dev curl-dev pango-dev \
12 libcss-dev libwapcaplet-dev libmng-dev zlib-dev libxml2-dev libcroco"
13 TARBALL="$PACKAGE-$VERSION-src.tar.gz"
14 WEB_SITE="http://www.netsurf-browser.org/"
15 WGET_URL="http://www.netsurf-browser.org/downloads/releases/$TARBALL"
16 TAGS="browser"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 mv netsurf $PACKAGE-$VERSION 2>/dev/null
22 cd $src
23 sed -i 's#GtkNotebookPage#GtkWidget#' gtk/gtk_tabs.c
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);#' \
25 gtk/gtk_window.c
27 cp -a $stuff/Makefile.config .
29 # Fix install target
30 sed -i 's/cp -vRL/cp -RL/' Makefile
31 sed -i 's/cp -v/cp /' Makefile
32 sed -i 's|/usr/local|/usr|' Makefile.defaults
34 make install DESTDIR=$PWD/_pkg PREFIX=/usr
36 }
38 # Rules to gen a SliTaz package suitable for Tazpkg.
39 genpkg_rules()
40 {
41 mkdir -p $fs/usr/share \
42 $fs/usr/lib/netsurf
44 cp -a $_pkg/usr/bin $fs/usr
45 cp -a $_pkg/usr/share/netsurf $fs/usr/share
48 # Remove files to save some space
49 rm -rf $fs/usr/share/netsurf/docs
50 rm -rf $fs/usr/share/netsurf/*.xpm
51 rm -rf $fs/usr/share/netsurf/license
52 # Webhome
53 cp -a stuff/webhome $fs/usr/share
54 chown -R root.root $fs
55 }