wok-next annotate 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 |
rev | line source |
---|---|
al@19868 | 1 # SliTaz package receipt v2. |
pankso@2827 | 2 |
pankso@2827 | 3 PACKAGE="netsurf" |
al@20997 | 4 VERSION="3.8" |
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" |
pascal@15002 | 9 WEB_SITE="http://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 |
al@20997 | 14 BUILD_DEPENDS="bison flex perl expat-dev gperf libjpeg-turbo-dev curl-dev \ |
al@21017 | 15 openssl-dev libpng16-dev librsvg-dev gtk2-dev check-dev perl-html-parser" |
al@20997 | 16 # libharu-dev gstreamer0-dev |
al@19868 | 17 |
al@19868 | 18 compile_rules() { |
al@20997 | 19 cat > netsurf/Makefile.config <<EOT |
al@20997 | 20 # Enable NetSurf's use of gstreamer for displaying videos. |
al@20997 | 21 # Currently disabled: not maintained and produce build errors. |
al@20997 | 22 # override NETSURF_USE_VIDEO := YES |
al@19868 | 23 |
al@20997 | 24 # Enable NetSurf's use of libharu for PDF export and GTK printing support. |
al@20997 | 25 # Currently disabled: not maintained and produce build errors. |
al@20997 | 26 # override NETSURF_USE_HARU_PDF := YES |
al@19868 | 27 |
al@20997 | 28 # Default home page, if one is not defined by the user. |
al@20997 | 29 override NETSURF_HOMEPAGE := "file:///usr/share/webhome/index.html" |
al@20997 | 30 EOT |
al@19868 | 31 |
al@20997 | 32 sed -i 's|-Werror||' libsvgtiny/Makefile |
al@19868 | 33 |
al@19868 | 34 make \ |
al@19868 | 35 PREFIX=/usr \ |
psychomaniak@16854 | 36 TARGET=gtk \ |
al@19868 | 37 install || return 1 |
al@19868 | 38 |
al@19868 | 39 # desktop shortcut |
al@20997 | 40 mkdir -p $install/usr/share/applications/ |
al@20997 | 41 sed 's|netsurf.png|netsurf|; s|netsurf-gtk|netsurf|' \ |
al@20997 | 42 < netsurf/frontends/gtk/res/netsurf-gtk.desktop \ |
al@20997 | 43 > $install/usr/share/applications/netsurf.desktop |
al@20997 | 44 |
al@19868 | 45 # desktop icons |
al@20997 | 46 mkdir -p $install/usr/share/icons/ |
al@20997 | 47 cp -r $stuff/hicolor/ $install/usr/share/icons/ |
al@19868 | 48 |
al@20997 | 49 # wrapper |
al@20997 | 50 install -Dm755 $stuff/netsurf $install/usr/bin/netsurf |
al@20997 | 51 |
al@20997 | 52 chown -R root:root $install # fix 107:nogroop somewhere |
pankso@2827 | 53 } |
pankso@2827 | 54 |
al@19868 | 55 genpkg_rules() { |
al@19868 | 56 copy @std |
pankso@2827 | 57 # Remove files to save some space |
pankso@2827 | 58 rm -rf $fs/usr/share/netsurf/*.xpm |
al@21017 | 59 DEPENDS="cairo expat gdk-pixbuf glib gtk2 libcurl libjpeg-turbo libpng16 \ |
al@20997 | 60 librsvg openssl pango zlib" |
al@20997 | 61 TAGS="web-browser" |
pankso@2827 | 62 } |