all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Andrew Wong via Guix-patches via <guix-patches@gnu.org>
To: 75106@debbugs.gnu.org
Cc: Andrew Wong <wongandj@icloud.com>
Subject: [bug#75106] [PATCH 2/2] gnu: Add ringracers.
Date: Wed, 25 Dec 2024 20:31:32 -0500	[thread overview]
Message-ID: <20241226013149.11294-2-wongandj@icloud.com> (raw)
In-Reply-To: <20241226013149.11294-1-wongandj@icloud.com>

Change-Id: Iaa92026e4d9a62fa3549b39aff7da0dd6f078013
---
 gnu/packages/games.scm | 56 ++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 56 insertions(+)

diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm
index c2bb9aa1c4..cccfd91e1c 100644
--- a/gnu/packages/games.scm
+++ b/gnu/packages/games.scm
@@ -249,6 +249,62 @@ (define-module (gnu packages games)
   #:use-module ((srfi srfi-1) #:hide (zip))
   #:use-module (srfi srfi-26))
 
+(define-public ring-racers
+  (package
+    (name "ring-racers")
+    (version "2.3")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+	     (url "https://git.do.srb2.org/KartKrew/RingRacers")
+	     (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+	(base32 "05lf799imbk0x3i2adaj0r84ck5yyrvzjvhs4k9dj7l4jg0x4sjz"))
+       ;; (snippet
+       ;;  '(begin
+       ;;     (with-directory-excursion "thirdparty"
+       ;;       (for-each delete-file-recursively '("fmt")))
+       ;;     #t))
+       ))
+    (build-system cmake-build-system)
+    (arguments
+     `(#:tests? #f
+       #:configure-flags
+       (list "-DCMAKE_C_FLAGS_RELWITHDEBINFO='-O3 -g -DNDEBUG'"
+	     "-DCMAKE_CXX_FLAGS_RELWITHDEBINFO='-O3 -g -DNDEBUG'"
+	     "-DSRB2_CONFIG_DEV_BUILD=OFF"
+	     "-DCMAKE_BUILD_TYPE=RelWithDebInfo")
+       #:phases
+       (modify-phases %standard-phases
+         ;; (add-after 'unpack 'unbundle-font
+         ;;   (lambda* (#:key inputs #:allow-other-keys)
+         ;;     (with-directory-excursion "thirdparty"
+         ;;       (for-each delete-file-recursively '("fmt")))
+         ;;     #t))
+         ;; ^^ This is how to remove the bundles, but how to replace them???
+         (add-after 'install 'move-binary
+           ;; Symlink executable to $out/bin.
+           (lambda* (#:key outputs #:allow-other-keys)
+             (let* ((out (assoc-ref outputs "out"))
+                    (bin (string-append out "/bin")))
+               (mkdir-p bin)
+               (with-directory-excursion bin
+                 (symlink "../ringracers"
+                          "ringracers"))
+               #t))))))
+    (inputs (list curl zlib libpng libogg libvorbis libvpx libyuv sdl2))
+    (home-page "https://kartkrew.org")
+    (synopsis "Technical kart racing game")
+    (description
+     "\"Dr. Robotnik’s Ring Racers\" is a Technical Kart Racer, drawing
+inspiration from \"antigrav\" racers, fighting games, and traditional-style kart
+racing.  Designed to minimize randomness and emphasize player expression, Ring
+Racers isn’t just about precise handling—you’ll need to master tense combat,
+resource management, and taking risks under pressure.")
+    (license license:gpl2)))
+
 (define-public hexahop
   (package
     (name "hexahop")
-- 
2.46.0





  reply	other threads:[~2024-12-26  1:33 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <cover>
2024-12-26  1:24 ` [bug#75106] [PATCH 0/2] Add ringracers Andrew Wong via Guix-patches via
2024-12-26  1:31   ` [bug#75106] [PATCH 1/2] gnu: Add libyuv Andrew Wong via Guix-patches via
2024-12-26  1:31     ` Andrew Wong via Guix-patches via [this message]
2024-12-26  1:43   ` [bug#75106] [PATCH v2 " Andrew Wong via Guix-patches via
2024-12-26  1:43     ` [bug#75106] [PATCH v2 2/2] gnu: Add ringracers Andrew Wong via Guix-patches via
2024-12-26  1:47   ` [bug#75106] [PATCH v3 1/2] gnu: Add libyuv Andrew Wong via Guix-patches via
2024-12-26  1:47     ` [bug#75106] [PATCH v3 2/2] gnu: Add ringracers Andrew Wong via Guix-patches via

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20241226013149.11294-2-wongandj@icloud.com \
    --to=guix-patches@gnu.org \
    --cc=75106@debbugs.gnu.org \
    --cc=wongandj@icloud.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.