From 18903a7a570c16d8b4571b4dca4ef2cffc19b445 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=8B=E6=96=87=E6=AD=A6?= Date: Tue, 11 Mar 2025 21:58:37 +0800 Subject: [PATCH] gnu: Add kgames. * 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 89e06a3a81..5f4cbe76b9 100644 --- a/gnu/packages/games.scm +++ b/gnu/packages/games.scm @@ -2129,6 +2129,47 @@ built-in level editor.") 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")