PKGBUILDs/extra/qt6-webengine/PKGBUILD

72 lines
2.7 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 skia
# - patch for chromium to run blink bindings generation single threaded
# - patch for chromium aw snap on ARM
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
2022-01-29 18:26:31 +00:00
_qtver=6.2.3
2021-10-01 22:59:32 +00:00
pkgver=${_qtver/-/}
2022-02-17 19:16:53 +00:00
pkgrel=8
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'
2021-12-01 14:15:52 +00:00
depends=(qt6-webchannel qt6-positioning libxcomposite libxrandr pciutils libxss libxkbfile
2021-10-01 22:59:32 +00:00
libevent snappy nss libxslt minizip ffmpeg re2 libvpx libxtst ttf-font)
2021-12-01 14:15:52 +00:00
makedepends=(cmake ninja python2 python gperf jsoncpp qt6-tools pipewire nodejs qt6-websockets)
2021-10-01 22:59:32 +00:00
optdepends=('pipewire: WebRTC desktop sharing under Wayland')
groups=(qt6)
2022-01-30 18:12:38 +00:00
options=(debug)
2021-10-01 22:59:32 +00:00
_pkgfn="${pkgname/6-/}-everywhere-src-$_qtver"
source=(https://download.qt.io/official_releases/qt/${pkgver%.*}/$_qtver/submodules/$_pkgfn.tar.xz
2022-01-29 18:26:31 +00:00
qt6-webengine-ffmpeg5.patch
2021-10-01 22:59:32 +00:00
0001-ARM-toolchain-fixes.patch
0002-Fix-ARM-skia-ICE.patch
2021-10-28 01:15:55 +00:00
0003-Run-blink-bindings-generation-single-threaded.patch)
2022-01-29 18:26:31 +00:00
sha256sums=('a72293b799a91189e12c91480d485d079cbce90b069439acf0bf81847cd02058'
'c50d3019626183e753c53a997dc8a55938847543aa3178d4c51f377be741c693'
2021-10-28 01:15:55 +00:00
'3dba0f507498ed078dbe5dc5753c593fa6babb7252be1cb964c404b62bf600ab'
'20f5f470bdd350e40046eb11cd786730aaa777a2ad6b68d004f7464313792320'
'005e5c1476b2c6e8edd6ab0637315cf268060090a7d3a89060a339f9ce4c9851')
2021-10-01 22:59:32 +00:00
prepare() {
2022-02-17 19:16:53 +00:00
patch -d $_pkgfn/src/3rdparty -p1 < qt6-webengine-ffmpeg5.patch # Fix build with ffmpeg 5
2022-01-29 18:26:31 +00:00
2021-10-01 22:59:32 +00:00
cd $_pkgfn
2021-10-02 22:17:48 +00:00
if [[ $CARCH == "armv7h" ]]; then
export MAKEFLAGS="-j4"
export ALARM_NINJA_JOBS="2"
fi
2021-10-01 22:59:32 +00:00
cd "$srcdir/$_pkgfn/src/3rdparty"
patch -p1 -i ${srcdir}/0001-ARM-toolchain-fixes.patch
patch -p1 -i ${srcdir}/0002-Fix-ARM-skia-ICE.patch
patch -p1 -i ${srcdir}/0003-Run-blink-bindings-generation-single-threaded.patch
}
build() {
cmake -B build -S $_pkgfn -G Ninja \
-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-01-31 22:26:45 +00:00
-DQT_FEATURE_webengine_webrtc_pipewire=ON \
-DQT_FEATURE_webengine_full_debug_info=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
}