56 lines
1.8 KiB
Bash
56 lines
1.8 KiB
Bash
# Template file for 'syncthingtray'
|
|
pkgname=syncthingtray
|
|
version=1.5.5
|
|
revision=2
|
|
build_style=cmake
|
|
configure_args="-DBUILTIN_TRANSLATIONS=ON -DSYSTEMD_SUPPORT=OFF
|
|
-DBUILD_SHARED_LIBS=ON -DQT_PACKAGE_PREFIX=Qt6 -DKF_PACKAGE_PREFIX=KF6"
|
|
hostmakedepends="pkg-config qt6-tools qt6-base extra-cmake-modules"
|
|
makedepends="cpp-utilities-devel qtutilities-devel qtforkawesome-devel boost-devel
|
|
qt6-base-devel qt6-declarative-devel qt6-svg-devel libplasma-devel kf6-kconfig-devel
|
|
kf6-kio-devel"
|
|
depends="syncthing qt6-plugin-tls-openssl"
|
|
checkdepends="syncthing iproute2"
|
|
short_desc="Tray application for Syncthing"
|
|
maintainer="classabbyamp <void@placeviolette.net>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="https://martchus.github.io/syncthingtray/"
|
|
distfiles="https://github.com/Martchus/syncthingtray/archive/refs/tags/v${version}.tar.gz"
|
|
checksum=b4a987511bfac59b2f9e6ca35459608339e03b85a358c7b9f19b921056f3d68f
|
|
|
|
# requires weird port-binding shenanigans that may not work on ipv6
|
|
# https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=syncthingtray#n50
|
|
make_check=no
|
|
|
|
syncthingtray-devel_package() {
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
vmove "usr/lib/*.so"
|
|
for d in connector fileitemaction model plasmoid widgets; do
|
|
vmove "usr/share/syncthing${d}/cmake"
|
|
done
|
|
}
|
|
}
|
|
|
|
syncthingtray-plasma_package() {
|
|
depends="${sourcepkg}>=${version}_${revision} plasma-workspace"
|
|
short_desc+=" - KDE plasmoid"
|
|
pkg_install() {
|
|
vmove usr/share/metainfo/syncthingplasmoid.metainfo.xml
|
|
vmove usr/lib/qt6/plugins/plasma
|
|
vmove usr/share/plasma
|
|
}
|
|
}
|
|
|
|
syncthingtray-dolphin_package() {
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - dolphin integration"
|
|
pkg_install() {
|
|
vmove usr/share/metainfo/syncthingfileitemaction.metainfo.xml
|
|
vmove usr/lib/qt6/plugins/kf6
|
|
}
|
|
}
|