56 lines
1.9 KiB
Bash
56 lines
1.9 KiB
Bash
# Template file for 'syncthingtray'
|
|
pkgname=syncthingtray
|
|
version=1.6.3
|
|
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 <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=49ab861c2bc0649652b8dcbc4cf8788c743008a8bc6d023f7d4a3b3bbdc3bdc6
|
|
|
|
# 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
|
|
}
|
|
}
|