gnu: chess: Fix paths in installed shell scripts.

* gnu/packages/games.scm (chess)[arguments]: Add a 'fix-shell-scripts phase.

Signed-off-by: Nicolas Goaziou <mail@nicolasgoaziou.fr>
This commit is contained in:
Michael Rohleder 2021-05-03 23:56:15 +02:00 committed by Nicolas Goaziou
parent cc7c1f904e
commit 1d5560494b
No known key found for this signature in database
GPG key ID: DA00B4F048E92F2D

View file

@ -3163,6 +3163,16 @@ (define-public chess
(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