From 442b1c1b59616b4d3967ce4e8eb04f0b0d7cb793 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Sun, 2 Aug 2026 16:03:03 +0700 Subject: [PATCH] QSyncthingTray: replaced by syncthingtray --- srcpkgs/QSyncthingTray | 1 + .../QSyncthingTray/files/checksum-logos.txt | 6 -- .../files/qsyncthingtray.desktop | 7 --- srcpkgs/QSyncthingTray/template | 58 ------------------- srcpkgs/syncthingtray/template | 8 ++- 5 files changed, 8 insertions(+), 72 deletions(-) create mode 120000 srcpkgs/QSyncthingTray delete mode 100644 srcpkgs/QSyncthingTray/files/checksum-logos.txt delete mode 100644 srcpkgs/QSyncthingTray/files/qsyncthingtray.desktop delete mode 100644 srcpkgs/QSyncthingTray/template diff --git a/srcpkgs/QSyncthingTray b/srcpkgs/QSyncthingTray new file mode 120000 index 00000000000000..146441954aaa9f --- /dev/null +++ b/srcpkgs/QSyncthingTray @@ -0,0 +1 @@ +syncthingtray \ No newline at end of file diff --git a/srcpkgs/QSyncthingTray/files/checksum-logos.txt b/srcpkgs/QSyncthingTray/files/checksum-logos.txt deleted file mode 100644 index 88ea5893abe730..00000000000000 --- a/srcpkgs/QSyncthingTray/files/checksum-logos.txt +++ /dev/null @@ -1,6 +0,0 @@ -b1246e0dd30d4714ac956d4fb515b8a9ff0b88c42c776e52097957540b8ae153 logo-128.png -8592e8a04db671117342578016a2836de2f2928ec2a218eb80ce2f46bcc29919 logo-256.png -a4aea427d937d80ac0b646ec1b2014e2d502a9c24614e84a702b5c8590d057d7 logo-32.png -ec00d46357a1fc842aed79916ce967dbb6e00ea49c5d9f9644ca3b3ff1a51694 logo-512.png -770cde8d7a7d351bc24339649a501a774f2dc550ba692ab4e7518e63d8f4a45f logo-64.png -32a59ba5e16eea315c533d38358107984049d54c8130122cd0a63480fffa80dd logo-scalable.svg diff --git a/srcpkgs/QSyncthingTray/files/qsyncthingtray.desktop b/srcpkgs/QSyncthingTray/files/qsyncthingtray.desktop deleted file mode 100644 index d652d105c8e850..00000000000000 --- a/srcpkgs/QSyncthingTray/files/qsyncthingtray.desktop +++ /dev/null @@ -1,7 +0,0 @@ -[Desktop Entry] -Type=Application -Name=QSyncthingTray -Comment=Tray App for Syncthing written in C++ -Exec=QSyncthingTray -Icon=qsyncthingtray -Terminal=false diff --git a/srcpkgs/QSyncthingTray/template b/srcpkgs/QSyncthingTray/template deleted file mode 100644 index 59546f3821b2a9..00000000000000 --- a/srcpkgs/QSyncthingTray/template +++ /dev/null @@ -1,58 +0,0 @@ -# Template file for 'QSyncthingTray' -pkgname=QSyncthingTray -version=0.5.8 -revision=2 -build_style=cmake -hostmakedepends="qt5-qmake qt5-host-tools" -makedepends="qt5-declarative-devel qt5-webchannel-devel - qt5-location-devel qt5-quickcontrols2-devel qt5-devel" -short_desc="Tray App for Syncthing written in C++" -maintainer="Morgan Bazalgette " -license="LGPL-3.0-or-later" -homepage="https://github.com/sieren/QSyncthingTray" -distfiles="https://github.com/sieren/QSyncthingTray/archive/${version}.tar.gz" -checksum=ff428ac5a09e5df7bde3d71044062de104a6cb17a2918ae317061f5ad1394480 - -# next release: make webkit an option and build nativebrowser with neither set -build_options="webengine" -desc_option_webengine="Use Qt5 WebEngine support" - -if [ "$XBPS_TARGET_ENDIAN" = "le" ]; then - if [ "$XBPS_TARGET_WORDSIZE" = "$XBPS_WORDSIZE" ]; then - build_options_default="webengine" - fi -fi - -if [ "$build_option_webengine" ]; then - makedepends+=" qt5-webengine-devel" - configure_args+=" -DQST_BUILD_WEBKIT=0" -else - makedepends+=" qt5-webkit-devel" - configure_args+=" -DQST_BUILD_WEBKIT=1" -fi - -do_install() { - # Install main binary - vbin ./build/QSyncthingTray - - # Desktop file - vmkdir usr/share/applications - vcopy ${FILESDIR}/qsyncthingtray.desktop usr/share/applications - # Download icons - mkdir -p ${wrksrc}/icons - cd ${wrksrc}/icons - for suffix in 'only.svg>logo-scalable.svg' {32,64,128,256,512}.png; do - xbps-uhelper fetch \ - "https://raw.githubusercontent.com/syncthing/syncthing/"\ -"7f0603effa8ff465ea0a96c6dd877c0fe6a1cb78/assets/logo-${suffix}" - done - sha256sum --check ${FILESDIR}/checksum-logos.txt || exit 1 - # Install icons - vmkdir usr/share/icons/hicolor - vinstall ./logo-scalable.svg 644 \ - usr/share/icons/hicolor/scalable/apps/ qsyncthingtray.svg - for size in 32 64 128 256 512; do - vinstall ./logo-${size}.png 644 \ - usr/share/icons/hicolor/${size}x${size}/apps/ qsyncthingtray.png - done -} diff --git a/srcpkgs/syncthingtray/template b/srcpkgs/syncthingtray/template index 1a773ffccf4dc4..05dadf7a04a048 100644 --- a/srcpkgs/syncthingtray/template +++ b/srcpkgs/syncthingtray/template @@ -1,7 +1,7 @@ # Template file for 'syncthingtray' pkgname=syncthingtray version=2.1.3 -revision=1 +revision=2 build_style=cmake build_helper="qemu" configure_args="-DBUILTIN_TRANSLATIONS=ON -DSYSTEMD_SUPPORT=OFF @@ -55,3 +55,9 @@ syncthingtray-dolphin_package() { vmove usr/lib/qt6/plugins/kf6 } } + +QSyncthingTray_package() { + metapackage=yes + depends="${sourcepkg}" + short_desc+=" - transitional package" +}