Subject: [bug#75009] [PATCH v3 1/5] gnu: Add ksanecore.

From: Sughosha <[email-masked]>
Date: Thu, 23 Jan 2025 15:42:20 +0530

* gnu/packages/kde.scm (ksanecore): New variable.

Change-Id: I94bef38d1c83194cf5353c4b94dc0b4402d0fc31
---
 gnu/packages/kde.scm | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/gnu/packages/kde.scm b/gnu/packages/kde.scm
index 19f1c2cfc9..352edc7ce4 100644
--- a/gnu/packages/kde.scm
+++ b/gnu/packages/kde.scm
@@ -19,6 +19,7 @@
 ;;; Copyright © 2022 Petr Hodina <[email-masked]>
 ;;; Copyright © 2023 Mehmet Tekman <[email-masked]>
 ;;; Copyright © 2024 Remco van 't Veer <[email-masked]>
+;;; Copyright © 2025 Sughosha <[email-masked]>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -102,6 +103,7 @@ (define-module (gnu packages kde)
   #:use-module (gnu packages python)
   #:use-module (gnu packages qt)
   #:use-module (gnu packages samba)
+  #:use-module (gnu packages scanner)
   #:use-module (gnu packages sdl)
   #:use-module (gnu packages ssh)
   #:use-module (gnu packages tls)
@@ -1331,6 +1333,32 @@ (define-public kpublictransport
 transport data and for performing public transport journey queries.")
     (license (list license:lgpl2.0+))))
 
+(define-public ksanecore
+  (package
+    (name "ksanecore")
+    (version "24.12.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append "mirror://kde/stable/release-service/" version
+                             "/src/ksanecore-" version ".tar.xz"))
+       (sha256
+        (base32 "0bh7i2qh5jdxfgy122vbwin7g46s16kdmam6szj14zc1ggnhqvfb"))))
+    (build-system qt-build-system)
+    (arguments
+     (list #:qtbase qtbase))
+    (native-inputs
+     (list extra-cmake-modules))
+    (inputs
+     (list ki18n
+           sane-backends))
+    (home-page "https://invent.kde.org/libraries/ksanecore")
+    (synopsis "Library logic to interface scanners")
+    (description
+     "KSaneCore is a library that provides a Qt interface for the SANE library
+for scanner hardware.")
+    (license license:lgpl3+)))
+
 (define-public snorenotify
   (package
     (name "snorenotify")
-- 
2.47.1