Subject: bug#26595: lugaru

From: Julien Lepiller <[email-masked]>
Date: Sun, 30 Apr 2017 16:07:27 +0200

Le Sun, 30 Apr 2017 16:04:10 +0200,
Marius Bakke <[email-masked]> a écrit :

> Julien Lepiller <[email-masked]> writes:
> 
> > * gnu/packages/games.scm (lugaru): New variable.  
> 
> [...]
> 
> > +    (arguments
> > +     `(#:configure-flags
> > +       (list "-DSYSTEM_INSTALL=ON")
> > +       #:tests? #f))  
> 
> Please specify whether there are no tests, or they need something not
> available in the build environment, missing dependencies etc.
> 
> > +    (native-inputs
> > +     `(("pkg-config" ,pkg-config)))
> > +    (inputs
> > +     `(("sdl2" ,sdl2)
> > +       ("glu" ,glu)
> > +       ("libjpeg" ,libjpeg-turbo)
> > +       ("libpng" ,libpng)
> > +       ("openal" ,openal)
> > +       ("vorbis" ,libvorbis)
> > +       ("zlib" ,zlib)))
> > +    (home-page "https://osslugaru.gitlab.io")
> > +    (synopsis "Cross-platform third-person action game")
> > +    (description "The main character, Turner, is an
> > anthropomorphic rebel bunny +rabbit with impressive combat skills.
> > In his quest to find those responsible +for slaughtering his
> > village, he uncovers a far-reaching conspiracy involving +the
> > corrupt leaders of the rabbit republic and the starving wolves from
> > a +nearby den.  Turner takes it upon himself to fight against their
> > plot and save +his fellow rabbits from slavery.")
> > +    (license (list license:gpl2+ license:cc-by-sa3.0))))  
> 
> We usually add comments about what is covered by which license as
> well. In this case it's a safe guess that assets are CC-BY-SA, but
> it's nice to have it explicit regardless. Other than that looks good!

Arg, I sent the old patch. Here is the new one.
From caccc34b4c118e5c7edfa92bbf4b08a7c7a7af87 Mon Sep 17 00:00:00 2001
From: Julien Lepiller <[email-masked]>
Date: Fri, 21 Apr 2017 21:30:03 +0200
Subject: [PATCH] gnu: Add lugaru.

* gnu/packages/games.scm (lugaru): New variable.
---
 gnu/packages/games.scm | 40 ++++++++++++++++++++++++++++++++++++++++
 1 file changed, 40 insertions(+)

diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm
index b31bb93db..9d554af41 100644
--- a/gnu/packages/games.scm
+++ b/gnu/packages/games.scm
@@ -3941,3 +3941,43 @@ fabulous Orb of Zot.")
                    license:expat
                    license:zlib
                    license:asl2.0))))
+
+(define-public lugaru
+  (package
+    (name "lugaru")
+    (version "1.2")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append "https://bitbucket.org/osslugaru/lugaru/downloads/"
+                                  name "-" version ".tar.xz"))
+              (sha256
+               (base32
+                "15zgcshy22q51rm72zi6y9z7qlgnz5iw3gczjdlir4bqmxy4gspk"))))
+    (build-system cmake-build-system)
+    (arguments
+     `(#:configure-flags
+       (list "-DSYSTEM_INSTALL=ON")
+       ;; no test target
+       #:tests? #f))
+    (native-inputs
+     `(("pkg-config" ,pkg-config)))
+    (inputs
+     `(("sdl2" ,sdl2)
+       ("glu" ,glu)
+       ("libjpeg" ,libjpeg-turbo)
+       ("libpng" ,libpng)
+       ("openal" ,openal)
+       ("vorbis" ,libvorbis)
+       ("zlib" ,zlib)))
+    (home-page "https://osslugaru.gitlab.io")
+    (synopsis "Cross-platform third-person action game")
+    (description "Lugaru is a third-person action game.  The main character,
+Turner, is an anthropomorphic rebel bunny rabbit with impressive combat skills.
+In his quest to find those responsible for slaughtering his village, he uncovers
+a far-reaching conspiracy involving the corrupt leaders of the rabbit republic
+and the starving wolves from a nearby den.  Turner takes it upon himself to
+fight against their plot and save his fellow rabbits from slavery.")
+    (license (list license:gpl2+ ; code
+                   ;; assets:
+                   license:cc-by-sa3.0
+                   license:cc-by-sa4.0))))
-- 
2.12.2