summaryrefslogtreecommitdiff
path: root/qtwebengine/Pkgfile
blob: 076324596fd7e01cfc021afc1d1d197c7bc8c397 (plain)
    1 # Description: Provides support for web applications using the Chromium browser project.
    2 # URL: https://www.qt.io/
    3 # Maintainer: Danny Rawlins, crux at romster dot me
    4 # Depends on: nss qt5 xorg-libxscrnsaver xorg-libxtst libvpx python
    5 
    6 name=qtwebengine
    7 version=5.15.2
    8 release=1
    9 source=(https://download.qt.io/official_releases/qt/${version::4}/$version/submodules/$name-everywhere-src-$version.tar.xz)
   10 
   11 build() {
   12 	cd $name-everywhere-src-$version
   13 
   14 	# Ninja, by default, sets the number of jobs to the number of availalble threads
   15 	test -n "$JOBS" && export NINJAFLAGS+=" -j $JOBS"
   16 
   17 	prt-get isinst ccache && export \
   18 		QMAKE_CC='ccache gcc' \
   19 		QMAKE_LINK_C='ccache gcc' \
   20 		QMAKE_LINK_C_SHLIB='ccache gcc' \
   21 		QMAKE_CXX='ccache g++' \
   22 		QMAKE_LINK='ccache g++' \
   23 		QMAKE_LINK_SHLIB='ccache g++' \
   24 		PATH="$(echo ${PATH} | awk -v RS=: -v ORS=: '/ccache/ {next} {print}' | sed 's/:*$//')"
   25 
   26 	install -d build
   27 	cd build
   28 
   29 	qmake .. -- -proprietary-codecs
   30 	make
   31 	make INSTALL_ROOT=$PKG install
   32 
   33 	find "$PKG/usr/lib" -type f -name '*.prl' \
   34 		-exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' {} \;
   35 
   36 }

Generated by cgit