#Packager: Dimitris Tzemos pkgname=webkit2gtk _pkgname=webkitgtk pkgver=2.32.1 pkgrel=1dj source=("https://webkitgtk.org/releases/$_pkgname-${pkgver}.tar.xz" "unhide-deprecated-api.patch") url=http://www.webkit.org docs=("ChangeLog" "INSTALL" "LICENSE" "README") slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| " WebKitGTK+ (GTK+ port of the WebKit)" "WebKit/GTK+ is the new GTK+ port of the WebKit, an open-source web" "content engine that powers numerous applications such as web" "browsers, email clients, feed readers, web and text editors, and a" "whole lot more." "" "http://webkit.org http://webkitgtk.org" ) build() { cd $startdir/src/${_pkgname}-$pkgver patch -p1 < $startdir/src/unhide-deprecated-api.patch || return 1 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.0 \ -DENABLE_GAMEPAD=OFF \ -DENABLE_MINIBROWSER=ON \ -DUSE_SYSTEMD=OFF \ -Wno-dev \ -G Ninja \ .. || return 1 # 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) || return 1 DESTDIR=$PKG ninja -j1 install || return 1 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 }