gnu: openrct2: Fix a few paths.
authorRutger Helling <rhelling@mykolab.com>
Sat, 21 Oct 2017 08:33:30 +0000 (10:33 +0200)
committerJelle Licht <jlicht@fsfe.org>
Thu, 26 Oct 2017 18:07:50 +0000 (20:07 +0200)
* gnu/packages/games.scm (openrct2): Fix a few paths.

gnu/packages/games.scm

index 61eed39..896d534 100644 (file)
@@ -2648,6 +2648,12 @@ Transport Tycoon Deluxe.")
      `(#:tests? #f ;; no tests available
        #:phases
         (modify-phases %standard-phases
+          (add-after 'unpack 'fix-usr-share-paths
+            (lambda* (#:key make-flags outputs #:allow-other-keys)
+              ;; Fix some references to /usr/share.
+              (substitute* "src/openrct2/platform/linux.c"
+                (("/usr/share")
+                (string-append (assoc-ref %outputs "out") "/share")))))
           (add-after 'build 'fix-cmake-install-file
             (lambda _
               ;; The build system tries to download a file and compare hashes.