PKGBUILDs/extra/qt5-webengine/PKGBUILD

110 lines
4.4 KiB
Bash
Raw Normal View History

2016-07-10 03:16:51 +00:00
# Maintainer: Felix Yan <felixonmars@archlinux.org>
# Contributor: Andrea Scarpino <andrea@archlinux.org>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
2017-06-09 12:23:17 +00:00
# - patch for chromium GN
2019-07-01 14:16:10 +00:00
# - patch for chromium skia
2021-03-07 23:21:58 +00:00
# - patch for chromium to run blink bindings generation single threaded
# - patch for chromium to backport 16k page support
2022-06-19 17:43:20 +00:00
# - build v7 with -j4
2016-07-10 03:16:51 +00:00
2017-04-30 02:14:10 +00:00
highmem=1
2016-07-10 03:16:51 +00:00
pkgname=qt5-webengine
2022-09-09 12:44:46 +00:00
_basever=5.15.6
2022-10-27 12:28:05 +00:00
pkgver=5.15.11
pkgrel=1
2017-11-17 23:31:13 +00:00
arch=('x86_64')
2019-02-04 13:38:28 +00:00
url='https://www.qt.io'
2017-04-26 19:59:05 +00:00
license=('LGPL3' 'LGPL2.1' 'BSD')
2016-07-10 03:16:51 +00:00
pkgdesc='Provides support for web applications using the Chromium browser project'
2021-06-19 14:16:53 +00:00
depends=('qt5-webchannel' 'qt5-location' 'libxcomposite' 'libxrandr' 'pciutils' 'libxss' 'libxkbfile'
2021-03-06 23:34:32 +00:00
'libevent' 'snappy' 'nss' 'libxslt' 'minizip' 'ffmpeg' 're2' 'libvpx' 'libxtst' 'ttf-font')
2022-02-20 14:50:17 +00:00
makedepends=('git' 'python' 'gperf' 'jsoncpp' 'ninja' 'qt5-tools' 'poppler' 'pipewire' 'nodejs')
optdepends=('pipewire: WebRTC desktop sharing under Wayland')
2016-07-10 03:16:51 +00:00
groups=('qt' 'qt5')
2022-03-06 17:32:08 +00:00
_pkgfqn=${pkgname/5-/}
2021-06-02 16:16:10 +00:00
source=(git+https://code.qt.io/qt/qtwebengine.git#tag=v${pkgver}-lts
2021-03-06 23:34:32 +00:00
git+https://code.qt.io/qt/qtwebengine-chromium.git
2021-10-17 18:38:46 +00:00
git+https://chromium.googlesource.com/catapult#commit=5eedfe23148a234211ba477f76fc2ea2e8529189
2021-10-17 18:25:12 +00:00
qt5-webengine-python3.patch
qt5-webengine-chromium-python3.patch
2022-01-30 00:52:13 +00:00
qt5-webengine-ffmpeg5.patch
2022-02-20 14:50:17 +00:00
qt5-webengine-pipewire-0.3.patch
2022-05-15 19:55:10 +00:00
qt5-webengine-gcc12.patch
2019-07-10 12:39:49 +00:00
0001-ARM-toolchain-fixes.patch
2021-03-07 23:21:58 +00:00
0002-Fix-ARM-skia-ICE.patch
2021-03-08 00:34:25 +00:00
0003-bind-gen-Support-single_process-flag-in-generate_bin.patch
0004-Run-blink-bindings-generation-single-threaded.patch
0005-Backport-of-16k-page-support-on-aarch64.patch)
2021-03-06 23:34:32 +00:00
sha256sums=('SKIP'
2021-10-17 18:38:46 +00:00
'SKIP'
2021-03-06 23:34:32 +00:00
'SKIP'
2022-01-04 19:02:02 +00:00
'398c996cb5b606695ac93645143df39e23fa67e768b09e0da6dbd37342a43f32'
2022-01-30 00:52:13 +00:00
'fda4ff16790799fb285847918a677f4f3f7c0f513d4751f846ffc5aa5d873932'
'c50d3019626183e753c53a997dc8a55938847543aa3178d4c51f377be741c693'
2022-02-20 14:50:17 +00:00
'5e3a3c4711d964d5152a04059a2b5c1d14bb13dd29bce370120f60e85b476b6f'
2022-05-15 19:55:10 +00:00
'cf9be3ffcc3b3cd9450b1ff13535ff7d76284f73173412d097a6ab487463a379'
'888dcb27b6cc9ac6e926a59707cc298a0d4ff24b5461a14d8c5dd4ab70e8b759'
'4d09377b181a1bd9d84c0e45e8edae7b43c5af92b9375ef8cdbb1be06ec75436'
'a2dda475d7064e627f4b60bde3539a25f9b520881628b62192bfa8d705dd965e'
'1ee30297739637763e1e36ac65a9b504e161ef2c2cd9ac8bc01d071ff3b284bf'
'fcf7ff60b2a78dc1ae1e93f8d15744b6d90e64eeebc5979385b92b85e4e3f079')
2022-01-30 00:52:13 +00:00
options=(debug)
2016-07-10 03:16:51 +00:00
prepare() {
mkdir -p build
2021-03-06 23:34:32 +00:00
cd ${_pkgfqn}
git submodule init
git submodule set-url src/3rdparty "$srcdir"/qtwebengine-chromium
git submodule set-branch --branch 87-based src/3rdparty
2022-10-22 14:35:02 +00:00
git -c protocol.file.allow=always submodule update
2020-11-22 17:36:55 +00:00
2021-10-17 18:25:12 +00:00
patch -p1 -i "$srcdir"/qt5-webengine-python3.patch # Fix build with Python 3
patch -p1 -d src/3rdparty -i "$srcdir"/qt5-webengine-chromium-python3.patch
2022-02-17 19:16:19 +00:00
patch -p1 -d src/3rdparty -i "$srcdir"/qt5-webengine-ffmpeg5.patch # Fix build with ffmpeg 5
2022-02-20 14:50:17 +00:00
patch -p1 -d src/3rdparty -i "$srcdir"/qt5-webengine-pipewire-0.3.patch # Port to pipewire 0.3
2022-05-15 19:55:10 +00:00
patch -p1 -d src/3rdparty -i "$srcdir"/qt5-webengine-gcc12.patch # Fix build with GCC 12
2022-01-30 00:52:13 +00:00
2021-10-17 18:25:12 +00:00
# Update catapult for python3 compatibility
rm -r src/3rdparty/chromium/third_party/catapult
mv "$srcdir"/catapult src/3rdparty/chromium/third_party
2020-09-29 18:19:59 +00:00
2022-06-19 17:43:20 +00:00
[[ $CARCH == "armv7h" ]] && export NINJAJOBS="-j4"
2020-06-03 19:55:23 +00:00
cd "$srcdir/$_pkgfqn/src/3rdparty"
2017-06-09 12:23:17 +00:00
patch -p1 -i ${srcdir}/0001-ARM-toolchain-fixes.patch
2019-07-01 14:16:10 +00:00
patch -p1 -i ${srcdir}/0002-Fix-ARM-skia-ICE.patch
2021-03-08 00:34:25 +00:00
patch -p1 -i ${srcdir}/0003-bind-gen-Support-single_process-flag-in-generate_bin.patch
patch -p1 -i ${srcdir}/0004-Run-blink-bindings-generation-single-threaded.patch
patch -p1 -i ${srcdir}/0005-Backport-of-16k-page-support-on-aarch64.patch
2016-07-10 03:16:51 +00:00
}
build() {
cd build
2022-01-30 23:15:13 +00:00
qmake ../${_pkgfqn} CONFIG+=force_debug_info -- \
2017-12-13 21:19:26 +00:00
-proprietary-codecs \
-system-ffmpeg \
-webp \
2018-05-25 18:58:10 +00:00
-spellchecker \
2020-01-30 01:05:38 +00:00
-webengine-icu \
2020-07-09 00:40:09 +00:00
-webengine-kerberos \
-webengine-webrtc-pipewire
2016-07-10 03:16:51 +00:00
make
}
package() {
cd build
make INSTALL_ROOT="$pkgdir" install
# Drop QMAKE_PRL_BUILD_DIR because reference the build dir
find "$pkgdir/usr/lib" -type f -name '*.prl' \
-exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' {} \;
2017-04-26 19:59:05 +00:00
install -Dm644 "$srcdir"/${_pkgfqn}/src/3rdparty/chromium/LICENSE "$pkgdir"/usr/share/licenses/${pkgname}/LICENSE.chromium
2021-03-06 23:34:32 +00:00
# Fix cmake dependency versions
2022-03-06 17:32:08 +00:00
sed -e "s|$pkgver\ |$_basever |" -i "$pkgdir"/usr/lib/cmake/*/*Config.cmake
2016-07-10 03:16:51 +00:00
}