blob: 96300a8d386f16c8c2f66e5104bb45f2e09f494d (
plain)
1 # Description: Small, efficient and fast rendering engine for Web Browsers.
2 # URL: https://www.webkitgtk.org/
3 # Maintainer: Danny Rawlins, crux at romster dot me
4 # Depends on: gst-plugins-base gtk gtk3 harfbuzz-icu hyphen libseccomp libsecret libsoup libwebp libxslt ruby woff2 xorg-libxt
5 # Optional: enchant libnotify geoclue openjpeg2 xdg-dbus-proxy bubblewrap
6
7 name=webkitgtk
8 version=2.30.3
9 release=1
10 source=(https://webkitgtk.org/releases/$name-$version.tar.xz
11 bug-218522.patch)
12
13 build() {
14 [ $(pkginfo -i | awk '/^icu / {split($2,a,"."); print a[1]}') -ge 68 ] && \
15 patch -d $name-$version -p1 -i $SRC/bug-218522.patch
16
17 # Make sure we do not have ccache masquerade directory in PATH.
18 [ -e '/usr/bin/ccache' ] && PATH="$(echo ${PATH} | awk -v RS=: -v ORS=: '/ccache/ {next} {print}' | sed 's/:*$//')"
19
20 prt-get isinst openjpeg2 || PKGMK_WEBKITGTK+=' -DUSE_OPENJPEG=OFF'
21 prt-get isinst enchant || PKGMK_WEBKITGTK+=' -DENABLE_SPELLCHECK=OFF'
22 prt-get isinst libnotify && PKGMK_WEBKITGTK+=' -DUSE_LIBNOTIFY=ON' || PKGMK_WEBKITGTK+=' -DUSE_LIBNOTIFY=OFF'
23 prt-get isinst geoclue && PKGMK_WEBKITGTK+=' -DENABLE_GEOLOCATION=ON' || PKGMK_WEBKITGTK+=' -DENABLE_GEOLOCATION=OFF'
24 prt-get isinst bubblewrap && prt-get isinst xdg-dbus-proxy && PKGMK_WEBKITGTK+=' -DENABLE_BUBBLEWRAP_SANDBOX=ON' \
25 || PKGMK_WEBKITGTK+=' -DENABLE_BUBBLEWRAP_SANDBOX=OFF'
26
27 cmake -S $name-$version -B build -G Ninja ${PKGMK_WEBKITGTK} \
28 -D CMAKE_INSTALL_PREFIX:PATH=/usr \
29 -D CMAKE_INSTALL_LIBDIR:PATH=/usr/lib \
30 -D CMAKE_INSTALL_LIBEXECDIR:PATH=/usr/lib \
31 -D CMAKE_BUILD_TYPE=Release \
32 -D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS -DNDEBUG" \
33 -D CMAKE_C_FLAGS_RELEASE="$CFLAGS -DNDEBUG" \
34 -D CMAKE_SKIP_RPATH:BOOL=ON \
35 -D PORT=GTK \
36 -D ENABLE_MINIBROWSER=ON \
37 -D USE_SYSTEM_MALLOC=ON \
38 -D USE_SYSTEMD=OFF \
39 -Wno-dev
40
41 cmake --build build
42 DESTDIR=$PKG cmake --install build
43
44 rm -r $PKG/usr/share/locale
45 }
|