1 # Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
2 # Contributor: Eric Bélanger <eric@archlinux.org>
7 pkgdesc="Web content engine for GTK"
8 url="https://webkitgtk.org"
11 depends=(cairo fontconfig freetype2 libgcrypt glib2 gtk3 harfbuzz harfbuzz-icu
12 icu libjpeg libsoup3 libxml2 zlib libpng sqlite atk libwebp at-spi2-core
13 libegl libgl libgles libwpe wpebackend-fdo libxslt libsecret libtasn1
14 enchant libx11 libxext libice libxt wayland libnotify hyphen openjpeg2
15 woff2 libsystemd bubblewrap libseccomp xdg-dbus-proxy gstreamer
16 gst-plugins-base-libs libmanette)
17 makedepends=(cmake ninja gtk-doc python ruby gobject-introspection
18 wayland-protocols systemd gst-plugins-bad gperf)
19 optdepends=('geoclue: Geolocation support'
20 'gst-plugins-good: media decoding'
21 'gst-plugins-bad: media decoding'
22 'gst-libav: nonfree media decoding')
24 source=($url/releases/webkitgtk-$pkgver.tar.xz{,.asc})
25 sha256sums=('1193bc821946336776f0dfa5e0dca5651f1e57157eda12da4721d2441f24a61a'
27 validpgpkeys=('D7FCF61CF9A2DEAB31D81BD3F3D322D0EC4582C3' # Carlos Garcia Campos <cgarcia@igalia.com>
28 '5AA3BC334FD7E3369E7C77B291C559DBE4C9123B') # Adrián Pérez de Castro <aperez@igalia.com>
35 # Produce minimal debug info: 4.3 GB of debug data makes the
36 # build too slow and is too much to package for debuginfod
40 cmake -S webkitgtk-$pkgver -B build -G Ninja \
42 -DCMAKE_BUILD_TYPE=Release \
43 -DCMAKE_INSTALL_PREFIX=/usr \
44 -DCMAKE_INSTALL_LIBDIR=lib \
45 -DCMAKE_INSTALL_LIBEXECDIR=lib \
46 -DCMAKE_SKIP_RPATH=ON \
49 -DENABLE_MINIBROWSER=ON
54 depends+=(libwpe-1.0.so libWPEBackend-fdo-1.0.so)
55 provides+=(libjavascriptcoregtk-4.1.so libwebkit2gtk-4.1.so)
57 DESTDIR="$pkgdir" cmake --install build
59 rm -r "$pkgdir/usr/bin"
62 find Source -name 'COPYING*' -or -name 'LICENSE*' -print0 | sort -z |
63 while IFS= read -d $'\0' -r _f; do
68 install -Dm644 /dev/stdin "$pkgdir/usr/share/licenses/$pkgname/LICENSE"