From mboxrd@z Thu Jan 1 00:00:00 1970 From: ng0 Subject: [PATCH 2/3] gnu: Add 0ad-data. Date: Fri, 23 Dec 2016 21:15:17 +0000 Message-ID: <20161223211518.32317-3-ng0@libertad.pw> References: <20161223211518.32317-1-ng0@libertad.pw> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41043) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cKXBM-0000Km-9y for guix-devel@gnu.org; Fri, 23 Dec 2016 16:15:17 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cKXBK-0002xp-R5 for guix-devel@gnu.org; Fri, 23 Dec 2016 16:15:16 -0500 Received: from aibo.runbox.com ([91.220.196.211]:43703) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cKXBK-0002xP-JL for guix-devel@gnu.org; Fri, 23 Dec 2016 16:15:14 -0500 Received: from [10.9.9.212] (helo=mailfront12.runbox.com) by bars.runbox.com with esmtp (Exim 4.71) (envelope-from ) id 1cKXBJ-00034e-GZ for guix-devel@gnu.org; Fri, 23 Dec 2016 22:15:13 +0100 In-Reply-To: <20161223211518.32317-1-ng0@libertad.pw> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org Cc: ng0 From: ng0 * 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