From: ng0 <ng0@we.make.ritual.n0.is>
To: guix-devel@gnu.org
Subject: [PATCH 1/2] gnu: Add 0ad-data.
Date: Sun, 16 Oct 2016 21:36:05 +0000 [thread overview]
Message-ID: <20161016213606.28234-2-ng0@we.make.ritual.n0.is> (raw)
In-Reply-To: <20161016213606.28234-1-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 2bb53e0..03580a3 100644
--- a/gnu/packages/games.scm
+++ b/gnu/packages/games.scm
@@ -2994,3 +2994,49 @@ symbols, the game needs graphics to render the non-euclidean world.")
license:public-domain ; src/direntx.*
license:zlib ; src/savepng.*
license:gpl2+)))) ; remaining files
+
+(define 0ad-data
+ (package
+ (name "0ad-data")
+ (version "0.0.20-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
+ "1lzl8chfqbgs1n9vpn0xaqd70kpwiibfk196iblyq6qkms3v6pnv"))))
+ (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.10.1
next prev parent reply other threads:[~2016-10-16 21:36 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-10-16 21:36 [PATCH] Add 0ad, Add 0ad-data ng0
2016-10-16 21:36 ` ng0 [this message]
2016-10-16 21:36 ` [PATCH 2/2] gnu: Add 0ad 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=20161016213606.28234-2-ng0@we.make.ritual.n0.is \
--to=ng0@we.make.ritual.n0.is \
--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).