# Template file for 'syncthingtray' pkgname=syncthingtray version=1.7.2 revision=1 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 qt6-svg" checkdepends="syncthing iproute2" short_desc="Tray application for Syncthing" maintainer="classabbyamp " 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=fdea38ae68ff64bdfb00d09e2cccfb509bb44eafcd33f62998a3811a4910b9ea # 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/io.github.martchus.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/io.github.martchus.syncthingfileitemaction.metainfo.xml vmove usr/lib/qt6/plugins/kf6 } }