QSyncthingTray: make webengine an option

This commit is contained in:
q66 2020-01-20 20:46:12 +01:00
parent 328f46ca1d
commit c90bab338e
1 changed files with 19 additions and 2 deletions

View File

@ -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 <the@howl.moe>"
@ -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