aboutsummaryrefslogtreecommitdiff
path: root/libraries/webkit2gtk
diff options
context:
space:
mode:
authorMatteo Bernardini <ponce@slackbuilds.org>2021-04-08 19:28:02 +0200
committerRobby Workman <rworkman@slackbuilds.org>2021-04-18 00:08:25 -0500
commit5d3bc8d1f50856c8a88216c0bbc41d9003b9eef7 (patch)
tree9368ed778027f4de4ed9f1f96e2f158d4259e344 /libraries/webkit2gtk
parent4c40e21dc4a3cc6466b64071420b1465115582c3 (diff)
libraries/webkit2gtk: Updated for version 2.32.0, switch to ninja.
Added the dependencies bubblewrap, enchant2, gst-plugins-bad, libseccomp, wpebackend-fdo and xdg-dbus-proxy Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'libraries/webkit2gtk')
-rw-r--r--libraries/webkit2gtk/webkit2gtk.SlackBuild32
-rw-r--r--libraries/webkit2gtk/webkit2gtk.info8
2 files changed, 25 insertions, 15 deletions
diff --git a/libraries/webkit2gtk/webkit2gtk.SlackBuild b/libraries/webkit2gtk/webkit2gtk.SlackBuild
index d54d9bfc36874..76f9eaa4cf5c9 100644
--- a/libraries/webkit2gtk/webkit2gtk.SlackBuild
+++ b/libraries/webkit2gtk/webkit2gtk.SlackBuild
@@ -24,7 +24,7 @@
PRGNAM=webkit2gtk
SRCNAM=webkitgtk
-VERSION=${VERSION:-2.20.5}
+VERSION=${VERSION:-2.32.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -55,10 +55,6 @@ else
LIBDIRSUFFIX=""
fi
-# This is needed to fix build issue on single make job
-# Thanks to ponce for investigating this issue.
-export MAKEFLAGS=${MAKEFLAGS:--j2}
-
set -eu
rm -rf $PKG
@@ -77,16 +73,30 @@ find -L . \
mkdir -p build
cd build
cmake -DPORT=GTK \
+ -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
+ -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_BUILD_TYPE=Release \
- -DCMAKE_SKIP_RPATH=ON \
+ -DCMAKE_SKIP_RPATH=ON \
-DCMAKE_INSTALL_PREFIX=/usr \
- -DLIB_INSTALL_DIR=/usr/lib${LIBDIRSUFFIX} \
+ -DLIB_INSTALL_DIR=/usr/lib${LIBDIRSUFFIX} \
-DLIBEXEC_INSTALL_DIR=/usr/lib${LIBDIRSUFFIX}/webkit2gtk-4.0 \
- -DENABLE_MEDIA_SOURCE=NO \
- -DUSE_GSTREAMER_GL=NO \
+ -DENABLE_GAMEPAD=OFF \
+ -DENABLE_MINIBROWSER=ON \
+ -DUSE_SYSTEMD=OFF \
+ -Wno-dev \
+ -G Ninja \
..
-make
-make install DESTDIR=$PKG
+
+# 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 -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/* \
+ $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
diff --git a/libraries/webkit2gtk/webkit2gtk.info b/libraries/webkit2gtk/webkit2gtk.info
index 8c4164b2e7cc2..9c774b5b180f3 100644
--- a/libraries/webkit2gtk/webkit2gtk.info
+++ b/libraries/webkit2gtk/webkit2gtk.info
@@ -1,10 +1,10 @@
PRGNAM="webkit2gtk"
-VERSION="2.20.5"
+VERSION="2.32.0"
HOMEPAGE="https://www.webkitgtk.org/"
-DOWNLOAD="https://www.webkitgtk.org/releases/webkitgtk-2.20.5.tar.xz"
-MD5SUM="72a05f6a4dc1c78b079590a8fd280401"
+DOWNLOAD="https://www.webkitgtk.org/releases/webkitgtk-2.32.0.tar.xz"
+MD5SUM="a24a9441ad01617be9ac95097cd31e08"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-REQUIRES="geoclue2 hyphen libwebp woff2"
+REQUIRES="bubblewrap enchant2 geoclue2 gst-plugins-bad libseccomp wpebackend-fdo xdg-dbus-proxy"
MAINTAINER="Willy Sudiarto Raharjo"
EMAIL="willysr@slackbuilds.org"