blob: d304c58ad171e120d8bd9c60b7488d2bbec18a79 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
|
# Maintainer:
# Contributor: Adrià Arrufat <swiftscythe@gmail.com>
# Contributor: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
# Contributor: Gaetan Bisson <bisson@archlinux.org>
# Contributor: Eric Bélanger <eric@archlinux.org>
_gitname="webkit2gtk"
_pkgname="$_gitname-unstable"
pkgname="$_pkgname"
pkgver=2.45.4
pkgrel=1
pkgdesc="Web content engine for GTK"
url="https://webkitgtk.org/"
license=(custom)
arch=(x86_64)
depends=(
at-spi2-core
atk
bubblewrap
cairo
enchant
fontconfig
freetype2
glib2
gst-plugins-bad-libs
gst-plugins-base-libs
gstreamer
gtk4
harfbuzz
harfbuzz-icu
hyphen
icu
libavif
libdrm
libegl
libepoxy
libgcrypt
libgl
libgles
libjpeg
libjxl
libmanette
libpng
libseccomp
libsecret
libsoup3
libsystemd
libtasn1
libwebp
libwpe
libx11
libxcomposite
libxml2
libxslt
libxt
mesa
openjpeg2
sqlite
wayland
woff2
wpebackend-fdo
xdg-dbus-proxy
zlib
)
makedepends=(
cmake
glib2-devel
gobject-introspection
gperf
gst-plugins-bad
ninja
python
ruby
systemd
unifdef
wayland-protocols
)
optdepends=(
'geoclue: Geolocation support'
'gst-libav: nonfree media decoding'
'gst-plugins-bad: media decoding'
'gst-plugins-good: media decoding'
)
options=('!emptydirs' '!lto')
_pkgsrc="webkitgtk-$pkgver"
source=(
"$url/releases/$_pkgsrc.tar.xz"{,.asc}
)
sha256sums=(
'bdc4c197a25c6fd8fd8e85b360842d490817b0326eba73149424687133d502ac'
'SKIP'
)
validpgpkeys=(
'D7FCF61CF9A2DEAB31D81BD3F3D322D0EC4582C3' # Carlos Garcia Campos <cgarcia@igalia.com>
'5AA3BC334FD7E3369E7C77B291C559DBE4C9123B' # Adrián Pérez de Castro <aperez@igalia.com>
)
conflicts=(webkitgtk-6.0)
provides=(webkitgtk-6.0)
build() {
local cmake_options=(
-B build
-S "$_pkgsrc"
-G Ninja
-DPORT=GTK
-DCMAKE_BUILD_TYPE=Release
-DCMAKE_INSTALL_PREFIX=/usr
-DCMAKE_INSTALL_LIBDIR=lib
-DCMAKE_INSTALL_LIBEXECDIR=lib
-DCMAKE_SKIP_RPATH=ON
-DUSE_GTK4=ON
-DUSE_LIBBACKTRACE=OFF
-DUSE_SOUP2=OFF
-DENABLE_DOCUMENTATION=ON
-DENABLE_MINIBROWSER=ON
-DENABLE_DOCUMENTATION=OFF
-DENABLE_WEB_RTC=ON
-DUSE_AVIF=ON
-DUSE_GSTREAMER_WEBRTC=ON
-DUSE_JPEGXL=ON
-Wno-dev
)
# JITted code crashes when CET is used
CFLAGS+=' -fcf-protection=none'
CXXFLAGS+=' -fcf-protection=none'
# Produce minimal debug info: 4.3 GB of debug data makes the
# build too slow and is too much to package for debuginfod
CFLAGS+=' -g1'
CXXFLAGS+=' -g1'
cmake "${cmake_options[@]}"
cmake --build build
}
package() {
depends+=(
libWPEBackend-fdo-1.0.so
libwpe-1.0.so
)
provides+=(
libjavascriptcoregtk-6.0.so
libwebkitgtk-6.0.so
)
DESTDIR="$pkgdir" cmake --install build
cd "$_pkgsrc"
find Source -name 'COPYING*' -or -name 'LICENSE*' -print0 | sort -z \
| while IFS= read -d $'\0' -r _f; do
echo "### $_f ###"
cat "$_f"
echo
done \
| install -Dm644 /dev/stdin "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|