# Description: Small, efficient and fast rendering engine for Web Browsers. # URL: https://www.webkitgtk.org/ # Maintainer: Danny Rawlins, crux at romster dot me # Packager: Brett Goulder, predatorfreak at dcaf-security dot org # Depends on: cmake gst-plugins-base gtk gtk3 harfbuzz-icu libgudev libsecret libsoup libwebp ruby xorg-libxt # Optional: enchant libnotify name=webkitgtk version=2.14.5 release=1 source=(https://webkitgtk.org/releases/$name-$version.tar.xz) build() { cd $name-$version # setting CC and CXX breaks compilation if [ -n "$(pkginfo -i | grep '^ccache ')" ]; then unset CC CXX export PATH="/usr/lib/ccache/:$PATH" fi local SPELLCHECK if [ "$(pkginfo -i | grep '^enchant ')" ]; then SPELLCHECK='' else SPELLCHECK='-DENABLE_SPELLCHECK=OFF' fi local NOTIFY if [ "$(pkginfo -i | grep '^libnotify ')" ]; then NOTIFY='-DUSE_LIBNOTIFY=ON' else NOTIFY='-DUSE_LIBNOTIFY=OFF' fi install -d build cd build cmake .. \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX:PATH=/usr \ -DCMAKE_INSTALL_LIBDIR:PATH=/usr/lib \ -DCMAKE_INSTALL_LIBEXECDIR:PATH=/usr/lib \ -DCMAKE_SKIP_RPATH:BOOL=ON \ -DPORT=GTK \ -DUSE_LIBHYPHEN=OFF \ -DENABLE_MINIBROWSER=ON \ -Wno-dev \ -DENABLE_GEOLOCATION=OFF $SPELLCHECK $NOTIFY make make DESTDIR=$PKG install rm -r $PKG/usr/share/locale }