sbcl 2.1.11 rebuild
[arch-packages.git] / qt5-webengine / repos / extra-x86_64 / PKGBUILD
blob1723fc882e36873da31e0c2330e6438e79299a34
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
2 # Contributor: Andrea Scarpino <andrea@archlinux.org>
4 pkgname=qt5-webengine
5 _qtver=5.15.7
6 pkgver=${_qtver/-/}
7 pkgrel=2
8 arch=('x86_64')
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')
16 groups=('qt' 'qt5')
17 _pkgfqn=qtwebengine
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)
23 sha256sums=('SKIP'
24             'SKIP'
25             'SKIP'
26             '45ccf4ff981a26656e5105259f71a3ce386d4a7112cbf09e41cb61615b355435'
27             '8d0327615c6b6a340122640a9ddeb56be185621297a4ead8da4211e37feeaa75')
29 prepare() {
30   mkdir -p build
32   cd ${_pkgfqn}
33   git submodule init
34   git submodule set-url src/3rdparty "$srcdir"/qtwebengine-chromium
35   git submodule set-branch --branch 87-based src/3rdparty
36   git submodule update
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
46 build() {
47   cd build
48   qmake ../${_pkgfqn} -- \
49     -proprietary-codecs \
50     -system-ffmpeg \
51     -webp \
52     -spellchecker \
53     -webengine-icu \
54     -webengine-kerberos \
55     -webengine-webrtc-pipewire
56   make
59 package() {
60   cd build
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