summaryrefslogtreecommitdiffstats
path: root/libraries/webkit2gtk4.1
diff options
context:
space:
mode:
author Willy Sudiarto Raharjo2022-02-02 14:35:17 +0100
committer Willy Sudiarto Raharjo2022-02-02 14:35:17 +0100
commitfe22cf67fecfadcc4479047bca64f2b92df888e8 (patch)
tree442851e206a0aacff9b5f8c9f6e6d8ed699ac496 /libraries/webkit2gtk4.1
parent8c7ac41a74df0273b343af290da0ed259d8c843a (diff)
downloadslackbuilds-fe22cf67fecfadcc4479047bca64f2b92df888e8.tar.gz
libraries/webkit2gtk4.1: Added (Web content rendering)
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'libraries/webkit2gtk4.1')
-rw-r--r--libraries/webkit2gtk4.1/README9
-rw-r--r--libraries/webkit2gtk4.1/slack-desc19
-rw-r--r--libraries/webkit2gtk4.1/unhide-deprecated-api.patch12
-rw-r--r--libraries/webkit2gtk4.1/webkit2gtk4.1.SlackBuild121
-rw-r--r--libraries/webkit2gtk4.1/webkit2gtk4.1.info10
5 files changed, 171 insertions, 0 deletions
diff --git a/libraries/webkit2gtk4.1/README b/libraries/webkit2gtk4.1/README
new file mode 100644
index 0000000000..962253a929
--- /dev/null
+++ b/libraries/webkit2gtk4.1/README
@@ -0,0 +1,9 @@
+WebKitGTK+ is a full-featured port of the WebKit rendering engine,
+suitable for projects requiring any kind of web integration, from
+hybrid HTML/CSS applications to full-fledged web browsers.
+
+It offers WebKit's full functionality and is useful in a wide range
+of systems from desktop computers to embedded systems like phones,
+tablets, and televisions.
+
+NOTE: This package build the 4.1 WebKit API
diff --git a/libraries/webkit2gtk4.1/slack-desc b/libraries/webkit2gtk4.1/slack-desc
new file mode 100644
index 0000000000..617429cb19
--- /dev/null
+++ b/libraries/webkit2gtk4.1/slack-desc
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.
+# Line up the first '|' above the ':' following the base package name, and
+# the '|' on the right side marks the last column you can put a character in.
+# You must make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':' except on otherwise blank lines.
+
+ |-----handy-ruler------------------------------------------------------|
+webkit2gtk4.1: webkit2gtk4.1 (Web content rendering)
+webkit2gtk4.1:
+webkit2gtk4.1: WebKitGTK+ is a full-featured port of the WebKit rendering engine,
+webkit2gtk4.1: suitable for projects requiring any kind of web integration, from
+webkit2gtk4.1: hybrid HTML/CSS applications to full-fledged web browsers.
+webkit2gtk4.1: It offers WebKit's full functionality and is useful in a wide range
+webkit2gtk4.1: of systems from desktop computers to embedded systems like phones,
+webkit2gtk4.1: tablets, and televisions.
+webkit2gtk4.1:
+webkit2gtk4.1: https://www.webkitgtk.org/
+webkit2gtk4.1:
diff --git a/libraries/webkit2gtk4.1/unhide-deprecated-api.patch b/libraries/webkit2gtk4.1/unhide-deprecated-api.patch
new file mode 100644
index 0000000000..1133632b2d
--- /dev/null
+++ b/libraries/webkit2gtk4.1/unhide-deprecated-api.patch
@@ -0,0 +1,12 @@
+diff --git a/Source/WTF/wtf/Platform.h b/Source/WTF/wtf/Platform.h
+index 6fa104c82992..8c8640c3dee7 100644
+--- a/Source/WTF/wtf/Platform.h
++++ b/Source/WTF/wtf/Platform.h
+@@ -113,7 +113,6 @@
+
+ /* FIXME: This does not belong in Platform.h and should instead be included in another mechanism (compiler option, prefix header, config.h, etc) */
+ /* ICU configuration. Some of these match ICU defaults on some platforms, but we would like them consistently set everywhere we build WebKit. */
+-#define U_HIDE_DEPRECATED_API 1
+ #define U_SHOW_CPLUSPLUS_API 0
+ #ifdef __cplusplus
+ #define UCHAR_TYPE char16_t
diff --git a/libraries/webkit2gtk4.1/webkit2gtk4.1.SlackBuild b/libraries/webkit2gtk4.1/webkit2gtk4.1.SlackBuild
new file mode 100644
index 0000000000..b58d4908e1
--- /dev/null
+++ b/libraries/webkit2gtk4.1/webkit2gtk4.1.SlackBuild
@@ -0,0 +1,121 @@
+#!/bin/bash
+#
+# Slackware build script for webkit2gtk4.1
+#
+# Copyright 2022 Willy Sudiarto Raharjo <willysr@slackbuilds.org>
+# All rights reserved.
+#
+# Redistribution and use of this script, with or without modification, is
+# permitted provided that the following conditions are met:
+#
+# 1. Redistributions of this script must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+#
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
+# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
+# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+cd $(dirname $0) ; CWD=$(pwd)
+
+PRGNAM=webkit2gtk4.1
+SRCNAM=webkitgtk
+VERSION=${VERSION:-2.34.4}
+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}
+
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) ARCH=i586 ;;
+ arm*) ARCH=arm ;;
+ *) ARCH=$( uname -m ) ;;
+ esac
+fi
+
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
+else
+ SLKCFLAGS="-O2"
+ LIBDIRSUFFIX=""
+fi
+
+set -eu
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $SRCNAM-$VERSION
+tar xvf $CWD/$SRCNAM-$VERSION.tar.xz
+cd $SRCNAM-$VERSION
+chown -R root:root .
+find -L . \
+ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
+ -o -perm 511 \) -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+
+patch -p1 < $CWD/unhide-deprecated-api.patch
+
+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_INSTALL_PREFIX=/usr \
+ -DLIB_INSTALL_DIR=/usr/lib${LIBDIRSUFFIX} \
+ -DLIBEXEC_INSTALL_DIR=/usr/lib${LIBDIRSUFFIX}/webkit2gtk-4.1 \
+ -DENABLE_GAMEPAD=OFF \
+ -DENABLE_MINIBROWSER=ON \
+ -DUSE_SYSTEMD=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}" -j$(expr $(nproc) / 2)
+DESTDIR=$PKG $NINJA -j1 install
+
+mkdir -p $PKG/usr/share/gtk-doc/html/webkit{2,dom}gtk-4.1
+install -m 0644 ../Documentation/webkit2gtk-4.0/html/* \
+ $PKG/usr/share/gtk-doc/html/webkit2gtk-4.1
+install -m 0644 ../Documentation/webkitdomgtk-4.0/html/* \
+ $PKG/usr/share/gtk-doc/html/webkitdomgtk-4.1
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a ../NEWS $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+
+mkdir -p $PKG/install
+cat $CWD/slack-desc > $PKG/install/slack-desc
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
diff --git a/libraries/webkit2gtk4.1/webkit2gtk4.1.info b/libraries/webkit2gtk4.1/webkit2gtk4.1.info
new file mode 100644
index 0000000000..b27cbdd640
--- /dev/null
+++ b/libraries/webkit2gtk4.1/webkit2gtk4.1.info
@@ -0,0 +1,10 @@
+PRGNAM="webkit2gtk4.1"
+VERSION="2.34.4"
+HOMEPAGE="https://www.webkitgtk.org/"
+DOWNLOAD="https://www.webkitgtk.org/releases/webkitgtk-2.34.4.tar.xz"
+MD5SUM="7eb441141b0185913b263dd964183e3f"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+REQUIRES="bubblewrap geoclue2 gst-plugins-bad wpebackend-fdo xdg-dbus-proxy libsoup3"
+MAINTAINER="Willy Sudiarto Raharjo"
+EMAIL="willysr@slackbuilds.org"