* [bug#38981] [PATCH] gnu: Add corsix-th.
@ 2020-01-06 11:07 Timotej Lazar
2020-01-17 13:11 ` bug#38981: " Ludovic Courtès
0 siblings, 1 reply; 2+ messages in thread
From: Timotej Lazar @ 2020-01-06 11:07 UTC (permalink / raw)
To: 38981; +Cc: Timotej Lazar
* gnu/packages/games.scm (corsix-th): New variable.
---
gnu/packages/games.scm | 56 ++++++++++++++++++++++++++++++++++++++++++
1 file changed, 56 insertions(+)
diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm
index 066e2c8cf3..969518f8ca 100644
--- a/gnu/packages/games.scm
+++ b/gnu/packages/games.scm
@@ -462,6 +462,62 @@ want what you have.")
(define-public cataclysm-dark-days-ahead
(deprecated-package "cataclysm-dark-days-ahead" cataclysm-dda))
+(define-public corsix-th
+ (package
+ (name "corsix-th")
+ (version "0.63")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/CorsixTH/CorsixTH.git")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1rkyk8g55xny276s0hr5k8mq6f4nzz56d3k2mp09dzfymrqb8hgi"))))
+ (build-system cmake-build-system)
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (add-after 'install 'wrap-binary
+ (lambda _
+ ;; Set Lua module paths and default MIDI soundfont on startup.
+ (let* ((out (assoc-ref %outputs "out"))
+ (fluid (assoc-ref %build-inputs "fluid-3"))
+ (lua-version ,(version-major+minor (package-version lua)))
+ (lua-cpath
+ (map (lambda (lib)
+ (string-append
+ (assoc-ref %build-inputs (string-append "lua-" lib))
+ "/lib/lua/" lua-version "/?.so"))
+ '("filesystem" "lpeg"))))
+ (wrap-program (string-append out "/bin/corsix-th")
+ `("LUA_CPATH" ";" = ,lua-cpath)
+ `("SDL_SOUNDFONTS" ":" suffix
+ (,(string-append fluid "/share/soundfonts/FluidR3Mono_GM.sf3")))))
+ #t)))
+ #:tests? #f)) ; TODO need busted package to run tests
+ ;; Omit Lua-Socket dependency to disable automatic updates.
+ (inputs
+ `(("ffmpeg" ,ffmpeg)
+ ("fluid-3" ,fluid-3)
+ ("freetype" ,freetype)
+ ("lua" ,lua)
+ ("lua-filesystem" ,lua-filesystem)
+ ("lua-lpeg" ,lua-lpeg)
+ ("sdl2" ,sdl2)
+ ("sdl2-mixer" ,sdl2-mixer)))
+ (home-page "https://corsixth.com")
+ (synopsis "Free implementation of Theme Hospital game engine")
+ (description
+ "Reimplementation of the 1997 Bullfrog business simulation game Theme
+Hospital. As well as faithfully recreating the original engine, CorsixTH adds
+support for high resolutions, custom levels and more. This package does
+@emph{not} provide the game assets.")
+ (license (list
+ license:expat ; main license
+ license:bsd-3)))) ; CorsixTH/Src/random.c
+
(define-public cowsay
(package
(name "cowsay")
--
2.24.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* bug#38981: [PATCH] gnu: Add corsix-th.
2020-01-06 11:07 [bug#38981] [PATCH] gnu: Add corsix-th Timotej Lazar
@ 2020-01-17 13:11 ` Ludovic Courtès
0 siblings, 0 replies; 2+ messages in thread
From: Ludovic Courtès @ 2020-01-17 13:11 UTC (permalink / raw)
To: Timotej Lazar; +Cc: 38981-done
[-- Attachment #1: Type: text/plain, Size: 177 bytes --]
Hello,
Timotej Lazar <timotej.lazar@araneo.si> skribis:
> * gnu/packages/games.scm (corsix-th): New variable.
Applied with the changes below.
Thanks!
Ludo’.
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Type: text/x-patch, Size: 1143 bytes --]
diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm
index f892b850ec..e9d7c18f26 100644
--- a/gnu/packages/games.scm
+++ b/gnu/packages/games.scm
@@ -508,12 +508,12 @@ want what you have.")
("sdl2" ,sdl2)
("sdl2-mixer" ,sdl2-mixer)))
(home-page "https://corsixth.com")
- (synopsis "Free implementation of Theme Hospital game engine")
+ (synopsis "Implementation of the @i{Theme Hospital} game engine")
(description
- "Reimplementation of the 1997 Bullfrog business simulation game Theme
-Hospital. As well as faithfully recreating the original engine, CorsixTH adds
-support for high resolutions, custom levels and more. This package does
-@emph{not} provide the game assets.")
+ "This package provides a reimplementation of the 1997 Bullfrog business
+simulation game @i{Theme Hospital}. As well as faithfully recreating the
+original engine, CorsixTH adds support for high resolutions, custom levels and
+more. This package does @emph{not} provide the game assets.")
(license (list
license:expat ; main license
license:bsd-3)))) ; CorsixTH/Src/random.c
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-01-17 13:12 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-01-06 11:07 [bug#38981] [PATCH] gnu: Add corsix-th Timotej Lazar
2020-01-17 13:11 ` bug#38981: " Ludovic Courtès
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).