wok view netsurf/receipt @ rev 15002
Add some GPL2 licenses
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Aug 10 21:12:16 2013 +0000 (2013-08-10) |
parents | 27f52fdaa413 |
children | 91654f4ca530 |
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 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION-src.tar.gz"
10 WEB_SITE="http://www.netsurf-browser.org/"
11 WGET_URL="http://www.netsurf-browser.org/downloads/releases/$TARBALL"
12 TAGS="browser"
14 DEPENDS="gtk+ libssl libpng jpeg lcms libparserutils hubbub libnsgif \
15 libcurl libglade librsvg libgsf libcss libmng zlib libxml2"
16 BUILD_DEPENDS="$DEPENDS gtk+-dev libglade-dev openssl-dev libpng-dev jpeg-dev lcms-dev \
17 re2c lemon libparserutils-dev hubbub-dev libnsgif-dev librsvg-dev curl-dev pango-dev \
18 libcss-dev libwapcaplet-dev libmng-dev zlib-dev libxml2-dev libcroco"
20 # Rules to configure and make the package.
21 compile_rules()
22 {
23 mv netsurf $PACKAGE-$VERSION 2>/dev/null
24 cd $src
25 sed -i 's#GtkNotebookPage#GtkWidget#' gtk/gtk_tabs.c
26 sed -i 's#GTK_WIDGET_SET_FLAGS(GTK_WIDGET(g->layout), GTK_CAN_FOCUS);#gtk_widget_set_can_focus(GTK_WIDGET(g->layout), true);#' \
27 gtk/gtk_window.c
29 cp -a $stuff/Makefile.config .
31 # Fix install target
32 sed -i 's/cp -vRL/cp -RL/' Makefile
33 sed -i 's/cp -v/cp /' Makefile
34 sed -i 's|/usr/local|/usr|' Makefile.defaults
36 make install DESTDIR=$DESTDIR PREFIX=/usr
38 }
40 # Rules to gen a SliTaz package suitable for Tazpkg.
41 genpkg_rules()
42 {
43 mkdir -p $fs/usr/share \
44 $fs/usr/lib/netsurf
46 cp -a $install/usr/bin $fs/usr
47 cp -a $install/usr/share/netsurf $fs/usr/share
50 # Remove files to save some space
51 rm -rf $fs/usr/share/netsurf/docs
52 rm -rf $fs/usr/share/netsurf/*.xpm
53 rm -rf $fs/usr/share/netsurf/license
54 # Webhome
55 cp -a stuff/webhome $fs/usr/share
56 chown -R root.root $fs
57 }