From c90bab338e4fb7197b5f23113c1ffb83b10333ed Mon Sep 17 00:00:00 2001 From: q66 Date: Mon, 20 Jan 2020 20:46:12 +0100 Subject: [PATCH] QSyncthingTray: make webengine an option --- srcpkgs/QSyncthingTray/template | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/srcpkgs/QSyncthingTray/template b/srcpkgs/QSyncthingTray/template index 092edf00195..53867d754a8 100644 --- a/srcpkgs/QSyncthingTray/template +++ b/srcpkgs/QSyncthingTray/template @@ -1,10 +1,10 @@ # Template file for 'QSyncthingTray' pkgname=QSyncthingTray version=0.5.8 -revision=1 +revision=2 build_style=cmake hostmakedepends="qt5-qmake qt5-host-tools" -makedepends="qt5-declarative-devel qt5-webengine-devel qt5-webchannel-devel +makedepends="qt5-declarative-devel qt5-webchannel-devel qt5-location-devel qt5-quickcontrols2-devel qt5-devel" short_desc="Tray App for Syncthing written in C++" maintainer="Morgan Bazalgette " @@ -13,6 +13,23 @@ homepage="https://github.com/sieren/QSyncthingTray" distfiles="https://github.com/sieren/QSyncthingTray/archive/${version}.tar.gz" checksum=ff428ac5a09e5df7bde3d71044062de104a6cb17a2918ae317061f5ad1394480 +# next release: make webkit an option and build nativebrowser with neither set +build_options="webengine" +desc_option_webengine="Use Qt5 WebEngine support" + +if [ "$XBPS_TARGET_ENDIAN" = "le" ]; then + if [ "$XBPS_TARGET_WORDSIZE" = "$XBPS_WORDSIZE" ]; then + build_options_default="webengine" + fi +fi + +if [ "$build_option_webengine" ]; then + makedepends+=" qt5-webengine-devel" +else + makedepends+=" qt5-webkit-devel" + configure_args+=" -DQST_BUILD_WEBKIT=1" +fi + do_install() { # Install main binary vbin ./build/QSyncthingTray