mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-26 22:06:35 +01:00
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>
This commit is contained in:
parent
4c40e21dc4
commit
5d3bc8d1f5
2 changed files with 25 additions and 15 deletions
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue