opt/qtwebengine/Pkgfile

41 lines
1.2 KiB
Plaintext
Raw Normal View History

2017-08-06 14:35:32 +02:00
# Description: Provides support for web applications using the Chromium browser project.
2016-10-05 14:24:35 +02:00
# URL: http://www.qt.io/
# Maintainer: Danny Rawlins, crux at romster dot me
2018-07-07 08:05:17 +02:00
# Depends on: nss qt5 xorg-libxscrnsaver xorg-libxtst
2016-10-05 14:24:35 +02:00
name=qtwebengine
2019-11-03 22:49:42 +01:00
version=5.13.2
release=1
2019-09-22 03:41:33 +02:00
source=(https://download.qt.io/official_releases/qt/${version::4}/$version/submodules/$name-everywhere-src-$version.tar.xz
2019-11-03 22:49:42 +01:00
CVE-2019-13720.patch)
2016-10-05 14:24:35 +02:00
build() {
2017-12-24 07:34:55 +01:00
cd $name-everywhere-src-$version
2016-10-05 14:24:35 +02:00
2019-11-03 22:49:42 +01:00
# https://code.qt.io/cgit/qt/qtwebengine-chromium.git/patch/?id=d6e5fc10
patch -d src/3rdparty -p1 -i $SRC/CVE-2019-13720.patch
2019-09-22 03:41:33 +02:00
2017-08-06 14:35:32 +02:00
# Ninja, by default, sets the number of jobs to the number of availalble threads
test -n "$JOBS" && export NINJAFLAGS+=" -j $JOBS"
2019-07-14 16:26:39 +02:00
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++' \
2019-09-22 03:41:33 +02:00
QMAKE_LINK_SHLIB='ccache g++' \
PATH="$(echo ${PATH} | awk -v RS=: -v ORS=: '/ccache/ {next} {print}' | sed 's/:*$//')"
2019-07-14 16:26:39 +02:00
2016-10-05 14:24:35 +02:00
install -d build
cd build
2019-01-01 05:26:31 +01:00
qmake-qt5 .. -- -proprietary-codecs
2016-10-05 14:24:35 +02:00
make
make INSTALL_ROOT=$PKG install
find "$PKG/usr/lib" -type f -name '*.prl' \
-exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' {} \;
}