summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/games.scm103
1 files changed, 40 insertions, 63 deletions
diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm
index 41659919472..a7ab0f274ad 100644
--- a/gnu/packages/games.scm
+++ b/gnu/packages/games.scm
@@ -72,7 +72,7 @@
72;;; Copyright © 2022 Roman Riabenko <roman@riabenko.com> 72;;; Copyright © 2022 Roman Riabenko <roman@riabenko.com>
73;;; Copyright © 2022, 2023, 2025 zamfofex <zamfofex@twdb.moe> 73;;; Copyright © 2022, 2023, 2025 zamfofex <zamfofex@twdb.moe>
74;;; Copyright © 2022 Gabriel Arazas <foo.dogsquared@gmail.com> 74;;; Copyright © 2022 Gabriel Arazas <foo.dogsquared@gmail.com>
75;;; Copyright © 2022-2025 Maxim Cournoyer <maxim@guixotic.coop> 75;;; Copyright © 2022-2026 Maxim Cournoyer <maxim@guixotic.coop>
76;;; Copyright © 2022 Hendursaga <hendursaga@aol.com> 76;;; Copyright © 2022 Hendursaga <hendursaga@aol.com>
77;;; Copyright © 2022 Parnikkapore <poomklao@yahoo.com> 77;;; Copyright © 2022 Parnikkapore <poomklao@yahoo.com>
78;;; Copyright © 2022 Cairn <cairn@pm.me> 78;;; Copyright © 2022 Cairn <cairn@pm.me>
@@ -3896,7 +3896,7 @@ saved automatically, and you can select between currently in progress games.")
3896(define-public trigger-rally 3896(define-public trigger-rally
3897 (package 3897 (package
3898 (name "trigger-rally") 3898 (name "trigger-rally")
3899 (version "0.6.6.1") 3899 (version "0.6.7")
3900 (source 3900 (source
3901 (origin 3901 (origin
3902 (method url-fetch) 3902 (method url-fetch)
@@ -3905,68 +3905,45 @@ saved automatically, and you can select between currently in progress games.")
3905 "trigger-rally-" version ".tar.gz")) 3905 "trigger-rally-" version ".tar.gz"))
3906 (sha256 3906 (sha256
3907 (base32 3907 (base32
3908 "016bc2hczqscfmngacim870hjcsmwl8r3aq8x03vpf22s49nw23z")))) 3908 "1ryzddf5k0jzv8xhmikajql2qc3gvha7by43r4l7yag17kx921k4"))))
3909 (build-system gnu-build-system) 3909 (build-system gnu-build-system)
3910 (inputs 3910 (inputs
3911 `(("freealut" ,freealut) 3911 (list freealut
3912 ("glew" ,glew) 3912 glew
3913 ("glu" ,glu) 3913 glu
3914 ("mesa" ,mesa) 3914 mesa
3915 ("openal" ,openal) 3915 openal
3916 ("physfs" ,physfs) 3916 physfs
3917 ("sdl" ,(sdl-union (list sdl2 sdl2-image))) 3917 (sdl-union (list sdl2 sdl2-image))
3918 ("tinyxml2" ,tinyxml2))) 3918 tinyxml2))
3919 (arguments 3919 (arguments
3920 `(#:make-flags (list (string-append "prefix=" %output) 3920 (list
3921 "bindir=$(prefix)/bin" 3921 #:make-flags #~(list (string-append "prefix=" #$output)
3922 "datadir=$(datarootdir)" 3922 "bindir=$(prefix)/bin"
3923 "OPTIMS=-Ofast") 3923 "datadir=$(datarootdir)"
3924 #:tests? #f ; No tests present 3924 "LOC_APPDATAFILE=$(datarootdir)/metainfo"
3925 #:phases 3925 "LOC_DESKTOPFILE=$(datarootdir)/applications"
3926 (modify-phases %standard-phases 3926 "OPTIMS=-Ofast")
3927 (delete 'configure) 3927 #:tests? #f ; No tests present
3928 (add-before 'build 'cd-src 3928 #:phases
3929 (lambda _ (chdir "src"))) 3929 #~(modify-phases %standard-phases
3930 (add-before 'build 'remove-timestamps 3930 (delete 'configure)
3931 (lambda _ 3931 (add-before 'build 'cd-src
3932 (substitute* (list "Trigger/menu.cpp" 3932 (lambda _ (chdir "src")))
3933 "PEngine/app.cpp") 3933 (add-before 'build 'remove-timestamps
3934 ((".*__DATE__.*") "")))) 3934 (lambda _
3935 (add-before 'build 'make-verbose 3935 (substitute* (list "Trigger/menu.cpp"
3936 (lambda _ 3936 "PEngine/app.cpp")
3937 (substitute* "GNUmakefile" 3937 ((".*__DATE__.*") ""))))
3938 (("@\\$\\(CXX\\)") "$(CXX)")))) 3938 (add-before 'build 'make-verbose
3939 (add-after 'build 'set-data-path 3939 (lambda _
3940 (lambda* (#:key outputs #:allow-other-keys) 3940 (substitute* "GNUmakefile"
3941 (let ((out (assoc-ref outputs "out"))) 3941 (("@\\$\\(CXX\\)") "$(CXX)"))))
3942 (substitute* "../bin/trigger-rally.config.defs" 3942 (add-after 'build 'set-data-path
3943 (("<data path=\"C:[^\"]*\"") 3943 (lambda _
3944 (string-append "<data path=\"" out "/share/trigger-rally\"")))))) 3944 (substitute* "../bin/trigger-rally.config.defs"
3945 (add-after 'install 'create-desktop-entry 3945 (("<data path=\"C:[^\"]*\"")
3946 (lambda* (#:key outputs #:allow-other-keys) 3946 (string-append "<data path=\"" #$output "/share/trigger-rally\""))))))))
3947 (let* ((out (assoc-ref outputs "out"))
3948 (apps (string-append out "/share/applications")))
3949 (mkdir-p apps)
3950 (with-output-to-file
3951 (string-append apps "/trigger-rally.desktop")
3952 (lambda ()
3953 (format #t ; Borrowed from Debian package
3954 "[Desktop Entry]~@
3955 Name=Trigger Rally~@
3956 Icon=trigger-rally~@
3957 Comment=3D rally racing car game~@
3958 Comment[de]=3D Rally-Autorennen~@
3959 Comment[fr_FR]=un jeu de rally en 3D~@
3960 Comment[ro_RO]=Un joc în 3D cu curse de raliu~@
3961 Exec=~a/bin/trigger-rally~@
3962 Terminal=false~@
3963 StartupNotify=false~@
3964 Type=Application~@
3965 TryExec=~:*~a/bin/trigger-rally~@
3966 Categories=Game;ArcadeGame;~@
3967 Keywords=racing;tracks;~@
3968 Keywords[de]=Rennstrecke;~%"
3969 out)))))))))
3970 (home-page "https://trigger-rally.sourceforge.net") 3947 (home-page "https://trigger-rally.sourceforge.net")
3971 (synopsis "Fast-paced single-player racing game") 3948 (synopsis "Fast-paced single-player racing game")
3972 (description "Trigger-rally is a 3D rally simulation with great physics 3949 (description "Trigger-rally is a 3D rally simulation with great physics
@@ -3977,7 +3954,7 @@ through the maps in often tight time limits and can further improve by beating
3977the recorded high scores. All attached single races must be finished in time 3954the recorded high scores. All attached single races must be finished in time
3978in order to win an event, unlocking additional events and cars. Most maps are 3955in order to win an event, unlocking additional events and cars. Most maps are
3979equipped with spoken co-driver notes and co-driver icons.") 3956equipped with spoken co-driver notes and co-driver icons.")
3980 (license (list license:cc0 ;textures and audio in data.zip 3957 (license (list license:cc0 ;textures and audio in data.zip
3981 license:gpl2+)))) 3958 license:gpl2+))))
3982 3959
3983(define-public xshogi 3960(define-public xshogi