[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#56886] [PATCH v2] gnu: queen-de: Fix build.
From: |
Felix Gruber |
Subject: |
[bug#56886] [PATCH v2] gnu: queen-de: Fix build. |
Date: |
Thu, 4 Aug 2022 19:23:49 +0000 |
* gnu/packages/games.scm (make-queen-package)[arguments]: Only install
readme.txt if it exists. The queen-de package that we create with
make-queen-package does not contain a readme file, while all the other
versions of the queen package have a readme file.
---
gnu/packages/games.scm | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm
index 06084d1167..da722ade84 100644
--- a/gnu/packages/games.scm
+++ b/gnu/packages/games.scm
@@ -9810,7 +9810,9 @@ Skorl. Maybe it would be an idea to try and escape...")
(let ((unzip (search-input-file %build-inputs "/bin/unzip")))
(invoke unzip "-j" (assoc-ref %build-inputs "source")))
(let ((doc (string-append share "/doc/" ,name "-" ,version)))
- (install-file "readme.txt" doc))
+ (for-each (lambda (file)
+ (when (file-exists? file) (install-file file doc)))
+ '("readme.txt" "README" "README.md")))
(install-file "queen.1c" data)
(mkdir-p bin)
(let ((bash (assoc-ref %build-inputs "bash")))
--
2.30.2