Subject: [PATCH] gnu: Add kgames.

From: [email-masked]
Date: Tue, 11 Mar 2025 21:58:37 +0800

From: 宋文武 <[email-masked]>

* gnu/packages/games.scm (kgames): New variable.

Change-Id: I5b787365c051951dbd038db0191905b4e693c978
---
 gnu/packages/games.scm | 41 +++++++++++++++++++++++++++++++++++++++++
 1 file changed, 41 insertions(+)

diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm
index fd22b0243f..cb1544a712 100644
--- a/gnu/packages/games.scm
+++ b/gnu/packages/games.scm
@@ -2129,6 +2129,47 @@ (define-public opensurge
            license:public-domain
            license:silofl1.1))))
 
+(define-public kgames
+  (package
+    (name "kgames")
+    (version "2.4.1")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/keith-packard/kgames")
+                    (commit version)))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "09alaszhwnzzv5b0cxv5dia9y0fm63n2igv42ydkq299h7avb5fq"))))
+    (build-system meson-build-system)
+    (arguments
+     (list #:configure-flags
+           #~'("-Duser-menu=false"
+               "-Dbindir=bin")))
+    (native-inputs
+     (list bison flex pkg-config))
+    (inputs
+     (list cairo
+           fontconfig
+           freetype
+           librsvg
+           libx11
+           libxaw
+           libxft
+           libxmu
+           libxpm
+           libxrender
+           ncurses))
+    (synopsis "Xaw based solitaire games")
+    (home-page "https://github.com/keith-packard/kgames")
+    (description
+     "This package provides a collection of solitaire games: kaces, kcanfield,
+kcribbage, kdominos, kklondike, kmcarlo, kmontana, kslyfox, kspider, ktabby,
+kthieves, ktowers, xmille and xreversi.")
+    ;; Code is under BSD-3 and Expat, card images are under CC0.
+    (license (list license:bsd-3 license:expat license:cc0))))
+
 (define-public knightsgame
   (package
     (name "knightsgame")

base-commit: 7b9cd0b4293041fdbfa065b019cea589cc316060
-- 
2.48.1