wok-next view netsurf/receipt @ rev 21653

updated libfilezilla (0.15.1 -> 0.22.0)
author Hans-G?nter Theisgen
date Fri Jun 26 21:23:07 2020 +0100 (2020-06-26)
parents 1a7ac4b7c67e
children
line source
1 # SliTaz package receipt v2.
3 PACKAGE="netsurf"
4 VERSION="3.9"
5 CATEGORY="network"
6 SHORT_DESC="Lightweight and fast web browser"
7 MAINTAINER="al.bobylev@gmail.com"
8 LICENSE="GPL2"
9 WEB_SITE="https://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 check-dev curl-dev expat-dev flex gperf gtk2-dev
15 libjpeg-turbo-dev libpng-dev librsvg-dev openssl-dev perl
16 perl-html-parser vim"
17 # libharu-dev gstreamer0-dev
19 compile_rules()
20 {
21 cat > netsurf/Makefile.config <<EOT
22 # Enable NetSurf's use of gstreamer for displaying videos.
23 # Currently disabled: not maintained and produce build errors.
24 # override NETSURF_USE_VIDEO := YES
26 # Enable NetSurf's use of libharu for PDF export and GTK printing support.
27 # Currently disabled: not maintained and produce build errors.
28 # override NETSURF_USE_HARU_PDF := YES
30 # Default home page, if one is not defined by the user.
31 override NETSURF_HOMEPAGE := "file:///usr/share/webhome/index.html"
32 EOT
34 sed -i 's|-Werror||' libsvgtiny/Makefile
36 make \
37 PREFIX=/usr \
38 TARGET=gtk \
39 install || return 1
41 # desktop shortcut
42 mkdir -p $install/usr/share/applications/
43 sed 's|netsurf.png|netsurf|; s|netsurf-gtk|netsurf|' \
44 < netsurf/frontends/gtk/res/netsurf-gtk.desktop \
45 > $install/usr/share/applications/netsurf.desktop
47 # desktop icons
48 mkdir -p $install/usr/share/icons/
49 cp -r $stuff/hicolor/ $install/usr/share/icons/
51 # wrapper
52 install -Dm755 $stuff/netsurf $install/usr/bin/netsurf
54 chown -R root:root $install # fix 107:nogroop somewhere
55 }
57 genpkg_rules()
58 {
59 copy @std
60 # Remove files to save some space
61 rm -rf $fs/usr/share/netsurf/*.xpm
63 DEPENDS="expat gdk-pixbuf glib gtk2 libcairo libcurl libjpeg-turbo libpng \
64 librsvg openssl pango zlib"
65 TAGS="web-browser"
66 }