Subject: [bug#78315] [PATCH v3 51/53] gnu: emacs-chess: Use elpa-directory.

From: Nicolas Graves <[email-masked]>
Date: Sun, 18 May 2025 10:16:50 +0200

* gnu/packages/emacs-xyz.scm (emacs-chess)[arguments]<phases>: Use
elpa-directory.
---
 gnu/packages/emacs-xyz.scm | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index ef26554d76..520184e4d6 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -13629,11 +13629,9 @@ (define-public emacs-chess
       #~(modify-phases %standard-phases
           (add-after 'install 'install-pieces
             (lambda _
-              (let ((pieces
-                     (string-append #$output "/share/emacs/site-lisp/chess-"
-                                    #$version "/pieces")))
-                (mkdir-p pieces)
-                (copy-recursively "pieces" pieces)))))))
+              (copy-recursively
+               "pieces"
+               (string-append (elpa-directory #$output) "/pieces")))))))
     (home-page "https://elpa.gnu.org/packages/chess.html")
     (synopsis "Play chess in GNU Emacs")
     (description
-- 
2.49.0