From mboxrd@z Thu Jan 1 00:00:00 1970 From: ng0 Subject: [PATCH 2/3] gnu: Add 0ad-data. Date: Fri, 30 Dec 2016 18:04:49 +0000 Message-ID: <20161230180450.23500-3-ng0@libertad.pw> References: <20161230180450.23500-1-ng0@libertad.pw> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44240) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cN1Y0-0006W7-G4 for guix-devel@gnu.org; Fri, 30 Dec 2016 13:04:57 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cN1Xx-0005Sa-4s for guix-devel@gnu.org; Fri, 30 Dec 2016 13:04:54 -0500 Received: from aibo.runbox.com ([91.220.196.211]:46867) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cN1Xw-0005S1-UR for guix-devel@gnu.org; Fri, 30 Dec 2016 13:04:53 -0500 Received: from [10.9.9.210] (helo=mailfront10.runbox.com) by bars.runbox.com with esmtp (Exim 4.71) (envelope-from ) id 1cN1Xv-0008Cj-MP for guix-devel@gnu.org; Fri, 30 Dec 2016 19:04:51 +0100 In-Reply-To: <20161230180450.23500-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 a3b9f04b9..69c72a55f 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