diff options
author | Ruben Schuller <ruben@orgizm.net> | 2015-04-17 00:54:12 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2015-04-17 00:54:12 +0700 |
commit | cea3b5e0bd1dbbd71b3e8a3db3656feb9c8c6120 (patch) | |
tree | a7c0bd492f36b64478d99f0e0f1fcd309384660f /network/netsurf/netsurf.SlackBuild | |
parent | 090fc94340bee8549c71f4c5486e3b47d5977afe (diff) |
network/netsurf: Updated for version 3.3.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/netsurf/netsurf.SlackBuild')
-rw-r--r-- | network/netsurf/netsurf.SlackBuild | 36 |
1 files changed, 14 insertions, 22 deletions
diff --git a/network/netsurf/netsurf.SlackBuild b/network/netsurf/netsurf.SlackBuild index d1c87b73b6ec1..738a5511bf022 100644 --- a/network/netsurf/netsurf.SlackBuild +++ b/network/netsurf/netsurf.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for netsurf -# Copyright 2012, 2013 Ruben Schuller +# Copyright 2012 - 2015 Ruben Schuller # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -23,10 +23,9 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=netsurf -VERSION=${VERSION:-3.0} -BUILD=${BUILD:-2} +VERSION=${VERSION:-3.3} +BUILD=${BUILD:-1} TAG=${TAG:-_SBo} -JAVASCRIPT=${JAVASCRIPT:-YES} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -61,8 +60,8 @@ rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION-full-src.tar.gz -cd $PRGNAM-full-$VERSION +tar xvf $CWD/$PRGNAM-all-$VERSION.tar.gz +cd $PRGNAM-all-$VERSION chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \ @@ -70,25 +69,18 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; -# apply patches from git to compile with bison 2.7.1 -# http://git.netsurf-browser.org/nsgenbind.git/patch/?id=51bd18034c510a6d4711823e08b69af2f7aa063e -patch -d src/nsgenbind-0.0.1/src < $CWD/nsgenbind-lexer.l.patch -patch -d src/nsgenbind-0.0.1/src < $CWD/webidl-lexer.l.patch - -# Scroll patch so it changes 30 lines a time instead of one -# thanks to Sabotage-Linux@git -# https://github.com/sabotage-linux/sabotage/blob/master/KEEP/netsurf-3.0-scrollspeed.patch -patch -d src/netsurf-3.0/gtk/res/ < $CWD/scroll.patch - -if [ "$JAVASCRIPT" == "YES" ]; then - PATH="$(pwd)/src/nsgenbind-0.0.1/build-Linux-gtk-release-binary":$PATH make install DESTDIR=$PKG PREFIX=/usr NETSURF_USE_MOZJS=YES -else - make install DESTDIR=$PKG PREFIX=/usr +if [ "${NETSURF_USE_VIDEO:-NO}"=="YES" ]; then + patch --verbose -p1 < $CWD/enable-deprecated.diff fi +make install DESTDIR=$PKG PREFIX=/usr \ + NETSURF_USE_MOZJS=${NETSURF_USE_MOZJS:-YES} \ + NETSURF_USE_WEBP=${NETSURF_USE_WEBP:-NO} \ + NETSURF_USE_VIDEO=${NETSURF_USE_VIDEO:-NO} + mkdir $PKG/usr/share/pixmaps -cp src/netsurf-3.0/gtk/res/netsurf.png $PKG/usr/share/pixmaps -cp src/netsurf-3.0/gtk/res/netsurf.xpm $PKG/usr/share/pixmaps +cp netsurf/gtk/res/netsurf.png $PKG/usr/share/pixmaps +cp netsurf/gtk/res/netsurf.xpm $PKG/usr/share/pixmaps mkdir -p $PKG/usr/share/applications cp $CWD/netsurf.desktop $PKG/usr/share/applications |