wok-next annotate netsurf/receipt @ rev 21338

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