unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: ng0 <ng0@libertad.pw>
To: guix-devel@gnu.org
Cc: ng0 <ng0@we.make.ritual.n0.is>
Subject: [PATCH 2/3] gnu: Add 0ad-data.
Date: Fri, 23 Dec 2016 21:15:17 +0000	[thread overview]
Message-ID: <20161223211518.32317-3-ng0@libertad.pw> (raw)
In-Reply-To: <20161223211518.32317-1-ng0@libertad.pw>

From: ng0 <ng0@we.make.ritual.n0.is>

* gnu/packages/games.scm (0ad-data): New variable.
---
 gnu/packages/games.scm | 46 ++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 46 insertions(+)

diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm
index 8b1d80dda..5ad1a310a 100644
--- a/gnu/packages/games.scm
+++ b/gnu/packages/games.scm
@@ -3068,3 +3068,49 @@ symbols, the game needs graphics to render the non-euclidean world.")
 for Un*x systems with X11.")
     (home-page "http://olofson.net/kobodl/")
     (license license:gpl2+)))
+
+(define 0ad-data
+  (package
+    (name "0ad-data")
+    (version "0.0.21-alpha")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append
+             "http://releases.wildfiregames.com/0ad-"
+             version "-unix-data.tar.xz"))
+       (file-name (string-append name "-" version ".tar.xz"))
+       (sha256
+        (base32
+         "15xadyrpvq27lm9p1ny7bcmmv56m16h3xadbkdx69gfkzxc3razk"))))
+    (build-system trivial-build-system)
+    (native-inputs
+     `(("source" ,source)
+       ("tar" ,tar)
+       ("xz" ,(@ (gnu packages compression) xz))))
+    (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/0ad/data"))
+               (path (string-append (assoc-ref %build-inputs
+                                               "xz")
+                                    "/bin")))
+           (setenv "PATH" path)
+           (system* tar "xvf" (assoc-ref %build-inputs "source"))
+           (chdir (string-append "0ad-" ,version))
+           (mkdir-p install-dir)
+           (copy-recursively "." install-dir)))))
+    (synopsis "Data for the game 0ad")
+    (description
+     "Data files for 0ad.")
+    (home-page "http://play0ad.com")
+    (license (list license:gpl2
+                   ;; license:lppl1.3c  TODO: ADD.
+                   ;; license:bitstream-vera  TODO: ADD.
+                   license:cc-by-sa3.0))))
-- 
2.11.0

  parent reply	other threads:[~2016-12-23 21:15 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-12-23 21:15 0ad ng0
2016-12-23 21:15 ` [PATCH 1/3] gnu: Add mozjs-38 ng0
2016-12-23 21:15 ` ng0 [this message]
2016-12-23 21:15 ` [PATCH 3/3] gnu: Add 0ad ng0
  -- strict thread matches above, loose matches on Subject: below --
2016-12-30 18:04 Mozilla help needed - 0ad, or: how to pass the version to mozjs-38? ng0
2016-12-30 18:04 ` [PATCH 2/3] gnu: Add 0ad-data ng0

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=20161223211518.32317-3-ng0@libertad.pw \
    --to=ng0@libertad.pw \
    --cc=guix-devel@gnu.org \
    --cc=ng0@we.make.ritual.n0.is \
    /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).