extra/webkit2gtk-4.1 to 2.38.0-2

This commit is contained in:
Kevin Mihelich 2022-09-22 23:43:13 +00:00
parent 2e80acdd64
commit a6388d17e8

View file

@ -6,28 +6,74 @@
highmem=1
pkgname=webkit2gtk-4.1
pkgver=2.36.7
pkgrel=1
pkgbase=webkit2gtk-4.1
pkgname=(webkit2gtk-4.1 webkit2gtk-4.1-docs)
pkgver=2.38.0
pkgrel=2
pkgdesc="Web content engine for GTK"
url="https://webkitgtk.org"
arch=(x86_64)
license=(custom)
depends=(cairo fontconfig freetype2 libgcrypt glib2 gtk3 harfbuzz harfbuzz-icu
icu libjpeg libsoup3 libxml2 zlib libpng sqlite atk libwebp at-spi2-core
libegl libgl libgles libwpe wpebackend-fdo libxslt libsecret libtasn1
enchant libx11 libxext libice libxt wayland libnotify hyphen openjpeg2
woff2 libsystemd bubblewrap libseccomp xdg-dbus-proxy gstreamer
gst-plugins-base-libs libmanette)
makedepends=(cmake ninja gtk-doc python ruby gobject-introspection
wayland-protocols systemd gst-plugins-bad gperf)
optdepends=('geoclue: Geolocation support'
'gst-plugins-good: media decoding'
'gst-plugins-bad: media decoding'
'gst-libav: nonfree media decoding')
depends=(
at-spi2-core
atk
bubblewrap
cairo
enchant
fontconfig
freetype2
glib2
gst-plugins-base-libs
gstreamer
gtk3
harfbuzz
harfbuzz-icu
hyphen
icu
libegl
libgcrypt
libgl
libgles
libice
libjpeg
libmanette
libnotify
libpng
libseccomp
libsecret
libsoup3
libsystemd
libtasn1
libwebp
libwpe
libx11
libxext
libxml2
libxslt
libxt
openjpeg2
sqlite
wayland
woff2
wpebackend-fdo
xdg-dbus-proxy
zlib
)
makedepends=(
cmake
gi-docgen
gobject-introspection
gperf
gst-plugins-bad
ninja
python
ruby
systemd
wayland-protocols
)
options=(debug)
source=($url/releases/webkitgtk-$pkgver.tar.xz{,.asc})
sha256sums=('0c260cf2b32f0481d017670dfed1b61e554967cd067195606c9f9eb5fe731743'
sha256sums=('f9ce6375a3b6e1329b0b609f46921e2627dc7ad6224b37b967ab2ea643bc0fbd'
'SKIP')
validpgpkeys=('D7FCF61CF9A2DEAB31D81BD3F3D322D0EC4582C3' # Carlos Garcia Campos <cgarcia@igalia.com>
'5AA3BC334FD7E3369E7C77B291C559DBE4C9123B') # Adrián Pérez de Castro <aperez@igalia.com>
@ -52,19 +98,26 @@ build() {
-DCMAKE_INSTALL_LIBEXECDIR=lib \
-DCMAKE_SKIP_RPATH=ON \
-DUSE_SOUP2=OFF \
-DENABLE_GTKDOC=ON \
-DENABLE_DOCUMENTATION=ON \
-DENABLE_MINIBROWSER=ON
cmake --build build
}
package() {
package_webkit2gtk-4.1() {
depends+=(libwpe-1.0.so libWPEBackend-fdo-1.0.so)
provides+=(libjavascriptcoregtk-4.1.so libwebkit2gtk-4.1.so)
optdepends=('geoclue: Geolocation support'
'gst-plugins-good: media decoding'
'gst-plugins-bad: media decoding'
'gst-libav: nonfree media decoding')
DESTDIR="$pkgdir" cmake --install build
rm -r "$pkgdir/usr/bin"
mkdir -p doc/usr/share
mv {"$pkgdir",doc}/usr/share/gtk-doc
cd webkitgtk-$pkgver
find Source -name 'COPYING*' -or -name 'LICENSE*' -print0 | sort -z |
while IFS= read -d $'\0' -r _f; do
@ -75,4 +128,11 @@ package() {
install -Dm644 /dev/stdin "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
# vim:set sw=2 et:
package_webkit2gtk-4.1-docs() {
pkgdesc+=" (documentation)"
depends=()
mv doc/* "$pkgdir"
}
# vim:set sw=2 sts=-1 et: