From 344aa78e8122ae7e598c2fd3d6a4ebdaf87acbf0 Mon Sep 17 00:00:00 2001 From: Artjom Vejsel Date: Sun, 16 Aug 2026 21:18:13 +0300 Subject: [PATCH] packaging: link against the system KDSingleApplication (#4879) The bundled build installs the library's development files along with flameshot, so the package ships /usr/include/kdsingleapplication-qt6 and /usr/lib/libkdsingleapplication-qt6.a. On a system that already has the kdsingleapplication package, pacman refuses the install: flameshot-git: /usr/include/kdsingleapplication-qt6/kdsingleapplication.h exists in filesystem (owned by kdsingleapplication) The library is linked statically, so those files serve no purpose in the package. Build against the system copy instead and declare the dependency; Arch ships the same 1.2.1 the bundled build fetches. --- PKGBUILD | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/PKGBUILD b/PKGBUILD index b130adc70d..cde4ee1190 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -6,7 +6,7 @@ pkgdesc="Powerful yet simple to use screenshot software" arch=('i686' 'x86_64' 'aarch64' 'armv7h') url="https://github.com/flameshot-org/flameshot" license=('GPL-3.0-or-later') -depends=('qt6-base' 'qt6-svg' 'hicolor-icon-theme' 'kguiaddons') +depends=('qt6-base' 'qt6-svg' 'hicolor-icon-theme' 'kguiaddons' 'kdsingleapplication') makedepends=('qt6-tools' 'cmake' 'ninja') optdepends=( 'gnome-shell-extension-appindicator: for system tray icon if you are using Gnome' @@ -35,6 +35,7 @@ build() { -DCMAKE_INSTALL_PREFIX=/usr \ -DUSE_WAYLAND_CLIPBOARD=1 \ -DDISABLE_UPDATE_CHECKER=1 \ + -DUSE_BUNDLED_KDSINGLEAPPLICATION=OFF \ cmake --build build }