Hello Guix!
I found out about a really neat little pixel art editing tool called
Aseprite, so I packaged it!
Allegro 4 is licensed under a weird license called the "giftware"
license that is *very* similar to the Expat license. But fear not, it
is a free license and Allegro 4 is included in Debian and fully free
distros like Trisquel. I named the Allegro 4 variable "allegro-4"
instead of just "allegro" because Allegro 5 is the latest and greatest
version of Allegro but I just haven't packaged it yet.
TIA for review!
P.S. - Have a happy FOSDEM!
- Dave
>From 15327686420a477b91d11377a1586188592ec431 Mon Sep 17 00:00:00 2001
From: David Thompson
Date: Fri, 29 Jan 2016 16:03:50 -0500
Subject: [PATCH 1/3] license: Add giftware.
* guix/licenses.scm (giftware): New variable.
---
guix/licenses.scm | 6 ++
1 file changed, 6 insertions(+)
diff --git a/guix/licenses.scm b/guix/licenses.scm
index 1def1ac..cb23734 100644
--- a/guix/licenses.scm
+++ b/guix/licenses.scm
@@ -40,6 +40,7 @@
epl1.0
expat
freetype
+giftware
gpl1 gpl1+ gpl2 gpl2+ gpl3 gpl3+
gfl1.0
fdl1.3+
@@ -201,6 +202,11 @@ at URI, which may be a file:// URI pointing the package's tree."
"http://directory.fsf.org/wiki/License:Freetype";
"https://www.gnu.org/licenses/license-list.html#freetype";))
+(define giftware
+ (license "Giftware"
+ "http://liballeg.org/license.html";
+ "The Allegro 4 license"))
+
(define gpl1
(license "GPL 1"
"https://www.gnu.org/licenses/old-licenses/gpl-1.0.html";
--
2.5.0
>From 027f4108e5b4e982dfc72b8216e910d5f504cb30 Mon Sep 17 00:00:00 2001
From: David Thompson
Date: Fri, 29 Jan 2016 16:08:12 -0500
Subject: [PATCH 2/3] gnu: Add allegro-4.
* gnu/packages/game-development.scm (allegro-4): New variable.
---
gnu/packages/game-development.scm | 38 ++
1 file changed, 38 insertions(+)
diff --git a/gnu/packages/game-development.scm b/gnu/packages/game-development.scm
index 0274904..71543e1 100644
--- a/gnu/packages/game-development.scm
+++ b/gnu/packages/game-development.scm
@@ -295,3 +295,41 @@ archive on a per-file basis.")
programming language.")
(home-page "https://love2d.org/";)
(license license:zlib)))
+
+(define-public allegro-4
+ (package
+(name "allegro")
+(version "4.4.2")
+(source (origin
+ (method url-fetch)
+ (uri (string-append "http://download.gna.org/allegro/allegro/";
+ version "/allegro-" version ".tar.gz"))
+ (sha256
+ (base32
+"1p0ghkmpc4kwij1z9rzxfv7adnpy4ayi0ifahlns1bdzgmbyf88v"
+(build-system cmake-build-system)
+(arguments
+ '(#:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'patch-build-system
+ (lambda _
+ ;; Build addons as shared libraries. Trying to set ADDON_LINKAGE
+ ;; via a command line option doesn't work because it is
+ ;; unconditionally clobbered in the build script.
+ (substitute* '("CMakeLists.txt")
+ (("ADDON_LINKAGE STATIC")
+"ADDON_LINKAGE SHARED"))
+ #t)
+(inputs
+ `(("glu" ,glu)
+ ("libpng" ,libpng)
+ ("libvorbis" ,libvorbis)
+ ("mesa" ,mesa)
+ ("zlib" ,zlib)))
+(synopsis "Game programming library")
+(description "Allegro is a library mainly aimed at video game and
+multimedia programming. It handles common, low-level tasks such as creating
+windows, accepting user input, loading data, drawing images, playing sounds,
+etc.")
+(home-page "http://liballeg.org";)
+(license license:giftware)))
--
2.5.0
>From 0678e9501403b55f6cb3ba772070e91a9aa48127 Mon Sep 17 00:00:00 2001
From: David Thompson
Date: Fri, 29 Jan 2016 16:17:45 -0500
Subject: [PATCH 3/3] gnu: Add aseprite.
* gnu/packages/game-development.scm (aseprite): New variable.
---
gnu/packages/game-development.scm | 72 ++-
1 file changed, 71 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/game-development.scm b/gnu/packages/game-development.scm
index 71543e1..f7ec9e8 100644
--- a/gnu/packages/game-development.scm
+++ b/gnu/packages/game-development.scm
@@ -24,9 +24,11 @@
#:use-module ((guix licenses) #:prefix license:)
#:use-module (guix packages)
#:use-module (guix download)
+ #:use-module (guix git-download)
#:use-module (guix build-system cmake)
#:use-module (guix build-system gnu)
#:use-module (gnu packages)
+ #:use-module (gnu packages curl)
#:use-module (gnu packages databases)
#:use-module (gnu packages doxygen)
#:use-module (gnu packages glib)
@@ -40,6 +42,7 @@
#:use-module (gnu packages gl)
#:use-module (gnu packages linux)
#:use-module (gnu packages xorg)
+ #:use-module (gnu packages xdisorg)
#:use-module (gnu packages