qtwebengine: 5.15.2 -> 5.15.6

This commit is contained in:
Danny Rawlins 2021-11-15 00:48:37 +11:00
parent 7cdf22244a
commit 7cc8c68639
3 changed files with 34 additions and 11 deletions

View File

@ -299,7 +299,6 @@ drwxr-xr-x root/root usr/lib/qt5/qml/QtWebEngine/Controls2Delegates/
drwxr-xr-x root/root usr/share/
drwxr-xr-x root/root usr/share/qt5/
drwxr-xr-x root/root usr/share/qt5/resources/
-rw-r--r-- root/root usr/share/qt5/resources/icudtl.dat
-rw-r--r-- root/root usr/share/qt5/resources/qtwebengine_devtools_resources.pak
-rw-r--r-- root/root usr/share/qt5/resources/qtwebengine_resources.pak
-rw-r--r-- root/root usr/share/qt5/resources/qtwebengine_resources_100p.pak

View File

@ -1,5 +1,7 @@
untrusted comment: verify with /etc/ports/opt.pub
RWSE3ohX2g5d/TDDueYqNH/btDYl6tq/OeQex4Enpb2+bn/n2buM6BgrMtI6yPDDYAgH7+T0BtDr/dBeXuzKcrlnE7408YI9JgY=
SHA256 (Pkgfile) = 45c79aea0a49f2492a5f8bcca2065ab86cff6074ebfab9ea6445131f9dca3de8
SHA256 (.footprint) = 44b1db82a792e29d0e7a4bf1a4ea7d0ed7b440ab9f0df493452d03ff3c164554
SHA256 (qtwebengine-everywhere-src-5.15.2.tar.xz) = c8afca0e43d84f7bd595436fbe4d13a5bbdb81ec5104d605085d07545b6f91e0
RWSE3ohX2g5d/TpLyi1IXLZLOxD6+li46/mo1mVi2qzBYmurTi4PU0PnyrRY/lw6yLTxVr3fM/nyASpJQF3WOGk5SU4pkuF4fAc=
SHA256 (Pkgfile) = 387b46647fb91de19bdc751965a46edbdce23126041d6361e29062b757ab9a57
SHA256 (.footprint) = 9c07e0209b90e6d45f593e30c0b5342a594c32de974cc61990189f9e80f4a21a
SHA256 (qtwebengine-5.15.6.tar.xz) = b120e51147bea8a91d447cc4458b50c4dda99b7c49c7ca06ca9bbdcaac9a2690
SHA256 (qtwebengine-5.15.6-build_fixes-1.patch) = 0ffa11b6787725860e50650eb3e1c1a86ca2910746320b6970a141d169ff0dfe
SHA256 (qtwebengine-5.15.6-harfbuzz3-1.patch) = 5bd36981013c32f6cdd91ebdb456c80b1196e365ae1446bcc3bdb4a8d3ed23d5

View File

@ -1,18 +1,33 @@
# Description: Provides support for web applications using the Chromium browser project.
# URL: https://www.qt.io/
# Maintainer: Danny Rawlins, crux at romster dot me
# Depends on: nss qt5 xorg-libxscrnsaver xorg-libxtst libvpx python
# Depends on: libvpx nodejs nss python qt5 xorg-libxscrnsaver xorg-libxtst
name=qtwebengine
version=5.15.2
version=5.15.6
release=1
source=(https://download.qt.io/official_releases/qt/${version::4}/$version/submodules/$name-everywhere-src-$version.tar.xz)
source=(https://anduin.linuxfromscratch.org/BLFS/qtwebengine/$name-$version.tar.xz
https://www.linuxfromscratch.org/patches/blfs/svn/$name-$version-build_fixes-1.patch
https://www.linuxfromscratch.org/patches/blfs/svn/$name-$version-harfbuzz3-1.patch)
build() {
cd $name-everywhere-src-$version
cd qtwebengine-$version
# https://www.linuxfromscratch.org/blfs/view/svn/x/qtwebengine.html
patch -p1 -i $SRC/$name-$version-build_fixes-1.patch
patch -p1 -i $SRC/$name-$version-harfbuzz3-1.patch
mkdir -pv .git src/3rdparty/chromium/.git
sed -e '/^MODULE_VERSION/s/5.*/5.15.2/' -i .qmake.conf
find -type f -name "*.pr[io]" | \
xargs sed -i -e 's|INCLUDEPATH += |&$$QTWEBENGINE_ROOT/include |'
prt-get isinst pulseaudio && sed -e '/link_pulseaudio/s/false/true/' \
-i src/3rdparty/chromium/media/media_options.gni
# Ninja, by default, sets the number of jobs to the number of availalble threads
test -n "$JOBS" && export NINJAFLAGS+=" -j $JOBS"
sed -i 's/NINJAJOBS/NINJA_JOBS/' src/core/gn_run.pro
prt-get isinst ccache && export \
QMAKE_CC='ccache gcc' \
@ -26,11 +41,18 @@ build() {
install -d build
cd build
qmake-qt5 .. -- -proprietary-codecs
ulimit -n 2048
prt-get isinst pulseaudio && PKGMK_QTWEBENGINE+=' -pulseaudio' || PKGMK_QTWEBENGINE+=' -no-pulseaudio'
qmake-qt5 .. -- \
$PKGMK_QTWEBENGINE \
-proprietary-codecs \
-system-ffmpeg \
-webengine-icu
make
make INSTALL_ROOT=$PKG install
find "$PKG/usr/lib" -type f -name '*.prl' \
-exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' {} \;
}