wok-next view netsurf/receipt @ rev 20236
linux-cloop: tiny patch
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Nov 06 10:18:18 2017 +0100 (2017-11-06) |
parents | b1b64d852292 |
children | e6615350078d |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="netsurf"
4 COMMIT="d3493b138f38c9e26da24fcffb3ef8b813e3ca4e"
5 VERSION="3.6-170919"
6 CATEGORY="network"
7 SHORT_DESC="Lightweight and fast web browser"
8 MAINTAINER="al.bobylev@gmail.com"
9 LICENSE="GPL2"
10 WEB_SITE="http://www.netsurf-browser.org/"
12 TARBALL="$PACKAGE-${COMMIT:-$VERSION}.tar.bz2"
13 BASE_URL="http://source.netsurf-browser.org/$PACKAGE.git/snapshot"
14 if [ -n "$COMMIT" ]; then
15 WGET_URL="$BASE_URL/$PACKAGE-$COMMIT.tar.bz2"
16 else
17 WGET_URL="$BASE_URL/release/$VERSION.tar.bz2"
18 fi
20 BUILD_DEPENDS="libjpeg-turbo-dev libharu-dev duktape-dev libcss-dev libdom-dev \
21 libnsutils-dev libutf8proc-dev curl-dev openssl-dev libpng16-dev libnsbmp-dev \
22 libnsgif-dev libsvgtiny-dev libnspsl-dev libnslog-dev gstreamer0-dev gtk+-dev \
23 check-dev perl-html-parser nsgenbind" # librsvg-dev
25 compile_rules() {
26 [ -z "$COMMIT" ] && cd $VERSION
28 # Enable NetSurf's use of gstreamer for displaying videos
29 echo 'override NETSURF_USE_VIDEO := YES' > Makefile.config
30 # Enable NetSurf's use of libharu for PDF export and GTK printing support.
31 # echo 'override NETSURF_USE_HARU_PDF := YES' >> Makefile.config
32 # Template used for constructing the User Agent: string.
33 # 1,2: major & minor version numbers; 3 `uname -s`; 4 `uname -m`
34 echo 'override NETSURF_UA_FORMAT_STRING := "NetSurf/%d.%d (SliTaz GNU/%s %s)"' >> Makefile.config
35 # Default home page, if one is not defined by the user.
36 echo 'override NETSURF_HOMEPAGE := "file:///usr/share/webhome/index.html"' >> Makefile.config
39 # fix installing
40 sed -i '/install \$(EXETARGET)/ s|^|#|' frontends/gtk/Makefile
42 make \
43 PREFIX=/usr \
44 LIBDIR=lib \
45 INCLUDEDIR=include \
46 TARGET=gtk \
47 NETSURF_GTK_MAJOR=2 \
48 install || return 1
49 # FIXME: it is job for `make`
50 cp -af nsgtk $install/usr/bin/netsurf-gtk
52 # desktop shortcut
53 mkdir -p $install/usr/share/applications
54 sed 's|netsurf.png|netsurf|' \
55 < frontends/gtk/res/netsurf-gtk.desktop \
56 > $install/usr/share/applications/netsurf-gtk.desktop
57 # desktop icons
58 mkdir -p $install/usr/share/icons
59 cp -r $stuff/hicolor $install/usr/share/icons
61 chown -R root:root $install
62 }
64 genpkg_rules() {
65 copy @std
66 # Remove files to save some space
67 rm -rf $fs/usr/share/netsurf/*.xpm
68 DEPENDS="atk cairo expat fontconfig freetype gdk-pixbuf glib gstreamer0 \
69 gtk+ libcrypto libcss libcurl libdom libhubbub libjpeg-turbo libnsbmp \
70 libnsgif libnslog libnspsl libnsutils libparserutils libpng16 libssl \
71 libsvgtiny libutf8proc libwapcaplet libxml2 pango zlib"
72 TAGS="web-browser"
73 }