wok-next view netsurf/receipt @ rev 21017
Some maintenance
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Tue Oct 16 16:46:05 2018 +0300 (2018-10-16) |
parents | 95d959e089ea |
children | 5669e8b3be70 |
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 libpng16-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="cairo expat gdk-pixbuf glib gtk2 libcurl libjpeg-turbo libpng16 \
60 librsvg openssl pango zlib"
61 TAGS="web-browser"
62 }