Last active
March 17, 2022 08:47
-
-
Save Fedott/597ed343b6596e7ee01d to your computer and use it in GitHub Desktop.
qt-webengine-with-proprietary-codecs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: Vladimir Fedorov <fedotru gmail com> | |
pkgname=qt5-webengine-with-codecs | |
pkgdesc='Qt5 WebEngine with proprietary codecs' | |
pkgver=5.5.0 | |
pkgrel=1 | |
arch=('any') | |
url='http://www.qt.io/developers' | |
license=('LGPL') | |
makedepends=() | |
depends=(qt5-base git python2 libxcomposite libxrandr qt5-webchannel libxcursor libpulse nss gperf) | |
groups=('qt' 'qt5') | |
provides=('qt5-webengine') | |
conflicts=('qt5-webengine') | |
source=( | |
git://code.qt.io/qt/qtwebengine.git#branch=5.5 | |
git://code.qt.io/qt/qtwebengine-chromium.git | |
) | |
md5sums=(SKIP SKIP) | |
prepare() { | |
# Use python2 for Python 2.x | |
find . -name '*.py' -exec sed -i \ | |
's|#![ ]*/usr/bin/python$|&2|;s|#![ ]*/usr/bin/env python$|&2|' {} + | |
# in qtwebengine there are still a lot of relative calls which need a workaround | |
mkdir -p "${srcdir}"/python2-path | |
ln -fs /usr/bin/python2 "${srcdir}"/python2-path/python | |
#prepare git repos | |
cd "$srcdir/qtwebengine" | |
git submodule sync | |
git submodule init | |
git config submodule.src/3rdparty.url "$srcdir/qtwebengine-chromium" | |
git submodule update | |
} | |
build() { | |
# python2 workaround | |
export PATH="${srcdir}/python2-path:$PATH" | |
qmake WEBENGINE_CONFIG+=proprietary_codecs -r | |
make | |
} | |
package() { | |
cd "$srcdir/qtwebengine" | |
make INSTALL_ROOT="${pkgdir}" install | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For the ones that need to have a step by step process: https://stackoverflow.com/questions/50510457/how-to-compile-qt-webengine-5-11-on-windows-with-proprietary-codecs/50510458#50510458