From: Gabriel Arazas <foo.dogsquared@gmail.com>
To: 43630@debbugs.gnu.org
Cc: Gabriel Arazas <foo.dogsquared@gmail.com>
Subject: [bug#43630] [PATCH] gnu: Add tic-80.
Date: Sat, 26 Sep 2020 18:17:38 +0800 [thread overview]
Message-ID: <20200926101738.18925-2-foo.dogsquared@gmail.com> (raw)
In-Reply-To: <20200926101738.18925-1-foo.dogsquared@gmail.com>
* gnu/packages/game-development.scm (tic-80): New variable.
---
gnu/packages/game-development.scm | 57 +++++++++++++++++++++++++++++++
1 file changed, 57 insertions(+)
diff --git a/gnu/packages/game-development.scm b/gnu/packages/game-development.scm
index 3252eb322e..3d0b2e7413 100644
--- a/gnu/packages/game-development.scm
+++ b/gnu/packages/game-development.scm
@@ -20,6 +20,7 @@
;;; Copyright © 2020 Nicolas Goaziou <mail@nicolasgoaziou.fr>
;;; Copyright © 2020 Timotej Lazar <timotej.lazar@araneo.si>
;;; Copyright © 2020 Giacomo Leidi <goodoldpaul@autistici.org>
+;;; Copyright © 2020 Gabriel Arazas <foo.dogsquared@gmail.com>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -2477,3 +2478,59 @@ fully dynamic omnidirectional shadows, global illumination, HDR lighting,
deferred shading, morphological / temporal / multisample anti-aliasing, and
much more.")
(license license:zlib))))
+
+(define-public tic-80
+ ;; TODO: Package TIC-80 with an additional output as a WASM module.
+ (package
+ (name "tic-80")
+ (version "0.80.1344")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/nesbox/TIC-80")
+ (commit (string-append "v" version))
+ (recursive? #t)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "0b1qm1m1wwss4bh3q8gx26kk4g8j4n9mzdd4lbyj7k37fx5v09rp"))))
+ (build-system cmake-build-system)
+ (arguments
+ `(#:tests? #f ; No tests.
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'patch-source
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let* ((out (assoc-ref outputs "out"))
+ (bin (string-append out "/bin"))
+ (share/applications (string-append out "/share/applications"))
+ (share/icons (string-append out "/share/icons")))
+ (substitute* "CMakeLists.txt"
+ ;; Replace the destinations to be inline with Guix.
+ (("/usr/share/applications") bin)
+ (("/usr/share/icons") share/icons)
+ (("\\$\\{TIC80_DESKTOP_DIR}") share/applications))
+
+ ;; The files inside of the folder should have write permissions
+ ;; but it will be overwritten by the build process anyways so it
+ ;; is faster to delete them instead.
+ (delete-file-recursively "build/assets")
+ (mkdir-p "build/assets"))
+ #t)))))
+ (inputs
+ `(("alsa-lib" ,alsa-lib)
+ ("curl" ,curl)
+ ("freeglut" ,freeglut)
+ ("glu" ,glu)
+ ("gtk+" ,gtk+)
+ ("mesa" ,mesa)))
+ (native-inputs
+ `(("pkg-config" ,pkg-config)))
+ (home-page "https://tic80.com")
+ (synopsis "Fantasy computer with built-in tools for game development")
+ (description
+ "A fantasy computer featuring built-in tools such as a sprite editor,
+music tracker, and a text editor. This package builds the free version of the
+software which you can override the package and build the PRO version
+yourself.")
+ (license license:expat)))
--
2.28.0
next prev parent reply other threads:[~2020-09-26 10:21 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-26 10:17 [bug#43630] [PATCH] gnu: Add tic-80 Gabriel Arazas
2020-09-26 10:17 ` Gabriel Arazas [this message]
2020-10-28 15:11 ` Ludovic Courtès
2020-12-27 23:09 ` Björn Höfling
2021-07-22 22:32 ` Chris Lemmer-Webber
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=20200926101738.18925-2-foo.dogsquared@gmail.com \
--to=foo.dogsquared@gmail.com \
--cc=43630@debbugs.gnu.org \
/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.