wok-next view netsurf/receipt @ rev 21159
updated diffutils (3.6 -> 3.7)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Feb 20 08:46:59 2019 +0100 (2019-02-20) |
parents | 5669e8b3be70 |
children | 1a7ac4b7c67e |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="netsurf"
4 VERSION="3.8"
5 CATEGORY="network"
6 SHORT_DESC="Lightweight and fast web browser"
7 MAINTAINER="al.bobylev@gmail.com"
8 LICENSE="GPL2"
9 WEB_SITE="http://www.netsurf-browser.org/"
11 TARBALL="$PACKAGE-all-$VERSION.tar.gz"
12 WGET_URL="http://download.netsurf-browser.org/netsurf/releases/source-full/$TARBALL"
14 BUILD_DEPENDS="bison flex perl expat-dev gperf libjpeg-turbo-dev curl-dev \
15 openssl-dev libpng-dev librsvg-dev gtk2-dev check-dev perl-html-parser"
16 # libharu-dev gstreamer0-dev
18 compile_rules() {
19 cat > netsurf/Makefile.config <<EOT
20 # Enable NetSurf's use of gstreamer for displaying videos.
21 # Currently disabled: not maintained and produce build errors.
22 # override NETSURF_USE_VIDEO := YES
24 # Enable NetSurf's use of libharu for PDF export and GTK printing support.
25 # Currently disabled: not maintained and produce build errors.
26 # override NETSURF_USE_HARU_PDF := YES
28 # Default home page, if one is not defined by the user.
29 override NETSURF_HOMEPAGE := "file:///usr/share/webhome/index.html"
30 EOT
32 sed -i 's|-Werror||' libsvgtiny/Makefile
34 make \
35 PREFIX=/usr \
36 TARGET=gtk \
37 install || return 1
39 # desktop shortcut
40 mkdir -p $install/usr/share/applications/
41 sed 's|netsurf.png|netsurf|; s|netsurf-gtk|netsurf|' \
42 < netsurf/frontends/gtk/res/netsurf-gtk.desktop \
43 > $install/usr/share/applications/netsurf.desktop
45 # desktop icons
46 mkdir -p $install/usr/share/icons/
47 cp -r $stuff/hicolor/ $install/usr/share/icons/
49 # wrapper
50 install -Dm755 $stuff/netsurf $install/usr/bin/netsurf
52 chown -R root:root $install # fix 107:nogroop somewhere
53 }
55 genpkg_rules() {
56 copy @std
57 # Remove files to save some space
58 rm -rf $fs/usr/share/netsurf/*.xpm
59 DEPENDS="libcairo expat gdk-pixbuf glib gtk2 libcurl libjpeg-turbo libpng \
60 librsvg openssl pango zlib"
61 TAGS="web-browser"
62 }