1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
2 # Contributor: Andrea Scarpino <andrea@archlinux.org>
9 url='https://www.qt.io'
10 license=('LGPL3' 'LGPL2.1' 'BSD')
11 pkgdesc='Provides support for web applications using the Chromium browser project'
12 depends=('qt5-webchannel' 'qt5-location' 'libxcomposite' 'libxrandr' 'pciutils' 'libxss' 'libxkbfile'
13 'libevent' 'snappy' 'nss' 'libxslt' 'minizip' 'ffmpeg' 're2' 'libvpx' 'libxtst' 'ttf-font')
14 makedepends=('git' 'python' 'gperf' 'jsoncpp' 'ninja' 'qt5-tools' 'poppler' 'libpipewire02' 'nodejs')
15 optdepends=('libpipewire02: WebRTC desktop sharing under Wayland')
18 source=(git+https://code.qt.io/qt/qtwebengine.git#tag=v${pkgver}-lts
19 git+https://code.qt.io/qt/qtwebengine-chromium.git
20 git+https://chromium.googlesource.com/catapult#commit=5eedfe23148a234211ba477f76fc2ea2e8529189
21 qt5-webengine-python3.patch
22 qt5-webengine-chromium-python3.patch)
26 '45ccf4ff981a26656e5105259f71a3ce386d4a7112cbf09e41cb61615b355435'
27 '8d0327615c6b6a340122640a9ddeb56be185621297a4ead8da4211e37feeaa75')
34 git submodule set-url src/3rdparty "$srcdir"/qtwebengine-chromium
35 git submodule set-branch --branch 87-based src/3rdparty
38 patch -p1 -i "$srcdir"/qt5-webengine-python3.patch # Fix build with Python 3
39 patch -p1 -d src/3rdparty -i "$srcdir"/qt5-webengine-chromium-python3.patch
41 # Update catapult for python3 compatibility
42 rm -r src/3rdparty/chromium/third_party/catapult
43 mv "$srcdir"/catapult src/3rdparty/chromium/third_party
48 qmake ../${_pkgfqn} -- \
55 -webengine-webrtc-pipewire
61 make INSTALL_ROOT="$pkgdir" install
63 # Drop QMAKE_PRL_BUILD_DIR because reference the build dir
64 find "$pkgdir/usr/lib" -type f -name '*.prl' \
65 -exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' {} \;
67 install -Dm644 "$srcdir"/${_pkgfqn}/src/3rdparty/chromium/LICENSE "$pkgdir"/usr/share/licenses/${pkgname}/LICENSE.chromium
69 # Fix cmake dependency versions
70 sed -e "s|$pkgver\ |5.15.2 |" -i "$pkgdir"/usr/lib/cmake/*/*Config.cmake