PKGBUILDs/syncthingtray/default/PKGBUILD

48 lines
1.6 KiB
Bash
Raw Normal View History

2016-09-11 23:37:58 +02:00
# Maintainer: Martchus <martchus@gmx.net>
# All my PKGBUILDs are managed at https://github.com/Martchus/PKGBUILDs where
# you also find the URL of a binary repository.
# set the web view provider: either webkit, webengine, auto or none
_webview_provider=webkit
2017-02-09 16:51:59 +01:00
# set to non-empty string to enable KIO plugin to show Syncthing actions in
# Dolphin file browser
_enable_kio_plugin=1
2016-09-11 23:37:58 +02:00
_reponame=syncthingtray
pkgname=syncthingtray
2017-02-09 16:51:59 +01:00
pkgver=0.5.0
2016-09-11 23:37:58 +02:00
pkgrel=1
arch=('i686' 'x86_64')
pkgdesc='Tray application for Syncthing'
license=('GPL')
depends=('qtutilities' 'qt5-svg' 'openssl' 'desktop-file-utils' 'xdg-utils')
[[ $_webview_provider == none ]] && depends+=('qt5-base')
[[ $_webview_provider == webkit ]] && depends+=('qt5-webkit')
[[ $_webview_provider == webengine ]] && depends+=('qt5-webengine')
2017-02-09 16:51:59 +01:00
[[ $_enable_kio_plugin ]] && optdepends+=('kio: KIO plugin for Syncthing actions in Dolphin')
2016-09-11 23:37:58 +02:00
makedepends=('cmake' 'qt5-tools')
2017-02-09 16:51:59 +01:00
[[ $_enable_kio_plugin ]] && makedepends+=('kio')
2016-09-11 23:37:58 +02:00
url="https://github.com/Martchus/${_reponame}"
2016-10-03 14:23:34 +02:00
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/Martchus/${_reponame}/archive/v${pkgver}.tar.gz")
2017-02-09 16:51:59 +01:00
sha256sums=('8dfa07e224d691c3c58a5e354b9ed4bdfb8fc982fdbed47e07da3feb660f49cd')
2016-09-11 23:37:58 +02:00
build() {
cd "$srcdir/${PROJECT_DIR_NAME:-$_reponame-$pkgver}"
2017-02-09 16:51:59 +01:00
local additional_args=
2017-02-26 21:17:50 +01:00
[[ $_enable_kio_plugin ]] || additional_args+=-DNO_FILE_ITEM_ACTION_PLUGIN=ON
2016-09-11 23:37:58 +02:00
cmake \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX="/usr" \
-DWEBVIEW_PROVIDER="${_webview_provider}" \
2017-02-09 16:51:59 +01:00
-DSYSTEMD_SUPPORT=ON \
$additional_args
2016-09-11 23:37:58 +02:00
make
}
package() {
cd "$srcdir/${PROJECT_DIR_NAME:-$_reponame-$pkgver}"
make DESTDIR="${pkgdir}" install
}