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
|
2022-08-21 01:32:42 +00:00
|
|
|
# - patch for chromium to backport 16k page support
|
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-06-16 13:13:58 +00:00
|
|
|
_qtver=6.3.1
|
2021-10-01 22:59:32 +00:00
|
|
|
pkgver=${_qtver/-/}
|
2022-08-21 01:32:42 +00:00
|
|
|
pkgrel=1.1
|
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
|
|
|
|
libevent snappy nss libxslt minizip ffmpeg re2 libvpx libxtst ttf-font pciutils)
|
|
|
|
makedepends=(cmake ninja python-html5lib 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)
|
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
|
|
|
|
0001-ARM-toolchain-fixes.patch
|
2022-08-21 01:32:42 +00:00
|
|
|
0002-Run-blink-bindings-generation-single-threaded.patch
|
|
|
|
0003-Backport-of-16k-page-support-on-aarch64.patch)
|
2022-06-16 13:13:58 +00:00
|
|
|
sha256sums=('ad7a33b21a956deda37c587d50f821ca3816403ae31ba9b5d59d01561ad66e47'
|
2022-08-21 01:32:42 +00:00
|
|
|
'170557c0d13ceb518002f9b76b4135efc1721024138aa59b9d08864fe220510d'
|
|
|
|
'3b1b9aa13a6f805a73b84347f27bf68fed19f3c1d3e474b6f6e4a05e8aee4095'
|
|
|
|
'70c5d0f8b6b5dd1883dbd55818b4144c4ffb2a346325c3441fdacf6ffb3db8a9')
|
2021-10-01 22:59:32 +00:00
|
|
|
|
|
|
|
prepare() {
|
|
|
|
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
|
2022-04-14 00:21:11 +00:00
|
|
|
patch -p1 -i ${srcdir}/0002-Run-blink-bindings-generation-single-threaded.patch
|
2022-08-21 01:32:42 +00:00
|
|
|
patch -p1 -i ${srcdir}/0003-Backport-of-16k-page-support-on-aarch64.patch
|
2021-10-01 22:59:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
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 \
|
2022-04-13 00:23:32 +00:00
|
|
|
-DQT_FEATURE_webengine_system_libxslt=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
|
|
|
|
}
|