2021-10-01 22:59:32 +00:00
|
|
|
# Maintainer: Antonio Rojas <arojas@archlinux.org>
|
|
|
|
# Maintainer: Felix Yan <felixonmars@archlinux.org>
|
|
|
|
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
|
|
# - patch for chromium GN
|
|
|
|
# - patch for chromium to run blink bindings generation single threaded
|
2021-10-02 22:17:48 +00:00
|
|
|
# - restrict job count on v7 - RAM constraints
|
2021-10-01 22:59:32 +00:00
|
|
|
|
|
|
|
highmem=1
|
|
|
|
|
|
|
|
pkgname=qt6-webengine
|
2024-10-15 01:11:16 +00:00
|
|
|
_pkgver=6.8.0
|
|
|
|
pkgver=6.8.0
|
2024-10-30 00:38:21 +00:00
|
|
|
pkgrel=7
|
2021-10-01 22:59:32 +00:00
|
|
|
arch=(x86_64)
|
|
|
|
url='https://www.qt.io'
|
|
|
|
license=(GPL3 LGPL3 FDL custom)
|
|
|
|
pkgdesc='Provides support for web applications using the Chromium browser project'
|
2023-10-12 12:47:15 +00:00
|
|
|
depends=(alsa-lib
|
|
|
|
dbus
|
|
|
|
expat
|
2024-10-30 00:38:21 +00:00
|
|
|
ffmpeg
|
2023-10-12 12:47:15 +00:00
|
|
|
fontconfig
|
|
|
|
freetype2
|
|
|
|
gcc-libs
|
|
|
|
glib2
|
|
|
|
glibc
|
|
|
|
harfbuzz
|
|
|
|
icu
|
|
|
|
lcms2
|
|
|
|
libdrm
|
|
|
|
libevent
|
|
|
|
libjpeg-turbo
|
|
|
|
libpng
|
|
|
|
libtiff
|
|
|
|
libwebp
|
|
|
|
libx11
|
|
|
|
libxcb
|
|
|
|
libxcomposite
|
|
|
|
libxfixes
|
|
|
|
libxkbcommon
|
|
|
|
libxkbfile
|
|
|
|
libxdamage
|
|
|
|
libxext
|
|
|
|
libxml2
|
|
|
|
libxrandr
|
|
|
|
libxslt
|
|
|
|
libxtst
|
|
|
|
mesa
|
|
|
|
minizip
|
|
|
|
nspr
|
|
|
|
nss
|
|
|
|
openjpeg2
|
|
|
|
opus
|
|
|
|
qt6-base
|
|
|
|
qt6-declarative
|
|
|
|
qt6-positioning
|
|
|
|
qt6-webchannel
|
2024-09-11 10:30:29 +00:00
|
|
|
re2
|
2023-10-12 12:47:15 +00:00
|
|
|
snappy
|
|
|
|
ttf-font
|
|
|
|
zlib)
|
|
|
|
# system libvpx disabled since https://codereview.qt-project.org/c/qt/qtwebengine/+/454908
|
2024-09-11 10:30:29 +00:00
|
|
|
# libvpx pciutils
|
2023-10-12 12:47:15 +00:00
|
|
|
makedepends=(cmake
|
2024-04-11 19:24:58 +00:00
|
|
|
git
|
2023-10-12 12:47:15 +00:00
|
|
|
gperf
|
|
|
|
jsoncpp
|
|
|
|
libepoxy
|
2024-10-19 12:00:16 +00:00
|
|
|
libpulse
|
|
|
|
libva
|
|
|
|
libxcursor
|
2023-10-12 12:47:15 +00:00
|
|
|
ninja
|
|
|
|
nodejs
|
|
|
|
perf
|
|
|
|
pipewire
|
|
|
|
python-html5lib
|
|
|
|
qt6-tools
|
|
|
|
qt6-websockets)
|
2021-10-01 22:59:32 +00:00
|
|
|
optdepends=('pipewire: WebRTC desktop sharing under Wayland')
|
|
|
|
groups=(qt6)
|
2024-04-11 19:24:58 +00:00
|
|
|
_pkgfn=${pkgname/6-/}
|
|
|
|
source=(git+https://code.qt.io/qt/$_pkgfn#tag=v$pkgver
|
|
|
|
git+https://code.qt.io/qt/qtwebengine-chromium
|
2021-10-01 22:59:32 +00:00
|
|
|
0001-ARM-toolchain-fixes.patch
|
2022-10-01 22:47:27 +00:00
|
|
|
0002-Run-blink-bindings-generation-single-threaded.patch)
|
2024-10-15 01:11:16 +00:00
|
|
|
sha256sums=('3c26e443a0d742af4107916ec94db224a9a6a4131f1415655a6b0b6820a18c58'
|
2024-04-11 19:24:58 +00:00
|
|
|
'SKIP'
|
2022-10-01 22:47:27 +00:00
|
|
|
'772aeba76d16387e28ef629285965109a4bfaa02ca2dd466e9526fe2030773ec'
|
|
|
|
'eff4ebf2e714185ef6e36e30c8d2158da6b41a46e3168d06472d35f6c9977aaf')
|
2021-10-01 22:59:32 +00:00
|
|
|
|
|
|
|
prepare() {
|
|
|
|
cd $_pkgfn
|
2024-04-11 19:24:58 +00:00
|
|
|
git submodule init
|
|
|
|
git submodule set-url src/3rdparty "$srcdir"/qtwebengine-chromium
|
|
|
|
git -c protocol.file.allow=always submodule update
|
2021-10-01 22:59:32 +00:00
|
|
|
|
2021-10-02 22:17:48 +00:00
|
|
|
if [[ $CARCH == "armv7h" ]]; then
|
2023-03-01 01:13:13 +00:00
|
|
|
export MAKEFLAGS="-j1"
|
|
|
|
export ALARM_NINJA_JOBS="1"
|
2021-10-02 22:17:48 +00:00
|
|
|
fi
|
2024-10-19 12:00:16 +00:00
|
|
|
sed -i 's/"-Wno-unused-function",/"-Wno-unused-function", "-Wno-incompatible-pointer-types",/' src/3rdparty/chromium/third_party/xnnpack/BUILD.gn
|
2024-10-30 00:38:21 +00:00
|
|
|
cd src/3rdparty
|
|
|
|
git cherry-pick -n 3b9f0ed808a23cf5849ea3b82a61ef7ab566ad68 # Fix mp3 playback
|
2021-10-01 22:59:32 +00:00
|
|
|
patch -p1 -i ${srcdir}/0001-ARM-toolchain-fixes.patch
|
2022-04-14 00:21:11 +00:00
|
|
|
patch -p1 -i ${srcdir}/0002-Run-blink-bindings-generation-single-threaded.patch
|
2021-10-01 22:59:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
2024-10-19 12:00:16 +00:00
|
|
|
# system ffmpeg disabled https://gitlab.archlinux.org/archlinux/packaging/packages/qt6-webengine/-/issues/2
|
2021-10-01 22:59:32 +00:00
|
|
|
cmake -B build -S $_pkgfn -G Ninja \
|
2022-10-01 15:49:21 +00:00
|
|
|
-DCMAKE_MESSAGE_LOG_LEVEL=STATUS \
|
2021-10-01 22:59:32 +00:00
|
|
|
-DCMAKE_TOOLCHAIN_FILE=/usr/lib/cmake/Qt6/qt.toolchain.cmake \
|
2024-10-30 00:38:21 +00:00
|
|
|
-DQT_FEATURE_webengine_system_ffmpeg=ON \
|
2021-10-01 22:59:32 +00:00
|
|
|
-DQT_FEATURE_webengine_system_icu=ON \
|
2021-12-28 16:06:56 +00:00
|
|
|
-DQT_FEATURE_webengine_system_libevent=ON \
|
2024-10-16 10:33:27 +00:00
|
|
|
-DQT_FEATURE_webengine_system_re2=ON \
|
2021-10-01 22:59:32 +00:00
|
|
|
-DQT_FEATURE_webengine_proprietary_codecs=ON \
|
|
|
|
-DQT_FEATURE_webengine_kerberos=ON \
|
2022-10-01 15:49:21 +00:00
|
|
|
-DQT_FEATURE_webengine_webrtc_pipewire=ON
|
2021-10-01 22:59:32 +00:00
|
|
|
cmake --build build
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
DESTDIR="$pkgdir" cmake --install build
|
|
|
|
|
|
|
|
install -Dm644 "$srcdir"/${_pkgfn}/src/3rdparty/chromium/LICENSE "$pkgdir"/usr/share/licenses/${pkgname}/LICENSE.chromium
|
|
|
|
}
|