From: David Thompson <dthompson2@worcester.edu>
To: guix-devel@gnu.org
Subject: [PATCH 3/4] gnu: Add minetest-data.
Date: Sun, 16 Nov 2014 10:59:37 -0500 [thread overview]
Message-ID: <87a93rqgpi.fsf@izanagi.i-did-not-set--mail-host-address--so-tickle-me> (raw)
In-Reply-To: <87d28nqgqw.fsf@izanagi.i-did-not-set--mail-host-address--so-tickle-me>
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: 0003-gnu-Add-minetest-data.patch --]
[-- Type: text/x-diff, Size: 2975 bytes --]
From e3818c4b98f2222c02937003dc3aa00d91ea3352 Mon Sep 17 00:00:00 2001
From: David Thompson <dthompson2@worcester.edu>
Date: Sat, 6 Sep 2014 14:03:12 -0400
Subject: [PATCH 3/4] gnu: Add minetest-data.
* gnu/packages/games.scm (minetest-data): New variable.
---
gnu/packages/games.scm | 42 ++++++++++++++++++++++++++++++++++++++++++
1 file changed, 42 insertions(+)
diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm
index 3172df5..6f63ce3 100644
--- a/gnu/packages/games.scm
+++ b/gnu/packages/games.scm
@@ -29,6 +29,7 @@
#:use-module (guix packages)
#:use-module (guix download)
#:use-module (gnu packages)
+ #:use-module (gnu packages base)
#:use-module (gnu packages admin)
#:use-module (gnu packages boost)
#:use-module (gnu packages gettext)
@@ -56,6 +57,7 @@
#:use-module (gnu packages pulseaudio)
#:use-module (gnu packages linux)
#:use-module (gnu packages zip)
+ #:use-module (guix build-system trivial)
#:use-module (guix build-system gnu)
#:use-module (guix build-system cmake)
#:use-module (guix build-system trivial))
@@ -615,3 +617,43 @@ buffers, and audio capture.")
C++.")
(home-page "http://irrlicht.sourceforge.net/")
(license zlib)))
+
+(define-public minetest-data
+ (package
+ (name "minetest-data")
+ (version "0.4.10")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append
+ "https://github.com/minetest/minetest_game/archive/"
+ version ".tar.gz"))
+ (sha256
+ (base32
+ "09mr71kl7mf4ihszqz1vnwk814p7fvqknad150iic2340a7qzf0i"))))
+ (build-system trivial-build-system)
+ (native-inputs
+ `(("source" ,source)
+ ("tar" ,tar)
+ ("gzip" ,(@ (gnu packages compression) gzip))))
+ (arguments
+ `(#:modules ((guix build utils))
+ #:builder (begin
+ (use-modules (guix build utils))
+ (let ((tar (string-append (assoc-ref %build-inputs "tar")
+ "/bin/tar"))
+ (install-dir (string-append
+ %output
+ "/share/minetest/games/minetest_game"))
+ (path (string-append (assoc-ref %build-inputs
+ "gzip")
+ "/bin")))
+ (setenv "PATH" path)
+ (system* tar "xvf" (assoc-ref %build-inputs "source"))
+ (chdir (string-append "minetest_game-" ,version))
+ (mkdir-p install-dir)
+ (copy-recursively "." install-dir)))))
+ (synopsis "Main game data for the Minetest game engine")
+ (description
+ "Game data for the Minetest infinite-world block sandox game.")
+ (home-page "http://minetest.net")
+ (license lgpl2.1+)))
--
2.1.1
[-- Attachment #2: Type: text/plain, Size: 136 bytes --]
--
David Thompson
Web Developer - Free Software Foundation - http://fsf.org
GPG Key: 0FF1D807
Support the FSF: https://fsf.org/donate
next prev parent reply other threads:[~2014-11-16 15:59 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-16 15:57 [PATCH 0/4] gnu: Add minetest David Thompson
2014-11-16 15:58 ` [PATCH 1/4] gnu: Add openal David Thompson
2014-11-16 15:58 ` [PATCH 2/4] gnu: Add irrlicht David Thompson
2014-11-16 15:59 ` David Thompson [this message]
2014-11-16 16:00 ` [PATCH 4/4] gnu: Add minetest David Thompson
2014-11-16 16:17 ` [PATCH 3/4] gnu: Add minetest-data Andreas Enge
2014-11-16 16:28 ` David Thompson
2014-11-16 17:32 ` Ludovic Courtès
2014-11-16 17:30 ` [PATCH 2/4] gnu: Add irrlicht Ludovic Courtès
2014-11-16 18:05 ` David Thompson
2014-11-16 21:04 ` Ludovic Courtès
2014-11-16 17:28 ` [PATCH 1/4] gnu: Add openal Ludovic Courtès
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
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87a93rqgpi.fsf@izanagi.i-did-not-set--mail-host-address--so-tickle-me \
--to=dthompson2@worcester.edu \
--cc=guix-devel@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 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).