diff options
author | Danny Rawlins <contact@romster.me> | 2021-10-03 15:57:01 +1100 |
---|---|---|
committer | Danny Rawlins <contact@romster.me> | 2021-10-03 15:57:01 +1100 |
commit | 83be758e9d499d6e8056fc7da083f198da1c9c02 (patch) | |
tree | d136080161e5a2f989a51b510db3fc76fdd05d73 /webkitgtk-40/Pkgfile | |
parent | 55a2f649770752ff714e031b4279ae8a3c741076 (diff) | |
download | opt-83be758e9d499d6e8056fc7da083f198da1c9c02.tar.gz opt-83be758e9d499d6e8056fc7da083f198da1c9c02.tar.xz |
[notify] webkitgtk renamed to webkitgtk-40 to make way for new webkitgtk version
Diffstat (limited to 'webkitgtk-40/Pkgfile')
-rw-r--r-- | webkitgtk-40/Pkgfile | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/webkitgtk-40/Pkgfile b/webkitgtk-40/Pkgfile new file mode 100644 index 000000000..40fba8c2a --- /dev/null +++ b/webkitgtk-40/Pkgfile @@ -0,0 +1,45 @@ +# Description: Small, efficient and fast rendering engine for Web Browsers. +# URL: https://www.webkitgtk.org/ +# Maintainer: Danny Rawlins, crux at romster dot me +# Depends on: gst-plugins-base gtk gtk3 icu harfbuzz hyphen libseccomp libsecret libsoup libwebp libxslt ruby woff2 xorg-libxt +# Optional: enchant libnotify geoclue openjpeg2 xdg-dbus-proxy bubblewrap wpebackend-fdo libmanette + +name=webkitgtk-40 +version=2.32.4 +release=1 +source=(https://webkitgtk.org/releases/webkitgtk-$version.tar.xz) + +build() { + # Make sure we do not have ccache masquerade directory in PATH. + [ -e '/usr/bin/ccache' ] && PATH="$(echo ${PATH} | awk -v RS=: -v ORS=: '/ccache/ {next} {print}' | sed 's/:*$//')" + + prt-get isinst openjpeg2 || PKGMK_WEBKITGTK40+=' -DUSE_OPENJPEG=OFF' + prt-get isinst enchant || PKGMK_WEBKITGTK40+=' -DENABLE_SPELLCHECK=OFF' + prt-get isinst libnotify && PKGMK_WEBKITGTK40+=' -DUSE_LIBNOTIFY=ON' || PKGMK_WEBKITGTK40+=' -DUSE_LIBNOTIFY=OFF' + prt-get isinst geoclue && PKGMK_WEBKITGTK40+=' -DENABLE_GEOLOCATION=ON' || PKGMK_WEBKITGTK40+=' -DENABLE_GEOLOCATION=OFF' + prt-get isinst bubblewrap xdg-dbus-proxy && PKGMK_WEBKITGTK40+=' -DENABLE_BUBBLEWRAP_SANDBOX=ON' \ + || PKGMK_WEBKITGTK40+=' -DENABLE_BUBBLEWRAP_SANDBOX=OFF' + prt-get isinst wpebackend-fdo || PKGMK_WEBKITGTK40+=' -DUSE_WPE_RENDERER=OFF' + prt-get isinst libmanette || PKGMK_WEBKITGTK40+=' -DENABLE_GAMEPAD=OFF' + + cmake -S webkitgtk-$version -B build -G Ninja ${PKGMK_WEBKITGTK40} \ + -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_CXX_FLAGS_RELEASE="$CXXFLAGS -DNDEBUG" \ + -D CMAKE_C_FLAGS_RELEASE="$CFLAGS -DNDEBUG" \ + -D CMAKE_SKIP_RPATH:BOOL=ON \ + -D PORT=GTK \ + -D ENABLE_MINIBROWSER=ON \ + -D USE_SYSTEM_MALLOC=ON \ + -D USE_SYSTEMD=OFF \ + -Wno-dev + + cmake --build build + DESTDIR=$PKG cmake --install build + + mv $PKG/usr/bin/WebKitWebDriver{,-40} + + rm -r $PKG/usr/share/locale +} |