archrelease: copy trunk to extra-x86_64
[arch-packages.git] / wpewebkit / trunk / PKGBUILD
blobd8e705eba8f18fab5271a8d610658c083a1341ac
1 # Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
3 pkgname=wpewebkit
4 pkgver=2.34.2
5 pkgrel=1
6 pkgdesc="Web content engine for embedded devices"
7 url="https://wpewebkit.org"
8 arch=(x86_64)
9 license=(custom)
10 depends=(cairo fontconfig freetype2 glib2 harfbuzz harfbuzz-icu icu libjpeg
11          libepoxy libgcrypt libsoup3 libxml2 zlib libpng sqlite libwebp libwpe
12          atk at-spi2-atk openjpeg2 woff2 libtasn1 libxslt libsystemd bubblewrap
13          libseccomp xdg-dbus-proxy gstreamer gst-plugins-base-libs libxkbcommon
14          wayland wpebackend-fdo)
15 makedepends=(cmake ninja gtk-doc python ruby systemd gst-plugins-bad gperf
16              wayland-protocols)
17 optdepends=('geoclue: Geolocation support'
18             'gst-plugins-good: media decoding'
19             'gst-plugins-bad: media decoding'
20             'gst-libav: nonfree media decoding')
21 source=($url/releases/$pkgname-$pkgver.tar.xz{,.asc} fix-doc.diff)
22 sha256sums=('b1a3733c2d486c4da27f9636ccc39947da7d84258cd7a24a6fb0b842c9595c0b'
23             'SKIP'
24             'd8406f972334b22c7bcad4b105f4fe3e1c9f3dda5b396dbf912afa01fc121d8f')
25 validpgpkeys=('D7FCF61CF9A2DEAB31D81BD3F3D322D0EC4582C3'  # Carlos Garcia Campos <cgarcia@igalia.com>
26               '5AA3BC334FD7E3369E7C77B291C559DBE4C9123B') # Adrián Pérez de Castro <aperez@igalia.com>
28 prepare() {
29   cd $pkgname-$pkgver
30   patch -Np1 -i ../fix-doc.diff
33 build() {
34   cmake -S $pkgname-$pkgver -B build -G Ninja \
35     -DPORT=WPE \
36     -DCMAKE_BUILD_TYPE=Release \
37     -DCMAKE_INSTALL_PREFIX=/usr \
38     -DCMAKE_INSTALL_LIBDIR=lib \
39     -DCMAKE_INSTALL_LIBEXECDIR=lib \
40     -DCMAKE_SKIP_RPATH=ON \
41     -DENABLE_GTKDOC=ON \
42     -DENABLE_MINIBROWSER=ON
43   cmake --build build
46 package() {
47   depends+=(libwpe-1.0.so libWPEBackend-fdo-1.0.so)
48   provides+=(libWPEWebKit-1.1.so)
50   DESTDIR="$pkgdir" cmake --install build
52   cd $pkgname-$pkgver
53   find Source -name 'COPYING*' -or -name 'LICENSE*' -print0 | sort -z |
54     while IFS= read -d $'\0' -r _f; do
55       echo "### $_f ###"
56       cat "$_f"
57       echo
58     done |
59     install -Dm644 /dev/stdin "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
62 # vim:set sw=2 et: