# Contributor: Jiri Horner # Maintainer: Jiri Horner pkgname=webkit2gtk pkgver=2.14.2 pkgrel=1 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="2fe3cadbc546d93ca68a13756c2be015 webkitgtk-2.14.2.tar.xz 4e74c88f7e9522c6a573f9d588da9bc4 musl-fixes.patch" sha256sums="2edbcbd5105046aea55af9671c4de8deedb5b0e3567c618034d440a760675556 webkitgtk-2.14.2.tar.xz 5cc1b9790056b4430b8a7b357f376ddcae43e38ab228d6a259c0abdc7ab4b892 musl-fixes.patch" sha512sums="e1e344660c1aa38f2911aab334581b015bdbd6fa3bef6f1cd67560b86f1b183bf91cafb94bd4783f4660ecad94dc662ec4a342d5bb2420f284150adc21f79beb webkitgtk-2.14.2.tar.xz 95f88563cb83387e3f44781dd8b00c5adf53e352869ca1d217c6cfc0895e9b7680e24820b8df340316564dcbc4cb65eb502fb003089b4805b9ac9f583f454013 musl-fixes.patch"