PKGBUILDs/extra/qt6-webengine/PKGBUILD

66 lines
2.5 KiB
Bash
Raw Normal View History

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
2023-07-21 12:41:54 +00:00
_qtver=6.5.2
2021-10-01 22:59:32 +00:00
pkgver=${_qtver/-/}
2023-09-09 13:45:40 +00:00
pkgrel=3
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'
2022-04-13 00:23:32 +00:00
depends=(qt6-webchannel qt6-positioning libxcomposite libxrandr libxkbfile
2023-08-15 23:47:22 +00:00
snappy nss libxslt minizip ffmpeg libvpx libxtst ttf-font) # pciutils
2022-10-01 15:49:21 +00:00
makedepends=(cmake ninja python-html5lib gperf jsoncpp qt6-tools pipewire nodejs qt6-websockets libepoxy git)
2021-10-01 22:59:32 +00:00
optdepends=('pipewire: WebRTC desktop sharing under Wayland')
groups=(qt6)
2022-04-13 00:23:32 +00:00
_pkgfn=${pkgname/6-/}-everywhere-src-$_qtver
2021-10-01 22:59:32 +00:00
source=(https://download.qt.io/official_releases/qt/${pkgver%.*}/$_qtver/submodules/$_pkgfn.tar.xz
2023-09-09 13:45:40 +00:00
qtbug-113369.patch::https://code.qt.io/cgit/qt/qtwebengine.git/patch/?id=a80e1d3b
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)
2023-07-21 12:41:54 +00:00
sha256sums=('e7c9438b56f502b44b4e376b92ed80f1db7c2c3881d68d319b0677afd5701d9f'
2023-09-09 13:45:40 +00:00
'b0c646e8e25416d5d17a2c27c98aee10a72371bb2673ca4e7ee3c4fb44e8ca00'
2022-10-01 22:47:27 +00:00
'772aeba76d16387e28ef629285965109a4bfaa02ca2dd466e9526fe2030773ec'
'eff4ebf2e714185ef6e36e30c8d2158da6b41a46e3168d06472d35f6c9977aaf')
2021-10-01 22:59:32 +00:00
prepare() {
2023-09-09 13:45:40 +00:00
patch -d $_pkgfn -p1 < qtbug-113369.patch # Fix crashes on some websites in dark mode
2021-10-01 22:59:32 +00:00
cd $_pkgfn
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
2021-10-01 22:59:32 +00:00
cd "$srcdir/$_pkgfn/src/3rdparty"
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() {
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 \
-DQT_FEATURE_webengine_system_ffmpeg=ON \
-DQT_FEATURE_webengine_system_icu=ON \
2021-12-28 16:06:56 +00:00
-DQT_FEATURE_webengine_system_libevent=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
}