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.
This commit is contained in:
parent
b797e6906b
commit
ae4da4c81f
1 changed files with 9 additions and 1 deletions
|
|
@ -6523,7 +6523,15 @@ emerges from a sewer hole and pulls her below ground.")
|
||||||
(list
|
(list
|
||||||
#:configure-flags
|
#:configure-flags
|
||||||
#~(list (string-append "-DCDOGS_DATA_DIR=" #$output
|
#~(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
|
(native-inputs
|
||||||
(list pkg-config))
|
(list pkg-config))
|
||||||
(inputs
|
(inputs
|
||||||
|
|
|
||||||
Reference in a new issue