From: Michael Rohleder <mike@rohleder.de>
To: 48207@debbugs.gnu.org
Cc: Michael Rohleder <mike@rohleder.de>
Subject: [bug#48207] [PATCH] gnu: chess: Fix paths in installed shell scripts.
Date: Mon, 3 May 2021 23:56:15 +0200 [thread overview]
Message-ID: <20210503215615.30236-1-mike@rohleder.de> (raw)
* gnu/packages/games.scm (chess)[arguments]: Add a 'fix-shell-scripts phase.
---
gnu/packages/games.scm | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm
index 073e41eec6..9d7c8ef341 100644
--- a/gnu/packages/games.scm
+++ b/gnu/packages/games.scm
@@ -3163,6 +3163,16 @@ asynchronously and at a user-defined speed.")
(base32
"0ilq4bfl0lwyzf11q7n2skydjhalfn3bgxhrp5hjxs5bc5d6fdp5"))))
(build-system gnu-build-system)
+ (arguments
+ '(#:phases
+ (modify-phases %standard-phases
+ (add-after 'install 'fix-shell-scripts
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let* ((out (assoc-ref outputs "out"))
+ (bin (string-append out "/bin")))
+ (chdir bin)
+ (substitute* '("gnuchessx" "gnuchessu")
+ (("^gnuchess") (string-append bin "/gnuchess")))))))))
(home-page "https://www.gnu.org/software/chess/")
(synopsis "Full chess implementation")
(description "GNU Chess is a chess engine. It allows you to compete
--
2.31.1
next reply other threads:[~2021-05-03 21:57 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-05-03 21:56 Michael Rohleder [this message]
2021-05-03 23:02 ` bug#48207: [PATCH] gnu: chess: Fix paths in installed shell scripts Nicolas Goaziou
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210503215615.30236-1-mike@rohleder.de \
--to=mike@rohleder.de \
--cc=48207@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).