blob: 54fca70571bde801569738d533c0e88c73989cba (
plain)
1 # Description: Provides support for web applications using the Chromium browser project.
2 # URL: http://www.qt.io/
3 # Maintainer: Danny Rawlins, crux at romster dot me
4 # Packager: Danny Rawlins, crux at romster dot me
5 # Depends on: qt5 xorg-libxscrnsaver xorg-libxtst nss ninja
6
7 name=qtwebengine
8 version=5.9.1
9 release=1
10 source=(http://download.qt.io/official_releases/qt/${version::3}/$version/submodules/$name-opensource-src-$version.tar.xz
11 last-commit-position.patch)
12
13 build() {
14 cd $name-opensource-src-$version
15
16 # we don't use git sources
17 patch -p1 -i $SRC/last-commit-position.patch
18
19 # Ninja, by default, sets the number of jobs to the number of availalble threads
20 local JOBS=$(awk 'BEGIN{RS="-j|--jobs="} NR==2 {print $1}' <<< $MAKEFLAGS)
21 test -n "$JOBS" && export NINJAFLAGS+=" -j $JOBS"
22
23 install -d build
24 cd build
25
26 qmake-qt5 WEBENGINE_CONFIG+="use_proprietary_codecs" ..
27 make
28 make INSTALL_ROOT=$PKG install
29
30 find "$PKG/usr/lib" -type f -name '*.prl' \
31 -exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' {} \;
32
33 }
|