From 2a75ba0587bf3c0b227e90f5613d5e48ae5470b7 Mon Sep 17 00:00:00 2001 From: Martchus Date: Sat, 7 Apr 2018 23:26:55 +0200 Subject: [PATCH] Configure JavaScript provider for syncthingctl --- syncthingtray/git/PKGBUILD | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/syncthingtray/git/PKGBUILD b/syncthingtray/git/PKGBUILD index 9a4ce51d..333d85aa 100644 --- a/syncthingtray/git/PKGBUILD +++ b/syncthingtray/git/PKGBUILD @@ -9,6 +9,9 @@ # set the web view provider: either webkit, webengine, auto or none _webview_provider=webkit +# set the JavaScript provider: either script, qml, auto or none +_js_provider=qml + # set to non-empty string to enable KIO plugin to show Syncthing actions in # Dolphin file browser _enable_kio_plugin=1 @@ -25,9 +28,11 @@ arch=('i686' 'x86_64') pkgdesc='Tray application for Syncthing' license=('GPL') depends=('qtutilities-git' 'qt5-svg' 'openssl' 'desktop-file-utils' 'xdg-utils') -[[ $_webview_provider == none ]] && depends+=('qt5-base') +[[ $_webview_provider == none ]] && [[ $_js_provider == none ]] && depends+=('qt5-base') [[ $_webview_provider == webkit ]] && depends+=('qt5-webkit') [[ $_webview_provider == webengine ]] && depends+=('qt5-webengine') +[[ $_js_provider == script ]] && depends+=('qt5-script') +[[ $_js_provider == qml ]] && depends+=('qt5-declarative') [[ $_enable_kio_plugin ]] && optdepends+=('kio: KIO plugin for Syncthing actions in Dolphin') [[ $_enable_plasmoid ]] && optdepends+=('plasma-workspace: Plasmoid for Plasma 5 desktop') makedepends=('cmake' 'qt5-tools' 'git') @@ -58,6 +63,7 @@ build() { -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX="/usr" \ -DWEBVIEW_PROVIDER="${_webview_provider}" \ + -DJS_PROVIDER="${_js_provider}" \ -DSYSTEMD_SUPPORT=ON \ $additional_args make