From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Thompson Subject: [PATCH 3/4] gnu: Add minetest-data. Date: Sun, 16 Nov 2014 10:59:37 -0500 Message-ID: <87a93rqgpi.fsf@izanagi.i-did-not-set--mail-host-address--so-tickle-me> References: <87ioifqgta.fsf@izanagi.i-did-not-set--mail-host-address--so-tickle-me> <87fvdjqgrw.fsf@izanagi.i-did-not-set--mail-host-address--so-tickle-me> <87d28nqgqw.fsf@izanagi.i-did-not-set--mail-host-address--so-tickle-me> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47030) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xq2Eo-0004GE-82 for guix-devel@gnu.org; Sun, 16 Nov 2014 10:59:43 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xq2Em-0005eq-Ta for guix-devel@gnu.org; Sun, 16 Nov 2014 10:59:42 -0500 Received: from mail.fsf.org ([208.118.235.13]:33330) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xq2Em-0005em-Q8 for guix-devel@gnu.org; Sun, 16 Nov 2014 10:59:40 -0500 Received: from 209-6-40-86.c3-0.smr-ubr1.sbo-smr.ma.cable.rcn.com ([209.6.40.86]:50261 helo=izanagi) by mail.fsf.org with esmtpsa (TLS-1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.69) (envelope-from ) id 1Xq2Em-0008OZ-Db for guix-devel@gnu.org; Sun, 16 Nov 2014 10:59:40 -0500 In-Reply-To: <87d28nqgqw.fsf@izanagi.i-did-not-set--mail-host-address--so-tickle-me> 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-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: guix-devel@gnu.org --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=0003-gnu-Add-minetest-data.patch >From e3818c4b98f2222c02937003dc3aa00d91ea3352 Mon Sep 17 00:00:00 2001 From: David Thompson Date: Sat, 6 Sep 2014 14:03:12 -0400 Subject: [PATCH 3/4] gnu: Add minetest-data. * gnu/packages/games.scm (minetest-data): New variable. --- gnu/packages/games.scm | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm index 3172df5..6f63ce3 100644 --- a/gnu/packages/games.scm +++ b/gnu/packages/games.scm @@ -29,6 +29,7 @@ #:use-module (guix packages) #:use-module (guix download) #:use-module (gnu packages) + #:use-module (gnu packages base) #:use-module (gnu packages admin) #:use-module (gnu packages boost) #:use-module (gnu packages gettext) @@ -56,6 +57,7 @@ #:use-module (gnu packages pulseaudio) #:use-module (gnu packages linux) #:use-module (gnu packages zip) + #:use-module (guix build-system trivial) #:use-module (guix build-system gnu) #:use-module (guix build-system cmake) #:use-module (guix build-system trivial)) @@ -615,3 +617,43 @@ buffers, and audio capture.") C++.") (home-page "http://irrlicht.sourceforge.net/") (license zlib))) + +(define-public minetest-data + (package + (name "minetest-data") + (version "0.4.10") + (source (origin + (method url-fetch) + (uri (string-append + "https://github.com/minetest/minetest_game/archive/" + version ".tar.gz")) + (sha256 + (base32 + "09mr71kl7mf4ihszqz1vnwk814p7fvqknad150iic2340a7qzf0i")))) + (build-system trivial-build-system) + (native-inputs + `(("source" ,source) + ("tar" ,tar) + ("gzip" ,(@ (gnu packages compression) gzip)))) + (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/minetest/games/minetest_game")) + (path (string-append (assoc-ref %build-inputs + "gzip") + "/bin"))) + (setenv "PATH" path) + (system* tar "xvf" (assoc-ref %build-inputs "source")) + (chdir (string-append "minetest_game-" ,version)) + (mkdir-p install-dir) + (copy-recursively "." install-dir))))) + (synopsis "Main game data for the Minetest game engine") + (description + "Game data for the Minetest infinite-world block sandox game.") + (home-page "http://minetest.net") + (license lgpl2.1+))) -- 2.1.1 --=-=-= Content-Type: text/plain -- David Thompson Web Developer - Free Software Foundation - http://fsf.org GPG Key: 0FF1D807 Support the FSF: https://fsf.org/donate --=-=-=--