From patchwork Sun Oct 16 21:36:05 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: non such X-Patchwork-Id: 16565 Received: (qmail 95149 invoked by uid 89); 16 Oct 2016 21:36:40 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Checked: by ClamAV 0.99.2 on sourceware.org X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL, BAYES_00, RP_MATCHES_RCVD, SPF_PASS autolearn=ham version=3.3.2 spammy= X-Spam-Status: No, score=-1.8 required=5.0 tests=AWL, BAYES_00, RP_MATCHES_RCVD, SPF_PASS autolearn=ham version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on sourceware.org X-Spam-Level: X-HELO: lists.gnu.org Received: from lists.gnu.org (HELO lists.gnu.org) (208.118.235.17) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sun, 16 Oct 2016 21:36:30 +0000 Received: from localhost ([::1]:57849 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bvt6a-0003V1-J6 for patchwork@sourceware.org; Sun, 16 Oct 2016 17:36:28 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35212) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bvt6U-0003Ur-E2 for guix-devel@gnu.org; Sun, 16 Oct 2016 17:36:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bvt6O-0002VK-Lb for guix-devel@gnu.org; Sun, 16 Oct 2016 17:36:22 -0400 Received: from aibo.runbox.com ([91.220.196.211]:48968) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1bvt6O-0002UP-Ez for guix-devel@gnu.org; Sun, 16 Oct 2016 17:36:16 -0400 Received: from [10.9.9.212] (helo=mailfront12.runbox.com) by bars.runbox.com with esmtp (Exim 4.71) (envelope-from ) id 1bvt6L-0008GM-Dm for guix-devel@gnu.org; Sun, 16 Oct 2016 23:36:13 +0200 Received: from x5d83e217.dyn.telefonica.de ([93.131.226.23] helo=localhost) by mailfront12.runbox.com with esmtpsa (uid:892961 ) (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) id 1bvt6J-0002ys-Ud; Sun, 16 Oct 2016 23:36:12 +0200 From: ng0 To: guix-devel@gnu.org Subject: [PATCH 1/2] gnu: Add 0ad-data. Date: Sun, 16 Oct 2016 21:36:05 +0000 Message-Id: <20161016213606.28234-2-ng0@we.make.ritual.n0.is> X-Mailer: git-send-email 2.10.1 In-Reply-To: <20161016213606.28234-1-ng0@we.make.ritual.n0.is> References: <20161016213606.28234-1-ng0@we.make.ritual.n0.is> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 91.220.196.211 X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list 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+patchwork=sourceware.org@gnu.org Sender: "Guix-devel" * 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))))