void-packages/srcpkgs/syncthingtray/template

55 lines
1.8 KiB
Bash

# Template file for 'syncthingtray'
pkgname=syncthingtray
version=1.5.3
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"
depends="syncthing"
checkdepends="syncthing iproute2"
short_desc="Tray application for Syncthing"
maintainer="classabbyamp <void@placeviolette.net>"
license="GPL-2.0-or-later"
homepage="https://github.com/Martchus/syncthingtray"
distfiles="https://github.com/Martchus/syncthingtray/archive/refs/tags/v${version}.tar.gz"
checksum=9a3f0d22b598041403668341282ed9222e0b83bf4eb43b27717b0b253ba7ad9c
# 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.appdata.xml
vmove usr/lib/qt6/plugins/plasma
vmove usr/share/plasma
}
}
syncthingtray-dolphin_package() {
depends="${sourcepkg}>=${version}_${revision} kf6-kio"
short_desc+=" - KDE dolphin integration"
pkg_install() {
vmove usr/share/metainfo/syncthingfileitemaction.appdata.xml
vmove usr/lib/qt6/plugins/kf6
}
}