From ae4da4c81f482d87bb6c40ba8862266ace79f9d3 Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Mon, 21 Aug 2023 10:29:02 +0200 Subject: [PATCH] gnu: cdogs-sdl: Patch assets directory. * gnu/packages/games.scm (cdogs-sdl)[arguments]: Add phase 'patch-install-directory to ensure data files are installed there. --- gnu/packages/games.scm | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm index 8f8eca29de..d56c4ad5e0 100644 --- a/gnu/packages/games.scm +++ b/gnu/packages/games.scm @@ -6523,7 +6523,15 @@ (define-public cdogs-sdl (list #:configure-flags #~(list (string-append "-DCDOGS_DATA_DIR=" #$output - "/share/cdogs-sdl/")))) + "/share/cdogs-sdl/")) + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'patch-install-directory + (lambda _ + (substitute* "CMakeLists.txt" + (("set\\(DATA_INSTALL_DIR \".\"\\)") + (string-append "set(DATA_INSTALL_DIR \"" + #$output "/share/cdogs-sdl\")")))))))) (native-inputs (list pkg-config)) (inputs