41 lines
1.2 KiB
Plaintext
41 lines
1.2 KiB
Plaintext
# Description: Provides support for web applications using the Chromium browser project.
|
|
# URL: http://www.qt.io/
|
|
# Maintainer: Danny Rawlins, crux at romster dot me
|
|
# Depends on: nss qt5 xorg-libxscrnsaver xorg-libxtst
|
|
|
|
name=qtwebengine
|
|
version=5.13.2
|
|
release=1
|
|
source=(https://download.qt.io/official_releases/qt/${version::4}/$version/submodules/$name-everywhere-src-$version.tar.xz
|
|
CVE-2019-13720.patch)
|
|
|
|
build() {
|
|
cd $name-everywhere-src-$version
|
|
|
|
# https://code.qt.io/cgit/qt/qtwebengine-chromium.git/patch/?id=d6e5fc10
|
|
patch -d src/3rdparty -p1 -i $SRC/CVE-2019-13720.patch
|
|
|
|
# Ninja, by default, sets the number of jobs to the number of availalble threads
|
|
test -n "$JOBS" && export NINJAFLAGS+=" -j $JOBS"
|
|
|
|
prt-get isinst ccache && export \
|
|
QMAKE_CC='ccache gcc' \
|
|
QMAKE_LINK_C='cache gcc' \
|
|
QMAKE_LINK_C_SHLIB='cache gcc' \
|
|
QMAKE_CXX='ccache g++' \
|
|
QMAKE_LINK='ccache g++' \
|
|
QMAKE_LINK_SHLIB='ccache g++' \
|
|
PATH="$(echo ${PATH} | awk -v RS=: -v ORS=: '/ccache/ {next} {print}' | sed 's/:*$//')"
|
|
|
|
install -d build
|
|
cd build
|
|
|
|
qmake-qt5 .. -- -proprietary-codecs
|
|
make
|
|
make INSTALL_ROOT=$PKG install
|
|
|
|
find "$PKG/usr/lib" -type f -name '*.prl' \
|
|
-exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' {} \;
|
|
|
|
}
|