wok-next annotate netsurf/receipt @ rev 20666
Up freeglut (3.0.0)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri May 11 03:09:34 2018 +0300 (2018-05-11) |
parents | e6615350078d |
children | 95d959e089ea |
rev | line source |
---|---|
al@19868 | 1 # SliTaz package receipt v2. |
pankso@2827 | 2 |
pankso@2827 | 3 PACKAGE="netsurf" |
al@20519 | 4 COMMIT="" |
al@20519 | 5 VERSION="3.7" |
pankso@2827 | 6 CATEGORY="network" |
al@19868 | 7 SHORT_DESC="Lightweight and fast web browser" |
al@19868 | 8 MAINTAINER="al.bobylev@gmail.com" |
pascal@15002 | 9 LICENSE="GPL2" |
pascal@15002 | 10 WEB_SITE="http://www.netsurf-browser.org/" |
pascal@15002 | 11 |
al@19868 | 12 TARBALL="$PACKAGE-${COMMIT:-$VERSION}.tar.bz2" |
al@19868 | 13 BASE_URL="http://source.netsurf-browser.org/$PACKAGE.git/snapshot" |
al@19868 | 14 if [ -n "$COMMIT" ]; then |
al@19868 | 15 WGET_URL="$BASE_URL/$PACKAGE-$COMMIT.tar.bz2" |
al@19868 | 16 else |
al@19868 | 17 WGET_URL="$BASE_URL/release/$VERSION.tar.bz2" |
al@19868 | 18 fi |
pankso@2827 | 19 |
al@19868 | 20 BUILD_DEPENDS="libjpeg-turbo-dev libharu-dev duktape-dev libcss-dev libdom-dev \ |
al@19868 | 21 libnsutils-dev libutf8proc-dev curl-dev openssl-dev libpng16-dev libnsbmp-dev \ |
al@19868 | 22 libnsgif-dev libsvgtiny-dev libnspsl-dev libnslog-dev gstreamer0-dev gtk+-dev \ |
al@19868 | 23 check-dev perl-html-parser nsgenbind" # librsvg-dev |
al@19868 | 24 |
al@19868 | 25 compile_rules() { |
al@19868 | 26 [ -z "$COMMIT" ] && cd $VERSION |
al@19868 | 27 |
al@19868 | 28 # Enable NetSurf's use of gstreamer for displaying videos |
al@20519 | 29 # echo 'override NETSURF_USE_VIDEO := YES' > Makefile.config |
al@19868 | 30 # Enable NetSurf's use of libharu for PDF export and GTK printing support. |
al@19868 | 31 # echo 'override NETSURF_USE_HARU_PDF := YES' >> Makefile.config |
al@19868 | 32 # Template used for constructing the User Agent: string. |
al@19868 | 33 # 1,2: major & minor version numbers; 3 `uname -s`; 4 `uname -m` |
al@19868 | 34 echo 'override NETSURF_UA_FORMAT_STRING := "NetSurf/%d.%d (SliTaz GNU/%s %s)"' >> Makefile.config |
al@19868 | 35 # Default home page, if one is not defined by the user. |
al@19868 | 36 echo 'override NETSURF_HOMEPAGE := "file:///usr/share/webhome/index.html"' >> Makefile.config |
al@19868 | 37 |
al@19868 | 38 |
al@19868 | 39 # fix installing |
al@19868 | 40 sed -i '/install \$(EXETARGET)/ s|^|#|' frontends/gtk/Makefile |
al@19868 | 41 |
al@19868 | 42 make \ |
al@19868 | 43 PREFIX=/usr \ |
al@19868 | 44 LIBDIR=lib \ |
al@19868 | 45 INCLUDEDIR=include \ |
psychomaniak@16854 | 46 TARGET=gtk \ |
psychomaniak@16854 | 47 NETSURF_GTK_MAJOR=2 \ |
al@19868 | 48 install || return 1 |
al@19868 | 49 # FIXME: it is job for `make` |
al@19868 | 50 cp -af nsgtk $install/usr/bin/netsurf-gtk |
al@19868 | 51 |
al@19868 | 52 # desktop shortcut |
al@19868 | 53 mkdir -p $install/usr/share/applications |
al@19868 | 54 sed 's|netsurf.png|netsurf|' \ |
al@19868 | 55 < frontends/gtk/res/netsurf-gtk.desktop \ |
al@19868 | 56 > $install/usr/share/applications/netsurf-gtk.desktop |
al@19868 | 57 # desktop icons |
al@19868 | 58 mkdir -p $install/usr/share/icons |
al@19868 | 59 cp -r $stuff/hicolor $install/usr/share/icons |
al@19868 | 60 |
al@19868 | 61 chown -R root:root $install |
pankso@2827 | 62 } |
pankso@2827 | 63 |
al@19868 | 64 genpkg_rules() { |
al@19868 | 65 copy @std |
pankso@2827 | 66 # Remove files to save some space |
pankso@2827 | 67 rm -rf $fs/usr/share/netsurf/*.xpm |
al@19868 | 68 DEPENDS="atk cairo expat fontconfig freetype gdk-pixbuf glib gstreamer0 \ |
al@20453 | 69 gtk+ openssl libcss libcurl libdom libhubbub libjpeg-turbo libnsbmp \ |
al@20453 | 70 libnsgif libnslog libnspsl libnsutils libparserutils libpng16 \ |
al@19868 | 71 libsvgtiny libutf8proc libwapcaplet libxml2 pango zlib" |
al@20519 | 72 TAGS="web-browser netsurf" |
pankso@2827 | 73 } |