Initial commit.
[software/guix-rekado.git] / non-free / custom / packages / games.scm
1 ;;; Copyright © 2016 Ricardo Wurmus <rekado@elephly.net>
2 ;;;
3 ;;; This file is not part of GNU Guix but is distributed under the same
4 ;;; license as GNU Guix.
5 ;;;
6 ;;; GNU Guix is free software; you can redistribute it and/or modify it
7 ;;; under the terms of the GNU General Public License as published by
8 ;;; the Free Software Foundation; either version 3 of the License, or (at
9 ;;; your option) any later version.
10 ;;;
11 ;;; GNU Guix is distributed in the hope that it will be useful, but
12 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
13 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 ;;; GNU General Public License for more details.
15 ;;;
16 ;;; You should have received a copy of the GNU General Public License
17 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
18
19 (define-module (custom packages games)
20 #:use-module (guix utils)
21 #:use-module (guix packages)
22 #:use-module (guix download)
23 #:use-module ((guix licenses) #:prefix license:)
24 #:use-module (guix build-system gnu)
25 #:use-module (gnu packages)
26 #:use-module (gnu packages game-development)
27 #:use-module (gnu packages texinfo)
28 #:use-module (gnu packages pkg-config))
29
30 (define-public mininim
31 (package
32 (name "mininim")
33 (version "0.10")
34 (source (origin
35 (method url-fetch)
36 (uri (string-append "https://github.com/oitofelix/mininim/"
37 "releases/download/v" version
38 "/mininim-" version ".tar.gz"))
39 (sha256
40 (base32
41 "1a53zys6drdp1yfr7hlv800d3dc90as5qcjk7pvws0d9y3w24g1l"))))
42 (build-system gnu-build-system)
43 (arguments
44 `(#:phases
45 (modify-phases %standard-phases
46 ;; The level files contain a NULL character which trips up Guile.
47 ;; Removing this build phase side-steps this issue.
48 (delete 'patch-source-shebangs))))
49 (inputs
50 `(("allegro" ,allegro-5.0)))
51 (native-inputs
52 `(("pkg-config" ,pkg-config)
53 ("texinfo" ,texinfo)))
54 (synopsis "Advanced Prince of Persia engine")
55 (description
56 "MININIM is the Advanced Prince of Persia Engine, a replacement of the
57 game \"Prince of Persia\", developed from scratch.")
58 (home-page "http://oitofelix.github.io/mininim/")
59 ;; Mininim is released under the GPL but it is derived from the
60 ;; original game resources, where the licensing situation is
61 ;; unclear.
62 (license license:gpl3+)))