diff options
Diffstat (limited to 'network/netsurf/netsurf.SlackBuild')
-rw-r--r-- | network/netsurf/netsurf.SlackBuild | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/network/netsurf/netsurf.SlackBuild b/network/netsurf/netsurf.SlackBuild index 5658e8ee5ef4a..d1c87b73b6ec1 100644 --- a/network/netsurf/netsurf.SlackBuild +++ b/network/netsurf/netsurf.SlackBuild @@ -24,8 +24,9 @@ PRGNAM=netsurf VERSION=${VERSION:-3.0} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} +JAVASCRIPT=${JAVASCRIPT:-YES} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -74,7 +75,16 @@ find -L . \ 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 -make install DESTDIR=$PKG PREFIX=/usr +# 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 +fi mkdir $PKG/usr/share/pixmaps cp src/netsurf-3.0/gtk/res/netsurf.png $PKG/usr/share/pixmaps |