# Description: Small, efficient and fast rendering engine for Web Browsers. # URL: https://www.webkitgtk.org/ # Maintainer: Aaron Ball, nullspoon at oper dot io # Depends on: gst-plugins-base gtk4 hyphen icu lcms2 libseccomp libsecret libsoup3 xorg-libxcomposite libwebp libxslt ruby woff2 xorg-libxt gi-docgen openjpeg2 libnotify enchant unifdef libavif bubblewrap libjxl # Optional: name=webkitgtk-6.0 #version=2.43.4 # Stable version=2.46.2 # Unstable release=1 source=(https://webkitgtk.org/releases/webkitgtk-${version}.tar.xz pipewire.patch) build() { # fail the build if dependencies are not met if [ ! -f /usr/include/harfbuzz/hb-icu.h ]; then printf '\e[1;31mYou need to install icu, then rebuild harfbuzz for webkitgtk to work, quitting...\e[m\n' >&2 return 1 fi # Bug: https://bugs.webkit.org/show_bug.cgi?id=239682 # Fix: https://github.com/WebKit/WebKit/pull/5671 # Without this, the pipewire socket cannot be accessed because of bubblewrap patch \ webkitgtk-${version}/Source/WebKit/UIProcess/Launcher/glib/BubblewrapLauncher.cpp \ pipewire.patch export CFLAGS='-g1' export CXXFLAGS='-g1' cmake -S webkitgtk-${version} -B build -G Ninja \ -D CMAKE_INSTALL_PREFIX:PATH=/usr \ -D CMAKE_INSTALL_LIBDIR:PATH=/usr/lib \ -D CMAKE_INSTALL_LIBEXECDIR:PATH=/usr/lib \ -D CMAKE_BUILD_TYPE=Release \ -D CMAKE_SKIP_RPATH=ON \ -D PORT=GTK \ -D USE_GTK4=ON \ -D USE_LIBBACKTRACE=OFF \ -D USE_SOUP2=OFF \ -D ENABLE_GAMEPAD=OFF \ -D ENABLE_JOURNALD_LOG=OFF \ -D ENABLE_MINIBROWSER=ON \ -D ENABLE_X11_TARGET=OFF \ -D ENABLE_WAYLAND_TARGET=ON \ -D ENABLE_WEBINSPECTORUI=ON \ -D USE_SYSTEM_SYSPROF_CAPTURE=NO cmake --build build -j "${JOBS}" DESTDIR=$PKG cmake --install build rm -r $PKG/usr/share/locale }