summaryrefslogtreecommitdiffstats
path: root/libraries/webkit2gtk/webkit2gtk.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/webkit2gtk/webkit2gtk.SlackBuild')
-rw-r--r--libraries/webkit2gtk/webkit2gtk.SlackBuild36
1 files changed, 20 insertions, 16 deletions
diff --git a/libraries/webkit2gtk/webkit2gtk.SlackBuild b/libraries/webkit2gtk/webkit2gtk.SlackBuild
index 96c17ea8b3..fe4f736d00 100644
--- a/libraries/webkit2gtk/webkit2gtk.SlackBuild
+++ b/libraries/webkit2gtk/webkit2gtk.SlackBuild
@@ -2,7 +2,7 @@
#
# Slackware build script for webkit2gtk
#
-# Copyright 2016-2017 Willy Sudiarto Raharjo <willysr@slackbuilds.org>
+# Copyright 2016-2024 Willy Sudiarto Raharjo <willysr@slackbuilds.org>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -26,19 +26,11 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=webkit2gtk
SRCNAM=webkitgtk
-VERSION=${VERSION:-2.32.3}
+VERSION=${VERSION:-2.44.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
-# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
-# the name of the created package would be, and then exit. This information
-# could be useful to other scripts.
-if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
- echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
- exit 0
-fi
-
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
@@ -51,6 +43,11 @@ if [ -z "$ARCH" ]; then
esac
fi
+if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
+ echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
+ exit 0
+fi
+
if [ "$ARCH" = "i586" ]; then
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
@@ -81,6 +78,7 @@ find -L . \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
patch -p1 < $CWD/unhide-deprecated-api.patch
+patch -p1 < $CWD/3d5373575695b293b8559155431d0079a6153aff.patch
mkdir -p build
cd build
@@ -94,22 +92,28 @@ cd build
-DLIBEXEC_INSTALL_DIR=/usr/lib${LIBDIRSUFFIX}/webkit2gtk-4.0 \
-DENABLE_GAMEPAD=OFF \
-DENABLE_MINIBROWSER=ON \
- -DUSE_SYSTEMD=OFF \
+ -DUSE_SOUP2=ON \
+ -DENABLE_JOURNALD_LOG=OFF \
+ -DENABLE_DOCUMENTATION=OFF \
+ -DENABLE_BUBBLEWRAP_SANDBOX=off \
+ -DUSE_SYSTEM_MALLOC=on \
+ -DUSE_GSTREAMER_TRANSCODER=OFF \
+ -DUSE_AVIF=OFF \
+ -DUSE_GTK4=OFF \
+ -DUSE_LIBBACKTRACE=OFF \
+ -DUSE_JPEGXL=OFF \
-Wno-dev \
-G Ninja \
..
# The build might crash on high specs machines because ninja eat all
# of the resources, so let's try to limit it to half the available ones
-"${NINJA:=ninja}"
-$NINJA -j$(expr $(nproc) / 2)
+"${NINJA:=ninja}" -j$(expr $(nproc) / 2)
DESTDIR=$PKG $NINJA -j1 install
mkdir -p $PKG/usr/share/gtk-doc/html/webkit{2,dom}gtk-4.0
-install -m 0644 ../Documentation/webkit2gtk-4.0/html/* \
+cp -rf ../Documentation/* \
$PKG/usr/share/gtk-doc/html/webkit2gtk-4.0
-install -m 0644 ../Documentation/webkitdomgtk-4.0/html/* \
- $PKG/usr/share/gtk-doc/html/webkitdomgtk-4.0
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a ../NEWS $PKG/usr/doc/$PRGNAM-$VERSION