opt/qtwebengine/Pkgfile
2017-11-25 11:02:40 +11:00

37 lines
1.0 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: qt5 xorg-libxscrnsaver xorg-libxtst nss ninja
name=qtwebengine
version=5.9.3
release=1
source=(http://download.qt.io/official_releases/qt/${version::3}/$version/submodules/$name-opensource-src-$version.tar.xz
last-commit-position.patch
harmony-fix.patch)
build() {
cd $name-opensource-src-$version
# we don't use git sources
patch -p1 -i $SRC/last-commit-position.patch
# FreeType 2.8.1
patch -p1 -i $SRC/harmony-fix.patch
# Ninja, by default, sets the number of jobs to the number of availalble threads
local JOBS=$(awk 'BEGIN{RS="-j|--jobs="} NR==2 {print $1}' <<< $MAKEFLAGS)
test -n "$JOBS" && export NINJAFLAGS+=" -j $JOBS"
install -d build
cd build
qmake-qt5 WEBENGINE_CONFIG+="use_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' {} \;
}