[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] gnu: Update sdlpop.

From: phodina
Subject: [PATCH] gnu: Update sdlpop.
Date: Mon, 08 Nov 2021 18:45:09 +0000


Unfotunately the price executable looks for a diractory DATA in the directory 
of argv[0], therefore the prince executable runs only from the 
/guix/store/xxx-sdlpop/bin directory.

The following patch replaces the former location with the latter.

* gnu/packages/games.scm (sdlpop)[arguments]: Substitute location of executable.

-------8<-------cut here--------------->8-------

diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm
index a474933c93..62e753316e 100644
--- a/gnu/packages/games.scm
+++ b/gnu/packages/games.scm
@@ -12642,7 +12642,7 @@ (define-public sdlpop
     (build-system gnu-build-system)
-     `(#:tests? #f ; no tests provided
+     `(#:tests? #f                      ; no tests provided
        (modify-phases %standard-phases
          (delete 'configure)
@@ -12666,6 +12666,8 @@ (define-public sdlpop
                (chdir "..")
                (install-file "prince" bin)
                (substitute* template (("\\$ROOT") out))
+               (substitute* "src/seg009.c" (("g_argv[0]") (string-append "\""
+                                                                         out 
                (install-file template app)
                (rename-file (string-append app "/SDLPoP.desktop.template")
                             (string-append app "/SDLPoP.desktop"))

reply via email to

[Prev in Thread] Current Thread [Next in Thread]