opt/qtwebengine/Pkgfile

37 lines
1.0 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
2017-08-06 14:35:32 +02:00
# Depends on: qt5 xorg-libxscrnsaver xorg-libxtst nss ninja
2016-10-05 14:24:35 +02:00
name=qtwebengine
2017-11-25 01:02:40 +01:00
version=5.9.3
2016-10-05 14:24:35 +02:00
release=1
2017-08-06 14:35:32 +02:00
source=(http://download.qt.io/official_releases/qt/${version::3}/$version/submodules/$name-opensource-src-$version.tar.xz
2017-10-09 10:22:20 +02:00
last-commit-position.patch
harmony-fix.patch)
2016-10-05 14:24:35 +02:00
build() {
cd $name-opensource-src-$version
2017-08-06 14:35:32 +02:00
# we don't use git sources
patch -p1 -i $SRC/last-commit-position.patch
2017-10-09 10:22:20 +02:00
# FreeType 2.8.1
patch -p1 -i $SRC/harmony-fix.patch
2017-08-06 14:35:32 +02:00
# 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"
2016-10-05 14:24:35 +02:00
install -d build
cd build
2017-08-06 14:35:32 +02:00
qmake-qt5 WEBENGINE_CONFIG+="use_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' {} \;
}