Subject: [PATCH] gnu: Add freerct.
From: Gabriel Arazas <[email-masked]>
To: [email-masked]
Cc: Gabriel Arazas <[email-masked]>
Date: Fri, 20 May 2022 12:03:50 +0800
List-Id: <debbugs-submit.debbugs.gnu.org>

* gnu/packages/games.scm (freerct): New variable.
---
 gnu/packages/games.scm | 35 +++++++++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)

diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm
index c6d23298ff..c1873d4a02 100644
--- a/gnu/packages/games.scm
+++ b/gnu/packages/games.scm
@@ -71,6 +71,7 @@
 ;;; Copyright © 2022 Yovan Naumovski <[email-masked]>
 ;;; Copyright © 2022 Roman Riabenko <[email-masked]>
 ;;; Copyright © 2022 zamfofex <[email-masked]>
+;;; Copyright © 2022 Gabriel Arazas <[email-masked]>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -12715,3 +12716,37 @@ (define-public liquidwar6
 original, they have been invented by Thomas Colcombet.")
     (home-page "https://www.gnu.org/software/liquidwar6/")
     (license license:gpl3+)))
+
+(define-public freerct
+  (package
+    (name "freerct")
+    (version "0.1")
+    ;; TODO: Use the source code given at the homepage.
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/FreeRCT/FreeRCT")
+                    (commit version)))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "1szwy2cq4ffp4yxm9pp9vdyia0i5nz0wnppdd1xb9w7v3wa4mywi"))))
+    (build-system cmake-build-system)
+    (arguments
+     `(#:tests? #f))
+    (native-inputs (list flex bison))
+    (inputs (list libpng sdl2 sdl2-ttf))
+    (home-page "https://freerct.net/")
+    (synopsis "Theme park management simulation game")
+    (description
+     "FreeRCT is a free and open source game that captures the look and feel
+of the popular games RollerCoaster Tycoon 1 and 2, graphics- and
+gameplay-wise.
+
+In this game, you play as a manager of a theme park, allowing
+you to make a park of your dreams.  The list of responsiblities includes
+managing staff, finances, landscaping, and most importantly: rides. Good
+managers follow the principle of prioritizing the guests' happiness with a
+well-maintained park.  Should they go unwise, a theme park plunge into chaos
+with vandalizing guests and unsafe rides. Which path will you take?")
+    (license license:gpl2)))

base-commit: b6bfe9ea6a1b19159455b34f1af4ac00ef9b94ab
-- 
2.36.0