Subject: [bug#54948] [PATCH] gnu: emacs-chess: Fix path to pieces.

From: Michael Rohleder <[email-masked]>
Date: Fri, 15 Apr 2022 09:40:40 +0200

* gnu/packages/emacs-xyz.scm (emacs-chess)[arguments]: Fix path to pieces in
phase install-pieces.
---
emacs-chess doesn't find the piece graphics, because it searches them in
"/share/emacs/site-lisp/chess-2.0.5/pieces" not "/share/emacs/site-lisp/pieces".

 gnu/packages/emacs-xyz.scm | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 2d95421472..e4607be09f 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -8454,7 +8454,8 @@ (define-public emacs-chess
           (add-after 'install 'install-pieces
             (lambda _
               (let ((pieces
-                     (string-append #$output "/share/emacs/site-lisp/pieces")))
+                     (string-append #$output "/share/emacs/site-lisp/chess-"
+                                    #$version "/pieces")))
                 (mkdir-p pieces)
                 (copy-recursively "pieces" pieces)))))))
     (home-page "https://elpa.gnu.org/packages/chess.html")
-- 
2.35.1