# Contributor: Jiri Horner # Maintainer: Jiri Horner pkgname=webkit2gtk pkgver=2.14.1 pkgrel=0 pkgdesc="portable web rendering engine WebKit for GTK+" url="http://webkitgtk.org/" arch="x86 x86_64" license="LGPL2+ BSD" depends="" depends_dev="" makedepends="$depends_dev bison cmake enchant-dev flex gnutls-dev gobject-introspection-dev gperf gst-plugins-base1-dev gstreamer1-dev gtk+3.0-dev gtk-doc hyphen-dev icu-dev libjpeg-turbo-dev libnotify-dev libpng-dev libsecret-dev libsoup-dev libwebp-dev libxml2-dev libxslt-dev libxt-dev mesa-dev pango-dev paxmark ruby sqlite-dev " install= replaces="webkit" subpackages="$pkgname-dev $pkgname-doc $pkgname-lang" source="http://webkitgtk.org/releases/webkitgtk-$pkgver.tar.xz musl-fixes.patch " _srcdir="${srcdir}/webkitgtk-${pkgver}" _builddir="${srcdir}/build" prepare() { cd "$_srcdir" for i in $source; do case "$i" in *.patch) msg "Applying $i" patch -p1 -i "$srcdir"/$i || return 1 ;; esac done rm -r Source/ThirdParty/gtest/ || return 1 rm -r Source/ThirdParty/qunit/ || return 1 } build() { mkdir "$_builddir" cd "$_builddir" cmake -DPORT=GTK \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_SKIP_RPATH=ON \ -DCMAKE_INSTALL_PREFIX=/usr \ -DLIB_INSTALL_DIR=/usr/lib \ -DLIBEXEC_INSTALL_DIR=/usr/lib/webkit2gtk-4.0 \ -DENABLE_GTKDOC=ON \ -DENABLE_GEOLOCATION=OFF \ -DENABLE_PLUGIN_PROCESS_GTK2=OFF \ "$_srcdir" || return 1 make || return 1 } package() { cd "$_builddir" make DESTDIR="$pkgdir" install || return 1 # needed for JIT paxmark -m "$pkgdir"/usr/lib/webkit2gtk-4.0/WebKitWebProcess || return 1 } md5sums="8d6c60dc41604d3bbd43165a674c07e5 webkitgtk-2.14.1.tar.xz 4e74c88f7e9522c6a573f9d588da9bc4 musl-fixes.patch" sha256sums="2e2d76c328de65bed6e0e4f096b2720a366654b27fc1af0830ece90bc4b7ceb5 webkitgtk-2.14.1.tar.xz 5cc1b9790056b4430b8a7b357f376ddcae43e38ab228d6a259c0abdc7ab4b892 musl-fixes.patch" sha512sums="7b39c4f75e2fd8e5e833808597444f495ece70e79dbe49f27e4c6cbc486583954eac66b6b4324db83f2c5c92ef9f9e8f3b2c6c8046d5f326e551aecb989efa28 webkitgtk-2.14.1.tar.xz 95f88563cb83387e3f44781dd8b00c5adf53e352869ca1d217c6cfc0895e9b7680e24820b8df340316564dcbc4cb65eb502fb003089b4805b9ac9f583f454013 musl-fixes.patch"