Merge branch 'master' into ungrafting
[jackhill/guix/guix.git] / gnu / packages / games.scm
1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2013 John Darrington <jmd@gnu.org>
3 ;;; Copyright © 2013 Nikita Karetnikov <nikita@karetnikov.org>
4 ;;; Copyright © 2014, 2016 David Thompson <dthompson2@worcester.edu>
5 ;;; Copyright © 2014, 2015, 2016, 2017, 2018, 2019, 2020 Eric Bavier <bavier@posteo.net>
6 ;;; Copyright © 2014 Cyrill Schenkel <cyrill.schenkel@gmail.com>
7 ;;; Copyright © 2014 Sylvain Beucler <beuc@beuc.net>
8 ;;; Copyright © 2014, 2015, 2018, 2019 Ludovic Courtès <ludo@gnu.org>
9 ;;; Copyright © 2014, 2015, 2016 Sou Bunnbu <iyzsong@gmail.com>
10 ;;; Copyright © 2014, 2015, 2019 Mark H Weaver <mhw@netris.org>
11 ;;; Copyright © 2015, 2016 Andreas Enge <andreas@enge.fr>
12 ;;; Copyright © 2015 David Hashe <david.hashe@dhashe.com>
13 ;;; Copyright © 2015, 2017, 2018 Christopher Lemmer Webber <cwebber@dustycloud.org>
14 ;;; Copyright © 2015, 2016, 2017, 2018, 2019 Ricardo Wurmus <rekado@elephly.net>
15 ;;; Copyright © 2015, 2016, 2017 Alex Kost <alezost@gmail.com>
16 ;;; Copyright © 2015 Paul van der Walt <paul@denknerd.org>
17 ;;; Copyright © 2016, 2017 Rodger Fox <thylakoid@openmailbox.org>
18 ;;; Copyright © 2016, 2017, 2018 Nikita <nikita@n0.is>
19 ;;; Copyright © 2016 Albin Söderqvist <albin@fripost.org>
20 ;;; Copyright © 2016, 2017, 2018, 2019, 2020 Kei Kebreau <kkebreau@posteo.net>
21 ;;; Copyright © 2016 Alex Griffin <a@ajgrf.com>
22 ;;; Copyright © 2016, 2017, 2018, 2019, 2020 Efraim Flashner <efraim@flashner.co.il>
23 ;;; Copyright © 2016 Jan Nieuwenhuizen <janneke@gnu.org>
24 ;;; Copyright © 2016 Steve Webber <webber.sl@gmail.com>
25 ;;; Copyright © 2017 Adonay "adfeno" Felipe Nogueira <https://libreplanet.org/wiki/User:Adfeno> <adfeno@hyperbola.info>
26 ;;; Copyright © 2017, 2018, 2020 Arun Isaac <arunisaac@systemreboot.net>
27 ;;; Copyright © 2017, 2018, 2019, 2020 Tobias Geerinckx-Rice <me@tobias.gr>
28 ;;; Copyright © 2017, 2019 nee <nee-git@hidamari.blue>
29 ;;; Copyright © 2017 Clément Lassieur <clement@lassieur.org>
30 ;;; Copyright © 2017, 2019, 2020 Marius Bakke <mbakke@fastmail.com>
31 ;;; Copyright © 2017, 2018 Rutger Helling <rhelling@mykolab.com>
32 ;;; Copyright © 2017 Roel Janssen <roel@gnu.org>
33 ;;; Copyright © 2017, 2018, 2019, 2020 Nicolas Goaziou <mail@nicolasgoaziou.fr>
34 ;;; Copyright © 2018 okapi <okapi@firemail.cc>
35 ;;; Copyright © 2018 Tim Gesthuizen <tim.gesthuizen@yahoo.de>
36 ;;; Copyright © 2018 Madalin Ionel-Patrascu <madalinionel.patrascu@mdc-berlin.de>
37 ;;; Copyright © 2018 Benjamin Slade <slade@jnanam.net>
38 ;;; Copyright © 2018 Alex Vong <alexvong1995@gmail.com>
39 ;;; Copyright © 2019, 2020 Pierre Neidhardt <mail@ambrevar.xyz>
40 ;;; Copyright © 2019, 2020 Oleg Pykhalov <go.wigust@gmail.com>
41 ;;; Copyright © 2019 Pierre Langlois <pierre.langlois@gmx.com>
42 ;;; Copyright © 2019 Julien Lepiller <julien@lepiller.eu>
43 ;;; Copyright © 2019, 2020 Jesse Gibbons <jgibbons2357+guix@gmail.com>
44 ;;; Copyright © 2019 Dan Frumin <dfrumin@cs.ru.nl>
45 ;;; Copyright © 2019, 2020 Guillaume Le Vaillant <glv@posteo.net>
46 ;;; Copyright © 2019, 2020 Timotej Lazar <timotej.lazar@araneo.si>
47 ;;; Copyright © 2019 Josh Holland <josh@inv.alid.pw>
48 ;;; Copyright © 2017, 2019 Hartmut Goebel <h.goebel@crazy-compilers.com>
49 ;;; Copyright © 2020 Alberto Eleuterio Flores Guerrero <barbanegra+guix@posteo.mx>
50 ;;; Copyright © 2020 Naga Malleswari <nagamalli@riseup.net>
51 ;;; Copyright © 2020 Vitaliy Shatrov <D0dyBo0D0dyBo0@protonmail.com>
52 ;;; Copyright © 2020 Jack Hill <jackhill@jackhill.us>
53 ;;; Copyright © 2020 Vincent Legoll <vincent.legoll@gmail.com>
54 ;;; Copyright © 2020 Michael Rohleder <mike@rohleder.de>
55 ;;; Copyright © 2020 Trevor Hass <thass@okstate.edu>
56 ;;; Copyright © 2020 Leo Prikler <leo.prikler@student.tugraz.at>
57 ;;; Copyright © 2020 Lu hux <luhux@outlook.com>
58 ;;; Copyright © 2020 Tomás Ortín Fernández <tomasortin@mailbox.org>
59 ;;;
60 ;;; This file is part of GNU Guix.
61 ;;;
62 ;;; GNU Guix is free software; you can redistribute it and/or modify it
63 ;;; under the terms of the GNU General Public License as published by
64 ;;; the Free Software Foundation; either version 3 of the License, or (at
65 ;;; your option) any later version.
66 ;;;
67 ;;; GNU Guix is distributed in the hope that it will be useful, but
68 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
69 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
70 ;;; GNU General Public License for more details.
71 ;;;
72 ;;; You should have received a copy of the GNU General Public License
73 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
74
75 (define-module (gnu packages games)
76 #:use-module (ice-9 match)
77 #:use-module ((guix licenses) #:prefix license:)
78 #:use-module (guix utils)
79 #:use-module (guix packages)
80 #:use-module (guix download)
81 #:use-module (guix git-download)
82 #:use-module (guix svn-download)
83 #:use-module (guix gexp)
84 #:use-module (gnu packages)
85 #:use-module (gnu packages adns)
86 #:use-module (gnu packages algebra)
87 #:use-module (gnu packages autotools)
88 #:use-module (gnu packages backup)
89 #:use-module (gnu packages base)
90 #:use-module (gnu packages build-tools)
91 #:use-module (gnu packages admin)
92 #:use-module (gnu packages audio)
93 #:use-module (gnu packages avahi)
94 #:use-module (gnu packages assembly)
95 #:use-module (gnu packages bash)
96 #:use-module (gnu packages bison)
97 #:use-module (gnu packages boost)
98 #:use-module (gnu packages check)
99 #:use-module (gnu packages cmake)
100 #:use-module (gnu packages compression)
101 #:use-module (gnu packages curl)
102 #:use-module (gnu packages crypto)
103 #:use-module (gnu packages cyrus-sasl)
104 #:use-module (gnu packages documentation)
105 #:use-module (gnu packages docbook)
106 #:use-module (gnu packages emulators)
107 #:use-module (gnu packages flex)
108 #:use-module (gnu packages fltk)
109 #:use-module (gnu packages fonts)
110 #:use-module (gnu packages fontutils)
111 #:use-module (gnu packages freedesktop)
112 #:use-module (gnu packages fribidi)
113 #:use-module (gnu packages game-development)
114 #:use-module (gnu packages gcc)
115 #:use-module (gnu packages gettext)
116 #:use-module (gnu packages ghostscript)
117 #:use-module (gnu packages gimp)
118 #:use-module (gnu packages gl)
119 #:use-module (gnu packages glib)
120 #:use-module (gnu packages gnome)
121 #:use-module (gnu packages gnu-doc)
122 #:use-module (gnu packages gnupg)
123 #:use-module (gnu packages gnuzilla)
124 #:use-module (gnu packages gperf)
125 #:use-module (gnu packages graphics)
126 #:use-module (gnu packages gsasl)
127 #:use-module (gnu packages gstreamer)
128 #:use-module (gnu packages gtk)
129 #:use-module (gnu packages guile)
130 #:use-module (gnu packages haskell)
131 #:use-module (gnu packages haskell-crypto)
132 #:use-module (gnu packages haskell-xyz)
133 #:use-module (gnu packages icu4c)
134 #:use-module (gnu packages image)
135 #:use-module (gnu packages imagemagick)
136 #:use-module (gnu packages kde)
137 #:use-module (gnu packages kde-frameworks)
138 #:use-module (gnu packages less)
139 #:use-module (gnu packages libcanberra)
140 #:use-module (gnu packages libedit)
141 #:use-module (gnu packages libunwind)
142 #:use-module (gnu packages linux)
143 #:use-module (gnu packages llvm)
144 #:use-module (gnu packages lua)
145 #:use-module (gnu packages man)
146 #:use-module (gnu packages maths)
147 #:use-module (gnu packages messaging)
148 #:use-module (gnu packages mp3)
149 #:use-module (gnu packages music)
150 #:use-module (gnu packages multiprecision)
151 #:use-module (gnu packages ncurses)
152 #:use-module (gnu packages netpbm)
153 #:use-module (gnu packages networking)
154 #:use-module (gnu packages ocaml)
155 #:use-module (gnu packages opencl)
156 #:use-module (gnu packages pcre)
157 #:use-module (gnu packages perl)
158 #:use-module (gnu packages perl-check)
159 #:use-module (gnu packages perl-compression)
160 #:use-module (gnu packages pkg-config)
161 #:use-module (gnu packages protobuf)
162 #:use-module (gnu packages pulseaudio)
163 #:use-module (gnu packages python)
164 #:use-module (gnu packages python-xyz)
165 #:use-module (gnu packages qt)
166 #:use-module (gnu packages readline)
167 #:use-module (gnu packages ruby)
168 #:use-module (gnu packages shells)
169 #:use-module (gnu packages sdl)
170 #:use-module (gnu packages serialization)
171 #:use-module (gnu packages sqlite)
172 #:use-module (gnu packages squirrel)
173 #:use-module (gnu packages swig)
174 #:use-module (gnu packages tcl)
175 #:use-module (gnu packages terminals)
176 #:use-module (gnu packages texinfo)
177 #:use-module (gnu packages textutils)
178 #:use-module (gnu packages tls)
179 #:use-module (gnu packages upnp)
180 #:use-module (gnu packages video)
181 #:use-module (gnu packages vulkan)
182 #:use-module (gnu packages web)
183 #:use-module (gnu packages wget)
184 #:use-module (gnu packages wxwidgets)
185 #:use-module (gnu packages xdisorg)
186 #:use-module (gnu packages xorg)
187 #:use-module (gnu packages xiph)
188 #:use-module (gnu packages xml)
189 #:use-module (guix build-system copy)
190 #:use-module (guix build-system cmake)
191 #:use-module (guix build-system glib-or-gtk)
192 #:use-module (guix build-system gnu)
193 #:use-module (guix build-system go)
194 #:use-module (guix build-system meson)
195 #:use-module (guix build-system perl)
196 #:use-module (guix build-system python)
197 #:use-module (guix build-system qt)
198 #:use-module (guix build-system scons)
199 #:use-module (guix build-system trivial)
200 #:use-module ((srfi srfi-1) #:hide (zip))
201 #:use-module (srfi srfi-26))
202
203 (define-public abe
204 (package
205 (name "abe")
206 (version "1.1")
207 (source
208 (origin
209 (method url-fetch)
210 (uri (string-append "mirror://sourceforge/abe/abe/abe-" version
211 "/abe-" version ".tar.gz"))
212 (sha256
213 (base32 "1xvpnq1y6y48fn3pvn2lk0h1ilmalv7nb7awpid1g4jcq1sfmi6z"))))
214 (build-system gnu-build-system)
215 (arguments
216 `(#:configure-flags
217 (list (string-append "--with-data-dir="
218 (assoc-ref %outputs "out")
219 "/share/abe"))
220 #:phases
221 (modify-phases %standard-phases
222 (replace 'bootstrap
223 (lambda _ (invoke "sh" "autogen.sh")))
224 (add-before 'build 'set-SDL
225 ;; Set correct environment for SDL.
226 (lambda* (#:key inputs #:allow-other-keys)
227 (setenv "CPATH"
228 (string-append
229 (assoc-ref inputs "sdl") "/include/SDL:"
230 (or (getenv "CPATH") "")))
231 #t))
232 (add-after 'install 'finalize-install
233 (lambda* (#:key outputs #:allow-other-keys)
234 (let ((share (string-append (assoc-ref outputs "out") "/share")))
235 ;; Installation script does not copy game data files.
236 (let ((data (string-append share "/abe")))
237 (for-each (lambda (dir)
238 (let ((target (string-append data "/" dir)))
239 (mkdir-p target)
240 (copy-recursively dir target)))
241 '("images" "maps" "sounds")))
242 ;; Create desktop file.
243 (let ((apps (string-append share "/applications")))
244 (mkdir-p apps)
245 (make-desktop-entry-file
246 (string-append apps "/abe.desktop")
247 #:name "Abe's Amazing Adventure"
248 #:exec ,name
249 #:categories '("AdventureGame" "Game")
250 #:keywords
251 '("side-scrolling" "adventure" "pyramid" "singleplayer")
252 #:comment
253 '(("de" "Ein sich seitwärts bewegendes Abenteuerspiel")
254 (#f "Side-scrolling game")))))
255 #t)))))
256 (native-inputs
257 `(("autoconf" ,autoconf)
258 ("automake" ,automake)))
259 (inputs
260 `(("libxi" ,libxi)
261 ("libxmu" ,libxmu)
262 ("libxt" ,libxt)
263 ("sdl" ,(sdl-union (list sdl sdl-mixer)))))
264 (home-page "http://abe.sourceforge.net")
265 (synopsis "Scrolling, platform-jumping, ancient pyramid exploring game")
266 (description
267 "Abe's Amazing Adventure is a scrolling,
268 platform-jumping, key-collecting, ancient pyramid exploring game, vaguely in
269 the style of similar games for the Commodore+4.")
270 (license license:gpl2+)))
271
272 ;; Data package for adanaxisgpl.
273 (define adanaxis-mush
274 (let ((version "1.1.0"))
275 (origin
276 (method url-fetch)
277 (uri (string-append "http://www.mushware.com/files/adanaxis-mush-"
278 version ".tar.gz"))
279 (sha256
280 (base32 "0mk9ibis5nkdcalcg1lkgnsdxxbw4g5w2i3icjzy667hqirsng03")))))
281
282 (define-public adanaxisgpl
283 (package
284 (name "adanaxisgpl")
285 (version "1.2.5")
286 (source
287 (origin
288 (method url-fetch)
289 (uri (string-append "http://www.mushware.com/files/adanaxisgpl-"
290 version ".tar.gz"))
291 (sha256
292 (base32 "0jkn637jaabvlhd6hpvzb57vvjph94l6fbf7qxbjlw9zpr19dw1f"))
293 (modules '((guix build utils)))
294 (snippet
295 '(begin
296 ;; Necessary for building with gcc >=4.7.
297 (substitute* "src/Mushcore/MushcoreSingleton.h"
298 (("SingletonPtrSet\\(new SingletonType\\);")
299 "MushcoreSingleton::SingletonPtrSet(new SingletonType);"))
300 ;; Avoid an "invalid conversion from const char* to char*" error.
301 (substitute* "src/Platform/X11/PlatformMiscUtils.cpp"
302 (("char \\*end, \\*result;")
303 (string-append "const char *end;"
304 "\n"
305 "char *result;")))
306 #t))))
307 (build-system gnu-build-system)
308 (arguments
309 `(#:tests? #f ; no check target
310 #:phases
311 (modify-phases %standard-phases
312 (add-after 'install 'install-data
313 (lambda* (#:key inputs outputs #:allow-other-keys)
314 (let ((data (assoc-ref inputs "adanaxis-mush"))
315 (share (string-append (assoc-ref outputs "out")
316 "/share/" ,name "-" ,version)))
317 (mkdir-p share)
318 (invoke "tar" "xvf" data "-C" share)))))))
319 (native-inputs
320 `(("adanaxis-mush" ,adanaxis-mush))) ; game data
321 (inputs
322 `(("expat" ,expat)
323 ("freeglut" ,freeglut)
324 ("glu" ,glu)
325 ("libjpeg" ,libjpeg-turbo)
326 ("libogg" ,libogg)
327 ("libtiff" ,libtiff)
328 ("libvorbis" ,libvorbis)
329 ("libx11" ,libx11)
330 ("libxext" ,libxext)
331 ("pcre" ,pcre)
332 ("sdl" ,sdl)
333 ("sdl-mixer" ,sdl-mixer)))
334 (home-page "https://www.mushware.com")
335 (synopsis "Action game in four spatial dimensions")
336 (description
337 "Adanaxis is a fast-moving first person shooter set in deep space, where
338 the fundamentals of space itself are changed. By adding another dimension to
339 space this game provides an environment with movement in four directions and
340 six planes of rotation. Initially the game explains the 4D control system via
341 a graphical sequence, before moving on to 30 levels of gameplay with numerous
342 enemy, ally, weapon and mission types. Features include simulated 4D texturing,
343 mouse and joystick control, and original music.")
344 (license license:gpl2)))
345
346 (define-public alex4
347 (package
348 (name "alex4")
349 (version "1.2.1")
350 (source
351 (origin
352 (method git-fetch)
353 (uri (git-reference
354 (url "https://github.com/carstene1ns/alex4")
355 (commit version)))
356 (file-name (git-file-name name version))
357 (sha256
358 (base32 "098wy72mh4lsvq3gm0rhamjssf9l1hp6hhkpzrv7klpb97cwwc3h"))))
359 (build-system gnu-build-system)
360 (arguments
361 `(#:tests? #f ; no check target
362 #:make-flags
363 (list "CC=gcc"
364 "CFLAGS=-D_FILE_OFFSET_BITS=64"
365 (string-append "PREFIX=" (assoc-ref %outputs "out")))
366 #:phases
367 (modify-phases %standard-phases
368 (delete 'configure) ; no configure script
369 (add-after 'install 'install-data
370 (lambda* (#:key outputs #:allow-other-keys)
371 (let ((share (string-append (assoc-ref outputs "out")
372 "/share/" ,name)))
373 (install-file "alex4.ini" share)
374 #t))))))
375 (inputs
376 `(("allegro" ,allegro-4)
377 ("dumb" ,dumb-allegro4)))
378 (home-page "http://allegator.sourceforge.net/")
379 (synopsis "Retro platform game")
380 (description
381 "Guide Alex the Allegator through the jungle in order to save his
382 girlfriend Lola from evil humans who want to make a pair of shoes out of her.
383 Plenty of classic platforming in four nice colors guaranteed!
384
385 The game includes a built-in editor so you can design and share your own maps.")
386 (license license:gpl2+)))
387
388 (define-public armagetronad
389 (package
390 (name "armagetronad")
391 (version "0.2.9.0.1")
392 (source (origin
393 (method url-fetch)
394 (uri (string-append "mirror://sourceforge/armagetronad/stable/"
395 version "/armagetronad-" version ".tbz"))
396 (sha256
397 (base32
398 "19rfhlg4gp0r7k1j8v4iw20325ciy156nmzax4xikmw22c6nmxcz"))))
399 (build-system gnu-build-system)
400 (native-inputs
401 `(("pkg-config" ,pkg-config)))
402 (inputs
403 `(("libxml2" ,libxml2)
404 ("sdl" ,sdl)
405 ("sdl-image" ,sdl-image)
406 ("freeglut" ,freeglut)
407 ("libpng" ,libpng)
408 ("libjpeg-turbo" ,libjpeg-turbo)))
409 (home-page "http://www.armagetronad.org")
410 (synopsis "Tron clone in 3D")
411 (description "Armagetron Advanced is a multiplayer game in 3d that
412 attempts to emulate and expand on the lightcycle sequence from the movie Tron.
413 It's an old school arcade game slung into the 21st century. Highlights
414 include a customizable playing arena, HUD, unique graphics, and AI bots. For
415 the more advanced player there are new game modes and a wide variety of
416 physics settings to tweak as well.")
417 (license license:gpl2+)))
418
419 (define-public astromenace
420 (package
421 (name "astromenace")
422 (version "1.4.1")
423 (source
424 (origin
425 (method git-fetch)
426 (uri (git-reference
427 (url "https://github.com/viewizard/astromenace")
428 (commit (string-append "v" version))))
429 (file-name (git-file-name name version))
430 (sha256
431 (base32 "1ad6l887jxqv8xspwc2rvy8ym9sdlmkqdqhsh0pi076kjarxsyws"))))
432 (build-system cmake-build-system)
433 (arguments
434 `(#:tests? #f ;no test
435 #:configure-flags (list (string-append "-DDATADIR="
436 (assoc-ref %outputs "out")
437 "/share/astromenace"))
438 #:phases
439 (modify-phases %standard-phases
440 (replace 'install
441 ;; Upstream provides no install phase.
442 (lambda* (#:key inputs outputs #:allow-other-keys)
443 (let* ((out (assoc-ref outputs "out"))
444 (bin (string-append out "/bin"))
445 (share (string-append out "/share"))
446 (apps (string-append share "/applications"))
447 (data (string-append share "/astromenace"))
448 (icons (string-append share "/icons/hicolor/64x64/apps")))
449 (install-file "astromenace" bin)
450 (install-file "gamedata.vfs" data)
451 (let ((source (assoc-ref inputs "source")))
452 (with-directory-excursion (string-append source "/share")
453 (install-file "astromenace.desktop" apps)
454 (mkdir-p icons)
455 (copy-file "astromenace_64.png"
456 (string-append icons "/astromenace.png")))))
457 #t)))))
458 (inputs
459 `(("freealut" ,freealut)
460 ("freetype" ,freetype)
461 ("glu" ,glu)
462 ("libogg" ,libogg)
463 ("libvorbis" ,libvorbis)
464 ("openal" ,openal)
465 ("sdl2" ,sdl2)))
466 (home-page "https://www.viewizard.com/")
467 (synopsis "3D space shooter with spaceship upgrade possibilities")
468 (description
469 "Space is a vast area, an unbounded territory where it seems there is
470 a room for everybody, but reversal of fortune put things differently. The
471 hordes of hostile creatures crawled out from the dark corners of the universe,
472 craving to conquer your homeland. Their force is compelling, their legions
473 are interminable. However, humans didn't give up without a final showdown and
474 put their best pilot to fight back. These malicious invaders chose the wrong
475 galaxy to conquer and you are to prove it! Go ahead and make alien aggressors
476 regret their insolence.")
477 ;; Game is released under GPL3+ terms. Artwork is subject to CC
478 ;; BY-SA 4.0, and fonts to OFL1.1.
479 (license (list license:gpl3+ license:cc-by-sa4.0 license:silofl1.1))))
480
481 (define-public bastet
482 (package
483 (name "bastet")
484 (version "0.43.2")
485 (source
486 (origin
487 (method git-fetch)
488 (uri (git-reference
489 (url "https://github.com/fph/bastet")
490 (commit version)))
491 (file-name (git-file-name name version))
492 (sha256
493 (base32 "09kamxapm9jw9przpsgjfg33n9k94bccv65w95dakj0br33a75wn"))
494 (patches
495 (search-patches "bastet-change-source-of-unordered_set.patch"))))
496 (build-system gnu-build-system)
497 (arguments
498 `(#:make-flags
499 (list (string-append "CXXFLAGS=-I"
500 (assoc-ref %build-inputs "boost") "/include"))
501 #:phases
502 (modify-phases %standard-phases
503 (delete 'configure) ; no configure script
504 (replace 'check
505 ;; The 'Test' target builds the tests, but doesn't actually run them.
506 (lambda* (#:key make-flags #:allow-other-keys)
507 (apply invoke "make" "Test" make-flags)
508 (setenv "HOME" ".")
509 (invoke "./Test")))
510 (replace 'install
511 (lambda* (#:key outputs #:allow-other-keys)
512 (let* ((out (assoc-ref outputs "out"))
513 (share (string-append out "/share"))
514 (hicolor (string-append share "/icons/hicolor")))
515 (install-file "bastet"
516 (string-append out "/bin"))
517
518 (install-file "bastet.desktop"
519 (string-append share "/applications"))
520 (install-file "bastet.svg"
521 (string-append hicolor "/scalable/apps"))
522
523 (install-file "bastet.appdata.xml"
524 (string-append share "/appdata"))
525
526 (install-file "bastet.6"
527 (string-append out "/share/man/man6"))
528 #t))))))
529 (native-inputs
530 `(("hicolor-icon-theme" ,hicolor-icon-theme)))
531 (inputs
532 `(("boost" ,boost)
533 ("ncurses" ,ncurses)))
534 (home-page "https://fph.altervista.org/prog/bastet.html")
535 (synopsis "Antagonistic Tetris-style falling brick game for text terminals")
536 (description
537 "Bastet (short for Bastard Tetris) is a simple ncurses-based falling brick
538 game. Unlike normal Tetris, Bastet does not choose the next brick at random.
539 Instead, it uses a special algorithm to choose the worst brick possible.
540
541 Playing bastet can be a painful experience, especially if you usually make
542 canyons and wait for the long I-shaped block to clear four rows at a time.")
543 (license license:gpl3+)))
544
545 (define-public blobwars
546 (package
547 (name "blobwars")
548 (version "2.00")
549 (source
550 (origin
551 (method url-fetch)
552 (uri (string-append "mirror://sourceforge/blobwars/"
553 "blobwars-" version ".tar.gz"))
554 (sha256
555 (base32 "16aagvkx6azf75gm5kaa94bh5npydvhqp3fvdqyfsanzdjgjf1n4"))))
556 (build-system gnu-build-system)
557 (arguments
558 `(#:tests? #f ;no test
559 #:make-flags
560 (let ((out (assoc-ref %outputs "out")))
561 (list (string-append "PREFIX=" out)
562 (string-append "BINDIR=" out "/bin/")
563 "USEPAK=1"
564 "RELEASE=1"))
565 #:phases
566 (modify-phases %standard-phases
567 (add-after 'unpack 'werror-begone
568 (lambda _
569 (substitute* "Makefile" (("-Werror") ""))
570 #t))
571 (delete 'configure)))) ;no configure script
572 (native-inputs
573 `(("gettext" ,gettext-minimal)
574 ("pkg-config" ,pkg-config)))
575 (inputs
576 `(("hicolor-icon-theme" ,hicolor-icon-theme)
577 ("sdl" ,(sdl-union (list sdl2
578 sdl2-image
579 sdl2-mixer
580 sdl2-ttf
581 sdl2-net)))))
582 (home-page "https://sourceforge.net/projects/blobwars/")
583 (synopsis "Platform action game featuring a blob with a lot of weapons")
584 (description "Blobwars: Metal Blob Solid is a 2D platform game, the first
585 in the Blobwars series. You take on the role of a fearless Blob agent. Your
586 mission is to infiltrate various enemy bases and rescue as many MIAs as
587 possible, while battling many vicious aliens.")
588 (license (list license:gpl2 ; For code and graphics
589 license:cc0 ; Music and sounds have specific licenses
590 license:cc-by3.0 ; see /doc/readme
591 license:cc-by-sa3.0
592 license:lgpl2.1+
593 license:bsd-2))))
594
595 (define-public bsd-games
596 (package
597 (name "bsd-games")
598 (version "2.17.0")
599 (source
600 (origin
601 (method url-fetch)
602 (uri "https://ibiblio.org/pub/linux/games/bsd-games-2.17.tar.gz")
603 (sha256
604 (base32 "0q7zdyyfvn15y0w4g54kq3gza89h61py727m8slmw73cxx594vq6"))
605 (patches
606 (search-patches
607 ;; thanks Arch, and Debian
608 "bsd-games-2.17-64bit.patch"
609 "bsd-games-bad-ntohl-cast.patch"
610 "bsd-games-gamescreen.h.patch"
611 "bsd-games-getline.patch"
612 "bsd-games-null-check.patch"
613 "bsd-games-number.c-and-test.patch"
614 "bsd-games-stdio.h.patch"
615 "bsd-games-prevent-name-collisions.patch"
616 ;; Guix customizations
617 "bsd-games-add-configure-config.patch"
618 "bsd-games-dont-install-empty-files.patch"
619 "bsd-games-add-wrapper.patch"))))
620 (build-system gnu-build-system)
621 (native-inputs
622 `(("flex" ,flex)
623 ("bison" ,bison)))
624 (inputs
625 `(("curses" ,ncurses)
626 ("pager" ,less)
627 ("miscfiles" ,miscfiles)
628 ("openssl" ,openssl))) ;used only by 'factor'
629 (arguments
630 `(#:phases
631 (modify-phases %standard-phases
632 (replace 'configure
633 (lambda* (#:key outputs inputs #:allow-other-keys)
634 (let* ((out (assoc-ref outputs "out"))
635 (bin (string-append out "/bin"))
636 (doc (string-append out "/share/doc/bsd-games-" ,version))
637 (man (string-append out "/share/man"))
638 (word-list (string-append (assoc-ref inputs "miscfiles")
639 "/share/web2"))
640 (static-data (string-append out "/share/games/bsd-games"))
641 ;; Not a "./" because of substitute* in 'patch-install
642 ;; below. The .// allow us not to mess with the games'
643 ;; code any further: we just use a wrapper script that
644 ;; cd's to a BSD_GAMES_DIR. :]
645 (save-files ".//"))
646 (substitute* "configure"
647 (("/usr/share/man") man)
648 (("/usr/share/doc/bsd-games") doc)
649 (("/usr/share/[^\n/]*") static-data)
650 (("/var/games") save-files)
651 (("/usr/bin/less") (which "less"))
652 (("(/usr/bin|/usr/games)") bin))
653 (substitute* "config.params" (("WORD_LIST") word-list))
654 (substitute* "wrapper" (("STATIC_DATA") static-data))
655 (invoke "./configure"))
656 #t))
657 (add-before 'install 'patch-install
658 ;; Some games need a writable directory containing pre-maded files.
659 ;; The files get installed to the Store. Then the wrapper kicks in.
660 (lambda* (#:key outputs #:allow-other-keys)
661 (let* ((out (assoc-ref outputs "out"))
662 (static-data (string-append out "/share/games/bsd-games"))
663 (save-files ".//"))
664 (substitute* "Makeconfig" ((save-files) static-data)))
665 #t))
666 (add-after 'install 'install-documents
667 (lambda* (#:key outputs #:allow-other-keys)
668 (let* ((out (assoc-ref outputs "out"))
669 (doc (string-append out "/share/doc/bsd-games-" ,version)))
670 (rename-file "phantasia/COPYRIGHT" "phantasia-COPYRIGHT")
671 (for-each
672 (lambda(file) (install-file file doc))
673 '("AUTHORS" "BUGS" "README" "SECURITY" "THANKS"
674 "phantasia-COPYRIGHT")))
675 #t)))))
676 (home-page "https://github.com/vattam/BSDGames")
677 (synopsis "Collection of the old text-based games and amusements")
678 (description
679 "These are the BSD games. See the fortune-mod package for fortunes.
680
681 Action: atc (keep the airplanes safe), hack (explore the dangerous Dungeon),
682 hunt (kill the others for the Pair of Boots, multi-player only), robots (avoid
683 the evil robots), sail (game of naval warfare with wooden ships), snake (steal
684 the $$ from the cave, anger the snake, and get out alive), tetris (game of
685 lining up the falling bricks of different shapes), and worm (eat, grow big,
686 and neither bite your tail, nor ram the wall).
687
688 Amusements: banner (prints a large banner), bcd & morse & ppt (print a punch
689 card, or paper tape, or Morse codes), caesar & rot13 (ciphers and deciphers
690 the input), factor (factorizes a number), number (translates numbers into
691 text), pig (translates from English to Pig Latin), pom (should print the
692 Moon's phase), primes (generates primes), rain & worms (plays an screen-saver
693 in terminal), random (prints randomly chosen lines from files, or returns a
694 random exit-code), and wtf (explains what do some acronyms mean).
695
696 Board: backgammon (lead the men out of board faster than the friend do),
697 boggle (find the words in the square of letters), dab (game of dots and
698 boxes), gomoku (game of five in a row), hangman (guess a word before man is
699 hanged), and monop (game of monopoly, hot-seat only). Also the card-games:
700 canfield, cribbage, fish (juniors game), and mille.
701
702 Quests: adventure (search for treasures with the help of wizard),
703 battlestar (explore the world around, starting from dying spaceship),
704 phantasia (role-play as an rogue), trek (hunt the Klingons, and save the
705 Federation), and wump (hunt the big smelly Wumpus in a dark cave).
706
707 Quizes: arithmetic, and quiz.")
708 ;; "Auxiliary and data files, distributed with the games in NetBSD, but
709 ;; not bearing copyright notices, probably fall under the terms of the UCB
710 ;; or NetBSD copyrights and licences. The file "fortune/Notes" contains a
711 ;; warning in regard to the fortune databases."
712 (license (list
713 ;; Most games. Files: countmail/countmail.6, dab/dab.6,
714 ;; lib/strlcpy.c, wargames/wargames.6
715 license:bsd-3
716 ;; dab and hunt. Files: adventure/extern.h,
717 ;; backgammon/backgammon/backlocal.h, caesar/rot13.in,
718 ;; countmail/countmail, dm/utmpentry.c, dm/utmpentry.h,
719 ;; hack/extern.h, robots/auto.c, sail/display.h,
720 ;; sail/restart.h, wargames/wargames
721 license:bsd-4
722 ;; wtf (the game)
723 license:public-domain
724 ;; phantasia (all but phantasia/pathnames.h.in, which is bsd-3)
725 (license:fsf-free "file:///phantasia/COPYRIGHT")))))
726
727
728 (define-public bzflag
729 (package
730 (name "bzflag")
731 (version "2.4.20")
732 (source
733 (origin
734 (method url-fetch)
735 (uri (string-append "https://download.bzflag.org/bzflag/source/"
736 version "/bzflag-" version ".tar.bz2"))
737 (sha256
738 (base32 "16brxqmfiyz4j4lb8ihzjcbwqmpsms6vm3ijbp34lnw0blbwdjb2"))))
739 (build-system gnu-build-system)
740 (arguments
741 `(#:phases
742 (modify-phases %standard-phases
743 (add-after 'install 'install-desktop-file-and-icons
744 (lambda* (#:key outputs #:allow-other-keys)
745 (let* ((share (string-append (assoc-ref outputs "out") "/share"))
746 (data (string-append share "/bzflag"))
747 (hicolor (string-append share "/icons/hicolor"))
748 (applications (string-append share "/applications")))
749 ;; Move desktop file.
750 (install-file (string-append data "/bzflag.desktop")
751 applications)
752 ;; Install icons.
753 (for-each (lambda (size)
754 (let* ((dim (string-append size "x" size))
755 (dir (string-append hicolor "/" dim "/apps")))
756 (mkdir-p dir)
757 (copy-file
758 (string-append data "/bzflag-" dim ".png")
759 (string-append dir "/bzflag.png"))))
760 '("48" "256")))
761 #t)))))
762 (native-inputs
763 `(("pkg-config" ,pkg-config)))
764 (inputs
765 `(("c-ares" ,c-ares)
766 ("curl" ,curl)
767 ("glew" ,glew)
768 ("glu" ,glu)
769 ("sdl2" ,sdl2)
770 ("zlib" ,zlib)))
771 (home-page "https://www.bzflag.org/")
772 (synopsis "3D first person tank battle game")
773 (description
774 "BZFlag is a 3D multi-player multiplatform tank battle game that
775 allows users to play against each other in a network environment.
776 There are five teams: red, green, blue, purple and rogue (rogue tanks
777 are black). Destroying a player on another team scores a win, while
778 being destroyed or destroying a teammate scores a loss. Rogues have
779 no teammates (not even other rogues), so they cannot shoot teammates
780 and they do not have a team score.
781
782 There are two main styles of play: capture-the-flag and free-for-all.
783 In capture-the-flag, each team (except rogues) has a team base and
784 each team with at least one player has a team flag. The object is to
785 capture an enemy team's flag by bringing it to your team's base. This
786 destroys every player on the captured team, subtracts one from that
787 team's score, and adds one to your team's score. In free-for-all,
788 there are no team flags or team bases. The object is simply to get as
789 high a score as possible.")
790 ;; The game is dual-licensed.
791 (license (list license:lgpl2.1 license:mpl2.0))))
792
793 (define-public cataclysm-dda
794 (package
795 (name "cataclysm-dda")
796 (version "0.E-3")
797 (source
798 (origin
799 (method git-fetch)
800 (uri (git-reference
801 (url "https://github.com/CleverRaven/Cataclysm-DDA")
802 (commit version)))
803 (sha256
804 (base32 "108cs6vp99qmqqfnmczad0xjgcl82bypm5xszwnlfcswdsrfs4da"))
805 (file-name (git-file-name name version))))
806 (build-system gnu-build-system)
807 (arguments
808 '(#:make-flags
809 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
810 "USE_HOME_DIR=1" "DYNAMIC_LINKING=1" "RELEASE=1"
811 "LOCALIZE=1" "LANGUAGES=all")
812 #:phases
813 (modify-phases %standard-phases
814 (delete 'configure)
815 (add-after 'build 'build-tiles
816 (lambda* (#:key make-flags outputs #:allow-other-keys)
817 ;; Change prefix directory and enable tile graphics and sound.
818 (apply invoke "make" "TILES=1" "SOUND=1"
819 (string-append "PREFIX="
820 (assoc-ref outputs "tiles"))
821 (cdr make-flags))))
822 (add-after 'install 'install-tiles
823 (lambda* (#:key make-flags outputs #:allow-other-keys)
824 (apply invoke "make" "install" "TILES=1" "SOUND=1"
825 (string-append "PREFIX="
826 (assoc-ref outputs "tiles"))
827 (cdr make-flags)))))
828 ;; TODO: Add libtap++ from https://github.com/cbab/libtappp as a native
829 ;; input in order to support tests.
830 #:tests? #f))
831 (outputs '("out"
832 "tiles")) ;for tile graphics and sound support
833 (native-inputs
834 `(("gettext" ,gettext-minimal)
835 ("pkg-config" ,pkg-config)))
836 (inputs
837 `(("freetype" ,freetype)
838 ("libogg" ,libogg)
839 ("libvorbis" ,libvorbis)
840 ("ncurses" ,ncurses)
841 ("sdl2" ,sdl2)
842 ("sdl2-image" ,sdl2-image)
843 ("sdl2-ttf" ,sdl2-ttf)
844 ("sdl2-mixer" ,sdl2-mixer)))
845 (home-page "https://cataclysmdda.org/")
846 (synopsis "Survival horror roguelike video game")
847 (description
848 "Cataclysm: Dark Days Ahead (or \"DDA\" for short) is a roguelike set
849 in a post-apocalyptic world. Struggle to survive in a harsh, persistent,
850 procedurally generated world. Scavenge the remnants of a dead civilization
851 for food, equipment, or, if you are lucky, a vehicle with a full tank of gas
852 to get you out of Dodge. Fight to defeat or escape from a wide variety of
853 powerful monstrosities, from zombies to giant insects to killer robots and
854 things far stranger and deadlier, and against the others like yourself, that
855 want what you have.")
856 (license license:cc-by-sa3.0)))
857
858 (define-public corsix-th
859 (package
860 (name "corsix-th")
861 (version "0.64")
862 (source
863 (origin
864 (method git-fetch)
865 (uri (git-reference
866 (url "https://github.com/CorsixTH/CorsixTH")
867 (commit (string-append "v" version))))
868 (file-name (git-file-name name version))
869 (sha256
870 (base32 "0chh9cv2kdc39sr0x8hclcyzd8dz2y6grgagqzkvr7j570wa5cqh"))))
871 (build-system cmake-build-system)
872 (arguments
873 `(#:phases
874 (modify-phases %standard-phases
875 (add-after 'install 'wrap-binary
876 (lambda _
877 ;; Set Lua module paths and default MIDI soundfont on startup.
878 (let* ((out (assoc-ref %outputs "out"))
879 (fluid (assoc-ref %build-inputs "fluid-3"))
880 (lua-version ,(version-major+minor (package-version lua)))
881 (lua-cpath
882 (map (lambda (lib)
883 (string-append
884 (assoc-ref %build-inputs (string-append "lua-" lib))
885 "/lib/lua/" lua-version "/?.so"))
886 '("filesystem" "lpeg"))))
887 (wrap-program (string-append out "/bin/corsix-th")
888 `("LUA_CPATH" ";" = ,lua-cpath)
889 `("SDL_SOUNDFONTS" ":" suffix
890 (,(string-append fluid "/share/soundfonts/FluidR3Mono_GM.sf3")))))
891 #t)))
892 #:tests? #f)) ; TODO need busted package to run tests
893 ;; Omit Lua-Socket dependency to disable automatic updates.
894 (inputs
895 `(("ffmpeg" ,ffmpeg)
896 ("fluid-3" ,fluid-3)
897 ("freetype" ,freetype)
898 ("lua" ,lua)
899 ("lua-filesystem" ,lua-filesystem)
900 ("lua-lpeg" ,lua-lpeg)
901 ("sdl2" ,sdl2)
902 ("sdl2-mixer" ,sdl2-mixer)))
903 (home-page "https://corsixth.com")
904 (synopsis "Implementation of the @i{Theme Hospital} game engine")
905 (description
906 "This package provides a reimplementation of the 1997 Bullfrog business
907 simulation game @i{Theme Hospital}. As well as faithfully recreating the
908 original engine, CorsixTH adds support for high resolutions, custom levels and
909 more. This package does @emph{not} provide the game assets.")
910 (license (list
911 license:expat ; main license
912 license:bsd-3)))) ; CorsixTH/Src/random.c
913
914 (define-public cowsay
915 (package
916 (name "cowsay")
917 (version "3.04")
918 (source (origin
919 (method git-fetch)
920 (uri (git-reference
921 (url "https://github.com/tnalpgge/rank-amateur-cowsay")
922 (commit (string-append name "-" version))))
923 (file-name (git-file-name name version))
924 (sha256
925 (base32
926 "06455kq37hvq1xb7adyiwrx0djs50arsxvjgixyxks16lm1rlc7n"))))
927 (build-system gnu-build-system)
928 (arguments
929 `(#:phases
930 (modify-phases %standard-phases
931 (delete 'configure) ; no configure script
932 (delete 'build) ; nothing to be built
933 (replace 'install
934 (lambda* (#:key outputs #:allow-other-keys)
935 (invoke "sh" "install.sh"
936 (assoc-ref outputs "out"))))
937 (delete 'check)
938 (add-after 'install 'check
939 (lambda* (#:key outputs #:allow-other-keys)
940 (invoke (string-append (assoc-ref outputs "out")
941 "/bin/cowsay")
942 "We're done!"))))))
943 (inputs
944 `(("perl" ,perl)))
945 (home-page (string-append "https://web.archive.org/web/20071026043648/"
946 "http://www.nog.net:80/~tony/warez/cowsay.shtml"))
947 (synopsis "Speaking cow text filter")
948 (description "Cowsay is basically a text filter. Send some text into it,
949 and you get a cow saying your text. If you think a talking cow isn't enough,
950 cows can think too: all you have to do is run @command{cowthink}. If you're
951 tired of cows, a variety of other ASCII-art messengers are available.")
952 (license license:gpl3+)))
953
954 (define-public lolcat
955 (let ((commit "35dca3d0a381496d7195cd78f5b24aa7b62f2154")
956 (revision "0"))
957 (package
958 (name "lolcat")
959 (version (git-version "1.0" revision commit))
960 (source
961 (origin
962 (method git-fetch)
963 (uri (git-reference
964 (url "https://github.com/jaseg/lolcat")
965 (commit commit)))
966 (sha256
967 (base32
968 "0jjbkqcc2ikjxd1xgdyv4rb0vsw218181h89f2ywg29ffs3ypd8g"))
969 (file-name (git-file-name name version))))
970 (build-system gnu-build-system)
971 (arguments
972 `(#:tests? #f ; no check target
973 #:make-flags
974 (list ,(string-append "CC=" (cc-for-target)))
975 #:phases
976 (modify-phases %standard-phases
977 (delete 'bootstrap)
978 (delete 'configure)
979 (replace 'install
980 (lambda* (#:key outputs #:allow-other-keys)
981 (let* ((out (assoc-ref outputs "out"))
982 (dest (string-append out "/bin")))
983 (mkdir-p dest)
984 (install-file "lolcat" dest)
985 (install-file "censor" dest)
986 #t))))))
987 (home-page "https://github.com/jaseg/lolcat")
988 (synopsis "Rainbow coloring effect for text console display")
989 (description "@command{lolcat} concatenates files and streams like
990 regular @command{cat}, but it also adds terminal escape codes between
991 characters and lines resulting in a rainbow effect.")
992 (license license:wtfpl2))))
993
994 (define-public foobillard++
995 ;; Even though this latest revision is old already, stable release is
996 ;; lagging way behind it, and has issues with textures rendering.
997 (let ((svn-revision 170))
998 (package
999 (name "foobillard++")
1000 (version (string-append "3.43-r" (number->string svn-revision)))
1001 (source
1002 (origin
1003 (method svn-fetch)
1004 (uri (svn-reference
1005 (url "svn://svn.code.sf.net/p/foobillardplus/code/")
1006 (revision svn-revision)))
1007 (file-name (git-file-name name version))
1008 (sha256
1009 (base32 "00b693ys5zvzjbjzzj3dqfzm5xw64gwjf9m8qv6bkmf0klbhmayk"))
1010 (patches
1011 (search-patches "foobillard++-pkg-config.patch"))
1012 (modules '((guix build utils)))
1013 (snippet
1014 '(begin
1015 ;; Unfortunately, the game includes background music with
1016 ;; a non-commercial clause. Delete it.
1017 (for-each delete-file (find-files "data/music" "\\.ogg$"))
1018 #t))))
1019 (build-system gnu-build-system)
1020 (arguments
1021 `(#:configure-flags
1022 (list
1023 ;; Install data in a less exotic location.
1024 (string-append "--prefix=" (assoc-ref %outputs "out") "/share")
1025 ;; Prevent a build error about undefined trigonometric functions.
1026 "--enable-fastmath=no")
1027 #:phases
1028 (modify-phases %standard-phases
1029 (add-after 'unpack 'fix-makefile
1030 ;; Remove hard-coded directories. Also fix installation
1031 ;; rule: it tries to move around non-existent files or
1032 ;; files already moved.
1033 (lambda* (#:key outputs #:allow-other-keys)
1034 (substitute* "Makefile.am"
1035 (("/usr") (assoc-ref outputs "out"))
1036 (("cp .*?/foobillardplus\\.desktop.*") "")
1037 (("cp .*?/foobillardplus\\.(png|xbm) \\$\\(datarootdir\\).*")
1038 ""))
1039 #t))
1040 (add-after 'unpack 'unbundle-font
1041 ;; XXX: The package ships with LinBiolinum_aSB.ttf and
1042 ;; LinBiolinum_aS.ttf, which are not provided by
1043 ;; `font-linuxlibertine' package. Therefore, we cannot replace
1044 ;; them yet.
1045 (lambda* (#:key inputs #:allow-other-keys)
1046 (let ((dejavu (string-append (assoc-ref inputs "font-dejavu")
1047 "/share/fonts/truetype/")))
1048 (with-directory-excursion "data"
1049 (for-each (lambda (f)
1050 (delete-file f)
1051 (symlink (string-append dejavu f) f))
1052 '("DejaVuSans-Bold.ttf" "DejaVuSans.ttf"))))
1053 #t))
1054 (replace 'bootstrap
1055 (lambda _
1056 (invoke "aclocal" "--force")
1057 (invoke "autoconf" "-f")
1058 (invoke "autoheader" "-f")
1059 (invoke "automake" "-a" "-c" "-f")))
1060 (add-before 'build 'prepare-build
1061 ;; Set correct environment for SDL.
1062 (lambda* (#:key inputs #:allow-other-keys)
1063 (setenv "CPATH"
1064 (string-append (assoc-ref inputs "sdl")
1065 "/include/SDL:"
1066 (or (getenv "CPATH") "")))
1067 #t))
1068 (add-before 'build 'fix-settings-directory
1069 ;; Hide foobillardplus settings directory in $HOME.
1070 (lambda _
1071 (substitute* "src/history.c"
1072 (("/foobillardplus-data") "/.foobillardplus"))
1073 #t))
1074 (add-before 'install 'create-directories
1075 ;; Install process does not create directories before
1076 ;; trying to move file in it.
1077 (lambda* (#:key outputs #:allow-other-keys)
1078 (let ((out (assoc-ref outputs "out")))
1079 (mkdir-p (string-append out "/share/icons"))
1080 (mkdir-p (string-append out "/share/applications")))
1081 #t))
1082 (add-after 'install 'symlink-executable
1083 ;; Symlink executable to $out/bin.
1084 (lambda* (#:key outputs #:allow-other-keys)
1085 (let* ((out (assoc-ref outputs "out"))
1086 (bin (string-append out "/bin")))
1087 (mkdir-p bin)
1088 (with-directory-excursion bin
1089 (symlink "../share/foobillardplus/bin/foobillardplus"
1090 "foobillardplus"))
1091 #t))))))
1092 (native-inputs
1093 `(("autoconf" ,autoconf)
1094 ("automake" ,automake)
1095 ("pkg-config" ,pkg-config)))
1096 (inputs
1097 `(("font-dejavu" ,font-dejavu)
1098 ("freetype" ,freetype)
1099 ("glu" ,glu)
1100 ("libpng" ,libpng)
1101 ("sdl" ,(sdl-union (list sdl sdl-mixer sdl-net)))))
1102 (home-page "http://foobillardplus.sourceforge.net/")
1103 (synopsis "3D billiard game")
1104 (description "FooBillard++ is an advanced 3D OpenGL billiard game
1105 based on the original foobillard 3.0a sources from Florian Berger.
1106 You can play it with one or two players or against the computer.
1107
1108 The game features:
1109
1110 @itemize
1111 @item Wood paneled table with gold covers and gold diamonds.
1112 @item Reflections on balls.
1113 @item Zoom in and out, rotation, different angles and bird's eye view.
1114 @item Different game modes: 8 or 9-ball, Snooker or Carambole.
1115 @item Tournaments. Compete against other players.
1116 @item Animated cue with strength and eccentric hit adjustment.
1117 @item Jump shots and snipping.
1118 @item Realistic gameplay and billiard sounds.
1119 @item Red-Green stereo.
1120 @item And much more.
1121 @end itemize")
1122 (license (list license:gpl2 license:silofl1.1)))))
1123
1124 (define-public freedoom
1125 (package
1126 (name "freedoom")
1127 (version "0.12.1")
1128 (source
1129 (origin
1130 (method git-fetch)
1131 (uri (git-reference
1132 (url "https://github.com/freedoom/freedoom")
1133 (commit (string-append "v" version))))
1134 (file-name (git-file-name name version))
1135 (sha256
1136 (base32 "1mq60lfwaaxmch7hsz8403pwafnlsmsd5z2df2j77ppwndwcrypb"))))
1137 (build-system gnu-build-system)
1138 (arguments
1139 '(#:make-flags
1140 (list (string-append "prefix=" (assoc-ref %outputs "out")))
1141 #:tests? #f ; no check target
1142 #:phases
1143 (modify-phases %standard-phases
1144 (delete 'bootstrap)
1145 (replace 'configure
1146 (lambda* (#:key inputs outputs #:allow-other-keys)
1147 (let* ((freedoom (assoc-ref outputs "out"))
1148 (wad-dir (string-append freedoom "/share/games/doom")))
1149 ;; Make sure that the install scripts know where to find
1150 ;; the appropriate WAD files.
1151 (substitute* "dist/freedoom"
1152 (("IWAD=freedm.wad")
1153 (string-append "IWAD=" wad-dir "/freedm.wad"))
1154 (("IWAD=freedoom1.wad")
1155 (string-append "IWAD=" wad-dir "/freedoom1.wad"))
1156 (("IWAD=freedoom2.wad")
1157 (string-append "IWAD=" wad-dir "/freedoom2.wad")))
1158 #t))))))
1159 (native-inputs
1160 `(("asciidoc" ,asciidoc)
1161 ("deutex" ,deutex)
1162 ("python" ,python)
1163 ("python-pillow" ,python-pillow)))
1164 (home-page "https://freedoom.github.io/")
1165 (synopsis "Free content game based on the Doom engine")
1166 (native-search-paths
1167 (list (search-path-specification
1168 (variable "DOOMWADDIR")
1169 (files '("share/games/doom")))
1170 (search-path-specification
1171 (variable "DOOMWADPATH")
1172 (files '("share/games/doom")))))
1173 (description
1174 "The Freedoom project aims to create a complete free content first person
1175 shooter game. Freedoom by itself is just the raw material for a game: it must
1176 be paired with a compatible game engine (such as @code{prboom-plus}) to be
1177 played. Freedoom complements the Doom engine with free levels, artwork, sound
1178 effects and music to make a completely free game.")
1179 (license license:bsd-3)))
1180
1181 (define-public freedroidrpg
1182 (package
1183 (name "freedroidrpg")
1184 (version "0.16.1")
1185 (source
1186 (origin
1187 (method url-fetch)
1188 (uri (string-append "http://ftp.osuosl.org/pub/freedroid/"
1189 "freedroidRPG-" (version-major+minor version) "/"
1190 "freedroidRPG-" version ".tar.gz"))
1191 (sha256
1192 (base32 "0n4kn38ncmcy3lrxmq8fjry6c1z50z4q1zcqfig0j4jb0dsz2va2"))))
1193 (build-system gnu-build-system)
1194 (arguments
1195 `(#:configure-flags
1196 (list
1197 (string-append "CFLAGS="
1198 "-I" (assoc-ref %build-inputs "sdl-gfx") "/include/SDL "
1199 "-I" (assoc-ref %build-inputs "sdl-image") "/include/SDL "
1200 "-I" (assoc-ref %build-inputs "sdl-mixer") "/include/SDL")
1201 "--enable-opengl")
1202 ;; FIXME: the test suite fails with the following error output:
1203 ;; 4586 Segmentation fault env SDL_VIDEODRIVER=dummy \
1204 ;; SDL_AUDIODRIVER=dummy ./src/freedroidRPG -nb text
1205 #:tests? #f))
1206 (native-inputs
1207 `(("pkg-config" ,pkg-config)))
1208 (inputs
1209 `(("glu" ,glu)
1210 ("libjpeg" ,libjpeg-turbo)
1211 ("libogg" ,libogg)
1212 ("libpng" ,libpng)
1213 ("libvorbis" ,libvorbis)
1214 ("mesa" ,mesa)
1215 ("python" ,python-wrapper)
1216 ("sdl" ,sdl)
1217 ("sdl-gfx" ,sdl-gfx)
1218 ("sdl-image" ,sdl-image)
1219 ("sdl-mixer" ,sdl-mixer)
1220 ("zlib" ,zlib)))
1221 (home-page "https://www.freedroid.org/")
1222 (synopsis "Isometric role-playing game against killer robots")
1223 (description
1224 "Freedroid RPG is an @dfn{RPG} (Role-Playing Game) with isometric graphics.
1225 The game tells the story of a world destroyed by a conflict between robots and
1226 their human masters. To restore peace to humankind, the player must complete
1227 numerous quests while fighting off rebelling robots---either by taking control
1228 of them, or by simply blasting them to pieces with melee and ranged weapons in
1229 real-time combat.")
1230 (license (list license:expat ; lua/
1231 license:gpl3 ; src/gen_savestruct.py
1232 license:gpl2+)))) ; the rest
1233
1234 (define-public golly
1235 (package
1236 (name "golly")
1237 (version "3.3")
1238 (source (origin
1239 (method url-fetch)
1240 (uri (string-append "mirror://sourceforge/golly/golly/golly-"
1241 version "/golly-" version
1242 "-src.tar.gz"))
1243 (sha256
1244 (base32
1245 "1j3ksnar4rdam4xiyspgyrs1pifbvxfxkrn65brkwxpx39mpgzc8"))))
1246 (build-system gnu-build-system)
1247 (arguments
1248 '(#:make-flags (list "CC=gcc"
1249 (string-append "GOLLYDIR="
1250 (assoc-ref %outputs "out")
1251 "/share/golly"))
1252 #:tests? #f ; no check target
1253 #:phases
1254 (modify-phases %standard-phases
1255 (replace 'configure
1256 (lambda* (#:key inputs #:allow-other-keys)
1257 ;; For some reason, setting the PYTHON_SHLIB make flag doesn't
1258 ;; properly set the path to the Python shared library. This
1259 ;; substitution acheives the same end by different means.
1260 (substitute* "gui-wx/wxprefs.cpp"
1261 (("pythonlib = wxT\\(STRINGIFY\\(PYTHON_SHLIB\\)\\)")
1262 (string-append "pythonlib = \""
1263 (assoc-ref inputs "python")
1264 "/lib/libpython-2.7.so\"")))
1265 #t))
1266 (replace 'build
1267 (lambda* (#:key make-flags outputs #:allow-other-keys)
1268 (with-directory-excursion "gui-wx"
1269 (apply invoke `("make" ,@make-flags "-f" "makefile-gtk")))))
1270 (replace 'install
1271 (lambda* (#:key outputs #:allow-other-keys)
1272 (let* ((out (assoc-ref outputs "out"))
1273 (bin (string-append out "/bin"))
1274 (doc (string-append out "/share/doc/golly"))
1275 (pixmaps (string-append out "/share/pixmaps"))
1276 (share (string-append out "/share/golly")))
1277 (for-each (lambda (binary)
1278 (install-file binary bin))
1279 '("bgolly" "golly"))
1280 (for-each (lambda (document)
1281 (install-file
1282 (string-append "docs/" document ".html")
1283 doc))
1284 '("License" "ReadMe" "ToDo"))
1285 (install-file "gui-wx/icons/appicon.xpm" pixmaps)
1286 (for-each (lambda (folder)
1287 (copy-recursively
1288 folder
1289 (string-append share "/" folder)))
1290 '("Help" "Patterns" "Rules" "Scripts")))
1291 #t)))))
1292 (native-inputs
1293 `(("lua" ,lua)))
1294 (inputs
1295 `(("glu" ,glu)
1296 ("mesa" ,mesa)
1297 ("python" ,python-2)
1298 ("wxwidgets" ,wxwidgets-gtk2)
1299 ("zlib" ,zlib)))
1300 (home-page "http://golly.sourceforge.net/")
1301 (synopsis "Software for exploring cellular automata")
1302 (description
1303 "Golly simulates Conway's Game of Life and many other types of cellular
1304 automata. The following features are available:
1305 @enumerate
1306 @item Support for bounded and unbounded universes, with cells of up to 256
1307 states.
1308 @item Support for multiple algorithms, including Bill Gosper's Hashlife
1309 algorithm.
1310 @item Loading patterns from BMP, PNG, GIF and TIFF image files.
1311 @item Reading RLE, macrocell, Life 1.05/1.06, dblife and MCell files.
1312 @item Scriptable via Lua or Python.
1313 @item Extracting patterns, rules and scripts from zip files.
1314 @item Downloading patterns, rules and scripts from online archives.
1315 @item Pasting patterns from the clipboard.
1316 @item Unlimited undo/redo.
1317 @item Configurable keyboard shortcuts.
1318 @item Auto fit option to keep patterns within the view.
1319 @end enumerate")
1320 (license license:gpl2+)))
1321
1322 (define-public julius
1323 (package
1324 (name "julius")
1325 (version "1.5.1")
1326 (source
1327 (origin
1328 (method git-fetch)
1329 (uri (git-reference
1330 (url "https://github.com/bvschaik/julius")
1331 (commit (string-append "v" version))))
1332 (file-name (git-file-name name version))
1333 (sha256
1334 (base32 "10d6py1cmkq8lnb5h3w8rdpp4fmpd1wgqkgiabdghqxi7b2s0g4b"))
1335 ;; Remove unused bundled libraries.
1336 (modules '((guix build utils)))
1337 (snippet
1338 '(begin
1339 (with-directory-excursion "ext"
1340 (for-each delete-file-recursively '("dirent" "png" "SDL2" "zlib")))
1341 #t))))
1342 (build-system cmake-build-system)
1343 (inputs
1344 `(("libpng" ,libpng)
1345 ("sdl2" ,sdl2)
1346 ("sdl2-mixer" ,sdl2-mixer)))
1347 (home-page "https://github.com/bvschaik/julius")
1348 (synopsis "Re-implementation of Caesar III game engine")
1349 (description
1350 "Engine for Caesar III, a city-building real-time strategy game.
1351 Julius includes some UI enhancements while preserving the logic (including
1352 bugs) of the original game, so that saved games are compatible. This package
1353 does not include game data.")
1354 (license (list license:agpl3
1355 license:zlib)))) ; ext/tinyfiledialogs
1356
1357 (define-public augustus
1358 (package
1359 (inherit julius)
1360 (name "augustus")
1361 (version "1.4.1a")
1362 (source
1363 (origin
1364 (method git-fetch)
1365 (uri (git-reference
1366 (url "https://github.com/Keriew/augustus")
1367 (commit (string-append "v" version))))
1368 (file-name (git-file-name name version))
1369 (sha256
1370 (base32 "1xqv8j8jh3f13fjhyf7hk1anrn799cwwsvsd75kpl9n5yh5s1j5y"))
1371 ;; Remove unused bundled libraries.
1372 (modules '((guix build utils)))
1373 (snippet
1374 '(begin
1375 (with-directory-excursion "ext"
1376 (for-each delete-file-recursively '("dirent" "png" "SDL2" "zlib")))
1377 #t))))
1378 (arguments
1379 ;; No tests. See https://github.com/Keriew/augustus/issues/82.
1380 `(#:tests? #f))
1381 (home-page "https://github.com/Keriew/augustus")
1382 (synopsis "Re-implementation of Caesar III game engine with gameplay changes")
1383 (description
1384 "Fork of Julius, an engine for the a city-building real-time strategy
1385 game Caesar III. Gameplay enhancements include:
1386
1387 @itemize
1388 @item roadblocks;
1389 @item market special orders;
1390 @item global labour pool;
1391 @item partial warehouse storage;
1392 @item increased game limits;
1393 @item zoom controls.
1394 @end itemize\n")))
1395
1396 (define-public meandmyshadow
1397 (package
1398 (name "meandmyshadow")
1399 (version "0.5a")
1400 (source (origin
1401 (method url-fetch)
1402 (uri (string-append "mirror://sourceforge/meandmyshadow/"
1403 version "/meandmyshadow-" version
1404 "-src.tar.gz"))
1405 (sha256
1406 (base32
1407 "0i98v6cgmpsxy7mbb0s2y6f6qq6mkwzk2nrv1nz39ncf948aky2h"))))
1408 (build-system cmake-build-system)
1409 (arguments
1410 `(#:tests? #f)) ; there are no tests
1411 (native-inputs
1412 `(("pkg-config" ,pkg-config)))
1413 (inputs
1414 `(("curl" ,curl)
1415 ("libarchive" ,libarchive)
1416 ("lua" ,lua)
1417 ("sdl" ,(sdl-union (list sdl2
1418 sdl2-image
1419 sdl2-mixer
1420 sdl2-ttf)))))
1421 (home-page "https://acmepjz.github.io/meandmyshadow/")
1422 (synopsis "Puzzle/platform game")
1423 (description "Me and My Shadow is a puzzle/platform game in which you try
1424 to reach the exit by solving puzzles. Spikes, moving blocks, fragile blocks
1425 and much more stand between you and the exit. Record your moves and let your
1426 shadow mimic them to reach blocks you couldn't reach alone.")
1427 (license license:gpl3+)))
1428
1429 (define-public opensurge
1430 (package
1431 (name "opensurge")
1432 (version "0.5.1.2")
1433 (source
1434 (origin
1435 (method git-fetch)
1436 (uri (git-reference
1437 (url "https://github.com/alemart/opensurge")
1438 (commit (string-append "v" version))))
1439 (file-name (git-file-name name version))
1440 (sha256
1441 (base32 "0ih7hlqjnp9rv0m4lqf7c0s1ai532way5i4pk45jq1gqm8325dbv"))))
1442 (build-system cmake-build-system)
1443 (arguments
1444 `(#:tests? #f ;there are no tests
1445 #:configure-flags
1446 (let* ((out (assoc-ref %outputs "out"))
1447 (share (string-append out "/share")))
1448 (list (string-append "-DCMAKE_INSTALL_PREFIX=" out "/bin")
1449 (string-append "-DGAME_DATADIR=" share "/" ,name)
1450 (string-append "-DDESKTOP_ENTRY_PATH=" share "/applications")
1451 (string-append "-DDESKTOP_ICON_PATH=" share "/pixmaps")
1452 (string-append "-DDESKTOP_METAINFO_PATH=" share "/metainfo")))
1453 #:phases
1454 (modify-phases %standard-phases
1455 (add-after 'unpack 'fix-xdg-open-path
1456 (lambda* (#:key inputs #:allow-other-keys)
1457 ;; Look for xdg-open in the store.
1458 (substitute* "src/core/web.c"
1459 (("/usr(/bin/xdg-open)" _ bin)
1460 (string-append (assoc-ref inputs "xdg-utils") bin)))
1461 #t))
1462 (add-after 'unpack 'unbundle-fonts
1463 (lambda* (#:key inputs #:allow-other-keys)
1464 ;; Replace bundled Roboto fonts with links to the store.
1465 (with-directory-excursion "fonts"
1466 (let ((roboto-dir (string-append
1467 (assoc-ref inputs "font-google-roboto")
1468 "/share/fonts/truetype/")))
1469 (for-each
1470 (lambda (font)
1471 (delete-file font)
1472 (symlink (string-append roboto-dir font) font))
1473 '("Roboto-Black.ttf" "Roboto-Bold.ttf" "Roboto-Medium.ttf")))
1474 #t))))))
1475 (inputs
1476 `(("allegro" ,allegro)
1477 ("font-google-roboto" ,font-google-roboto)
1478 ("surgescript" ,surgescript)
1479 ("xdg-utils" ,xdg-utils)))
1480 (home-page "https://opensurge2d.org")
1481 (synopsis "2D retro side-scrolling game")
1482 (description "@code{Open Surge} is a 2D retro side-scrolling platformer
1483 inspired by the Sonic games. The player runs at high speeds through each
1484 level while collecting items and avoiding obstacles. The game includes a
1485 built-in level editor.")
1486 (license
1487 ;; Code is under GPL 3+, assets are under various licenses.
1488 ;; See src/misc/credits.c for details.
1489 (list license:gpl3+
1490 license:cc0
1491 license:cc-by3.0
1492 license:cc-by-sa3.0
1493 license:expat
1494 license:public-domain
1495 license:silofl1.1))))
1496
1497 (define-public knights
1498 (package
1499 (name "knights")
1500 (version "025")
1501 (source (origin
1502 (method url-fetch)
1503 (uri (string-append "http://www.knightsgame.org.uk/files/knights_"
1504 version "_src.tar.gz"))
1505 (sha256
1506 (base32
1507 "18vp2ygvn0s0jz8rm585jqf6hjqkam1ximq81k0r9hpmfj7wb88f"))))
1508 (build-system gnu-build-system)
1509 (arguments
1510 '(#:make-flags
1511 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
1512 "CXXFLAGS=-lpthread")
1513 #:phases
1514 (modify-phases %standard-phases
1515 ;; No configure script.
1516 (delete 'configure))
1517 #:tests? #f)) ;; No check target.
1518 (inputs
1519 `(("boost" ,boost)
1520 ("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer)))
1521 ("freetype" ,freetype)
1522 ("fontconfig" ,fontconfig)
1523 ("curl" ,curl)))
1524 (native-inputs
1525 `(("pkg-config" ,pkg-config)))
1526 (home-page "http://www.knightsgame.org.uk/")
1527 (synopsis "Multiplayer dungeon game involving knights and quests")
1528 (description "Knights is a multiplayer game involving several knights who
1529 must run around a dungeon and complete various quests. Each game revolves
1530 around a quest – for example, you might have to find some items and carry them
1531 back to your starting point. This may sound easy, but as there are only
1532 enough items in the dungeon for one player to win, you may end up having to
1533 kill your opponents to get their stuff! Other quests involve escaping from
1534 the dungeon, fighting a duel to the death against the enemy knights, or
1535 destroying an ancient book using a special wand.")
1536 ;; This package includes modified sources of lua (X11), enet (Expat), and
1537 ;; guichan (BSD-3). The "Coercri" library is released under the Boost
1538 ;; license. The whole package is released under GPLv3+.
1539 (license license:gpl3+)))
1540
1541 (define-public gnome-chess
1542 (package
1543 (name "gnome-chess")
1544 (version "3.37.3")
1545 (source (origin
1546 (method url-fetch)
1547 (uri (string-append "mirror://gnome/sources/gnome-chess/"
1548 (version-major+minor version) "/"
1549 "gnome-chess-" version ".tar.xz"))
1550 (sha256
1551 (base32
1552 "09axf0q1mp13sv8cs0syfg8ahcd9r2qb26278r09j6s4njxmkfv4"))))
1553 (build-system meson-build-system)
1554 (arguments
1555 '(#:glib-or-gtk? #t
1556 #:phases
1557 (modify-phases %standard-phases
1558 (add-after 'unpack 'skip-gtk-update-icon-cache
1559 ;; Don't create 'icon-theme.cache'.
1560 (lambda _
1561 (substitute* "meson_post_install.py"
1562 (("gtk-update-icon-cache") "true"))
1563 #t)))))
1564 (inputs
1565 `(("gtk+" ,gtk+)
1566 ("librsvg" ,librsvg)))
1567 (native-inputs
1568 `(("gettext" ,gettext-minimal)
1569 ("glib:bin" ,glib "bin") ; for desktop-file-validate and appstream-util
1570 ("itstool" ,itstool)
1571 ("pkg-config" ,pkg-config)
1572 ("vala" ,vala)))
1573 (home-page "https://wiki.gnome.org/Apps/Chess")
1574 (synopsis "Chess board for GNOME")
1575 (description "GNOME Chess provides a 2D board for playing chess games
1576 against human or computer players. It supports loading and saving games in
1577 Portable Game Notation. To play against a computer, install a chess engine
1578 such as chess or stockfish.")
1579 (license license:gpl3+)))
1580
1581 (define-public gnubg
1582 (package
1583 (name "gnubg")
1584 (version "1.06.002")
1585 (source
1586 (origin
1587 (method url-fetch)
1588 (uri (string-append "mirror://gnu/gnubg/gnubg-release-"
1589 version "-sources.tar.gz"))
1590 (sha256
1591 (base32
1592 "11xwhcli1h12k6rnhhyq4jphzrhfik7i8ah3k32pqw803460n6yf"))))
1593 (build-system gnu-build-system)
1594 (inputs `(;; XXX: Build with an older Pango for 'pango_font_get_hb_font' and
1595 ;; 'pango_coverage_get_type'. Try removing this for versions > 1.06.002.
1596 ("pango" ,pango-1.42)
1597
1598 ("glib" ,glib)
1599 ("readline" ,readline)
1600 ("gtk+" ,gtk+-2)
1601 ("mesa" ,mesa)
1602 ("glu" ,glu)
1603 ("gtkglext" ,gtkglext)
1604 ("sqlite" ,sqlite)
1605 ("libcanberra" ,libcanberra)))
1606 (native-inputs `(("python-2" ,python-2)
1607 ("pkg-config" ,pkg-config)))
1608 (arguments
1609 `(#:configure-flags
1610 ;; SSE instructions are available on Intel systems only.
1611 (list ,@(if (any (cute string-prefix? <> (or (%current-target-system)
1612 (%current-system)))
1613 '("x86_64" "i686"))
1614 '("--enable-simd=sse2") ; prevent avx instructions
1615 '()))
1616 #:phases
1617 (modify-phases %standard-phases
1618 (add-after 'install 'install-desktop-file
1619 (lambda* (#:key outputs #:allow-other-keys)
1620 (let* ((out (assoc-ref outputs "out"))
1621 (apps (string-append out "/share/applications")))
1622 (mkdir-p apps)
1623 (with-output-to-file (string-append apps "/gnubg.desktop")
1624 (lambda _
1625 (format #t
1626 "[Desktop Entry]~@
1627 Name=GNU Backgammon~@
1628 Exec=~a/bin/gnubg -w~@
1629 Icon=gnubg~@
1630 Categories=Game;~@
1631 Terminal=false~@
1632 Type=Application~%"
1633 out))))
1634 #t)))))
1635 (home-page "https://www.gnu.org/software/gnubg/")
1636 (synopsis "Backgammon game")
1637 (description "The GNU backgammon application (also known as \"gnubg\") can
1638 be used for playing, analyzing and teaching the game. It has an advanced
1639 evaluation engine based on artificial neural networks suitable for both
1640 beginners and advanced players. In addition to a command-line interface, it
1641 also features an attractive, 3D representation of the playing board.")
1642 (license license:gpl3+)))
1643
1644 (define-public gnubik
1645 (package
1646 (name "gnubik")
1647 (version "2.4.3")
1648 (source
1649 (origin
1650 (method url-fetch)
1651 (uri (string-append "mirror://gnu/gnubik/gnubik-"
1652 version ".tar.gz"))
1653 (sha256
1654 (base32
1655 "1vlf924mq8hg93bsjj0rzvs0crc6psmlxyc6zn0fr7msnmpx6gib"))))
1656 (build-system gnu-build-system)
1657 (arguments
1658 '(#:phases (modify-phases %standard-phases
1659 (add-after 'unpack 'skip-gtk-update-icon-cache
1660 (lambda _
1661 ;; Do not attempt to run 'gtk-update-icon-cache', which is
1662 ;; unnecessary and causes a needless dependency on glib.
1663 (substitute* "Makefile.in"
1664 (("gtk-update-icon-cache")
1665 "true"))
1666 #t)))))
1667 (inputs `(("gtk+" ,gtk+-2)
1668 ("mesa" ,mesa)
1669 ("glu" ,glu)
1670 ("libx11" ,libx11)
1671 ("guile" ,guile-2.0)
1672 ("gtkglext" ,gtkglext)))
1673 (native-inputs `(("gettext" ,gettext-minimal)
1674 ("pkg-config" ,pkg-config)))
1675 (home-page "https://www.gnu.org/software/gnubik/")
1676 (synopsis "3d Rubik's cube game")
1677 (description
1678 "GNUbik is a puzzle game in which you must manipulate a cube to make
1679 each of its faces have a uniform color. The game is customizable, allowing
1680 you to set the size of the cube (the default is 3x3) or to change the colors.
1681 You may even apply photos to the faces instead of colors. The game is
1682 scriptable with Guile.")
1683 (license license:gpl3+)))
1684
1685 (define-public gnushogi
1686 (package
1687 (name "gnushogi")
1688 (version "1.4.2")
1689 (source
1690 (origin
1691 (method url-fetch)
1692 (uri (string-append "mirror://gnu/gnushogi/gnushogi-"
1693 version ".tar.gz"))
1694 (sha256
1695 (base32
1696 "0a9bsl2nbnb138lq0h14jfc5xvz7hpb2bcsj4mjn6g1hcsl4ik0y"))))
1697 (arguments `(#:tests? #f)) ;; No check target.
1698 (build-system gnu-build-system)
1699 (home-page "https://www.gnu.org/software/gnushogi/")
1700 (synopsis "The game of Shogi (Japanese chess)")
1701 (description "GNU Shogi is a program that plays the game Shogi (Japanese
1702 Chess). It is similar to standard chess but this variant is far more complicated.")
1703 (license license:gpl3+)))
1704
1705 (define-public ltris
1706 (package
1707 (name "ltris")
1708 (version "1.2.1")
1709 (source
1710 (origin
1711 (method url-fetch)
1712 (uri (string-append "mirror://sourceforge/lgames/ltris/"
1713 "ltris-" version ".tar.gz"))
1714 (sha256
1715 (base32 "0959vvxh5xnxzpdv7i67lpd2b6ghx69z65ldnclj1z6llyfzfs7q"))))
1716 (build-system gnu-build-system)
1717 (arguments
1718 '(;; The code in LTris uses traditional GNU semantics for inline functions
1719 #:configure-flags '("CFLAGS=-fgnu89-inline")
1720 #:phases
1721 (modify-phases %standard-phases
1722 (add-after 'set-paths 'set-sdl-paths
1723 (lambda* (#:key inputs #:allow-other-keys)
1724 (setenv "CPATH"
1725 (string-append (assoc-ref inputs "sdl-union")
1726 "/include/SDL:"
1727 (or (getenv "CPATH") "")))
1728 #t)))))
1729 (inputs
1730 `(("sdl-union" ,(sdl-union (list sdl sdl-mixer)))))
1731 (home-page "http://lgames.sourceforge.net/LTris/")
1732 (synopsis "Tetris clone based on the SDL library")
1733 (description
1734 "LTris is a tetris clone: differently shaped blocks are falling down the
1735 rectangular playing field and can be moved sideways or rotated by 90 degree
1736 units with the aim of building lines without gaps which then disappear (causing
1737 any block above the deleted line to fall down). LTris has three game modes: In
1738 Classic you play until the stack of blocks reaches the top of the playing field
1739 and no new blocks can enter. In Figures the playing field is reset to a new
1740 figure each level and later on tiles and lines suddenly appear. In Multiplayer
1741 up to three players (either human or CPU) compete with each other sending
1742 removed lines to all opponents. There is also a Demo mode in which you can
1743 watch your CPU playing while enjoying a cup of tea!")
1744 (license license:gpl2+)))
1745
1746 (define-public nethack
1747 (package
1748 (name "nethack")
1749 (version "3.6.6")
1750 (source
1751 (origin
1752 (method url-fetch)
1753 (uri
1754 (string-append "https://www.nethack.org/download/" version "/nethack-"
1755 (string-join (string-split version #\.) "") "-src.tgz"))
1756 (sha256
1757 (base32 "1liyckjp34j354qnxc1zn9730lh1p2dabrg1hap24z6xnqx0rpng"))))
1758 (native-inputs
1759 `(("bison" ,bison)
1760 ("flex" ,flex)))
1761 (inputs
1762 `(("ncurses" ,ncurses)
1763 ("less" ,less)))
1764 (build-system gnu-build-system)
1765 (arguments
1766 '(#:make-flags
1767 `(,(string-append "PREFIX=" (assoc-ref %outputs "out")))
1768 #:phases
1769 (modify-phases %standard-phases
1770 (add-before 'configure 'patch-paths
1771 (lambda _
1772 (substitute* "sys/unix/nethack.sh"
1773 (("^ *cd .*$") ""))
1774 (substitute* "sys/unix/Makefile.utl"
1775 (("^YACC *=.*$") "YACC = bison -y\n")
1776 (("^LEX *=.*$") "LEX = flex\n")
1777 (("^# CC = gcc") "CC = gcc"))
1778 (substitute* "sys/unix/hints/linux"
1779 (("/bin/gzip") (string-append
1780 (assoc-ref %build-inputs "gzip")
1781 "/bin/gzip"))
1782 (("^WINTTYLIB=.*") "WINTTYLIB=-lncurses"))
1783 (substitute* "include/config.h"
1784 (("^.*define CHDIR.*$") "")
1785 (("^/\\* *#*define *REPRODUCIBLE_BUILD *\\*/")
1786 ;; Honor SOURCE_DATE_EPOCH.
1787 "#define REPRODUCIBLE_BUILD"))
1788
1789 ;; Note: 'makedefs' rejects and ignores dates that are too old
1790 ;; or too new, so we must choose something reasonable here.
1791 (setenv "SOURCE_DATE_EPOCH" "1531865062")
1792
1793 (substitute* "sys/unix/Makefile.src"
1794 (("^# CC = gcc") "CC = gcc"))
1795 #t))
1796 (replace 'configure
1797 (lambda _
1798 (let ((bash (string-append
1799 (assoc-ref %build-inputs "bash")
1800 "/bin/bash")))
1801 (with-directory-excursion "sys/unix"
1802 (substitute* "setup.sh" (("/bin/sh") bash))
1803 (invoke bash "setup.sh" "hints/linux"))
1804 #t)))
1805 (add-after 'install 'fixup-paths
1806 (lambda _
1807 (let* ((output (assoc-ref %outputs "out"))
1808 (nethack-script (string-append output "/bin/nethack")))
1809 (mkdir-p (string-append output "/games/lib/nethackuserdir"))
1810 (for-each
1811 (lambda (file)
1812 (rename-file
1813 (string-append output "/games/lib/nethackdir/" file)
1814 (string-append output "/games/lib/nethackuserdir/"
1815 file)))
1816 '("xlogfile" "logfile" "perm" "record" "save"))
1817 (mkdir-p (string-append output "/bin"))
1818 (call-with-output-file nethack-script
1819 (lambda (port)
1820 (format port "#!~a/bin/sh
1821 PATH=~a:$PATH
1822 if [ ! -d ~~/.config/nethack ]; then
1823 mkdir -p ~~/.config/nethack
1824 cp -r ~a/games/lib/nethackuserdir/* ~~/.config/nethack
1825 chmod -R +w ~~/.config/nethack
1826 fi
1827
1828 RUNDIR=$(mktemp -d)
1829
1830 cleanup() {
1831 rm -rf $RUNDIR
1832 }
1833 trap cleanup EXIT
1834
1835 cd $RUNDIR
1836 for i in ~~/.config/nethack/*; do
1837 ln -s $i $(basename $i)
1838 done
1839 for i in ~a/games/lib/nethackdir/*; do
1840 ln -s $i $(basename $i)
1841 done
1842 ~a/games/nethack"
1843 (assoc-ref %build-inputs "bash")
1844 (list->search-path-as-string
1845 (list
1846 (string-append
1847 (assoc-ref %build-inputs "coreutils") "/bin")
1848 (string-append
1849 (assoc-ref %build-inputs "less") "/bin"))
1850 ":")
1851 output
1852 output
1853 output)))
1854 (chmod nethack-script #o555)
1855 #t)))
1856 (delete 'check))))
1857 (home-page "https://nethack.org")
1858 (synopsis "Classic dungeon crawl game")
1859 (description "NetHack is a single player dungeon exploration game that runs
1860 on a wide variety of computer systems, with a variety of graphical and text
1861 interfaces all using the same game engine. Unlike many other Dungeons &
1862 Dragons-inspired games, the emphasis in NetHack is on discovering the detail of
1863 the dungeon and not simply killing everything in sight - in fact, killing
1864 everything in sight is a good way to die quickly. Each game presents a
1865 different landscape - the random number generator provides an essentially
1866 unlimited number of variations of the dungeon and its denizens to be discovered
1867 by the player in one of a number of characters: you can pick your race, your
1868 role, and your gender.")
1869 (license
1870 (license:fsdg-compatible
1871 "https://nethack.org/common/license.html"))))
1872
1873 (define-public pipewalker
1874 (package
1875 (name "pipewalker")
1876 (version "0.9.4")
1877 (source
1878 (origin
1879 (method url-fetch)
1880 (uri (string-append "mirror://sourceforge/pipewalker/pipewalker/"
1881 version "/pipewalker-" version ".tar.gz"))
1882 (sha256
1883 (base32 "1x46wgk0s55562pd96cxagxkn6wpgglq779f9b64ff1k3xzp3myn"))))
1884 (build-system gnu-build-system)
1885 (arguments
1886 `(#:configure-flags
1887 (list (string-append "--docdir=" (assoc-ref %outputs "out")
1888 "/share/doc/" ,name "-" ,version))
1889 #:phases
1890 (modify-phases %standard-phases
1891 (add-after 'configure 'patch-docdir
1892 ;; Makefile.in ignores configure's ‘--docdir=...’ option. Fix that.
1893 (lambda _
1894 (substitute* "Makefile"
1895 (("(pkgdocdatadir = ).*" _ assignment)
1896 (string-append assignment "$(docdir)\n")))
1897 #t)))))
1898 (inputs
1899 `(("libpng" ,libpng)
1900 ("mesa" ,mesa)
1901 ("sdl" ,sdl)))
1902 (home-page "http://pipewalker.sourceforge.net/")
1903 (synopsis "Logical tile puzzle")
1904 (description
1905 "PipeWalker is a simple puzzle game with many diffent themes: connect all
1906 computers to one network server, bring water from a source to the taps, etc.
1907 The underlying mechanism is always the same: you must turn each tile in the
1908 grid in the right direction to combine all components into a single circuit.
1909 Every puzzle has a complete solution, although there may be more than one.")
1910 (license license:gpl3+)))
1911
1912 (define-public prboom-plus
1913 (package
1914 (name "prboom-plus")
1915 (version "2.5.1.4")
1916 (source (origin
1917 (method url-fetch)
1918 (uri (string-append "mirror://sourceforge/prboom-plus/prboom-plus/"
1919 version "/prboom-plus-" version ".tar.gz"))
1920 (sha256
1921 (base32 "151v6nign86m1a2vqz27krsccpc9m4d1jax4y43v2fa82wfj9qp0"))
1922 (modules '((guix build utils)))
1923 (snippet
1924 '(begin
1925 (substitute* "src/version.c"
1926 (("__DATE__") "")
1927 (("__TIME__") ""))
1928 #t))))
1929 (build-system gnu-build-system)
1930 (arguments
1931 '(#:configure-flags '("--disable-cpu-opt")
1932 #:make-flags `(,(string-append "gamesdir="
1933 (assoc-ref %outputs "out") "/bin"))
1934 #:phases
1935 (modify-phases %standard-phases
1936 (add-after 'set-paths 'set-sdl'paths
1937 (lambda* (#:key inputs #:allow-other-keys)
1938 (setenv "CPATH"
1939 (string-append (assoc-ref inputs "sdl-union")
1940 "/include/SDL:"
1941 (or (getenv "CPATH") "")))
1942 #t)))))
1943 (inputs
1944 `(("fluidsynth" ,fluidsynth)
1945 ("glu" ,glu)
1946 ("libmad" ,libmad)
1947 ("libpng" ,libpng)
1948 ("libvorbis" ,libvorbis)
1949 ("pcre" ,pcre)
1950 ("portmidi" ,portmidi)
1951 ("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer sdl-net)))))
1952 (home-page "http://prboom-plus.sourceforge.net/")
1953 (synopsis "Version of the classic 3D shoot'em'up game Doom")
1954 (description
1955 "PrBoom+ is a Doom source port developed from the original PrBoom project.")
1956 (license license:gpl2+)))
1957
1958 (define-public retux
1959 (let ((release "1.4.1")
1960 (revision 1))
1961 (package
1962 (name "retux")
1963 (version (if (zero? revision)
1964 release
1965 (string-append release "-"
1966 (number->string revision))))
1967 (source (origin
1968 (method url-fetch)
1969 (uri (string-append "https://github.com/retux-game/retux/"
1970 "releases/download/v"
1971 version "/retux-"
1972 release "-src.tar.gz"))
1973 (sha256
1974 (base32
1975 "1vrldg2qh2gqfswj7vkpc589ldrrjd903j6cnfdik9zh0jhlq4h2"))))
1976 (build-system python-build-system)
1977 (arguments
1978 `(#:tests? #f ; no check target
1979 #:phases
1980 (modify-phases %standard-phases
1981 ;; no setup.py script
1982 (delete 'build)
1983 (replace 'install
1984 (lambda* (#:key outputs #:allow-other-keys)
1985 (let* ((out (assoc-ref outputs "out"))
1986 (bin (string-append out "/bin"))
1987 (data (string-append out "/share/retux")))
1988 (mkdir-p bin)
1989
1990 (substitute* "retux.py"
1991 ;; Use the correct data directory.
1992 (("os\\.path\\.join\\(os\\.path\\.dirname\\(__file__\\), \"data\"\\),")
1993 (string-append "\"" data "\",")))
1994
1995 (copy-file "retux.py" (string-append bin "/retux"))
1996 (copy-recursively "data" data)
1997 #t))))))
1998 (inputs
1999 `(("python-sge-pygame" ,python-sge-pygame)
2000 ("python-six" ,python-six)
2001 ("python-xsge" ,python-xsge)))
2002 (home-page "https://retux-game.github.io/")
2003 (synopsis "Action platformer game")
2004 (description
2005 "ReTux is an action platformer loosely inspired by the Mario games,
2006 utilizing the art assets from the @code{SuperTux} project.")
2007 ;; GPL version 3 or later is the license for the code and some art.
2008 ;; The rest of the licenses are for the art exclusively, as listed in
2009 ;; data/LICENSES.
2010 (license (list license:cc0
2011 license:cc-by3.0
2012 license:cc-by-sa3.0
2013 license:cc-by-sa4.0
2014 license:gpl2+
2015 license:gpl3+)))))
2016
2017 (define-public roguebox-adventures
2018 (package
2019 (name "roguebox-adventures")
2020 (version "3.0.1")
2021 (source
2022 (origin
2023 (method url-fetch)
2024 (uri (string-append
2025 "http://download.tuxfamily.org/rba/RogueBoxAdventures_v"
2026 (string-join (string-split version #\.) "_") "_Source.zip"))
2027 (file-name (string-append name "-" version ".zip"))
2028 (sha256
2029 (base32
2030 "05zd03s5w9kcpklfgcggbaa6rwf59nm0q9vcj6gh9v2lh402k067"))))
2031 (build-system python-build-system)
2032 (arguments
2033 `(#:tests? #f ; no check target
2034 #:phases
2035 (modify-phases %standard-phases
2036 (replace 'unpack
2037 (lambda* (#:key source #:allow-other-keys)
2038 (and (invoke "unzip" source)
2039 ;; The actual source is buried a few directories deep.
2040 (chdir (string-append "RogueBoxAdventures_v"
2041 (string-join
2042 (string-split ,version #\.) "_")
2043 "_Source")))))
2044 ;; no setup.py script
2045 (replace 'build
2046 (lambda* (#:key outputs #:allow-other-keys)
2047 (let* ((out (assoc-ref outputs "out"))
2048 (data (string-append
2049 out "/share/games/roguebox-adventures")))
2050 ;; Use the correct data directory.
2051 (substitute* '("main.py" "LIB/getch.py" "LIB/getch_gcwz.py")
2052 (("basic_path + os\\.sep + 'DATA'")
2053 (string-append "'" data "'"))
2054 (("^basic_path.*$")
2055 (string-append "basic_path ='" data "'\n")))
2056 (substitute* "LIB/dialog.py"
2057 (("d_path = os\\.path\\.dirname\\(.*\\)\\)")
2058 (string-append "d_path = '" data "'")))
2059 (substitute* "LIB/gra_files.py"
2060 (("basic_path = b_path\\.replace\\('/LIB',''\\)")
2061 (string-append "basic_path ='" data "'\n")))
2062
2063 ;; The game must save in the user's home directory because
2064 ;; the store is read-only.
2065 (substitute* "main.py"
2066 (("home_save = False") "home_save = True")
2067 (("'icon_small.png'")
2068 (string-append "'" data "/icon_small.png'"))))
2069 #t))
2070 (replace 'install
2071 (lambda* (#:key outputs #:allow-other-keys)
2072 (let* ((out (assoc-ref outputs "out"))
2073 (bin (string-append out "/bin"))
2074 (roguebox-adventures
2075 (string-append bin "/roguebox-adventures"))
2076 (data (string-append
2077 out "/share/games/roguebox-adventures"))
2078 (lib (string-append data "/LIB"))
2079 (doc (string-append
2080 out "/share/doc/roguebox-adventures")))
2081 (mkdir-p bin)
2082 (mkdir-p doc)
2083
2084 (for-each (lambda (file)
2085 (copy-recursively file
2086 (string-append data "/" file)))
2087 '("AUDIO" "FONT" "GRAPHIC" "LIB" "LICENSE"
2088 "icon_big.png" "icon_small.png"))
2089 (for-each (lambda (file)
2090 (chmod file #o555)
2091 (install-file file lib))
2092 '("main.py" "run.py"))
2093
2094 (copy-recursively "DOC" doc)
2095
2096 (call-with-output-file
2097 roguebox-adventures
2098 (lambda (p)
2099 (format p "\
2100 #!~a
2101 export PYTHONPATH=~a/LIB:~a
2102 exec -a \"~a\" ~a \"$@\"\n"
2103 (which "bash") data (getenv "PYTHONPATH")
2104 (which "python3")
2105 (string-append lib "/main.py"))))
2106 (chmod roguebox-adventures #o555))
2107 #t)))))
2108 (native-inputs
2109 `(("unzip" ,unzip)))
2110 (inputs
2111 `(("python-pygame" ,python-pygame)
2112 ("python-tmx" ,python-tmx)))
2113 (home-page "https://rogueboxadventures.tuxfamily.org")
2114 (synopsis "A classical roguelike/sandbox game")
2115 (description
2116 "RogueBox Adventures is a graphical roguelike with strong influences
2117 from sandbox games like Minecraft or Terraria. The main idea of RogueBox
2118 Adventures is to offer the player a kind of roguelike toy-world. This world
2119 can be explored and changed freely.")
2120 ;; The GPL3+ is for code, the rest are for art.
2121 (license (list license:cc0
2122 license:cc-by3.0
2123 license:gpl3+
2124 license:silofl1.1))))
2125
2126 (define-public seahorse-adventures
2127 (package
2128 (name "seahorse-adventures")
2129 (version "1.2")
2130 (source
2131 (origin
2132 (method git-fetch)
2133 (uri (git-reference
2134 (url "https://github.com/dulsi/seahorse-adventures")
2135 (commit (string-append "release-" version))))
2136 (file-name (git-file-name name version))
2137 (sha256
2138 (base32 "1rnvk06npaqcpjz5z6xcmssz61i32s422lydp49vrnf3j2g4yimd"))
2139 (modules '((guix build utils)
2140 (ice-9 ftw)
2141 (srfi srfi-1)))
2142 ;; Remove non-free (non-commercial) font.
2143 (snippet
2144 `(begin
2145 (for-each delete-file (find-files "data/fonts" "."))
2146 #t))))
2147 (build-system python-build-system)
2148 (arguments
2149 `(#:tests? #f ;no test
2150 #:phases
2151 (modify-phases %standard-phases
2152 (delete 'build) ;pure Python
2153 (replace 'install ;no install script
2154 (lambda* (#:key outputs #:allow-other-keys)
2155 (let* ((out (assoc-ref outputs "out"))
2156 (bin (string-append out "/bin"))
2157 (share (string-append out "/share"))
2158 (applications (string-append share "/applications"))
2159 (data (string-append share "/seahorse-adventures")))
2160 ;; Install data.
2161 (for-each (lambda (f)
2162 (chmod f #o555)
2163 (install-file f data))
2164 '("leveledit.py" "run_game.py" "tileedit.py"))
2165 (for-each (lambda (dir)
2166 (let ((target (string-append data "/" dir)))
2167 (mkdir-p target)
2168 (copy-recursively dir target)))
2169 '("data" "lib"))
2170 ;; Create executable.
2171 (mkdir-p bin)
2172 (let ((executable (string-append bin "/seahorse-adventures")))
2173 (call-with-output-file executable
2174 (lambda (p)
2175 (format p
2176 "#!~a~@
2177 export PYTHONPATH=~a:~a~@
2178 exec -a \"~a\" ~a \"$@\"~%"
2179 (which "bash") data (getenv "PYTHONPATH")
2180 (which "python3")
2181 (string-append data "/run_game.py"))))
2182 (chmod executable #o555))
2183 ;; Add desktop file.
2184 (mkdir-p applications)
2185 (make-desktop-entry-file
2186 (string-append applications "/seahorse-adventures.desktop")
2187 #:name "Seahorse Adventures"
2188 #:comment
2189 '((#f "Help Barbie the seahorse float on bubbles to the moon"))
2190 #:exec ,name
2191 #:icon ,name
2192 #:categories '("Game" "ActionGame")
2193 #:keywords '("game" "retro" "platform"))
2194 ;; Add icons.
2195 (for-each
2196 (lambda (size)
2197 (let ((dir (string-append share "/icons/hicolor/"
2198 size "x" size "/apps")))
2199 (mkdir-p dir)
2200 (copy-file
2201 (string-append "icon" size ".png")
2202 (string-append dir "/searhorse-adventures.png"))))
2203 '("32" "64" "128")))
2204 #t))
2205 (add-after 'install 'unbundle-fonts
2206 ;; Unbundle Bitstream Vera font and replace deleted one.
2207 (lambda* (#:key outputs inputs #:allow-other-keys)
2208 (let* ((out (assoc-ref outputs "out"))
2209 (data (string-append out "/share/seahorse-adventures"))
2210 (vera (string-append (assoc-ref inputs "font-bitstream-vera")
2211 "/share/fonts/truetype/Vera.ttf")))
2212 (let ((themes-dir (string-append data "/data/themes/")))
2213 (for-each
2214 (lambda (theme)
2215 (let ((target (string-append themes-dir theme "/Vera.ttf")))
2216 (delete-file target)
2217 (symlink vera target)))
2218 '("default" "gray")))
2219 (symlink vera (string-append data "/data/fonts/04B_20__.TTF"))
2220 (substitute* (string-append data "/lib/main.py")
2221 (("f_scale = 0.35") "f_scale = 0.47")))
2222 #t)))))
2223 (inputs
2224 `(("font-bitstream-vera" ,font-bitstream-vera)
2225 ("python-pygame" ,python-pygame)))
2226 (home-page "http://www.imitationpickles.org/barbie/")
2227 (synopsis "Help Barbie the seahorse float on bubbles to the moon")
2228 (description
2229 "Barbie Seahorse Adventures is a retro style platform arcade game.
2230 You are Barbie the seahorse who travels through the jungle, up to the
2231 volcano until you float on bubbles to the moon. On the way to your
2232 final destination you will encounter various enemies, servants of the
2233 evil overlord who has stolen the galaxy crystal. Avoid getting hit
2234 and defeat them with your bubbles!")
2235 ;; GPL2+ is for code, CC0 is for art.
2236 (license (list license:gpl2+ license:cc0))))
2237
2238 (define-public superstarfighter
2239 (package
2240 (name "superstarfighter")
2241 (version "0.6.4")
2242 (source
2243 (origin
2244 (method git-fetch)
2245 (uri (git-reference
2246 (url "https://github.com/notapixelstudio/superstarfighter")
2247 (commit (string-append "v" version))))
2248 (file-name (git-file-name name version))
2249 (sha256
2250 (base32 "1fly63yf5ls1xwm15if4lxwy67wi84k4gvjllljpykrl18vw2y0y"))))
2251 (build-system gnu-build-system)
2252 (arguments
2253 `(#:tests? #f ;there are no tests
2254 #:phases
2255 (modify-phases %standard-phases
2256 (replace 'configure
2257 (lambda _
2258 (chdir "godot")
2259 (setenv "HOME" (getcwd))
2260 (with-output-to-file "export_presets.cfg"
2261 (lambda ()
2262 (display
2263 "[preset.0]
2264 name=\"Guix\"
2265 platform=\"Linux/X11\"
2266 runnable=true
2267 [preset.0.options]")))
2268 #t))
2269 (replace 'build
2270 (lambda _
2271 (let ((godot (assoc-ref %build-inputs "godot-headless")))
2272 (invoke (string-append godot "/bin/godot_server")
2273 "--export-pack" "Guix"
2274 "superstarfighter.pck" "project.godot"))
2275 #t))
2276 (replace 'install
2277 (lambda* (#:key inputs outputs #:allow-other-keys)
2278 (let* ((out (assoc-ref outputs "out"))
2279 (bin (string-append out "/bin"))
2280 (share (string-append out "/share"))
2281 (data (string-append share "/superstarfighter"))
2282 (icons (string-append share "/icons/hicolor/256x256/apps")))
2283 (install-file "superstarfighter.pck" data)
2284 (mkdir-p bin)
2285 (call-with-output-file (string-append bin "/superstarfighter")
2286 (lambda (port)
2287 (format port
2288 "#!/bin/sh~@
2289 exec ~a/bin/godot --main-pack ~a/superstarfighter.pck~%"
2290 (assoc-ref inputs "godot")
2291 data)
2292 (chmod port #o755)))
2293 (mkdir-p icons)
2294 (copy-file "icon.png" (string-append icons "/" ,name ".png"))
2295 (make-desktop-entry-file
2296 (string-append share "/applications/" ,name ".desktop")
2297 #:name "SuperStarfighter"
2298 #:comment "Fast-paced arcade combat game"
2299 #:exec ,name
2300 #:icon ,name
2301 #:categories '("Game" "ArcadeGame")))
2302 #t)))))
2303 (native-inputs
2304 `(("godot-headless" ,godot "headless")))
2305 (inputs
2306 `(("godot" ,godot)))
2307 (home-page "https://notapixel.itch.io/superstarfighter")
2308 (synopsis "Fast-paced local multiplayer arcade game")
2309 (description "In SuperStarfighter, up to four local players compete in a
2310 2D arena with fast-moving ships and missiles. Different game types are
2311 available, as well as a single-player mode with AI-controlled ships.")
2312 (license (list license:expat ; game
2313 license:silofl1.1)))) ; fonts
2314
2315 (define %ufoai-commit "a542a87a891f96b1ab2c44d35b2f6f16859a5019")
2316 (define %ufoai-revision "0")
2317 (define %ufoai-version (git-version "2.6.0_dev" %ufoai-revision %ufoai-commit))
2318 (define ufoai-source
2319 (origin
2320 (method git-fetch)
2321 (uri (git-reference
2322 (url "git://git.code.sf.net/p/ufoai/code") ;HTTPS fails mid-clone
2323 (commit %ufoai-commit)))
2324 (file-name (string-append "ufoai-" %ufoai-version "-checkout"))
2325 (sha256
2326 (base32
2327 "024s7b9rcg7iw8i2p72gwnvabk23ljlq0nldws0y4b6hpwzyn1wz"))
2328 (modules '((guix build utils)
2329 (srfi srfi-1)
2330 (ice-9 ftw)))
2331 (snippet
2332 '(begin
2333 ;; Delete ~32MiB of bundled dependencies.
2334 (with-directory-excursion "src/libs"
2335 (for-each delete-file-recursively
2336 (lset-difference equal? (scandir ".")
2337 '("." ".." "gtest" "mumble"))))
2338
2339 ;; Use relative path to Lua headers.
2340 (substitute* "src/common/scripts_lua.h"
2341 (("\\.\\./libs/lua/") ""))
2342
2343 ;; Adjust Makefile targets to not depend on 'ufo2map', since we build
2344 ;; it as a separate package. This way we don't need to make the same
2345 ;; adjustments for 'ufoai-data' and 'ufoai' below.
2346 (substitute* "build/maps.mk"
2347 (("\\./ufo2map") "ufo2map")
2348 (("maps: ufo2map") "maps:"))
2349 (substitute* "build/modules/testall.mk"
2350 (("testall: ufo2map") "testall:"))
2351
2352 ;; If no cURL headers are found, the build system will try to include
2353 ;; the bundled version, even when not required. Prevent that.
2354 (substitute* "build/default.mk"
2355 (("^include src/libs/curl/lib/Makefile\\.inc")
2356 ""))
2357
2358 ;; While here, improve reproducibility by adding the '-X' flag to the
2359 ;; zip command used to create the map files, in order to prevent time
2360 ;; stamps from making it into the generated archives.
2361 (substitute* "build/data.mk"
2362 (("\\$\\(call ZIP\\)")
2363 "$(call ZIP) -X"))
2364 #t))))
2365
2366 (define-public ufo2map
2367 (package
2368 (name "ufo2map")
2369 (version %ufoai-version)
2370 (home-page "https://ufoai.org/")
2371 (source ufoai-source)
2372 (build-system gnu-build-system)
2373 (arguments
2374 '(#:configure-flags '("CC=gcc" "CXX=g++"
2375 "--enable-release"
2376 "--enable-ufo2map"
2377 "--disable-uforadiant"
2378 "--disable-cgame-campaign"
2379 "--disable-cgame-multiplayer"
2380 "--disable-cgame-skirmish"
2381 "--disable-game"
2382 "--disable-memory"
2383 "--disable-testall"
2384 "--disable-ufoded"
2385 "--disable-ufo"
2386 "--disable-ufomodel"
2387 "--disable-ufoslicer")
2388 #:tests? #f ;no tests
2389 #:phases (modify-phases %standard-phases
2390 (replace 'configure
2391 (lambda* (#:key (configure-flags '()) #:allow-other-keys)
2392 ;; The home-made configure script does not understand
2393 ;; some of the default flags of gnu-build-system.
2394 (apply invoke "./configure" configure-flags)))
2395 (replace 'install
2396 (lambda* (#:key outputs #:allow-other-keys)
2397 (let ((out (assoc-ref outputs "out")))
2398 (install-file "ufo2map" (string-append out "/bin"))
2399 (install-file "debian/ufo2map.6"
2400 (string-append out "/share/man/man6"))
2401 #t))))))
2402 (native-inputs
2403 `(("pkg-config" ,pkg-config)))
2404 (inputs
2405 `(("libjpeg" ,libjpeg-turbo)
2406 ("libpng" ,libpng)
2407 ("lua" ,lua-5.1)
2408 ("sdl-union" ,(sdl-union (list sdl2 sdl2-mixer sdl2-ttf)))))
2409 (synopsis "UFO: AI map generator")
2410 (description
2411 "This package provides @command{ufo2map}, a program used to generate
2412 maps for the UFO: Alien Invasion strategy game.")
2413 (license license:gpl2+)))
2414
2415 (define ufoai-data
2416 (package
2417 (name "ufoai-data")
2418 (version %ufoai-version)
2419 (home-page "https://ufoai.org/")
2420 (source ufoai-source)
2421 (build-system gnu-build-system)
2422 (arguments
2423 '(#:tests? #f
2424 #:configure-flags '("CC=gcc" "CXX=g++")
2425 #:phases (modify-phases %standard-phases
2426 (replace 'configure
2427 (lambda* (#:key outputs (configure-flags '()) #:allow-other-keys)
2428 (apply invoke "./configure" configure-flags)))
2429 (replace 'build
2430 (lambda* (#:key (parallel-build? #t) #:allow-other-keys)
2431 (invoke "make"
2432 "-j" (if parallel-build?
2433 (number->string (parallel-job-count))
2434 "1")
2435 "maps")))
2436 (add-after 'build 'pack
2437 (lambda _
2438 (invoke "make" "pk3")))
2439 (replace 'install
2440 (lambda* (#:key outputs #:allow-other-keys)
2441 (let ((out (assoc-ref outputs "out")))
2442 (for-each (lambda (file)
2443 (install-file file out))
2444 (find-files "base" "\\.pk3$"))
2445 #t))))))
2446 (native-inputs
2447 `(("python" ,python-2)
2448 ("ufo2map" ,ufo2map)
2449 ("which" ,which)
2450 ("zip" ,zip)))
2451 (synopsis "UFO: AI data files")
2452 (description
2453 "This package contains maps and other assets for UFO: Alien Invasion.")
2454 ;; Most assets are available under either GPL2 or GPL2+. Some use other
2455 ;; licenses, see LICENSES for details.
2456 (license (list license:gpl2+ license:gpl2 license:cc-by3.0
2457 license:cc-by-sa3.0 license:public-domain))))
2458
2459 (define-public ufoai
2460 (package
2461 (name "ufoai")
2462 (version %ufoai-version)
2463 (home-page "https://ufoai.org/")
2464 (source ufoai-source)
2465 (build-system gnu-build-system)
2466 (arguments
2467 `(#:configure-flags
2468 (list (string-append "--prefix=" (assoc-ref %outputs "out"))
2469 (string-append "--datadir=" (assoc-ref %outputs "out")
2470 "/share/games/ufo")
2471 "CC=gcc" "CXX=g++"
2472 "--enable-release"
2473 "--enable-game"
2474 "--disable-ufo2map"
2475 "--disable-dependency-tracking"
2476
2477 ;; Disable hard links to prevent huge NARs.
2478 "--disable-hardlinkedgame"
2479 "--disable-hardlinkedcgame")
2480 #:phases (modify-phases %standard-phases
2481 (add-after 'unpack 'symlink-data-files
2482 (lambda* (#:key inputs #:allow-other-keys)
2483 (let ((data (assoc-ref inputs "ufoai-data")))
2484 ;; Symlink the data files to where the build system
2485 ;; expects to find them. Ultimately these files are
2486 ;; copied to $out/share/games/ufoai/base, losing the
2487 ;; symlinks; we could fix that after install, but it
2488 ;; does not make a big difference in practice due to
2489 ;; deduplication.
2490 (with-directory-excursion "base"
2491 (for-each (lambda (file)
2492 (symlink file (basename file)))
2493 (find-files data "\\.pk3$")))
2494 #t)))
2495 (add-before 'configure 'create-language-files
2496 (lambda _
2497 (invoke "make" "lang")))
2498 (replace 'configure
2499 (lambda* (#:key outputs (configure-flags '()) #:allow-other-keys)
2500 (apply invoke "./configure" configure-flags)))
2501 (replace 'check
2502 (lambda* (#:key tests? #:allow-other-keys)
2503 (if tests?
2504 (invoke "./testall")
2505 (format #t "test suite not run~%"))
2506 #t))
2507 (add-after 'install 'install-man-pages
2508 (lambda* (#:key outputs #:allow-other-keys)
2509 (let* ((out (assoc-ref outputs "out"))
2510 (man6 (string-append out "/share/man/man6")))
2511 (install-file "debian/ufo.6" man6)
2512 (install-file "debian/ufoded.6" man6)
2513 #t))))
2514
2515 ;; TODO: Some map tests occasionally fail because of randomness issues,
2516 ;; e.g. not enough generated aliens. The test runner also fails early
2517 ;; in the build container with 'failed to shutdown server'?
2518 #:tests? #f))
2519 (native-inputs
2520 `(("gettext" ,gettext-minimal)
2521 ("pkg-config" ,pkg-config)
2522 ("python" ,python-2)
2523 ("ufo2map" ,ufo2map)
2524 ("ufoai-data" ,ufoai-data)))
2525 (inputs
2526 `(("curl" ,curl)
2527 ("libjpeg" ,libjpeg-turbo)
2528 ("libogg" ,libogg)
2529 ("libpng" ,libpng)
2530 ("libtheora" ,libtheora)
2531 ("libvorbis" ,libvorbis)
2532 ("libxml2" ,libxml2)
2533 ("lua" ,lua-5.1)
2534 ("mesa" ,mesa)
2535 ("minixml" ,minixml)
2536 ("sdl-union" ,(sdl-union (list sdl2 sdl2-mixer sdl2-ttf)))
2537 ("zlib" ,zlib)))
2538 (synopsis "Turn-based tactical strategy game")
2539 (description
2540 "UFO: Alien Invasion is a tactical strategy game set in the year 2084.
2541 You control a secret organisation charged with defending Earth from a brutal
2542 alien enemy. Build up your bases, prepare your team, and dive head-first into
2543 the fast and flowing turn-based combat.
2544
2545 Over the long term you will need to conduct research into the alien threat to
2546 figure out their mysterious goals and use their powerful weapons for your own
2547 ends. You will produce unique items and use them in combat against your
2548 enemies.
2549
2550 You can also use them against your friends with the multiplayer functionality.
2551
2552 Warning: This is a pre-release version of UFO: AI! Some things may not work
2553 properly.")
2554
2555 ;; The game code and most assets are GPL2+, but we use GPL2 only here
2556 ;; because some assets do not use the "or later" clause. Many individual
2557 ;; assets use Creative Commons or Public Domain; see the LICENSE file.
2558 (license (delete license:gpl2+ (package-license ufoai-data)))))
2559
2560 (define-public xshogi
2561 (package
2562 (name "xshogi")
2563 (version "1.4.2")
2564 (source
2565 (origin
2566 (method url-fetch)
2567 (uri (string-append "mirror://gnu/gnushogi/xshogi-"
2568 version ".tar.gz"))
2569 (sha256
2570 (base32
2571 "1dns0nhymak44by18sv48m4xb2skiwbi2i3nb9hl6w9iwd2i2brf"))))
2572 (build-system gnu-build-system)
2573 (inputs
2574 `(("libxaw" ,libxaw)
2575 ("libxt" ,libxt)))
2576 (home-page "https://www.gnu.org/software/gnushogi/")
2577 (synopsis "User interface for gnushogi")
2578 (description "A graphical user interface for the package @code{gnushogi}.")
2579 ;; Contains a copy of GPLv3 but the licence notices simply
2580 ;; state "GNU General Public Licence" without specifying a version.
2581 (license license:gpl1+)))
2582
2583 (define-public abbaye
2584 (package
2585 (name "abbaye")
2586 (version "2.0.1")
2587 (source
2588 (origin
2589 (method git-fetch)
2590 (uri (git-reference
2591 (url "https://github.com/nevat/abbayedesmorts-gpl")
2592 (commit (string-append "v" version))))
2593 (file-name (git-file-name name version))
2594 (sha256
2595 (base32 "1pwqf7r9bqb2p3xrw9i7y8pgr1401fy3mnnqpb1qkhmdl3gqi9hb"))
2596 (modules '((guix build utils)))
2597 (snippet
2598 ;; Unbundle fonts.
2599 '(begin
2600 (delete-file-recursively "fonts")
2601 #t))))
2602 (build-system gnu-build-system)
2603 (arguments
2604 '(#:make-flags '("CC=gcc")
2605 #:phases (modify-phases %standard-phases
2606 (add-after 'set-paths 'set-sdl-paths
2607 (lambda* (#:key inputs #:allow-other-keys)
2608 (setenv "CPATH"
2609 (string-append (assoc-ref inputs "sdl-union")
2610 "/include/SDL:"
2611 (or (getenv "CPATH") "")))))
2612 (add-after 'patch-source-shebangs 'patch-makefile
2613 (lambda* (#:key outputs #:allow-other-keys)
2614 ;; Replace /usr with package output directory.
2615 (substitute* "Makefile"
2616 (("/usr") (assoc-ref outputs "out")))))
2617 (add-before 'install 'make-install-dirs
2618 (lambda* (#:key outputs #:allow-other-keys)
2619 (let ((prefix (assoc-ref outputs "out")))
2620 ;; Create directories that the makefile assumes exist.
2621 (mkdir-p (string-append prefix "/bin"))
2622 (mkdir-p (string-append prefix "/share/applications"))
2623 (mkdir-p (string-append prefix "/share/pixmaps")))))
2624 ;; No configure script.
2625 (delete 'configure))
2626 #:tests? #f)) ;; No check target.
2627 (native-inputs `(("pkg-config" ,pkg-config)))
2628 (inputs `(("sdl-union" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer)))))
2629 (home-page "https://github.com/nevat/abbayedesmorts-gpl")
2630 (synopsis "GNU/Linux port of the indie game \"l'Abbaye des Morts\"")
2631 (description "L'Abbaye des Morts is a 2D platform game set in 13th century
2632 France. The Cathars, who preach about good Christian beliefs, were being
2633 expelled by the Catholic Church out of the Languedoc region in France. One of
2634 them, called Jean Raymond, found an old church in which to hide, not knowing
2635 that beneath its ruins lay buried an ancient evil.")
2636 (license license:gpl3)))
2637
2638 (define-public angband
2639 (package
2640 (name "angband")
2641 (version "4.2.1")
2642 (source
2643 (origin
2644 (method url-fetch)
2645 (uri (string-append "https://rephial.org/downloads/"
2646 (version-major+minor version)
2647 "/angband-" version ".tar.gz"))
2648 (sha256
2649 (base32 "03qdavkj2ik02mqjxmlm5bn17ba3yxb1rirp8ghnxy3bsk4kbmxc"))
2650 (modules '((guix build utils)))
2651 (snippet
2652 ;; So, some of the sounds/graphics/tilesets are under different
2653 ;; licenses... some of them even nonfree! This is a console-only
2654 ;; version of this package so we just remove them.
2655 ;; In the future, if someone tries to make a graphical variant of
2656 ;; this package, they can deal with that mess themselves. :)
2657 '(begin
2658 (for-each (lambda (subdir)
2659 (let ((lib-subdir (string-append "lib/" subdir)))
2660 (delete-file-recursively lib-subdir)))
2661 '("fonts" "icons" "sounds" "tiles"))
2662 (substitute* "lib/Makefile"
2663 ;; And don't try to invoke makefiles in the directories we removed.
2664 (("gamedata customize help screens fonts tiles sounds icons user")
2665 "gamedata customize help screens user"))
2666 #t))))
2667 (build-system gnu-build-system)
2668 (arguments
2669 `(#:tests? #f ; no check target
2670 #:configure-flags (list (string-append "--bindir=" %output "/bin"))
2671 #:phases
2672 (modify-phases %standard-phases
2673 (replace 'bootstrap
2674 (lambda _
2675 (substitute* "acinclude.m4"
2676 (("ncursesw5-config") "ncursesw6-config"))
2677 (invoke "sh" "autogen.sh"))))))
2678 (native-inputs
2679 `(("autoconf" ,autoconf)
2680 ("automake" ,automake)))
2681 (inputs `(("ncurses" ,ncurses)))
2682 (home-page "https://rephial.org/")
2683 (synopsis "Dungeon exploration roguelike")
2684 (description "Angband is a Classic dungeon exploration roguelike. Explore
2685 the depths below Angband, seeking riches, fighting monsters, and preparing to
2686 fight Morgoth, the Lord of Darkness.")
2687 (license license:gpl2)))
2688
2689 (define-public pingus
2690 (package
2691 (name "pingus")
2692 (version "0.7.6")
2693 (source
2694 (origin
2695 (method git-fetch)
2696 (uri (git-reference
2697 (url "https://gitlab.com/pingus/pingus.git")
2698 (commit (string-append "v" version))))
2699 (file-name (git-file-name name version))
2700 (sha256
2701 (base32
2702 "0wp06kcmknsnxz7bjnsndb8x062z7r23fb3yrnbfnj68qhz18y74"))
2703 (patches (search-patches "pingus-boost-headers.patch"
2704 "pingus-sdl-libs-config.patch"))
2705 (modules '((guix build utils)))
2706 (snippet
2707 '(begin
2708 (substitute* "src/pingus/screens/demo_session.cpp"
2709 (("#include <iostream>")
2710 ;; std::function moved to <functional> with C++ 11.
2711 ;; Remove this for versions newer than 0.7.6.
2712 "#include <iostream>\n#include <functional>"))
2713 #t))))
2714 (build-system gnu-build-system)
2715 (native-inputs `(("pkg-config" ,pkg-config)
2716 ("scons-python2" ,scons-python2)))
2717 (inputs `(("sdl" ,sdl)
2718 ("sdl-image" ,sdl-image)
2719 ("sdl-mixer" ,sdl-mixer)
2720 ("mesa" ,mesa)
2721 ("glu" ,glu)
2722 ("libpng" ,libpng)
2723 ("boost" ,boost)))
2724 (arguments
2725 '(#:make-flags (list (string-append "PREFIX=" %output))
2726 #:tests? #f ; no check target
2727 #:phases
2728 (modify-phases %standard-phases
2729 (delete 'configure)))) ; no configure script
2730 (home-page "https://pingus.seul.org/")
2731 (synopsis "Lemmings clone")
2732 (description
2733 "Pingus is a free Lemmings-like puzzle game in which the player takes
2734 command of a bunch of small animals and has to guide them through levels.
2735 Since the animals walk on their own, the player can only influence them by
2736 giving them commands, like build a bridge, dig a hole, or redirect all animals
2737 in the other direction. Multiple such commands are necessary to reach the
2738 level's exit. The game is presented in a 2D side view.")
2739 ;; Some source files are under bsd-3 and gpl2+ licenses.
2740 (license license:gpl3+)))
2741
2742 (define-public talkfilters
2743 (package
2744 (name "talkfilters")
2745 (version "2.3.8")
2746 (source
2747 (origin
2748 (method url-fetch)
2749 (uri (string-append "http://www.hyperrealm.com/talkfilters/"
2750 "talkfilters-" version ".tar.gz"))
2751 (sha256
2752 (base32 "19nc5vq4bnkjvhk8srqddzhcs93jyvpm9r6lzjzwc1mgf08yg0a6"))))
2753 (build-system gnu-build-system)
2754 (home-page "https://www.gnu.org/software/talkfilters/")
2755 (synopsis "Convert English text to humorous dialects")
2756 (description "The GNU Talk Filters are programs that convert English text
2757 into stereotyped or otherwise humorous dialects. The filters are provided as
2758 a C library, so they can easily be integrated into other programs.")
2759 (license license:gpl2+)))
2760
2761 (define-public taisei
2762 (package
2763 (name "taisei")
2764 (version "1.3.1")
2765 (source
2766 (origin
2767 (method url-fetch)
2768 (uri (string-append "https://github.com/taisei-project/"
2769 "taisei/releases/download/v" version
2770 "/taisei-v" version ".tar.xz"))
2771 (sha256
2772 (base32 "11f9mlqmzy1lszwcc1nsbar9q1hs4ml6pbm52hqfd4q0f4x3ln46"))))
2773 (build-system meson-build-system)
2774 (arguments
2775 `(#:build-type "release" ;comment out for bug-reporting (and cheats)
2776 #:configure-flags
2777 (list "-Dr_default=gles30"
2778 "-Dr_gles20=true"
2779 "-Dr_gles30=true"
2780 "-Dshader_transpiler=true")))
2781 (native-inputs
2782 `(("pkg-config" ,pkg-config)
2783 ("python" ,python)
2784 ("python-docutils" ,python-docutils)
2785 ("python-pygments" ,python-pygments)))
2786 (inputs
2787 `(("freetype" ,freetype)
2788 ("libpng" ,libpng)
2789 ("libwebp" ,libwebp)
2790 ("libzip" ,libzip)
2791 ("mesa" ,mesa)
2792 ("openssl" ,openssl)
2793 ("opusfile" ,opusfile)
2794 ("sdl2" ,sdl2)
2795 ("sdl2-mixer" ,sdl2-mixer)
2796 ("shaderc" ,shaderc)
2797 ("spirv-cross" ,spirv-cross)
2798 ("zlib" ,zlib)))
2799 (home-page "https://taisei-project.org/")
2800 (synopsis "Shoot'em up fangame and libre clone of Touhou Project")
2801 (description
2802 "The player controls a character (one of three: Good, Bad, and Dead),
2803 dodges the missiles (lots of it cover the screen, but the character's hitbox
2804 is very small), and shoot at the adversaries that keep appear on the screen.")
2805 (license (list ;;game
2806 license:expat
2807 ;;resources/00-taisei.pkgdir/bgm/
2808 ;;atlas/portraits/
2809 license:cc-by4.0
2810 ;;miscellaneous
2811 license:cc0
2812 license:public-domain))))
2813
2814 (define-public cmatrix
2815 (package
2816 (name "cmatrix")
2817 (version "2.0")
2818 (source
2819 (origin
2820 (method git-fetch)
2821 (uri (git-reference
2822 (url "https://github.com/abishekvashok/cmatrix")
2823 (commit (string-append "v" version))))
2824 (file-name (git-file-name name version))
2825 (sha256
2826 (base32
2827 "1h9jz4m4s5l8c3figaq46ja0km1gimrkfxm4dg7mf4s84icmasbm"))))
2828 (build-system gnu-build-system)
2829 (native-inputs
2830 `(("autoconf" ,autoconf)
2831 ("automake" ,automake)))
2832 (arguments
2833 '(#:phases
2834 (modify-phases %standard-phases
2835 (replace 'configure
2836 (lambda* (#:key outputs #:allow-other-keys)
2837 ;; This old ‘configure’ script doesn't support
2838 ;; variables passed as arguments.
2839 (let ((out (assoc-ref outputs "out")))
2840 (setenv "CONFIG_SHELL" (which "bash"))
2841 (invoke "./configure"
2842 (string-append "--prefix=" out))))))))
2843 (inputs `(("ncurses" ,ncurses)))
2844 (home-page "http://www.asty.org/cmatrix")
2845 (synopsis "Simulate the display from \"The Matrix\"")
2846 (description "CMatrix simulates the display from \"The Matrix\" and is
2847 based on the screensaver from the movie's website. It works with terminal
2848 settings up to 132x300 and can scroll lines all at the same rate or
2849 asynchronously and at a user-defined speed.")
2850 (license license:gpl2+)))
2851
2852 (define-public chess
2853 (package
2854 (name "chess")
2855 (version "6.2.7")
2856 (source
2857 (origin
2858 (method url-fetch)
2859 (uri (string-append "mirror://gnu/chess/gnuchess-" version
2860 ".tar.gz"))
2861 (sha256
2862 (base32
2863 "0ilq4bfl0lwyzf11q7n2skydjhalfn3bgxhrp5hjxs5bc5d6fdp5"))))
2864 (build-system gnu-build-system)
2865 (home-page "https://www.gnu.org/software/chess/")
2866 (synopsis "Full chess implementation")
2867 (description "GNU Chess is a chess engine. It allows you to compete
2868 against the computer in a game of chess, either through the default terminal
2869 interface or via an external visual interface such as GNU XBoard.")
2870 (properties '((upstream-name . "gnuchess")
2871 (ftp-directory . "/chess")))
2872 (license license:gpl3+)))
2873
2874 (define-public freedink-engine
2875 (package
2876 (name "freedink-engine")
2877 (version "109.6")
2878 (source (origin
2879 (method url-fetch)
2880 (uri (string-append "mirror://gnu/freedink/freedink-" version
2881 ".tar.gz"))
2882 (patches (search-patches "freedink-engine-fix-sdl-hints.patch"))
2883 (sha256
2884 (base32
2885 "00hhk1bjdrc1np2qz44sa5n1mb62qzwxbvsnws3vpms6iyn3a2sy"))))
2886 (build-system gnu-build-system)
2887 (arguments
2888 `(#:configure-flags '("--disable-embedded-resources")
2889 #:phases
2890 (modify-phases %standard-phases
2891 (add-after 'unpack 'disable-graphical-tests
2892 (lambda _
2893 ;; These tests require a graphical interface.
2894 (substitute* "src/Makefile.am"
2895 (("test_gfx_fonts TestIOGfxDisplay") ""))
2896 #t))
2897 (add-before 'bootstrap 'autoreconf
2898 (lambda _
2899 ;; automake is out of date in the source
2900 ;; autoreconf updates the automake scripts
2901 (invoke "autoreconf")
2902 ;; Build fails when autom4te.cache exists.
2903 (delete-file-recursively "autom4te.cache")
2904 #t))
2905 (add-after 'install 'delete-freedinkedit-desktop
2906 (lambda* (#:key outputs #:allow-other-keys)
2907 (let ((out (assoc-ref outputs "out")))
2908 ;; freedinkedit does not know where to find freedink data
2909 ;; freedink data is read-only, so it cannot be edited anyway.
2910 ;; TODO: fix freedink.desktop
2911 (delete-file-recursively (string-append
2912 out "/share/applications"))
2913 #t))))))
2914 (native-inputs `(("autoconf" ,autoconf)
2915 ("automake" ,automake)
2916 ("cxxtest" ,cxxtest)
2917 ("gettext" ,gettext-minimal)
2918 ("help2man" ,help2man)
2919 ("pkg-config" ,pkg-config)))
2920 (inputs `(("sdl-union" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer
2921 sdl2-ttf sdl2-gfx)))
2922 ("fontconfig" ,fontconfig)
2923 ("glm" ,glm)))
2924 (properties '((ftp-directory . "/freedink")
2925 (upstream-name . "freedink")))
2926 (home-page "https://www.gnu.org/software/freedink/")
2927 (synopsis "Twisted adventures of young pig farmer Dink Smallwood")
2928 (description
2929 "GNU FreeDink is a free and portable re-implementation of the engine
2930 for the role-playing game Dink Smallwood. It supports not only the original
2931 game data files but it also supports user-produced game mods or \"D-Mods\".
2932 To that extent, it also includes a front-end for managing all of your D-Mods.")
2933 (license license:gpl3+)))
2934
2935 (define-public freedink-data
2936 (package
2937 (name "freedink-data")
2938 (version "1.08.20190120")
2939 (source (origin
2940 (method url-fetch)
2941 (uri (string-append "mirror://gnu/freedink/freedink-data-"
2942 version ".tar.gz"))
2943 (sha256
2944 (base32
2945 "17gvryadlxk172mblbsil7hina1z5wahwaxnr6g3mdq57dvl8pvi"))))
2946 (build-system gnu-build-system)
2947 (arguments
2948 `(#:phases
2949 (modify-phases %standard-phases
2950 (delete 'configure) ; no configure script
2951 (delete 'check)) ; no tests
2952 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))))
2953 (properties '((ftp-directory . "/freedink")))
2954 (home-page "https://www.gnu.org/software/freedink/")
2955 (synopsis "Game data for GNU Freedink")
2956 (description
2957 "This package contains the game data of GNU Freedink.")
2958 (license license:gpl3+)))
2959
2960 (define-public freedink-dfarc
2961 (package
2962 (name "freedink-dfarc")
2963 (version "3.14")
2964 (source (origin
2965 (method url-fetch)
2966 (uri (string-append "mirror://gnu/freedink/dfarc-"
2967 version ".tar.gz"))
2968 (sha256
2969 (base32
2970 "1yp8n3w426xnlp10xk06vfi2y3k9xrcfyck7s7qs1v0ys7n284d5"))))
2971 (build-system gnu-build-system)
2972 (native-inputs
2973 `(("intltool" ,intltool)))
2974 (inputs
2975 `(("bzip2" ,bzip2)
2976 ("wxwidgets" ,wxwidgets)))
2977 (properties '((ftp-directory . "/freedink")
2978 (upstream-name . "dfarc")))
2979 (home-page "https://www.gnu.org/software/freedink/")
2980 (synopsis "Front-end for managing and playing Dink Modules")
2981 (description "DFArc makes it easy to play and manage the GNU FreeDink game
2982 and its numerous D-Mods.")
2983 (license license:gpl3+)))
2984
2985 (define-public freedink
2986 ;; This is a wrapper that tells the engine where to find the data.
2987 (package (inherit freedink-engine)
2988 (name "freedink")
2989 (build-system trivial-build-system)
2990 (arguments
2991 '(#:builder (begin
2992 (use-modules (guix build utils))
2993
2994 (let* ((output (assoc-ref %outputs "out"))
2995 (bin (string-append output "/bin"))
2996 (executable (string-append bin "/freedink")))
2997 (mkdir-p bin)
2998 (call-with-output-file executable
2999 (lambda (port)
3000 (format port "#!~a/bin/sh
3001 exec ~a/bin/freedink -refdir ~a/share/dink\n"
3002 (assoc-ref %build-inputs "bash")
3003 (assoc-ref %build-inputs "engine")
3004 (assoc-ref %build-inputs "data"))
3005 (chmod port #o777)))
3006 #t))
3007 #:modules ((guix build utils))))
3008 (inputs `(("engine" ,freedink-engine)
3009 ("data" ,freedink-data)
3010 ("bash" ,bash)))
3011 (native-inputs '())))
3012
3013 (define-public xboard
3014 (package
3015 (name "xboard")
3016 (version "4.9.1")
3017 (source
3018 (origin
3019 (method url-fetch)
3020 (uri (string-append "mirror://gnu/xboard/xboard-" version
3021 ".tar.gz"))
3022 (sha256
3023 (base32
3024 "1mkh36xnnacnz9r00b5f9ld9309k32jv6mcavklbdnca8bl56bib"))))
3025 (build-system gnu-build-system)
3026 (inputs
3027 `(("gtk+" ,gtk+-2)
3028 ("librsvg" ,librsvg)))
3029 (native-inputs
3030 `(("texinfo" ,texinfo)
3031 ("pkg-config" ,pkg-config)))
3032 (home-page "https://www.gnu.org/software/xboard/")
3033 (synopsis "Graphical user interface for chess programs")
3034 (description "GNU XBoard is a graphical board for all varieties of chess,
3035 including international chess, xiangqi (Chinese chess), shogi (Japanese chess)
3036 and Makruk. Several lesser-known variants are also supported. It presents a
3037 fully interactive graphical interface and it can load and save games in the
3038 Portable Game Notation.")
3039 (license license:gpl3+)))
3040
3041 (define-public gtypist
3042 (package
3043 (name "gtypist")
3044 (version "2.9.5")
3045 (source (origin
3046 (method url-fetch)
3047 (uri (string-append "mirror://gnu/gtypist/gtypist-"
3048 version ".tar.xz"))
3049 (sha256
3050 (base32
3051 "0xzrkkmj0b1dw3yr0m9hml2y634cc4h61im6zwcq57s7285z8fn1"))
3052 (modules '((guix build utils)))
3053 (snippet
3054 ;; We do not provide `ncurses.h' within an `ncursesw'
3055 ;; sub-directory, so patch the source accordingly. See
3056 ;; <http://bugs.gnu.org/19018>.
3057 '(begin
3058 (for-each (lambda (file)
3059 (substitute* file
3060 (("ncursesw/ncurses.h")
3061 "ncurses.h")))
3062 (find-files "." "configure$|\\.c$"))
3063 #t))))
3064 (build-system gnu-build-system)
3065 (inputs `(("ncurses" ,ncurses)
3066 ("perl" ,perl)))
3067 (home-page "https://www.gnu.org/software/gtypist/")
3068 (synopsis "Typing tutor")
3069 (description
3070 "GNU Typist is a universal typing tutor. It can be used to learn and
3071 practice touch-typing. Several tutorials are included; in addition to
3072 tutorials for the standard QWERTY layout, there are also tutorials for the
3073 alternative layouts Dvorak and Colemak, as well as for the numpad. Tutorials
3074 are primarily in English, however some in other languages are provided.")
3075 (license license:gpl3+)))
3076
3077 (define-public irrlicht
3078 (package
3079 (name "irrlicht")
3080 (version "1.8.4")
3081 (source (origin
3082 (method url-fetch)
3083 (uri (string-append
3084 "mirror://sourceforge/irrlicht/Irrlicht%20SDK/"
3085 (version-major+minor version)
3086 "/" version "/irrlicht-" version ".zip"))
3087 (sha256
3088 (base32
3089 "0cz4z4dwrv5ypl19ll67wl6jjpy5k6ly4vr042w4br88qq5jhazl"))
3090 (patches (search-patches "irrlicht-use-system-libs.patch"))
3091 (modules '((guix build utils)))
3092 (snippet
3093 '(begin
3094 (for-each delete-file-recursively
3095 '("bin" ; bundled compiled Windows binaries"
3096 "source/Irrlicht/MacOSX"
3097 "source/Irrlicht/bzip2"
3098 "source/Irrlicht/jpeglib"
3099 "source/Irrlicht/libpng"
3100 "source/Irrlicht/lzma"
3101 "source/Irrlicht/zlib"))
3102 (delete-file "source/Irrlicht/glext.h")
3103 (delete-file "source/Irrlicht/glxext.h")
3104 (delete-file "source/Irrlicht/wglext.h")
3105 #t))))
3106 (build-system gnu-build-system)
3107 (arguments
3108 `(#:phases
3109 (modify-phases %standard-phases
3110 (add-after 'unpack 'chdir-to-source
3111 (lambda _
3112 ;; The actual source is buried a few directories deep.
3113 (chdir "source/Irrlicht/")
3114 #t))
3115 (add-after 'chdir-to-source 'fix-build-env
3116 (lambda* (#:key outputs #:allow-other-keys)
3117 (let ((out (assoc-ref outputs "out")))
3118 (substitute* "Makefile"
3119 (("INSTALL_DIR = /usr/local/lib")
3120 (string-append "INSTALL_DIR = " out "/lib"))
3121 ;; Add '-fpermissive' to the CXXFLAGS
3122 (("-Wall") "-Wall -fpermissive")) ; CImageLoaderJPG.cpp
3123 ;; The Makefile assumes these directories exist.
3124 (mkdir-p (string-append out "/lib"))
3125 (mkdir-p (string-append out "/include")))))
3126 (delete 'configure)) ; no configure script
3127 #:tests? #f ; no check target
3128 #:make-flags '("CC=gcc" "sharedlib")))
3129 (inputs
3130 `(("bzip2" ,bzip2)
3131 ("libjpeg" ,libjpeg-turbo)
3132 ("libpng" ,libpng)
3133 ("libx11" ,libx11)
3134 ("libxxf86vm" ,libxxf86vm)
3135 ("mesa" ,mesa)))
3136 (synopsis "3D game engine written in C++")
3137 (description
3138 "The Irrlicht Engine is a high performance realtime 3D engine written in
3139 C++. Features include an OpenGL renderer, extensible materials, scene graph
3140 management, character animation, particle and other special effects, support
3141 for common mesh file formats, and collision detection.")
3142 (home-page "http://irrlicht.sourceforge.net/")
3143 (license license:zlib)))
3144
3145 (define-public mars
3146 ;; The latest release on SourceForge relies on an unreleased version of SFML
3147 ;; with a different API, so we take the latest version from the official
3148 ;; repository on Github.
3149 (let ((commit "c855d044094a1d92317e38935d81ba938946132e")
3150 (revision "1"))
3151 (package
3152 (name "mars")
3153 (version (string-append "0.7.5." revision "." (string-take commit 7) ))
3154 (source (origin
3155 (method git-fetch)
3156 (uri (git-reference
3157 (url "https://github.com/thelaui/M.A.R.S.")
3158 (commit commit)))
3159 (file-name (git-file-name name version))
3160 (sha256
3161 (base32
3162 "1r4c5gap1z2zsv4yjd34qriqkxaq4lb4rykapyzkkdf4g36lc3nh"))
3163 (patches (search-patches "mars-sfml-2.3.patch"
3164 "mars-install.patch"))))
3165 (build-system cmake-build-system)
3166 (arguments
3167 `(#:tests? #f ; There are no tests
3168 #:phases
3169 (modify-phases %standard-phases
3170 (add-after 'unpack 'fix-install-path
3171 (lambda _
3172 (substitute* "src/CMakeLists.txt"
3173 (("\\$\\{CMAKE_INSTALL_PREFIX\\}/games")
3174 "${CMAKE_INSTALL_PREFIX}/bin"))
3175 #t))
3176 (add-after 'unpack 'fix-data-path
3177 (lambda* (#:key outputs #:allow-other-keys)
3178 (substitute* "src/System/settings.cpp"
3179 (("C_dataPath = \"./data/\";")
3180 (string-append "C_dataPath = \""
3181 (assoc-ref outputs "out")
3182 "/share/games/marsshooter/\";")))
3183 #t)))))
3184 (inputs
3185 `(("mesa" ,mesa)
3186 ("fribidi" ,fribidi)
3187 ("taglib" ,taglib)
3188 ("sfml" ,sfml)))
3189 (home-page "http://mars-game.sourceforge.net/")
3190 (synopsis "2D space shooter")
3191 (description
3192 "M.A.R.S. is a 2D space shooter with pretty visual effects and
3193 attractive physics. Players can battle each other or computer controlled
3194 enemies in different game modes such as space ball, death match, team death
3195 match, cannon keep, and grave-itation pit.")
3196 (license license:gpl3+))))
3197
3198 (define-public minetest
3199 (package
3200 (name "minetest")
3201 (version "5.3.0")
3202 (source (origin
3203 (method git-fetch)
3204 (uri (git-reference
3205 (url "https://github.com/minetest/minetest")
3206 (commit version)))
3207 (file-name (git-file-name name version))
3208 (sha256
3209 (base32
3210 "03ga3j3cg38w4lg4d4qxasmnjdl8n3lbizidrinanvyfdyvznyh6"))
3211 (modules '((guix build utils)))
3212 (snippet
3213 '(begin
3214 ;; Delete bundled libraries.
3215 (delete-file-recursively "lib")
3216 #t))))
3217 (build-system cmake-build-system)
3218 (arguments
3219 '(#:configure-flags
3220 (list "-DRUN_IN_PLACE=0"
3221 "-DENABLE_FREETYPE=1"
3222 "-DENABLE_GETTEXT=1"
3223 "-DENABLE_SYSTEM_JSONCPP=TRUE"
3224 (string-append "-DIRRLICHT_INCLUDE_DIR="
3225 (assoc-ref %build-inputs "irrlicht")
3226 "/include/irrlicht")
3227 (string-append "-DCURL_INCLUDE_DIR="
3228 (assoc-ref %build-inputs "curl")
3229 "/include/curl"))
3230 #:tests? #f)) ;no check target
3231 (native-search-paths
3232 (list (search-path-specification
3233 (variable "MINETEST_SUBGAME_PATH")
3234 (files '("share/minetest/games")))))
3235 (native-inputs
3236 `(("pkg-config" ,pkg-config)))
3237 (inputs
3238 `(("curl" ,curl)
3239 ("freetype" ,freetype)
3240 ("gettext" ,gettext-minimal)
3241 ("gmp" ,gmp)
3242 ("irrlicht" ,irrlicht)
3243 ("jsoncpp" ,jsoncpp)
3244 ("libjpeg" ,libjpeg-turbo)
3245 ("libpng" ,libpng)
3246 ("libogg" ,libogg)
3247 ("libvorbis" ,libvorbis)
3248 ("libxxf86vm" ,libxxf86vm)
3249 ("luajit" ,luajit)
3250 ("mesa" ,mesa)
3251 ("ncurses" ,ncurses)
3252 ("openal" ,openal)
3253 ("sqlite" ,sqlite)))
3254 (propagated-inputs
3255 `(("minetest-data" ,minetest-data)))
3256 (synopsis "Infinite-world block sandbox game")
3257 (description
3258 "Minetest is a sandbox construction game. Players can create and destroy
3259 various types of blocks in a three-dimensional open world. This allows
3260 forming structures in every possible creation, on multiplayer servers or as a
3261 single player. Mods and texture packs allow players to personalize the game
3262 in different ways.")
3263 (home-page "https://www.minetest.net/")
3264 (license license:lgpl2.1+)))
3265
3266 (define minetest-data
3267 (package
3268 (name "minetest-data")
3269 (version (package-version minetest))
3270 (source (origin
3271 (method git-fetch)
3272 (uri (git-reference
3273 (url "https://github.com/minetest/minetest_game")
3274 (commit version)))
3275 (file-name (git-file-name name version))
3276 (sha256
3277 (base32
3278 "1liciwlh013z5h08ib0psjbwn5wkvlr937ir7kslfk4vly984cjx"))))
3279 (build-system trivial-build-system)
3280 (native-inputs
3281 `(("source" ,source)))
3282 (arguments
3283 `(#:modules ((guix build utils))
3284 #:builder (begin
3285 (use-modules (guix build utils))
3286 (let ((install-dir (string-append
3287 %output
3288 "/share/minetest/games/minetest_game")))
3289 (mkdir-p install-dir)
3290 (copy-recursively
3291 (assoc-ref %build-inputs "source")
3292 install-dir)
3293 #t))))
3294 (synopsis "Main game data for the Minetest game engine")
3295 (description
3296 "Game data for the Minetest infinite-world block sandbox game.")
3297 (home-page "https://www.minetest.net/")
3298 (license license:lgpl2.1+)))
3299
3300 (define-public minetest-mineclone
3301 (package
3302 (name "minetest-mineclone")
3303 (version "0.66.2")
3304 (source (origin
3305 (method git-fetch)
3306 (uri (git-reference
3307 (url "https://git.minetest.land/Wuzzy/MineClone2")
3308 (commit version)))
3309 (file-name (git-file-name name version))
3310 (sha256
3311 (base32
3312 "0miszzlzplpvaj0j1yii9867ydr42wsaqa9g6grxdrci75p05g00"))))
3313 (build-system copy-build-system)
3314 (arguments
3315 `(#:install-plan
3316 '(("." "share/minetest/games/mineclone"))))
3317 (synopsis "Minecraft clone based on Minetest engine")
3318 (description
3319 "MineClone is a Minetest subgame, that aims to recreate Minecraft as
3320 closely as the engine allows.")
3321 (home-page "https://content.minetest.net/packages/Wuzzy/mineclone2/")
3322 (license license:gpl3+)))
3323
3324 (define glkterm
3325 (package
3326 (name "glkterm")
3327 (version "1.0.4")
3328 (source
3329 (origin
3330 (method url-fetch)
3331 (uri (string-append "http://www.ifarchive.org/if-archive/programming/"
3332 "glk/implementations/glkterm-104.tar.gz"))
3333 (sha256
3334 (base32
3335 "0zlj9nlnkdlvgbiliczinirqygiq8ikg5hzh5vgcmnpg9pvnwga7"))))
3336 (build-system gnu-build-system)
3337 (propagated-inputs `(("ncurses" ,ncurses))) ; required by Make.glkterm
3338 (arguments
3339 '(#:tests? #f ; no check target
3340 #:phases
3341 (modify-phases %standard-phases
3342 (replace 'install
3343 (lambda* (#:key outputs #:allow-other-keys)
3344 (let* ((out (assoc-ref outputs "out"))
3345 (inc (string-append out "/include"))
3346 (lib (string-append out "/lib")))
3347 (for-each
3348 (lambda (file)
3349 (install-file file inc))
3350 '("glk.h" "glkstart.h" "gi_blorb.h" "gi_dispa.h" "Make.glkterm"))
3351 (install-file "libglkterm.a" lib))
3352 #t))
3353 (delete 'configure)))) ; no configure script
3354 (home-page "http://www.eblong.com/zarf/glk/")
3355 (synopsis "Curses Implementation of the Glk API")
3356 (description
3357 "Glk defines a portable API for applications with text UIs. It was
3358 primarily designed for interactive fiction, but it should be suitable for many
3359 interactive text utilities, particularly those based on a command line.
3360 This is an implementation of the Glk library which runs in a terminal window,
3361 using the @code{curses.h} library for screen control.")
3362 (license (license:fsf-free "file://README"))))
3363
3364 (define-public glulxe
3365 (package
3366 (name "glulxe")
3367 (version "0.5.4")
3368 (source
3369 (origin
3370 (method url-fetch)
3371 (uri (string-append "http://www.ifarchive.org/if-archive/programming/"
3372 "glulx/interpreters/glulxe/glulxe-054.tar.gz"))
3373 (sha256
3374 (base32
3375 "0vipydg6ra90yf9b3ipgppwxyb2xdhcxwvirgjy0v20wlf56zhhz"))))
3376 (build-system gnu-build-system)
3377 (inputs `(("glk" ,glkterm)))
3378 (arguments
3379 '(#:tests? #f ; no check target
3380 #:make-flags
3381 (let* ((glk (assoc-ref %build-inputs "glk")))
3382 (list (string-append "GLKINCLUDEDIR=" glk "/include")
3383 (string-append "GLKLIBDIR=" glk "/lib")
3384 (string-append "GLKMAKEFILE=" "Make.glkterm")))
3385 #:phases
3386 (modify-phases %standard-phases
3387 (replace 'install
3388 (lambda* (#:key outputs #:allow-other-keys)
3389 (let* ((out (assoc-ref outputs "out"))
3390 (bin (string-append out "/bin")))
3391 (install-file "glulxe" bin))
3392 #t))
3393 (delete 'configure)))) ; no configure script
3394 (home-page "https://www.eblong.com/zarf/glulx/")
3395 (synopsis "Interpreter for Glulx VM")
3396 (description
3397 "Glulx is a 32-bit portable virtual machine intended for writing and
3398 playing interactive fiction. It was designed by Andrew Plotkin to relieve
3399 some of the restrictions in the venerable Z-machine format. This is the
3400 reference interpreter, using the Glk API.")
3401 (license license:expat)))
3402
3403 (define-public fifechan
3404 (package
3405 (name "fifechan")
3406 (version "0.1.5")
3407 (source (origin
3408 (method url-fetch)
3409 (uri (string-append "https://codeload.github.com/fifengine/"
3410 "fifechan/tar.gz/" version))
3411 (file-name (string-append name "-" version ".tar.gz"))
3412 (sha256
3413 (base32
3414 "0wxs9vz5x9y8chghd8vp7vfk089lfb0qnzggi17zrqkrngs5zgi9"))))
3415 (build-system cmake-build-system)
3416 (inputs
3417 `(("sdl2" ,sdl2)
3418 ("sdl2-image" ,sdl2-image)
3419 ("mesa" ,mesa)))
3420 (arguments
3421 '(#:tests? #f)) ; No included tests
3422 (home-page "https://fifengine.github.io/fifechan/")
3423 (synopsis "Cross platform GUI library specifically for games")
3424 (description
3425 "Fifechan is a lightweight cross platform GUI library written in C++
3426 specifically designed for games. It has a built in set of extendable GUI
3427 Widgets, and allows users to create more.")
3428 (license license:lgpl2.1+)))
3429
3430 (define-public fifengine
3431 (package
3432 (name "fifengine")
3433 (version "0.4.2")
3434 (source (origin
3435 (method url-fetch)
3436 (uri (string-append "https://codeload.github.com/fifengine/"
3437 "fifengine/tar.gz/" version))
3438 (file-name (string-append name "-" version ".tar.gz"))
3439 (patches (search-patches "fifengine-swig-compat.patch"))
3440 (sha256
3441 (base32
3442 "1y4grw25cq5iqlg05rnbyxw1njl11ypidnlsm3qy4sm3xxdvb0p8"))))
3443 (build-system cmake-build-system)
3444 (arguments
3445 `(#:tests? #f ; TODO The test running fails to run some tests.
3446 #:modules ((srfi srfi-1)
3447 (guix build cmake-build-system)
3448 (guix build utils))
3449 #:configure-flags
3450 (list
3451 (string-append "-DOPENALSOFT_INCLUDE_DIR="
3452 (assoc-ref %build-inputs "openal")
3453 "/include/AL")
3454 (string-append "-DPYTHON_SITE_PACKAGES="
3455 (assoc-ref %outputs "out")
3456 "/lib/python"
3457 ,(version-major+minor (package-version python))
3458 "/site-packages"))
3459 #:phases
3460 (modify-phases %standard-phases
3461 (add-after 'unpack 'patch-run_tests.py
3462 (lambda _
3463 ;; Patch the test runner to exit with a status of 1 if any test
3464 ;; fails, to allow detecting failures.
3465 (substitute* "run_tests.py"
3466 (("ERROR\\. One or more tests failed!'\\)")
3467 "ERROR. One or more tests failed!')
3468 \t\texit(1)"))
3469 #t))
3470 ;; Run tests after installation so that we can make use of the built
3471 ;; python modules.
3472 (delete 'check)
3473 (add-after 'install 'check
3474 (lambda* (#:key inputs outputs tests? #:allow-other-keys)
3475 (define python-version
3476 (let* ((version (last (string-split
3477 (assoc-ref inputs "python")
3478 #\-)))
3479 (components (string-split version #\.))
3480 (major+minor (take components 2)))
3481 (string-join major+minor ".")))
3482
3483 (when tests?
3484 ;; Set PYTHONPATH so that python finds the installed modules.
3485 (setenv "PYTHONPATH"
3486 (string-append (getenv "PYTHONPATH") ":"
3487 (assoc-ref outputs "out")
3488 "/lib/python"
3489 python-version
3490 "/site-packages"))
3491 ;; The tests require an X server.
3492 (system "Xvfb :1 &")
3493 (setenv "DISPLAY" ":1")
3494 (setenv "XDG_RUNTIME_DIR" "/tmp")
3495 ;; Run tests
3496 (chdir ,(string-append "../" name "-" version))
3497 (invoke "python3" "run_tests.py" "-a"))
3498 #t)))))
3499 (inputs
3500 `(("sdl2" ,sdl2)
3501 ("sdl2-image" ,sdl2-image)
3502 ("sdl2-ttf" ,sdl2-ttf)
3503 ("tinyxml" ,tinyxml)
3504 ("openal" ,openal)
3505 ("libogg" ,libogg)
3506 ("glew" ,glew)
3507 ("libvorbis" ,libvorbis)
3508 ("boost" ,boost)
3509 ("fifechan" ,fifechan)
3510 ("swig" ,swig)
3511 ("python" ,python)))
3512 (native-inputs
3513 `(("python" ,python)
3514 ("swig" ,swig)
3515 ("xvfb" ,xorg-server)))
3516 (propagated-inputs
3517 `(("python-future" ,python-future)))
3518 (home-page "https://www.fifengine.net/")
3519 (synopsis "FIFE is a multi-platform isometric game engine written in C++")
3520 (description
3521 "@acronym{FIFE, Flexible Isometric Free Engine} is a multi-platform
3522 isometric game engine. Python bindings are included allowing users to create
3523 games using Python as well as C++.")
3524 (license license:lgpl2.1+)))
3525
3526 (define-public fizmo
3527 (package
3528 (name "fizmo")
3529 (version "0.8.5")
3530 (source (origin
3531 (method url-fetch)
3532 (uri (string-append "https://fizmo.spellbreaker.org/source/"
3533 "fizmo-" version ".tar.gz"))
3534 (sha256
3535 (base32
3536 "1amyc4n41jf08kxmdgkk30bzzx54miaxa97w28f417qwn8lrl98w"))))
3537 (build-system gnu-build-system)
3538 (arguments
3539 '(#:configure-flags
3540 (let ((libjpeg (assoc-ref %build-inputs "libjpeg"))
3541 (ncurses (assoc-ref %build-inputs "ncurses")))
3542 (list (string-append "--with-jpeg-includedir=" libjpeg "/include")))))
3543 (native-inputs
3544 `(("pkg-config" ,pkg-config)))
3545 (inputs
3546 `(("freetype" ,freetype)
3547 ("libjpeg" ,libjpeg-turbo)
3548 ("libpng" ,libpng)
3549 ("libsndfile" ,libsndfile)
3550 ("libxml2" ,libxml2)
3551 ("ncurses" ,ncurses)
3552 ("sdl2" ,sdl2)))
3553 (home-page "https://fizmo.spellbreaker.org/")
3554 (synopsis "Z-machine interpreter")
3555 (description
3556 "Fizmo is a console-based Z-machine interpreter. It is used to play
3557 interactive fiction, also known as text adventures, which were implemented
3558 either by Infocom or created using the Inform compiler.")
3559 (license license:bsd-3)))
3560
3561 (define-public gnugo
3562 (package
3563 (name "gnugo")
3564 (version "3.8")
3565 (source (origin
3566 (method url-fetch)
3567 (uri (string-append "mirror://gnu/gnugo/gnugo-" version
3568 ".tar.gz"))
3569 (sha256
3570 (base32
3571 "0wkahvqpzq6lzl5r49a4sd4p52frdmphnqsfdv7gdp24bykdfs6s"))))
3572 (build-system gnu-build-system)
3573 (inputs `(("readline" ,readline)))
3574 (synopsis "Play the game of Go")
3575 (description
3576 "GNU Go is a program that plays the game of Go, in which players
3577 place stones on a grid to form territory or capture other stones. While
3578 it can be played directly from the terminal, rendered in ASCII characters,
3579 it is also possible to play GNU Go with 3rd party graphical interfaces or
3580 even in Emacs. It supports the standard game storage format (SGF, Smart
3581 Game Format) and inter-process communication format (GMP, Go Modem
3582 Protocol).")
3583 (home-page "https://www.gnu.org/software/gnugo/")
3584 (license license:gpl3+)))
3585
3586 (define-public extremetuxracer
3587 (package
3588 (name "extremetuxracer")
3589 (version "0.8.0")
3590 (source (origin
3591 (method url-fetch)
3592 (uri (string-append
3593 "mirror://sourceforge/extremetuxracer/releases/"
3594 version "/etr-" version ".tar.xz"))
3595 (sha256
3596 (base32
3597 "05ysaxvsgps9fxc421kdifsxmc1sn6n79cjaa0k0i3fs9qqrja2b"))))
3598 (build-system gnu-build-system)
3599 (native-inputs
3600 `(("pkg-config" ,pkg-config)))
3601 (inputs
3602 `(("glu" ,glu)
3603 ("sfml" ,sfml)))
3604 (synopsis "High-speed arctic racing game based on Tux Racer")
3605 ;; Snarfed straight from Debian.
3606 (description "Extreme Tux Racer, or etracer as it is called for short, is
3607 a simple OpenGL racing game featuring Tux, the Linux mascot. The goal of the
3608 game is to slide down a snow- and ice-covered mountain as quickly as possible,
3609 avoiding the trees and rocks that will slow you down.
3610
3611 Collect herrings and other goodies while sliding down the hill, but avoid fish
3612 bones.
3613
3614 This game is based on the GPL version of the famous game TuxRacer.")
3615 (home-page "https://sourceforge.net/projects/extremetuxracer/")
3616 (license license:gpl2+)))
3617
3618 (define-public supertuxkart
3619 (package
3620 (name "supertuxkart")
3621 (version "1.2")
3622 (source
3623 (origin
3624 (method url-fetch)
3625 (uri (string-append "mirror://sourceforge/supertuxkart/SuperTuxKart/"
3626 version "/SuperTuxKart-" version "-src.tar.xz"))
3627 (sha256
3628 (base32
3629 "0dvx56hmy6wdhl7m9dw8zc1n3jqfp05gnxl6zs1rbfdyzl5dybh5"))
3630 (modules '((guix build utils)))
3631 (snippet
3632 ;; Delete bundled library sources
3633 '(begin
3634 ;; Supertuxkart uses modified versions of the Irrlicht engine
3635 ;; and the bullet library. The developers gave an explanation
3636 ;; here: http://forum.freegamedev.net/viewtopic.php?f=17&t=3906
3637 ;; FIXME: try to unbundle angelscript, libmcpp and libraqm
3638 (for-each delete-file-recursively
3639 '("lib/glew"
3640 "lib/wiiuse"
3641 "lib/enet"))
3642 #t))))
3643 (build-system cmake-build-system)
3644 (arguments
3645 `(#:tests? #f ; no check target
3646 #:configure-flags
3647 (list "-DUSE_WIIUSE=0"
3648 "-DUSE_SYSTEM_GLEW=TRUE"
3649 "-DUSE_SYSTEM_ENET=TRUE"
3650 ;; In order to use the system ENet library, IPv6 support (added in
3651 ;; SuperTuxKart version 1.1) must be disabled.
3652 "-DUSE_IPV6=FALSE"
3653 ;; FIXME: needs libopenglrecorder
3654 "-DBUILD_RECORDER=0")))
3655 (inputs
3656 `(("curl" ,curl)
3657 ("freetype" ,freetype)
3658 ("fribidi" ,fribidi)
3659 ("glew" ,glew)
3660 ("harfbuzz" ,harfbuzz)
3661 ("libvorbis" ,libvorbis)
3662 ("libx11" ,libx11)
3663 ("libxrandr" ,libxrandr)
3664 ("mesa" ,mesa)
3665 ("openal" ,openal)
3666 ("sdl2" ,sdl2)
3667 ("zlib" ,zlib)
3668 ;; The following input is needed to build the bundled and modified
3669 ;; version of irrlicht.
3670 ("enet" ,enet)
3671 ("libjpeg" ,libjpeg-turbo)
3672 ("openssl" ,openssl)))
3673 (native-inputs
3674 `(("pkg-config" ,pkg-config)))
3675 (home-page "https://supertuxkart.net/Main_Page")
3676 (synopsis "3D kart racing game")
3677 (description "SuperTuxKart is a 3D kart racing game, with a focus on
3678 having fun over realism. You can play with up to 4 friends on one PC, racing
3679 against each other or just trying to beat the computer; single-player mode is
3680 also available.")
3681 (license license:gpl3+)))
3682
3683 (define-public unknown-horizons
3684 (package
3685 (name "unknown-horizons")
3686 (version "2019.1")
3687 (source (origin
3688 (method url-fetch)
3689 (uri (string-append "https://codeload.github.com/unknown-horizons/"
3690 "unknown-horizons/tar.gz/" version))
3691 (file-name (string-append name "-" version ".tar.gz"))
3692 (sha256
3693 (base32
3694 "1n747p7h0qp48szgp262swg0xh8kxy1bw8ag1qczs4i26hyzs5x4"))
3695 (patches (search-patches "unknown-horizons-python-3.8-distro.patch"))))
3696 (build-system python-build-system)
3697 (arguments
3698 '(#:phases
3699 (modify-phases %standard-phases
3700 (add-before 'build 'set-HOME
3701 (lambda _
3702 (setenv "HOME" "/tmp")
3703 #t))
3704 (add-after 'build 'build-extra
3705 (lambda _
3706 (invoke "python3" "./setup.py" "build_i18n")
3707 (invoke "python3" "horizons/engine/generate_atlases.py" "2048")
3708 #t))
3709 (add-after 'install 'patch
3710 (lambda* (#:key outputs #:allow-other-keys)
3711 (let ((out (assoc-ref outputs "out")))
3712 (substitute* (string-append out "/bin/unknown-horizons")
3713 (("os\\.chdir\\(get\\_content\\_dir\\_parent_path\\(\\)\\)")
3714 (string-append "os.chdir(\""
3715 (assoc-ref outputs "out")
3716 "/share/unknown-horizons\")"))))
3717 #t))
3718 (add-before 'check 'fix-tests-with-pytest>=4
3719 (lambda _
3720 (substitute* "tests/conftest.py"
3721 (("pytest_namespace")
3722 "pytest_configure")
3723 (("get_marker")
3724 "get_closest_marker"))
3725 #t))
3726 ;; TODO: Run GUI tests as well
3727 (replace 'check
3728 (lambda _
3729 (substitute* "horizons/constants.py"
3730 (("IS_DEV_VERSION = False")
3731 "IS_DEV_VERSION = True"))
3732 (invoke "pytest" "tests")
3733 (substitute* "horizons/constants.py"
3734 (("IS_DEV_VERSION = True")
3735 "IS_DEV_VERSION = False"))
3736 #t)))))
3737 (inputs
3738 `(("fifengine" ,fifengine)
3739 ("python:tk" ,python "tk")
3740 ("python-pillow" ,python-pillow)
3741 ("python-pyyaml" ,python-pyyaml)))
3742 (native-inputs
3743 `(("intltool" ,intltool)
3744 ("python-distro" ,python-distro)
3745
3746 ;; Required for tests
3747 ("python-greenlet" ,python-greenlet)
3748 ("python-polib" ,python-polib)
3749 ("python-pytest" ,python-pytest)
3750 ("python-pytest-mock" ,python-pytest-mock)))
3751 (home-page "http://unknown-horizons.org/")
3752 (synopsis "Isometric realtime strategy, economy and city building simulation")
3753 (description
3754 "Unknown Horizons is a 2D realtime strategy simulation with an emphasis
3755 on economy and city building. Expand your small settlement to a strong and
3756 wealthy colony, collect taxes and supply your inhabitants with valuable
3757 goods. Increase your power with a well balanced economy and with strategic
3758 trade and diplomacy.")
3759 (license (list
3760 license:gpl2+ ; Covers code
3761 license:expat ; tests/dummy.py, ext/polib.py
3762 license:cc-by-sa3.0 ; Covers some media content
3763 license:cc-by3.0 ; Covers some media content
3764 license:bsd-3)))) ; horizons/ext/speaklater.py
3765
3766 (define-public gnujump
3767 (package
3768 (name "gnujump")
3769 (version "1.0.8")
3770 (source (origin
3771 (method url-fetch)
3772 (uri (string-append "mirror://gnu/gnujump/gnujump-"
3773 version ".tar.gz"))
3774 (sha256
3775 (base32
3776 "05syy9mzbyqcfnm0hrswlmhwlwx54f0l6zhcaq8c1c0f8dgzxhqk"))))
3777 (build-system gnu-build-system)
3778 (arguments
3779 '(#:phases
3780 (modify-phases %standard-phases
3781 (add-before
3782 'configure 'link-libm
3783 (lambda _ (setenv "LIBS" "-lm")))
3784 (add-after 'install 'create-desktop-entry
3785 (lambda* (#:key outputs #:allow-other-keys)
3786 (let* ((out (assoc-ref outputs "out"))
3787 (apps (string-append out "/share/applications")))
3788 (mkdir-p apps)
3789 (with-output-to-file
3790 (string-append apps "/gnujump.desktop")
3791 (lambda _
3792 (format #t
3793 "[Desktop Entry]~@
3794 Name=GNUjump~@
3795 Comment=Jump up the tower to survive~@
3796 Exec=~a/bin/gnujump~@
3797 Terminal=false~@
3798 Type=Application~@
3799 Categories=Game;ArcadeGame~%"
3800 out)))))))))
3801 (inputs
3802 `(("glu" ,glu)
3803 ("mesa" ,mesa)
3804 ("sdl" ,sdl)
3805 ("sdl-image" ,sdl-image)
3806 ("sdl-mixer" ,sdl-mixer)))
3807 (home-page "http://gnujump.es.gnu.org/")
3808 (synopsis
3809 "Game of jumping to the next floor, trying not to fall")
3810 (description
3811 "GNUjump is a simple, yet addictive game in which you must jump from
3812 platform to platform to avoid falling, while the platforms drop at faster rates
3813 the higher you go. The game features multiplayer, unlimited FPS, smooth floor
3814 falling, themeable graphics and sounds, and replays.")
3815 (license license:gpl3+)))
3816
3817 (define-public wesnoth
3818 (package
3819 (name "wesnoth")
3820 (version "1.14.14")
3821 (source (origin
3822 (method url-fetch)
3823 (uri (string-append "mirror://sourceforge/wesnoth/wesnoth-"
3824 (version-major+minor version)
3825 "/wesnoth-" version "/"
3826 "wesnoth-" version ".tar.bz2"))
3827 (sha256
3828 (base32
3829 "1l7mdxn4kw938qz824057rqh99b7y9439a54s64n1xz95w77lp0r"))))
3830 (build-system cmake-build-system)
3831 (arguments
3832 `(#:tests? #f)) ;no check target
3833 (native-inputs
3834 `(("gettext" ,gettext-minimal)
3835 ("pkg-config" ,pkg-config)))
3836 (inputs
3837 `(("boost" ,boost)
3838 ("dbus" ,dbus)
3839 ("fribidi" ,fribidi)
3840 ("libvorbis" ,libvorbis)
3841 ("openssl" ,openssl)
3842 ("pango" ,pango)
3843 ("sdl-union" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer sdl2-ttf)))))
3844 (home-page "https://www.wesnoth.org/")
3845 (synopsis "Turn-based strategy game")
3846 (description
3847 "The Battle for Wesnoth is a fantasy, turn based tactical strategy game,
3848 with several single player campaigns, and multiplayer games (both networked and
3849 local).
3850
3851 Battle for control on a range of maps, using variety of units which have
3852 advantages and disadvantages against different types of attacks. Units gain
3853 experience and advance levels, and are carried over from one scenario to the
3854 next campaign.")
3855 (license license:gpl2+)))
3856
3857 (define-public wesnoth-server
3858 (package
3859 (inherit wesnoth)
3860 (name "wesnoth-server")
3861 (inputs
3862 `(("boost" ,boost)
3863 ("icu4c" ,icu4c)
3864 ("openssl" ,openssl)
3865 ("sdl2" ,sdl2)))
3866 (arguments
3867 `(#:configure-flags '("-DENABLE_GAME=OFF")
3868 ,@(package-arguments wesnoth)))
3869 (synopsis "Dedicated @emph{Battle for Wesnoth} server")
3870 (description "This package contains a dedicated server for @emph{The
3871 Battle for Wesnoth}.")))
3872
3873 (define-public gamine
3874 (package
3875 (name "gamine")
3876 (version "1.6")
3877 (source (origin
3878 (method url-fetch)
3879 (uri (string-append "mirror://sourceforge/gamine-game/"
3880 "gamine-" version ".tar.gz"))
3881 (sha256
3882 (base32
3883 "1sc6f4445ciigd6yw0ri92746k4hk6ps0bvj9fm1gbp3c3fslk5n"))))
3884 (build-system gnu-build-system)
3885 (native-inputs
3886 `(("pkg-config" ,pkg-config)
3887 ("intltool" ,intltool)))
3888 (inputs
3889 `(("gstreamer" ,gstreamer)
3890 ("gst-plugins-base" ,gst-plugins-base) ; playbin plugin
3891 ("gst-plugins-good" ,gst-plugins-good) ; for wav playback
3892 ("gtk+" ,gtk+)))
3893 (arguments
3894 `(#:tests? #f
3895 #:make-flags
3896 (let ((out (assoc-ref %outputs "out")))
3897 (list (string-append "PREFIX=" out)
3898 (string-append "SYSCONFDIR=" out "/etc")))
3899 #:phases
3900 (modify-phases %standard-phases
3901 (delete 'configure)
3902 (add-after
3903 'install 'wrap-gamine
3904 (lambda* (#:key outputs #:allow-other-keys)
3905 (let ((out (assoc-ref outputs "out"))
3906 (gst-plugin-path (getenv "GST_PLUGIN_SYSTEM_PATH")))
3907 (wrap-program (string-append out "/bin/gamine")
3908 `("GST_PLUGIN_SYSTEM_PATH" ":" prefix (,gst-plugin-path))))
3909 #t)))))
3910 (home-page "http://gamine-game.sourceforge.net/")
3911 (synopsis "Mouse and keyboard discovery for children")
3912 (description
3913 "Gamine is a game designed for young children who are learning to use the
3914 mouse and keyboard. The child uses the mouse to draw colored dots and lines
3915 on the screen and keyboard to display letters.")
3916 ;; Most files under gpl2+ or gpl3+, but eat.wav under gpl3
3917 (license license:gpl3)))
3918
3919 (define-public manaplus
3920 (package
3921 (name "manaplus")
3922 (version "1.9.3.23")
3923 (source (origin
3924 (method url-fetch)
3925 (uri (string-append
3926 "https://repo.manaplus.org/manaplus/download/"
3927 version "/manaplus-" version ".tar.xz"))
3928 (sha256
3929 (base32
3930 "1ky182p4svwdqm6cf7jbns85hidkhkhq4s17cs2p381f0klapfjz"))))
3931 (build-system gnu-build-system)
3932 (arguments
3933 '(#:configure-flags
3934 (list (string-append "CPPFLAGS=-I"
3935 (assoc-ref %build-inputs "sdl-union")
3936 "/include/SDL"))))
3937 (native-inputs
3938 `(("pkg-config" ,pkg-config)))
3939 (inputs
3940 `(("glu" ,glu)
3941 ("curl" ,curl)
3942 ("libxml2" ,libxml2)
3943 ("mesa" ,mesa)
3944 ("sdl-union" ,(sdl-union))))
3945 (home-page "https://manaplus.org")
3946 (synopsis "Client for 'The Mana World' and similar games")
3947 (description
3948 "ManaPlus is a 2D MMORPG client for game servers. It is the only
3949 fully supported client for @uref{http://www.themanaworld.org, The mana
3950 world}, @uref{http://evolonline.org, Evol Online} and
3951 @uref{http://landoffire.org, Land of fire}.")
3952 ;; "src/debug/*" and "src/sdl2gfx/*" are under Zlib.
3953 ;; "data/themes/{golden-delicious,jewelry}/*" are under CC-BY-SA.
3954 ;; The rest is under GPL2+.
3955 (license (list license:gpl2+ license:zlib license:cc-by-sa4.0))))
3956
3957 (define openttd-engine
3958 (package
3959 (name "openttd-engine")
3960 (version "1.10.0")
3961 (source
3962 (origin (method url-fetch)
3963 (uri (string-append "https://cdn.openttd.org/openttd-releases/"
3964 version "/openttd-" version "-source.tar.xz"))
3965 (sha256
3966 (base32
3967 "0lz2y2rjc23k0d97y65cqhy2splw9cmrbvhgz0iqps8xkan1m8hv"))))
3968 (build-system gnu-build-system)
3969 (arguments
3970 `(#:tests? #f ; no "check" target
3971 #:phases
3972 (modify-phases %standard-phases
3973 ;; The build process fails if the configure script is passed the
3974 ;; option "--enable-fast-install".
3975 (replace 'configure
3976 (lambda* (#:key inputs outputs (configure-flags '())
3977 #:allow-other-keys)
3978 (let ((out (assoc-ref outputs "out"))
3979 (lzo (assoc-ref inputs "lzo")))
3980 (apply invoke "./configure"
3981 (string-append "--prefix=" out)
3982 ;; Provide the "lzo" path.
3983 (string-append "--with-liblzo2="
3984 lzo "/lib/liblzo2.a")
3985 ;; Put the binary in 'bin' instead of 'games'.
3986 "--binary-dir=bin"
3987 configure-flags)))))))
3988 (native-inputs `(("pkg-config" ,pkg-config)))
3989 (inputs
3990 `(("allegro" ,allegro)
3991 ("fontconfig" ,fontconfig)
3992 ("freetype" ,freetype)
3993 ("icu4c" ,icu4c)
3994 ("libpng" ,libpng)
3995 ("lzo" ,lzo)
3996 ("sdl" ,sdl)
3997 ("xz" ,xz)
3998 ("zlib" ,zlib)))
3999 (synopsis "Transportation economics simulator game")
4000 (description "OpenTTD is a game in which you transport goods and
4001 passengers by land, water and air. It is a re-implementation of Transport
4002 Tycoon Deluxe with many enhancements including multiplayer mode,
4003 internationalization support, conditional orders and the ability to clone,
4004 autoreplace and autoupdate vehicles. This package only includes the game
4005 engine. When you start it you will be prompted to download a graphics set.")
4006 (home-page "https://www.openttd.org/")
4007 ;; This package is GPLv2, except for a few files located in
4008 ;; "src/3rdparty/" which are under the 3-clause BSD, LGPLv2.1+ and Zlib
4009 ;; licenses. In addition, this software contains an in-game downloader
4010 ;; from which the user may find non-functional data licensed under
4011 ;; different terms.
4012 (license (list license:bsd-3 license:gpl2 license:lgpl2.1+ license:zlib))))
4013
4014 (define openttd-opengfx
4015 (package
4016 (name "openttd-opengfx")
4017 (version "0.6.0")
4018 (source
4019 (origin
4020 (method url-fetch)
4021 (uri (string-append "https://cdn.openttd.org/opengfx-releases/"
4022 version "/opengfx-" version "-source.tar.xz"))
4023 (sha256
4024 (base32
4025 "0qxc6gl2gxcrn1np88dnjgbaaakkkx96b13rcmy1spryc8c09hyr"))))
4026 (build-system gnu-build-system)
4027 (arguments
4028 '(#:make-flags (list "CC=gcc"
4029 (string-append "INSTALL_DIR="
4030 (assoc-ref %outputs "out")
4031 "/share/games/openttd/baseset/opengfx"))
4032 #:phases
4033 (modify-phases %standard-phases
4034 (replace 'configure
4035 (lambda _
4036 ;; Make sure HOME is writable for GIMP.
4037 (setenv "HOME" (getcwd))
4038
4039 ;; Redirect stdout, not stderr, to /dev/null. This prevents
4040 ;; dos2unix from receiving its version information as a flag.
4041 (substitute* "Makefile"
4042 (("\\$\\(UNIX2DOS\\) -q --version 2>/dev/null")
4043 "$(UNIX2DOS) -q --version 1>/dev/null")))))
4044 ;; The check phase for this package only checks the md5sums of the built
4045 ;; GRF files against the md5sums of the release versions. Because we use
4046 ;; different software versions than upstream does, some of the md5sums
4047 ;; are different. However, the package is still reproducible, it's safe
4048 ;; to disable this test.
4049 #:tests? #f
4050 #:parallel-build? #f))
4051 (native-inputs `(("dos2unix" ,dos2unix)
4052 ("gimp" ,gimp)
4053 ("grfcodec" ,grfcodec)
4054 ("nml" ,nml)
4055 ("which" ,which)
4056 ("python" ,python-2)))
4057 (home-page "http://dev.openttdcoop.org/projects/opengfx")
4058 (synopsis "Base graphics set for OpenTTD")
4059 (description
4060 "The OpenGFX project is an implementation of the OpenTTD base graphics
4061 set that aims to ensure the best possible out-of-the-box experience.
4062
4063 OpenGFX provides you with...
4064 @enumerate
4065 @item All graphics you need to enjoy OpenTTD.
4066 @item Uniquely drawn rail vehicles for every climate.
4067 @item Completely snow-aware rivers.
4068 @item Different river and sea water.
4069 @item Snow-aware buoys.
4070 @end enumerate")
4071 (license license:gpl2)))
4072
4073 (define openttd-opensfx
4074 (package
4075 (name "openttd-opensfx")
4076 (version "0.2.3")
4077 (source
4078 (origin
4079 (method url-fetch)
4080 (uri (string-append
4081 "https://binaries.openttd.org/extra/opensfx/"
4082 version "/opensfx-" version "-source.tar.gz"))
4083 (sha256
4084 (base32
4085 "03jxgp02ks31hmsdh4xh0xcpkb70ds8jakc9pfc1y9vdrdavh4p5"))))
4086 (build-system gnu-build-system)
4087 (native-inputs
4088 `(("catcodec" ,catcodec)
4089 ("python" ,python-2)))
4090 (arguments
4091 `(#:make-flags
4092 (list (string-append "INSTALL_DIR=" %output
4093 "/share/games/openttd/baseset/opensfx"))
4094 #:phases
4095 (modify-phases %standard-phases
4096 (add-after 'unpack 'make-reproducible
4097 (lambda _
4098 ;; Remove the time dependency of the installed tarball by setting
4099 ;; the modification times if its members to 0.
4100 (substitute* "scripts/Makefile.def"
4101 (("-cf") " --mtime=@0 -cf"))
4102 #t))
4103 (delete 'configure))))
4104 (home-page "http://dev.openttdcoop.org/projects/opensfx")
4105 (synopsis "Base sounds for OpenTTD")
4106 (description "OpenSFX is a set of free base sounds for OpenTTD which make
4107 it possible to play OpenTTD without requiring the proprietary sound files from
4108 the original Transport Tycoon Deluxe.")
4109 (license license:cc-sampling-plus-1.0)))
4110
4111 (define openttd-openmsx
4112 (package
4113 (name "openttd-openmsx")
4114 (version "0.3.1")
4115 (source
4116 (origin
4117 (method url-fetch)
4118 (uri (string-append
4119 "https://binaries.openttd.org/extra/openmsx/"
4120 version "/openmsx-" version "-source.tar.gz"))
4121 (sha256
4122 (base32
4123 "0nskq97a6fsv1v6d62zf3yb8whzhqnlh3lap3va3nzvj7csjgf7c"))))
4124 (build-system gnu-build-system)
4125 (native-inputs
4126 `(("python" ,python-2)))
4127 (arguments
4128 `(#:make-flags
4129 (list (string-append "INSTALL_DIR=" %output
4130 "/share/games/openttd/baseset"))
4131 #:phases
4132 (modify-phases %standard-phases
4133 (delete 'configure)
4134 (add-after 'install 'post-install
4135 ;; Rename openmsx-version to openmsx
4136 (lambda* (#:key outputs #:allow-other-keys)
4137 (let ((install-directory (string-append (assoc-ref outputs "out")
4138 "/share/games/openttd/baseset")))
4139 (rename-file (string-append install-directory "/openmsx-" ,version)
4140 (string-append install-directory "/openmsx"))
4141 #t))))))
4142 (home-page "http://dev.openttdcoop.org/projects/openmsx")
4143 (synopsis "Music set for OpenTTD")
4144 (description "OpenMSX is a music set for OpenTTD which makes it possible
4145 to play OpenTTD without requiring the proprietary music from the original
4146 Transport Tycoon Deluxe.")
4147 (license license:gpl2)))
4148
4149 (define-public openttd
4150 (package
4151 (inherit openttd-engine)
4152 (name "openttd")
4153 (arguments
4154 `(#:configure-flags
4155 (list (string-append "--with-midi=" (assoc-ref %build-inputs "timidity++")
4156 "/bin/timidity"))
4157 ,@(substitute-keyword-arguments (package-arguments openttd-engine)
4158 ((#:phases phases)
4159 `(modify-phases ,phases
4160 (add-after 'install 'install-data
4161 (lambda* (#:key inputs outputs #:allow-other-keys)
4162 (for-each
4163 (lambda (input)
4164 (copy-recursively (assoc-ref inputs input)
4165 (assoc-ref outputs "out")))
4166 (list "opengfx" "openmsx" "opensfx"))
4167 #t)))))))
4168 (inputs
4169 `(("timidity++" ,timidity++)
4170 ,@(package-inputs openttd-engine)))
4171 (native-inputs
4172 `(("opengfx" ,openttd-opengfx)
4173 ("openmsx" ,openttd-openmsx)
4174 ("opensfx" ,openttd-opensfx)
4175 ,@(package-native-inputs openttd-engine)))))
4176
4177 (define openrct2-title-sequences
4178 (package
4179 (name "openrct2-title-sequences")
4180 (version "0.1.2")
4181 (source
4182 (origin
4183 (method url-fetch)
4184 (uri (string-append "https://github.com/OpenRCT2/title-sequences/releases/download/v"
4185 version "/title-sequence-v" version ".zip"))
4186 (file-name (string-append name "-" version ".zip"))
4187 (sha256
4188 (base32
4189 "0qbyxrsw8hlgaq0r5d7lx7an3idy4qbfv7yiw9byhldk763n9cfw"))))
4190 (build-system trivial-build-system)
4191 (native-inputs
4192 `(("bash" ,bash)
4193 ("coreutils" ,coreutils)
4194 ("unzip" ,unzip)))
4195 (arguments
4196 `(#:modules ((guix build utils))
4197 #:builder
4198 (begin
4199 (use-modules (guix build utils))
4200 (let* ((out (assoc-ref %outputs "out"))
4201 (openrct2-title-sequences (string-append out
4202 "/share/openrct2/title-sequences"))
4203 (source (assoc-ref %build-inputs "source"))
4204 (unzip (string-append (assoc-ref %build-inputs "unzip") "/bin/unzip")))
4205 (copy-file source (string-append ,name "-" ,version ".zip"))
4206 (invoke unzip (string-append ,name "-" ,version ".zip"))
4207 (delete-file (string-append ,name "-" ,version ".zip"))
4208 (mkdir-p openrct2-title-sequences)
4209 (copy-recursively "."
4210 openrct2-title-sequences)
4211 #t))))
4212 (home-page "https://github.com/OpenRCT2/OpenRCT2")
4213 (synopsis "Title sequences for OpenRCT2")
4214 (description
4215 "openrct2-title-sequences is a set of title sequences for OpenRCT2.")
4216 (license license:gpl3+)))
4217
4218 (define openrct2-objects
4219 (package
4220 (name "openrct2-objects")
4221 (version "1.0.9")
4222 (source
4223 (origin
4224 (method url-fetch)
4225 (uri (string-append "https://github.com/OpenRCT2/objects/releases/download/v"
4226 version "/objects.zip"))
4227 (file-name (string-append name "-" version ".zip"))
4228 (sha256
4229 (base32 "02apb8h553m7d6jvysgb1zahvxc1yzyygfca2iclb21b3fhpsas4"))))
4230 (build-system trivial-build-system)
4231 (native-inputs
4232 `(("bash" ,bash)
4233 ("coreutils" ,coreutils)
4234 ("unzip" ,unzip)))
4235 (arguments
4236 `(#:modules ((guix build utils))
4237 #:builder
4238 (begin
4239 (use-modules (guix build utils))
4240 (let* ((out (assoc-ref %outputs "out"))
4241 (openrct2-objects (string-append out
4242 "/share/openrct2/objects"))
4243 (source (assoc-ref %build-inputs "source"))
4244 (unzip (string-append (assoc-ref %build-inputs "unzip") "/bin/unzip")))
4245 (copy-file source (string-append ,name "-" ,version ".zip"))
4246 (invoke unzip (string-append ,name "-" ,version ".zip"))
4247 (delete-file (string-append ,name "-" ,version ".zip"))
4248 (mkdir-p openrct2-objects)
4249 (copy-recursively "."
4250 openrct2-objects)
4251 #t))))
4252 (home-page "https://github.com/OpenRCT2/OpenRCT2")
4253 (synopsis "Objects for OpenRCT2")
4254 (description
4255 "openrct2-objects is a set of objects for OpenRCT2.")
4256 (license license:gpl3+)))
4257
4258 (define-public openrct2
4259 (package
4260 (name "openrct2")
4261 (version "0.2.6")
4262 (source
4263 (origin
4264 (method git-fetch)
4265 (uri (git-reference
4266 (url "https://github.com/OpenRCT2/OpenRCT2")
4267 (commit (string-append "v" version))))
4268 (file-name (git-file-name name version))
4269 (sha256
4270 (base32 "1vikbkg3wh5ngzdfilb6irbh6nqinf138qpdz8wz9izlvl8s36k4"))))
4271 (build-system cmake-build-system)
4272 (arguments
4273 `(#:configure-flags (list "-DDOWNLOAD_OBJECTS=OFF"
4274 "-DDOWNLOAD_TITLE_SEQUENCES=OFF")
4275 #:tests? #f ; tests require network access
4276 #:phases
4277 (modify-phases %standard-phases
4278 (add-after 'unpack 'fix-usr-share-paths&add-data
4279 (lambda* (#:key inputs outputs #:allow-other-keys)
4280 (let ((titles (assoc-ref inputs "openrct2-title-sequences"))
4281 (objects (assoc-ref inputs "openrct2-objects")))
4282 ;; Fix some references to /usr/share.
4283 (substitute* "src/openrct2/platform/Platform.Linux.cpp"
4284 (("/usr/share")
4285 (string-append (assoc-ref %outputs "out") "/share")))
4286 (copy-recursively
4287 (string-append titles "/share/openrct2/title-sequences")
4288 "data/title")
4289 (copy-recursively
4290 (string-append objects "/share/openrct2/objects")
4291 "data/object"))))
4292 (add-before 'configure 'get-rid-of-errors
4293 (lambda _
4294 ;; Don't treat warnings as errors.
4295 (substitute* "CMakeLists.txt"
4296 (("-Werror") ""))
4297 #t)))))
4298 (inputs `(("curl" ,curl)
4299 ("fontconfig" ,fontconfig)
4300 ("freetype" ,freetype)
4301 ("icu4c" ,icu4c)
4302 ("jansson" ,jansson)
4303 ("libpng" ,libpng)
4304 ("libzip" ,libzip)
4305 ("mesa" ,mesa)
4306 ("openrct2-objects" ,openrct2-objects)
4307 ("openrct2-title-sequences" ,openrct2-title-sequences)
4308 ("openssl" ,openssl)
4309 ("sdl2" ,sdl2)
4310 ("speexdsp" ,speexdsp)
4311 ("zlib" ,zlib)))
4312 (native-inputs
4313 `(("pkg-config" ,pkg-config)))
4314 (home-page "https://github.com/OpenRCT2/OpenRCT2")
4315 (synopsis "Free software re-implementation of RollerCoaster Tycoon 2")
4316 (description "OpenRCT2 is a free software re-implementation of
4317 RollerCoaster Tycoon 2 (RCT2). The gameplay revolves around building and
4318 maintaining an amusement park containing attractions, shops and facilities.
4319
4320 Note that this package does @emph{not} provide the game assets (sounds,
4321 images, etc.)")
4322 ;; See <https://github.com/OpenRCT2/OpenRCT2/wiki/Required-RCT2-files>
4323 ;; regarding assets.
4324 (license license:gpl3+)))
4325
4326 (define-public pinball
4327 (package
4328 (name "pinball")
4329 (version "0.3.1")
4330 (source
4331 (origin (method url-fetch)
4332 (uri (string-append "mirror://sourceforge/pinball/pinball/"
4333 "pinball-" version "/"
4334 "pinball-" version ".tar.gz"))
4335 (sha256
4336 (base32
4337 "1f2whlrfidwfh8lvr8cspcyirc6840r5d1ajm7x99qmngygrhixs"))
4338 (patches (search-patches "pinball-const-fix.patch"
4339 "pinball-cstddef.patch"
4340 "pinball-missing-separators.patch"
4341 "pinball-src-deps.patch"
4342 "pinball-system-ltdl.patch"))))
4343 (build-system gnu-build-system)
4344 (inputs
4345 `(("glu" ,glu)
4346 ("mesa" ,mesa)
4347 ("sdl" ,sdl)
4348 ("sdl-image" ,sdl-image)
4349 ("sdl-mixer" ,sdl-mixer)))
4350 (arguments
4351 '(#:configure-flags
4352 (list (string-append "CPPFLAGS=-I"
4353 (assoc-ref %build-inputs "sdl-image")
4354 "/include/SDL -I"
4355 (assoc-ref %build-inputs "sdl-mixer")
4356 "/include/SDL"))))
4357 (home-page "http://pinball.sourceforge.net")
4358 (synopsis "Pinball simulator")
4359 (description "The Emilia Pinball Project is a pinball simulator. There
4360 are only two levels to play with, but they are very addictive.")
4361 (license license:gpl2)))
4362
4363 (define-public pioneers
4364 (package
4365 (name "pioneers")
4366 (version "15.6")
4367 (source (origin
4368 (method url-fetch)
4369 (uri (string-append "https://downloads.sourceforge.net/pio/"
4370 "pioneers-" version ".tar.gz"))
4371 (sha256
4372 (base32
4373 "07b3xdd81n8ybsb4fzc5lx0813y9crzp1hj69khncf4faj48sdcs"))))
4374 (build-system gnu-build-system)
4375 (inputs `(("avahi" ,avahi)
4376 ("gtk+" ,gtk+)
4377 ("librsvg" ,librsvg)))
4378 (native-inputs `(("intltool" ,intltool)
4379 ("itstool" ,itstool)
4380 ("libxml2" ,libxml2)
4381 ("pkg-config" ,pkg-config)))
4382 (synopsis "Board game inspired by The Settlers of Catan")
4383 (description "Pioneers is an emulation of the board game The Settlers of
4384 Catan. It can be played on a local network, on the internet, and with AI
4385 players.")
4386 (home-page "http://pio.sourceforge.net/")
4387 (license license:gpl2+)))
4388
4389 (define-public einstein
4390 (package
4391 (name "einstein")
4392 (version "2.0")
4393 (source (origin
4394 (method url-fetch)
4395 (uri (string-append "mirror://debian/pool/main/e/"
4396 "einstein/einstein_2.0.dfsg.2.orig.tar.gz"))
4397 (sha256
4398 (base32
4399 "1hxrlv6n8py48j487i6wbb4n4vd55w0na69r7ccmmr9vmrsw5mlk"))
4400 (patches (search-patches "einstein-build.patch"))))
4401 (build-system gnu-build-system)
4402 (inputs
4403 `(("freetype" ,freetype)
4404 ("sdl" ,(sdl-union (list sdl sdl-mixer sdl-ttf)))
4405 ("zlib" ,zlib)))
4406 (native-inputs
4407 `(("font-dejavu" ,font-dejavu)))
4408 (arguments
4409 `(#:tests? #f ; no check target
4410 #:phases
4411 (modify-phases %standard-phases
4412 (replace 'configure
4413 (lambda* (#:key outputs inputs #:allow-other-keys)
4414 (let ((out (assoc-ref outputs "out"))
4415 (dejavu (string-append (assoc-ref inputs "font-dejavu")
4416 "/share/fonts/truetype/DejaVuSans.ttf")))
4417 (substitute* "Makefile"
4418 (("PREFIX=/usr/local") (string-append "PREFIX=" out)))
4419 ;; The patch above registers a free font for use by the binary,
4420 ;; but the font is copied during the compile phase into a
4421 ;; resources file, so we need to make the ttf file available.
4422 (symlink dejavu "res/DejaVuSans.ttf")
4423 #t))))))
4424 (synopsis "Logic puzzle game")
4425 (description "The goal of this logic game is to open all cards in a 6x6
4426 grid, using a number of hints as to their relative position. The game idea
4427 is attributed to Albert Einstein.")
4428 ;; The original home page has disappeared.
4429 (home-page (string-append "http://web.archive.org/web/20120521062745/"
4430 "http://games.flowix.com/en/index.html"))
4431 ;; License according to
4432 ;; http://web.archive.org/web/20150222180355/http://www.babichev.info/en/projects/index.html
4433 ;; The source code is a DFSG-sanitized tarball and does not contain any
4434 ;; license information.
4435 (license license:gpl3+)))
4436
4437 (define-public powwow
4438 (package
4439 (name "powwow")
4440 (version "1.2.22")
4441 (source (origin
4442 (method url-fetch)
4443 (uri (string-append
4444 "https://www.hoopajoo.net/static/projects/powwow-"
4445 version ".tar.gz"))
4446 (sha256
4447 (base32
4448 "12i11b8zxg8vdb9d6ims8qy2lmwwr42rcqbwq3vsa1x94s51bcbp"))))
4449 (inputs
4450 `(("ncurses" ,ncurses)))
4451 (build-system gnu-build-system)
4452 (home-page "https://www.hoopajoo.net/projects/powwow.html")
4453 (synopsis "MUD and telnet client")
4454 (description
4455 "POWWOW is a client software which can be used for telnet as well as for
4456 @dfn{Multi-User Dungeon} (MUD). Additionally it can serve as a nice client for
4457 the chat server psyced with the specific config located at
4458 http://lavachat.symlynx.com/unix/")
4459 (license license:gpl2+)))
4460
4461 (define-public red-eclipse
4462 (let ((release "2.0.0")
4463 (revision 0))
4464 (package
4465 (name "red-eclipse")
4466 (version (if (zero? revision)
4467 release
4468 (string-append release "-"
4469 (number->string revision))))
4470 (source
4471 (origin
4472 (method git-fetch)
4473 (uri (git-reference
4474 (url "https://github.com/redeclipse/base")
4475 (commit (string-append "v" release))
4476 (recursive? #t))) ; for game data
4477 (file-name (git-file-name name version))
4478 (sha256
4479 (base32 "0sz0mqhwx8r9n4mk3qrxw420nlsm3y0n48gd0lazgd64lfqjh3ab"))
4480 (modules '((guix build utils)))
4481 (snippet
4482 ;; Remove proprietary libraries and other pre-compiled binaries.
4483 '(begin
4484 (delete-file-recursively "bin")
4485 #t))))
4486 (build-system gnu-build-system)
4487 (arguments
4488 `(#:tests? #f ; no check target
4489 #:make-flags (list "CC=gcc" "-Csrc"
4490 (string-append "INSTDIR="
4491 (assoc-ref %outputs "out") "/bin")
4492 (string-append "prefix="
4493 (assoc-ref %outputs "out")))
4494 #:phases
4495 (modify-phases %standard-phases
4496 (add-after 'unpack 'add-store-data-package-path-as-default
4497 (lambda* (#:key outputs #:allow-other-keys)
4498 (substitute* "src/engine/server.cpp"
4499 (("data = \"data\"")
4500 (string-append "data = \""
4501 (assoc-ref outputs "out")
4502 "/share/redeclipse/data\"")))
4503 #t))
4504 (delete 'configure) ; no configure script
4505 (add-after 'set-paths 'set-sdl-paths
4506 (lambda* (#:key inputs #:allow-other-keys)
4507 (setenv "CPATH"
4508 (string-append (assoc-ref inputs "sdl-union")
4509 "/include/SDL2:"
4510 (or (getenv "CPATH") "")))
4511 #t))
4512 (add-after 'install 'copy-data
4513 (lambda* (#:key outputs #:allow-other-keys)
4514 (let ((out (assoc-ref outputs "out")))
4515 (copy-recursively "config"
4516 (string-append out "/config"))
4517 (copy-file "doc/examples/servinit.cfg"
4518 (string-append out "/config/servinit.cfg"))
4519 (copy-recursively "data"
4520 (string-append out "/share/redeclipse/data"))
4521 (mkdir-p (string-append out "/lib/redeclipse"))
4522 (symlink (string-append out "/share/redeclipse/data")
4523 (string-append out "/lib/redeclipse/data")))
4524 #t))
4525 (add-after 'copy-data 'wrap-program
4526 (lambda* (#:key inputs outputs #:allow-other-keys)
4527 (let* ((out (assoc-ref outputs "out"))
4528 (bin (string-append out "/bin")))
4529 (with-directory-excursion bin
4530 (rename-file "redeclipse_linux"
4531 ".redeclipse_linux-real")
4532 (rename-file "redeclipse_server_linux"
4533 ".redeclipse_server_linux-real")
4534 (call-with-output-file "redeclipse_linux"
4535 (lambda (port)
4536 (format port "#!~a/bin/sh
4537 # Run the thing from its home, otherwise it just bails out.
4538 cd \"~a\"
4539 exec -a \"$0\" ~a/.redeclipse_linux-real~%"
4540 (assoc-ref inputs "bash") ;implicit input
4541 (string-append out)
4542 (string-append bin))))
4543 (call-with-output-file "redeclipse_server_linux"
4544 (lambda (port)
4545 (format port "#!~a/bin/sh
4546 # Run the thing from its home, otherwise it just bails out.
4547 cd \"~a\"
4548 exec -a \"$0\" ~a/.redeclipse_server_linux-real~%"
4549 (assoc-ref inputs "bash") ;implicit input
4550 (string-append out)
4551 (string-append bin))))
4552 (chmod "redeclipse_linux" #o555)
4553 (chmod "redeclipse_server_linux" #o555)))
4554 #t)))))
4555 (native-inputs
4556 `(("pkg-config" ,pkg-config)))
4557 (inputs
4558 `(("curl" ,curl)
4559 ("freetype" ,freetype)
4560 ("glu" ,glu)
4561 ("sdl-union" ,(sdl-union (list sdl2
4562 sdl2-image
4563 sdl2-mixer)))))
4564 (home-page "https://redeclipse.net/")
4565 (synopsis "Arena shooter derived from the Cube 2 engine")
4566 (description
4567 "Red Eclipse is an arena shooter, created from the Cube2 engine.
4568 Offering an innovative parkour system and distinct but all potent weapons,
4569 Red Eclipse provides fast paced and accessible gameplay.")
4570 ;; The engine is under Zlib; data files are covered by the other
4571 ;; licenses. More details at file:///doc/all-licenses.txt.
4572 (license (list license:expat
4573 license:zlib
4574 license:cc-by-sa4.0
4575 license:cc-by-sa3.0
4576 license:cc-by3.0
4577 license:cc0
4578 license:public-domain
4579 license:silofl1.1)))))
4580
4581 (define-public grue-hunter
4582 (package
4583 (name "grue-hunter")
4584 (version "1.0")
4585 (source (origin
4586 (method url-fetch)
4587 (uri (string-append "https://jxself.org/grue-hunter.tar.gz"))
4588 (sha256
4589 (base32
4590 "1hjcpy5439qs3v2zykis7hsi0i17zjs62gks3zd8mnfw9ni4i2h3"))))
4591 (build-system trivial-build-system) ; no Makefile.PL
4592 (arguments `(#:modules ((guix build utils))
4593 #:builder
4594 (begin
4595 (use-modules (guix build utils))
4596 (use-modules (srfi srfi-1))
4597
4598 (let* ((tarball (assoc-ref %build-inputs "tarball"))
4599 (perl (string-append (assoc-ref %build-inputs
4600 "perl")
4601 "/bin"))
4602 (gzip (string-append (assoc-ref %build-inputs
4603 "gzip")
4604 "/bin/gzip"))
4605 (tar (string-append (assoc-ref %build-inputs
4606 "tar")
4607 "/bin/tar"))
4608 (out (assoc-ref %outputs "out"))
4609 (bin (string-append out "/bin"))
4610 (doc (string-append out
4611 "/share/doc/grue-hunter")))
4612 (copy-file tarball "grue-hunter.tar.gz")
4613 (invoke gzip "-d" "grue-hunter.tar.gz")
4614 (invoke tar "xvf" "grue-hunter.tar")
4615
4616 (mkdir-p bin)
4617 (copy-file "grue-hunter/gh.pl"
4618 (string-append bin "/grue-hunter"))
4619 (patch-shebang (string-append bin "/grue-hunter")
4620 (list perl))
4621
4622 (install-file "grue-hunter/AGPLv3.txt" doc)
4623
4624 #t))))
4625 (inputs `(("perl" ,perl)
4626 ("tar" ,tar)
4627 ("gzip" ,gzip)
4628 ("tarball" ,source)))
4629 (home-page "https://jxself.org/grue-hunter.shtml")
4630 (synopsis "Text adventure game")
4631 (description
4632 "Grue Hunter is a text adventure game written in Perl. You must make
4633 your way through an underground cave system in search of the Grue. Can you
4634 capture it and get out alive?")
4635 (license license:agpl3+)))
4636
4637 (define-public lierolibre
4638 (package
4639 (name "lierolibre")
4640 (version "0.5")
4641 (source (origin
4642 (method url-fetch)
4643 (uri (string-append "https://launchpad.net/lierolibre/trunk/"
4644 version "/+download/lierolibre-"
4645 version ".tar.xz"))
4646 (sha256
4647 (base32
4648 "1cf1gvsn4qq190lrf9k5bpjnqwlcfw7pajvdnh7z5r4jqw0rsbl9"))
4649 (patches
4650 (search-patches "lierolibre-check-unaligned-access.patch"
4651 "lierolibre-try-building-other-arch.patch"
4652 "lierolibre-remove-arch-warning.patch"
4653 "lierolibre-newer-libconfig.patch"
4654 "lierolibre-is-free-software.patch"))
4655 (modules '((guix build utils)))
4656 (snippet
4657 '(begin
4658 ;; Delete pre-compiled files.
4659 (delete-file "data/LIERO.CHR")
4660 (delete-file "data/LIERO.SND")
4661 #t))))
4662 (build-system gnu-build-system)
4663 (native-inputs
4664 `(("imagemagick" ,imagemagick)
4665 ("pkg-config" ,pkg-config)
4666 ("util-linux" ,util-linux)
4667 ("sox" ,sox)))
4668 (inputs
4669 `(("boost" ,boost)
4670 ("libconfig" ,libconfig)
4671 ("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer)))
4672 ("zlib" ,zlib)))
4673 (home-page "https://gitlab.com/lierolibre/lierolibre")
4674 (synopsis "Old-school earthworm action game")
4675 (description
4676 "lierolibre is an earthworm action game where you fight another player
4677 (or the computer) underground using a wide array of weapons.
4678
4679 Features:
4680 @itemize
4681 @item 2 worms, 40 weapons, great playability, two game modes: Kill'em All
4682 and Game of Tag, plus AI-players without true intelligence!
4683 @item Dat nostalgia.
4684 @item Extensions via a hidden F1 menu:
4685 @itemize
4686 @item Replays
4687 @item Game controller support
4688 @item Powerlevel palettes
4689 @end itemize
4690 @item Ability to write game variables to plain text files.
4691 @item Ability to load game variables from both EXE and plain text files.
4692 @item Scripts to extract and repack graphics, sounds and levels.
4693 @end itemize
4694
4695 To switch between different window sizes, use F6, F7 and F8, to switch to
4696 fullscreen, use F5 or Alt+Enter.")
4697 ;; Code mainly BSD-2, some parts under Boost 1.0. All assets are WTFPL2.
4698 (license (list license:bsd-2 license:boost1.0 license:wtfpl2))))
4699
4700 (define-public tennix
4701 (package
4702 (name "tennix")
4703 (version "1.3.1")
4704 (source
4705 (origin
4706 (method git-fetch)
4707 (uri (git-reference
4708 (url "https://repo.or.cz/tennix.git")
4709 (commit (string-append "tennix-" version))))
4710 (file-name (git-file-name name version))
4711 (sha256
4712 (base32 "02cj4lrdrisal5s9pnbf2smx7qz9czczjzndfkhfx0qy67b957sk"))
4713 ;; Remove non-free images.
4714 (modules '((guix build utils)))
4715 (snippet
4716 '(begin
4717 (for-each delete-file
4718 '("data/loc_training_camp.png"
4719 "data/loc_austrian_open.png"
4720 "data/loc_olympic_green_tennis.png"))
4721 #t))))
4722 (build-system gnu-build-system)
4723 (arguments
4724 `(#:tests? #f ;no test
4725 #:phases
4726 (modify-phases %standard-phases
4727 (add-after 'unpack 'fix-include
4728 (lambda _
4729 (substitute* '("src/graphics.h" "src/sound.h")
4730 (("#include \"(SDL_(image|ttf|mixer)\\.h)\"" _ header)
4731 (string-append "#include \"SDL/" header "\"")))
4732 (substitute* '("src/tennix.h" "src/network.h" "src/SDL_rotozoom.h")
4733 (("#include <SDL.h>") "#include <SDL/SDL.h>")
4734 (("#include <SDL_net.h>") "#include <SDL/SDL_net.h>"))
4735 #t))
4736 (add-after 'unpack 'locate-install
4737 ;; Build process cannot expand "$(INSTALL)" in Makefile.
4738 (lambda _
4739 (substitute* "makefile"
4740 (("^CONFIGURE_OUTPUT :=.*" all)
4741 (string-append "INSTALL := install -c\n" all)))
4742 #t))
4743 (replace 'configure
4744 ;; The "configure" script is picky about the arguments it
4745 ;; gets. Call it ourselves.
4746 (lambda _
4747 (invoke "./configure" "--prefix" (assoc-ref %outputs "out")))))))
4748 (native-inputs
4749 `(("which" ,which)))
4750 (inputs
4751 `(("python" ,python-wrapper)
4752 ("sdl" ,(sdl-union (list sdl sdl-image sdl-mixer sdl-ttf sdl-net)))))
4753 (home-page "http://icculus.org/tennix/")
4754 (synopsis "Play tennis against the computer or a friend")
4755 (description "Tennix is a 2D tennis game. You can play against the
4756 computer or against another player using the keyboard. The game runs
4757 in-window at 640x480 resolution or fullscreen.")
4758 ;; Project is licensed under GPL2+ terms. It includes images
4759 ;; released under Public Domain terms, and SDL_rotozoom, released
4760 ;; under LGPL2.1 terms.
4761 (license (list license:gpl2+ license:public-domain license:lgpl2.1))))
4762
4763 (define-public warzone2100
4764 (package
4765 (name "warzone2100")
4766 (version "3.4.1")
4767 (source
4768 (origin
4769 (method url-fetch)
4770 (uri (string-append "mirror://sourceforge/warzone2100/releases/"
4771 version
4772 "/warzone2100_src.tar.xz"))
4773 (sha256
4774 (base32 "0savalmw1kp1sf8vg5aqrl5hc77p4jacxy5y9qj8k2hi2vqdfb7a"))
4775 (modules '((guix build utils)))
4776 (snippet
4777 '(begin
4778 (with-directory-excursion "3rdparty"
4779 (for-each
4780 delete-file-recursively
4781 '("discord-rpc"
4782 "miniupnp"
4783 "utfcpp")))
4784 #t))))
4785 (build-system cmake-build-system)
4786 (arguments
4787 `(#:configure-flags '("-DWZ_DISTRIBUTOR=Guix"
4788 "-DENABLE_DISCORD=off")
4789 #:tests? #f ; TODO: Tests seem to be broken, configure.ac is missing.
4790 #:phases
4791 (modify-phases %standard-phases
4792 (add-after 'unpack 'fix-utfcpp-include
4793 (lambda _
4794 (substitute* "lib/framework/wzstring.cpp"
4795 (("<utfcpp/source/utf8.h>") "<utf8.h>"))
4796 #t))
4797 (add-after 'unpack 'link-tests-with-qt
4798 (lambda _
4799 (substitute* "tests/Makefile.am"
4800 (("(framework_linktest_LDADD|maptest_LDADD) = " prefix)
4801 (string-append prefix "$(QT5_LIBS) ")))
4802 #t))
4803 (add-after 'unpack 'fix-ivis-linktest
4804 (lambda _
4805 (substitute* "tests/ivis_linktest.cpp"
4806 (("iV_DrawTextRotated.*;")
4807 (string-append "iV_DrawTextRotated(\"Press ESC to exit.\", "
4808 "100, 100, 0.0f, font_regular);")))
4809 #t)))))
4810 (native-inputs `(("asciidoc" ,asciidoc)
4811 ("asciidoctor" ,ruby-asciidoctor)
4812 ("gettext" ,gettext-minimal)
4813 ("pkg-config" ,pkg-config)
4814 ("unzip" ,unzip)
4815 ;; 7z is used to create .zip archive, not `zip' as in version 3.2.*.
4816 ("p7zip" ,p7zip)))
4817 (inputs `(("curl" ,curl)
4818 ("fontconfig" ,fontconfig)
4819 ("freetype" ,freetype)
4820 ("glew" ,glew)
4821 ("harfbuzz" ,harfbuzz)
4822 ("libtheora" ,libtheora)
4823 ("libvorbis" ,libvorbis)
4824 ("libxrandr" ,libxrandr)
4825 ("libsodium" ,libsodium)
4826 ("miniupnpc" ,miniupnpc)
4827 ("openal" ,openal)
4828 ("physfs" ,physfs)
4829 ("qtbase" ,qtbase)
4830 ("qtscript" ,qtscript)
4831 ("openssl" ,openssl)
4832 ("sdl2" ,sdl2)
4833 ("utfcpp" ,utfcpp)))
4834 (home-page "https://wz2100.net")
4835 (synopsis "3D Real-time strategy and real-time tactics game")
4836 (description
4837 "Warzone 2100 offers campaign, multi-player, and single-player skirmish
4838 modes. An extensive tech tree with over 400 different technologies, combined
4839 with the unit design system, allows for a wide variety of possible units and
4840 tactics.")
4841 ;; Everything is GPLv2+ unless otherwise specified in COPYING.NONGPL
4842 (license (list license:bsd-3
4843 license:cc0
4844 license:cc-by-sa3.0
4845 license:expat
4846 license:gpl2+
4847 license:lgpl2.1+))))
4848
4849 (define-public widelands
4850 (package
4851 (name "widelands")
4852 (version "21")
4853 (source
4854 (origin
4855 (method url-fetch)
4856 (uri (string-append "https://launchpad.net/widelands/"
4857 "build" version "/build" version "/+download/"
4858 "widelands-build" version "-source.tar.gz"))
4859 (sha256
4860 (base32 "0mz3jily0w1zxxqbnkqrp6hl88xhrwzbil9crq7gpcwidx60w7k0"))
4861 (modules '((guix build utils)))
4862 (snippet
4863 '(begin
4864 (delete-file-recursively "src/third_party/minizip")
4865 #t))
4866 (patches
4867 ;; Use system Minizip. Patch is provided by Debian, and discussed
4868 ;; upstream at <https://github.com/widelands/widelands/issues/399>.
4869 (search-patches "widelands-system-wide_minizip.patch"))))
4870 (build-system cmake-build-system)
4871 (arguments
4872 `(#:configure-flags
4873 (let* ((out (assoc-ref %outputs "out"))
4874 (share (string-append out "/share")))
4875 (list (string-append "-DCMAKE_INSTALL_PREFIX=" out "/bin")
4876 (string-append "-DWL_INSTALL_BASEDIR=" share "/widelands")
4877 (string-append "-DWL_INSTALL_DATADIR=" share "/widelands")
4878 "-DOPTION_BUILD_WEBSITE_TOOLS=OFF"
4879 ;; CMakeLists.txt does not handle properly RelWithDebInfo build
4880 ;; type. When used, no game data is installed!
4881 "-DCMAKE_BUILD_TYPE=Release"))
4882 #:phases
4883 (modify-phases %standard-phases
4884 (add-after 'unpack 'unbundle-fonts
4885 ;; Unbundle fonts already packaged in Guix. XXX: missing fonts are
4886 ;; amiri, Culmus, mmrCensus, Nakula, and Sinhala.
4887 (lambda* (#:key inputs #:allow-other-keys)
4888 (with-directory-excursion "data/i18n/fonts"
4889 (for-each (lambda (font)
4890 (delete-file-recursively font)
4891 (symlink (string-append (assoc-ref inputs font)
4892 "/share/fonts/truetype")
4893 font))
4894 '("DejaVu" "MicroHei")))
4895 #t)))))
4896 (native-inputs
4897 `(("gettext" ,gettext-minimal)
4898 ("python" ,python-wrapper)))
4899 (inputs
4900 `(("boost" ,boost)
4901 ("glew" ,glew)
4902 ("icu4c" ,icu4c)
4903 ("libpng" ,libpng)
4904 ("minizip" ,minizip)
4905 ("sdl" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer sdl2-ttf)))
4906 ("zlib" ,zlib)
4907 ;; Fonts for the ‘unbundle-fonts’ phase. Case matters in name!
4908 ("DejaVu" ,font-dejavu)
4909 ("MicroHei" ,font-wqy-microhei)))
4910 (home-page "https://www.widelands.org/")
4911 (synopsis "Fantasy real-time strategy game")
4912 (description
4913 "In Widelands, you are the regent of a small clan. You start out with
4914 nothing but your headquarters, where all your resources are stored.
4915
4916 In the course of the game, you will build an ever growing settlement. Every
4917 member of your clan will do his or her part to produce more resources---wood,
4918 food, iron, gold and more---to further this growth. The economic network is
4919 complex and different in the four tribes (Barbarians, Empire, Atlanteans, and
4920 Frisians).
4921
4922 As you are not alone in the world, you will meet other clans sooner or later.
4923 Some of them may be friendly and you may eventually trade with them. However,
4924 if you want to rule the world, you will have to train soldiers and fight.
4925
4926 Widelands offers single-player mode with different campaigns; the campaigns
4927 all tell stories of tribes and their struggle in the Widelands universe!
4928 However, settling really starts when you unite with friends over the Internet
4929 or LAN to build up new empires together---or to crush each other in the dusts
4930 of war. Widelands also offers an Artificial Intelligence to challenge you.")
4931 ;; Game is released as GPL2+. Some parts, e.g., art, are released under
4932 ;; different licenses.
4933 (license (list license:gpl2+
4934 license:expat ;src/third_party/eris
4935 license:silofl1.1 ;Widelands.ttf
4936 license:cc-by-sa3.0)))) ;some music files
4937
4938 (define-public starfighter
4939 (package
4940 (name "starfighter")
4941 (version "2.3.3")
4942 (source (origin
4943 (method url-fetch)
4944 (uri (string-append
4945 "https://github.com/pr-starfighter/starfighter/releases"
4946 "/download/v" version "/starfighter-"
4947 version "-src.tar.gz"))
4948 (sha256
4949 (base32
4950 "0jz2lgvmp299nks6ajg2yxbx4xcaxlc4cpfr61861p7m7z2nv84y"))))
4951 (build-system gnu-build-system)
4952 (native-inputs
4953 `(("pkg-config" ,pkg-config)))
4954 (inputs
4955 `(("pango" ,pango)
4956 ("sdl2" ,sdl2)
4957 ("sdl2-image" ,sdl2-image)
4958 ("sdl2-mixer" ,sdl2-mixer)
4959 ("sdl2-ttf" ,sdl2-ttf)))
4960 (home-page "https://pr-starfighter.github.io/")
4961 (synopsis "2D scrolling shooter game")
4962 (description
4963 "In the year 2579, the intergalactic weapons corporation, WEAPCO, has
4964 dominated the galaxy. Guide Chris Bainfield and his friend Sid Wilson on
4965 their quest to liberate the galaxy from the clutches of WEAPCO. Along the
4966 way, you will encounter new foes, make new allies, and assist local rebels
4967 in strikes against the evil corporation.")
4968 ;; gfx and music are under CC-BY 3.0, CC-BY-SA 3.0, CC0 or Public Domain.
4969 (license (list license:gpl3+
4970 license:cc-by3.0
4971 license:cc-by-sa3.0
4972 license:cc0
4973 license:public-domain))))
4974
4975 (define-public chromium-bsu
4976 (package
4977 (name "chromium-bsu")
4978 (version "0.9.16.1")
4979 (source (origin
4980 (method url-fetch)
4981 (uri (string-append "mirror://sourceforge/chromium-bsu"
4982 "/Chromium B.S.U. source code/"
4983 "chromium-bsu-" version ".tar.gz"))
4984 (sha256
4985 (base32
4986 "0jk2w5b6s6nkzri585bbz16cif2fhqcnl5l1mq3rd98r9nil3hd1"))))
4987 (build-system gnu-build-system)
4988 (native-inputs `(("pkg-config" ,pkg-config)))
4989 (inputs `(("gettext" ,gettext-minimal)
4990 ("glu" ,glu)
4991 ("quesoglc" ,quesoglc)
4992 ("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer)))))
4993 (home-page "http://chromium-bsu.sourceforge.net/")
4994 (synopsis "Fast-paced, arcade-style, top-scrolling space shooter")
4995 (description
4996 "In this game you are the captain of the cargo ship Chromium B.S.U. and
4997 are responsible for delivering supplies to the troops on the front line. Your
4998 ship has a small fleet of robotic fighters which you control from the relative
4999 safety of the Chromium vessel.")
5000 ;; Clarified Artistic License for everything but sound, which is covered
5001 ;; by the Expat License.
5002 (license (list license:clarified-artistic license:expat))))
5003
5004 (define-public tuxpaint
5005 (package
5006 (name "tuxpaint")
5007 (version "0.9.23") ;keep VER_DATE below in sync
5008 (source
5009 (origin
5010 (method url-fetch)
5011 (uri (string-append "mirror://sourceforge/tuxpaint/tuxpaint/"
5012 version "/tuxpaint-" version ".tar.gz"))
5013 (sha256
5014 (base32
5015 "09k9pxi88r3dx6dyjwf9h85d4qpva4i29qz63dc558hg9v21k69l"))
5016 (modules '((guix build utils)))
5017 (snippet
5018 '(begin
5019 ;; Remove win32 directory which contains binary dll's and the
5020 ;; deprecated visualc directory.
5021 (for-each delete-file-recursively '("win32" "visualc"))
5022 (substitute* "Makefile"
5023 ;; Do not rely on $(GPERF) being an absolute file name
5024 (("\\[ -x \\$\\(GPERF\\) \\]")
5025 "$(GPERF) --version >/dev/null 2>&1"))
5026 #t))
5027 (patches (search-patches "tuxpaint-stamps-path.patch"))))
5028 (build-system gnu-build-system)
5029 (native-inputs
5030 `(("gperf" ,gperf)
5031 ("pkg-config" ,pkg-config)))
5032 (inputs
5033 `(("cairo" ,cairo)
5034 ("fribidi" ,fribidi)
5035 ("gettext" ,gettext-minimal)
5036 ("libpng" ,libpng)
5037 ("librsvg" ,librsvg)
5038 ("libpaper" ,libpaper)
5039 ("netpbm" ,netpbm)
5040 ("sdl" ,(sdl-union (list sdl sdl-mixer sdl-ttf sdl-image)))))
5041 ;; TODO: Use system fonts rather than those in data/fonts
5042 (arguments
5043 `(#:make-flags `("VER_DATE=2018-09-02"
5044 "GPERF=gperf" "CC=gcc"
5045 "SDL_PCNAME=sdl SDL_image SDL_mixer SDL_ttf"
5046 ,(string-append "PREFIX=" %output)
5047 "KDE_PREFIX=$(PREFIX)/share/applications"
5048 "KDE_ICON_PREFIX=$(PREFIX)/share/icons/"
5049 "COMPLETIONDIR=$(PREFIX)/etc/bash_completion.d")
5050 #:parallel-build? #f ;fails on some systems
5051 #:tests? #f ;No tests
5052 #:phases (modify-phases %standard-phases
5053 (delete 'configure) ;no configure phase
5054 (add-before 'install 'no-sys-cache
5055 (lambda _ ;do not rebuild system conf cache
5056 (substitute* "Makefile"
5057 (("kbuildsycoca4") ""))
5058 #t))
5059 (add-after 'install 'fix-import
5060 (lambda* (#:key inputs outputs #:allow-other-keys)
5061 (let* ((out (assoc-ref outputs "out"))
5062 (net (assoc-ref inputs "netpbm"))
5063 (tpi (string-append out "/bin/tuxpaint-import")))
5064 (substitute* tpi
5065 ;; Point to installation prefix so that the default
5066 ;; configure file is found.
5067 (("/usr/local") out))
5068 ;; tuxpaint-import uses a bunch of programs from
5069 ;; netpbm, so make sure it knows where those are
5070 (wrap-program tpi
5071 `("PATH" ":" prefix
5072 (,(string-append net "/bin"))))))))))
5073 (native-search-paths
5074 (list (search-path-specification
5075 (variable "TUXPAINT_STAMPS_PATH")
5076 (files '("share/tuxpaint/stamps")))))
5077 (home-page "http://www.tuxpaint.org")
5078 (synopsis "Drawing software for children")
5079 (description
5080 "Tux Paint is a free drawing program designed for young children (kids
5081 ages 3 and up). It has a simple, easy-to-use interface; fun sound effects;
5082 and an encouraging cartoon mascot who helps guide children as they use the
5083 program. It provides a blank canvas and a variety of drawing tools to help
5084 your child be creative.")
5085 (license license:gpl2+)))
5086
5087 (define-public tuxpaint-stamps
5088 (package
5089 (name "tuxpaint-stamps")
5090 (version "2018.09.01")
5091 (source
5092 (origin
5093 (method url-fetch)
5094 (uri (string-append "mirror://sourceforge/tuxpaint/tuxpaint-stamps/"
5095 (string-map (λ (x) (if (eq? x #\.) #\- x)) version)
5096 "/tuxpaint-stamps-" version ".tar.gz"))
5097 (sha256
5098 (base32
5099 "1skr23k27yj3vgwfazpzxp90lb2a278gxrkr3bxw7az6zpkmb3yp"))))
5100 (build-system trivial-build-system)
5101 (native-inputs
5102 `(("tar" ,tar)
5103 ("gzip" ,gzip)))
5104 (arguments
5105 `(#:modules ((guix build utils))
5106 #:builder (begin
5107 (use-modules (guix build utils))
5108 (setenv "PATH"
5109 (string-append
5110 (assoc-ref %build-inputs "tar") "/bin" ":"
5111 (assoc-ref %build-inputs "gzip") "/bin"))
5112 (invoke "tar" "xvf" (assoc-ref %build-inputs "source"))
5113 (chdir (string-append ,name "-" ,version))
5114 (let ((dir (string-append %output "/share/tuxpaint/stamps")))
5115 (mkdir-p dir)
5116 (copy-recursively "stamps" dir))
5117 #t)))
5118 (home-page (package-home-page tuxpaint))
5119 (synopsis "Stamp images for Tux Paint")
5120 (description
5121 "This package contains a set of \"Rubber Stamp\" images which can be used
5122 with the \"Stamp\" tool within Tux Paint.")
5123 (license license:gpl2+)))
5124
5125 (define-public tuxpaint-config
5126 (package
5127 (name "tuxpaint-config")
5128 (version "0.0.14") ;keep VER_DATE below in sync
5129 (source
5130 (origin
5131 (method url-fetch)
5132 (uri (string-append "mirror://sourceforge/tuxpaint/tuxpaint-config/"
5133 version "/tuxpaint-config-" version ".tar.gz"))
5134 (sha256
5135 (base32
5136 "0zkgxk436nqcp43zghkfmh397c7dvh5bwn2as7gwvv208bzyij6g"))))
5137 (build-system gnu-build-system)
5138 (native-inputs
5139 `(("gettext" ,gettext-minimal)))
5140 (inputs
5141 `(("fltk" ,fltk)
5142 ("libpaper" ,libpaper)
5143 ;; TODO: Should the following be propagated by fltk?
5144 ("libx11" ,libx11)
5145 ("libxft" ,libxft)
5146 ("mesa" ,mesa)))
5147 (arguments
5148 `(#:make-flags `("VER_DATE=2018-09-01"
5149 "CONFDIR=/etc/tuxpaint" ;don't write to store
5150 ,(string-append "PREFIX=" %output)
5151 "GNOME_PREFIX=$(PREFIX)")
5152 #:parallel-build? #f ;race conditions
5153 #:tests? #f ;no tests
5154 #:phases (modify-phases %standard-phases
5155 (delete 'configure) ;no configure phase
5156 (add-before 'install 'gzip-no-name
5157 (lambda* _
5158 (substitute* "Makefile"
5159 ;; tuxpaint-config compresses its own documentation;
5160 ;; make sure it uses flags for reproducibility.
5161 (("gzip") "gzip --no-name"))))
5162 (add-before 'install 'make-install-dirs
5163 (lambda* (#:key outputs #:allow-other-keys)
5164 (let ((out (assoc-ref outputs "out")))
5165 (mkdir-p (string-append out "/bin"))
5166 #t))))))
5167 (home-page (package-home-page tuxpaint))
5168 (synopsis "Configure Tux Paint")
5169 (description
5170 "Tux Paint Config is a graphical configuration editor for Tux Paint.")
5171 (license license:gpl2))) ;no "or later" present
5172
5173 (define-public supertux
5174 (package
5175 (name "supertux")
5176 (version "0.6.2")
5177 (source (origin
5178 (method url-fetch)
5179 (uri (string-append "https://github.com/SuperTux/supertux/"
5180 "releases/download/v" version "/SuperTux-v"
5181 version "-Source.tar.gz"))
5182 (file-name (string-append name "-" version ".tar.gz"))
5183 (sha256
5184 (base32
5185 "167m3z4m8n76dvbv42m1fnvabpbpsxvr28zk9641916jl9pfba96"))
5186 (patches
5187 (search-patches "supertux-unbundle-squirrel.patch"))))
5188 (arguments
5189 '(#:tests? #f
5190 #:configure-flags '("-DINSTALL_SUBDIR_BIN=bin"
5191 "-DUSE_SYSTEM_PHYSFS=ON")
5192 #:phases
5193 (modify-phases %standard-phases
5194 (add-after 'unpack 'patch-squirrel-path
5195 (lambda* (#:key inputs #:allow-other-keys)
5196 (let ((squirrel (assoc-ref inputs "squirrel")))
5197 (substitute* "CMakeLists.txt"
5198 (("set\\(SQUIRREL_PREFIX.*")
5199 (string-append "set(SQUIRREL_PREFIX " squirrel ")"))
5200 (("add_dependencies\\(supertux2_lib squirrel\\)") "")
5201 (("\\$\\{SQUIRREL_PREFIX\\}/include")
5202 (string-append "${SQUIRREL_PREFIX}/include/squirrel"))))
5203 #t)))))
5204 (build-system cmake-build-system)
5205 (inputs `(("sdl2" ,sdl2)
5206 ("sdl2-image" ,sdl2-image)
5207 ("sdl2-mixer" ,sdl2-mixer)
5208 ("openal" ,openal)
5209 ("mesa" ,mesa)
5210 ("glew" ,glew)
5211 ("libvorbis" ,libvorbis)
5212 ("libogg" ,libogg)
5213 ("physfs" ,physfs)
5214 ("curl" ,curl)
5215 ("boost" ,boost)
5216 ("freetype" ,freetype)
5217 ("squirrel" ,squirrel)))
5218 (native-inputs
5219 `(("pkg-config" ,pkg-config)))
5220 (synopsis "2D platformer game")
5221 (description "SuperTux is a classic 2D jump'n run sidescroller game in
5222 a style similar to the original Super Mario games.")
5223 (home-page "https://supertux.org/")
5224 (license license:gpl3+)))
5225
5226 (define-public tintin++
5227 (package
5228 (name "tintin++")
5229 (version "2.02.05")
5230 (source
5231 (origin
5232 (method url-fetch)
5233 (uri (string-append "mirror://sourceforge/tintin/TinTin++ Source Code/"
5234 (string-drop-right version 1)
5235 "/tintin-" version ".tar.gz"))
5236 (sha256
5237 (base32 "18fm9ga08mxqmblahmnlzwnl387i8mbkj4n0gffxc91d299019v3"))))
5238 (inputs
5239 `(("gnutls" ,gnutls)
5240 ("pcre" ,pcre)
5241 ("readline" ,readline)
5242 ("zlib" ,zlib)))
5243 (arguments
5244 '(#:tests? #f ; no test suite
5245 #:phases
5246 (modify-phases %standard-phases
5247 ;; The source is in tt/src.
5248 (add-before 'configure 'chdir
5249 (lambda _
5250 (chdir "src")
5251 #t)))))
5252 (build-system gnu-build-system)
5253 (home-page "https://tintin.mudhalla.net/")
5254 (synopsis "MUD client")
5255 (description
5256 "TinTin++ is a MUD client which supports MCCP (Mud Client Compression
5257 Protocol), MMCP (Mud Master Chat Protocol), xterm 256 colors, most TELNET
5258 options used by MUDs, as well as those required to login via telnet on
5259 Linux / Mac OS X servers, and an auto mapper with a VT100 map display.")
5260 (license license:gpl3+)))
5261
5262 (define-public laby
5263 (package
5264 (name "laby")
5265 (version "0.7.0")
5266 (source
5267 (origin (method git-fetch)
5268 (uri (git-reference
5269 (url "https://github.com/sgimenez/laby")
5270 (commit (string-append name "-" version))))
5271 (file-name (git-file-name name version))
5272 (sha256
5273 (base32
5274 "1y6nfxcjhqg9bb81hs0wijg7kcwk5kff81rgd8bsv5ps7ia9nj6b"))
5275 (patches (search-patches "laby-make-install.patch"))))
5276 (build-system gnu-build-system)
5277 (inputs
5278 `(("lablgtk" ,lablgtk)
5279 ("ocaml" ,ocaml)
5280 ("ocaml-findlib" ,ocaml-findlib)
5281 ("ocamlbuild" ,ocamlbuild)))
5282 (arguments
5283 '(#:phases
5284 (modify-phases %standard-phases
5285 (delete 'configure)
5286 (add-before 'build 'allow-unsafe-strings
5287 ;; Fix a build failure with ocaml >=4.06.0.
5288 ;; See <https://github.com/sgimenez/laby/issues/53>.
5289 (lambda _
5290 (setenv "OCAMLPARAM" "safe-string=0,_")
5291 #t))
5292 (add-before 'build 'set-library-path
5293 (lambda* (#:key inputs #:allow-other-keys)
5294 (let ((lablgtk (assoc-ref inputs "lablgtk")))
5295 (setenv "LD_LIBRARY_PATH"
5296 (string-append lablgtk "/lib/ocaml/stublibs"))))))
5297 #:tests? #f ; no 'check' target
5298 #:make-flags
5299 (list (string-append "PREFIX=" (assoc-ref %outputs "out")) "all")))
5300 (home-page "https://sgimenez.github.io/laby/")
5301 (synopsis "Programming game")
5302 (description "Learn programming, playing with ants and spider webs ;-)
5303 Your robot ant can be programmed in many languages: OCaml, Python, C, C++,
5304 Java, Ruby, Lua, JavaScript, Pascal, Perl, Scheme, Vala, Prolog. Experienced
5305 programmers may also add their own favorite language.")
5306 (license license:gpl3+)))
5307
5308 (define-public bambam
5309 (package
5310 (name "bambam")
5311 (version "1.0.0")
5312 (source
5313 (origin
5314 (method git-fetch)
5315 (uri (git-reference
5316 (url "https://github.com/porridge/bambam")
5317 (commit (string-append "v" version))))
5318 (file-name (git-file-name name version))
5319 (sha256
5320 (base32 "18cwd1wpyyx8y61cags9bkdhx9x858xicc4y1c9c2s0xjmgzhl3i"))))
5321 (build-system python-build-system)
5322 (arguments
5323 `(#:tests? #f ; no tests
5324 #:phases
5325 (modify-phases %standard-phases
5326 (delete 'build) ; nothing to build
5327 (replace 'install
5328 (lambda* (#:key outputs #:allow-other-keys)
5329 (let* ((out (assoc-ref outputs "out"))
5330 (bin (string-append out "/bin"))
5331 (share (string-append out "/share")))
5332 (mkdir-p bin)
5333 (copy-file "bambam.py" (string-append bin "/bambam"))
5334 (install-file "bambam.6" (string-append share "/man/man6"))
5335 (copy-recursively "data" (string-append share "/bambam/data")))
5336 #t)))))
5337 (inputs
5338 `(("python-pygame" ,python-pygame)))
5339 (home-page "https://github.com/porridge/bambam")
5340 (synopsis "Keyboard mashing and doodling game for babies")
5341 (description "Bambam is a simple baby keyboard (and gamepad) masher
5342 application that locks the keyboard and mouse and instead displays bright
5343 colors, pictures, and sounds.")
5344 (license license:gpl3+)))
5345
5346 (define-public mrrescue
5347 (package
5348 (name "mrrescue")
5349 (version "1.02e")
5350 (source (origin
5351 (method url-fetch)
5352 (uri (string-append
5353 "https://github.com/SimonLarsen/mrrescue/releases/"
5354 "download/" version "/mrrescue" version ".love"))
5355 (file-name (string-append name "-" version ".love"))
5356 (sha256
5357 (base32
5358 "0jwzbwkgp1l5ia6c7s760gmdirbsncp6nfqp7vqdqsfb63la9gl2"))))
5359 (build-system trivial-build-system)
5360 (arguments
5361 `(#:modules ((guix build utils))
5362 #:builder
5363 (begin
5364 (use-modules (guix build utils))
5365 (let* ((out (assoc-ref %outputs "out"))
5366 (script (string-append out "/bin/" ,name))
5367 (data (string-append out "/share/" ,name))
5368 (source (assoc-ref %build-inputs "source"))
5369 (unzip (string-append (assoc-ref %build-inputs "unzip")
5370 "/bin/unzip"))
5371 (patch (string-append (assoc-ref %build-inputs "patch")
5372 "/bin/patch"))
5373 (bash (string-append (assoc-ref %build-inputs "bash")
5374 "/bin/bash"))
5375 (love (string-append (assoc-ref %build-inputs "love")
5376 "/bin/love")))
5377
5378 (mkdir-p (dirname script))
5379 (with-output-to-file script
5380 (lambda ()
5381 (format #t "#!~a~%" bash)
5382 (format #t "exec -a ~a \"~a\" \"~a\"~%" ,name love data)))
5383 (chmod script #o755)
5384
5385 ;; The better way to package this game would be to install *only* the
5386 ;; script above, pointing to the unextracted .love file in the store.
5387 ;; However, mrrescue 1.02e needs to be patched to work with Love 11.
5388 ;; Instead of extracting the .love file, patching it, and re-zipping
5389 ;; it to the store, simply point the script to the extracted patched
5390 ;; data directory directly.
5391 (mkdir-p data)
5392 (with-directory-excursion data
5393 (invoke unzip source)
5394 (invoke patch "-p1" "-i"
5395 (assoc-ref %build-inputs "love-11.patch")))
5396 #t))))
5397 (native-inputs
5398 `(("unzip" ,unzip)
5399 ("patch" ,patch)
5400 ("love-11.patch" ,(search-patch "mrrescue-support-love-11.patch"))))
5401 (inputs
5402 `(("bash" ,bash)
5403 ("love" ,love)))
5404 (home-page "https://tangramgames.dk/games/mrrescue")
5405 (synopsis "Arcade-style fire fighting game")
5406 (description
5407 "Mr. Rescue is an arcade styled 2d action game centered around evacuating
5408 civilians from burning buildings. The game features fast-paced fire
5409 extinguishing action, intense boss battles, a catchy soundtrack, and lots of
5410 throwing people around in pseudo-randomly generated buildings.")
5411 (license (list license:zlib ; for source code
5412 license:cc-by-sa3.0)))) ; for graphics and music assets
5413
5414 (define-public hyperrogue
5415 (package
5416 (name "hyperrogue")
5417 (version "11.3a")
5418 ;; When updating this package, be sure to update the "hyperrogue-data"
5419 ;; origin in native-inputs.
5420 (source (origin
5421 (method url-fetch)
5422 (uri (string-append
5423 "https://www.roguetemple.com/z/hyper/hyperrogue"
5424 (string-join (string-split version #\.) "")
5425 "-src.tgz"))
5426 (sha256
5427 (base32
5428 "1yxabbswq02fc5frigvs43f83m5vlxybc7n5mynkwzj2c70lfp2k"))))
5429 (build-system gnu-build-system)
5430 (arguments
5431 `(#:tests? #f ; no check target
5432 #:make-flags '("HYPERROGUE_USE_GLEW=1"
5433 "HYPERROGUE_USE_PNG=1")
5434 #:phases
5435 (modify-phases %standard-phases
5436 (add-after 'set-paths 'set-sdl-paths
5437 (lambda* (#:key inputs #:allow-other-keys)
5438 (setenv "CPATH"
5439 (string-append (or (getenv "CPATH") "") ":"
5440 (assoc-ref inputs "sdl-union")
5441 "/include/SDL"))))
5442 (replace 'configure
5443 (lambda* (#:key inputs outputs #:allow-other-keys)
5444 (let* ((out (assoc-ref outputs "out"))
5445 (share-dir (string-append out "/share/hyperrogue"))
5446 (dejavu-dir (string-append
5447 (assoc-ref inputs "font-dejavu")
5448 "/share/fonts/truetype"))
5449 (dejavu-font "DejaVuSans-Bold.ttf")
5450 (music-file "hyperrogue-music.txt"))
5451 ;; Fix font and music paths.
5452 (substitute* "basegraph.cpp"
5453 ((dejavu-font)
5454 (string-append dejavu-dir "/" dejavu-font)))
5455 (substitute* music-file
5456 (("\\*/")
5457 (string-append share-dir "/sounds/")))
5458 (substitute* "sound.cpp"
5459 (("musicfile = \"\"")
5460 (string-append "musicfile = \""
5461 share-dir "/" music-file "\"")))
5462 ;; Disable build machine CPU optimizations and warnings treated
5463 ;; as errors.
5464 (substitute* "Makefile"
5465 (("-march=native") "")
5466 (("-Werror") "")))
5467 #t))
5468 (replace 'install
5469 (lambda* (#:key inputs outputs #:allow-other-keys)
5470 (let* ((out (assoc-ref outputs "out"))
5471 (bin (string-append out "/bin"))
5472 (share-dir (string-append out "/share/hyperrogue")))
5473 (mkdir-p bin)
5474 (install-file "hyperrogue" bin)
5475 (install-file "hyperrogue-music.txt" share-dir))
5476 #t))
5477 (add-after 'install 'install-data
5478 (lambda* (#:key inputs outputs #:allow-other-keys)
5479 (let* ((data (assoc-ref inputs "hyperrogue-data"))
5480 (out (assoc-ref outputs "out"))
5481 (sounds (string-append out "/share/hyperrogue/sounds"))
5482 (unzip (string-append (assoc-ref inputs "unzip") "/bin/unzip")))
5483 ;; Extract media license information into sounds directory.
5484 (invoke unzip "-j" data
5485 (string-append
5486 "hyperrogue"
5487 (string-join (string-split ,version #\.) "")
5488 "/sounds/credits.txt") "-d" sounds)
5489 ;; Extract sounds and music into sounds directory.
5490 (invoke "unzip" "-j" data
5491 (string-append
5492 "hyperrogue"
5493 (string-join (string-split ,version #\.) "")
5494 "/*.ogg") "-d" sounds)))))))
5495 (native-inputs
5496 `(("hyperrogue-data"
5497 ,(origin
5498 (method url-fetch)
5499 (uri
5500 (string-append
5501 "https://www.roguetemple.com/z/hyper/hyperrogue"
5502 (string-join (string-split version #\.) "")
5503 "-win.zip"))
5504 (sha256
5505 (base32
5506 "11yhbia45f1w9z0j67h9nynwjqmvakr9l6rnrmdrdkzin6lvzzj4"))))
5507 ("unzip" ,unzip)))
5508 (inputs
5509 `(("font-dejavu" ,font-dejavu)
5510 ("glew" ,glew)
5511 ("libpng" ,libpng)
5512 ("sdl-union" ,(sdl-union (list sdl
5513 sdl-gfx
5514 sdl-mixer
5515 sdl-ttf)))))
5516 (home-page "https://www.roguetemple.com/z/hyper/")
5517 (synopsis "Non-euclidean graphical rogue-like game")
5518 (description
5519 "HyperRogue is a game in which the player collects treasures and fights
5520 monsters -- rogue-like but for the fact that it is played on the hyperbolic
5521 plane and not in euclidean space.
5522
5523 In HyperRogue, the player can move through different parts of the world, which
5524 are home to particular creatures and may be subject to their own rules of
5525 \"physics\".
5526
5527 While the game can use ASCII characters to display the the classical rogue
5528 symbols, it still needs graphics to render the non-euclidean world.")
5529 (license (list license:bsd-3 ; glew.c, mtrand.*
5530 license:cc-by-sa3.0 ; music
5531 license:cc-by-sa4.0 ; sounds
5532 license:cc0
5533 license:public-domain ; direntx.*, some sounds
5534 license:zlib ; savepng.*
5535 license:gpl2+)))) ; remaining files
5536
5537 (define-public kobodeluxe
5538 (package
5539 (name "kobodeluxe")
5540 (version "0.5.1")
5541 (source (origin
5542 (method url-fetch)
5543 (uri (string-append "http://olofson.net/kobodl/download/KoboDeluxe-"
5544 version ".tar.bz2"))
5545 (sha256
5546 (base32
5547 "0b2wvdpnmaibsy419c16dfwj5kvd3pccby2aaqvm964x74592yqg"))
5548 (patches (search-patches
5549 "kobodeluxe-const-charp-conversion.patch"
5550 "kobodeluxe-enemies-pipe-decl.patch"
5551 "kobodeluxe-graphics-window-signed-char.patch"
5552 "kobodeluxe-manpage-minus-not-hyphen.patch"
5553 "kobodeluxe-midicon-segmentation-fault.patch"
5554 "kobodeluxe-paths.patch"))))
5555 (build-system gnu-build-system)
5556 (arguments
5557 '(#:configure-flags
5558 (list (string-append "CPPFLAGS=-I"
5559 (assoc-ref %build-inputs "sdl-union")
5560 "/include/SDL"))))
5561 (inputs
5562 `(("glu" ,glu)
5563 ("sdl-union" ,(sdl-union (list sdl sdl-image)))))
5564 (synopsis "Shooter with space station destruction")
5565 (description
5566 "Kobo Deluxe is an enhanced version of Akira Higuchi's XKobo graphical game
5567 for Un*x systems with X11.")
5568 (home-page "http://olofson.net/kobodl/")
5569 (license license:gpl2+)))
5570
5571 (define-public freeciv
5572 (package
5573 (name "freeciv")
5574 (version "2.6.2")
5575 (source
5576 (origin
5577 (method url-fetch)
5578 (uri (list (string-append
5579 "http://files.freeciv.org/stable/freeciv-"
5580 version ".tar.bz2")
5581 (string-append
5582 "mirror://sourceforge/freeciv/Freeciv%20"
5583 (version-major+minor version) "/" version
5584 "/freeciv-" version ".tar.bz2")))
5585 (sha256
5586 (base32 "13vc2xg1cf19rhbnr7k38b56b2hdapqymq5vma1l69kn7hyyz0b1"))))
5587 (build-system gnu-build-system)
5588 (inputs
5589 `(("curl" ,curl)
5590 ("cyrus-sasl" ,cyrus-sasl)
5591 ("gtk+" ,gtk+)
5592 ("sdl-mixer" ,sdl-mixer)
5593 ("zlib" ,zlib)))
5594 (native-inputs
5595 `(("pkg-config" ,pkg-config)))
5596 (home-page "http://www.freeciv.org/")
5597 (synopsis "Turn-based empire building strategy game")
5598 (description "Freeciv is a turn-based empire building strategy game
5599 inspired by the history of human civilization. The game commences in
5600 prehistory and your mission is to lead your tribe from the Stone Age
5601 into the Space Age.")
5602 (license license:gpl2+)))
5603
5604 (define-public no-more-secrets
5605 (package
5606 (name "no-more-secrets")
5607 (version "0.3.3")
5608 (source
5609 (origin
5610 (method git-fetch)
5611 (uri (git-reference
5612 (url "https://github.com/bartobri/no-more-secrets")
5613 (commit (string-append "v" version))))
5614 (file-name (git-file-name name version))
5615 (sha256
5616 (base32 "1zfv4qabikf8w9winsr4brxrdvs3f0d7xvydksyx8bydadsm2v2h"))))
5617 (build-system gnu-build-system)
5618 (arguments
5619 `(#:tests? #f
5620 #:make-flags (list "CC=gcc" "all-ncurses"
5621 (string-append "prefix="
5622 (assoc-ref %outputs "out")))
5623 #:phases
5624 (modify-phases %standard-phases
5625 (delete 'configure))))
5626 (inputs
5627 `(("ncurses" ,ncurses)))
5628 (home-page "https://github.com/bartobri/no-more-secrets")
5629 (synopsis "Recreation of data decryption effect in \"Sneakers\"")
5630 (description
5631 "@code{No More Secrets} provides a command line tool called \"nms\"
5632 that recreates the famous data decryption effect seen on screen in the 1992
5633 movie \"Sneakers\".
5634
5635 This command works on piped data. Pipe any ASCII or UTF-8 text to nms, and
5636 it will apply the hollywood effect, initially showing encrypted data, then
5637 starting a decryption sequence to reveal the original plaintext characters.")
5638 (license license:expat)))
5639
5640 (define-public megaglest-data
5641 (package
5642 (name "megaglest-data")
5643 (version "3.13.0")
5644 (source
5645 (origin
5646 (method url-fetch)
5647 (uri (string-append
5648 "https://github.com/MegaGlest/megaglest-data"
5649 "/releases/download/" version "/megaglest-data-"
5650 version ".tar.xz"))
5651 (sha256
5652 (base32
5653 "0ipgza33z89fw3si32iafm981f3fvm0zldvbxj29whghd2k3rpj3"))))
5654 (build-system cmake-build-system)
5655 (arguments
5656 `(#:tests? #f))
5657 (home-page "https://megaglest.org/")
5658 (synopsis "Data files for MegaGlest")
5659 (description "This package contains the data files required for MegaGlest.")
5660 (license license:cc-by-sa3.0)))
5661
5662 (define-public megaglest
5663 (package
5664 (name "megaglest")
5665 (version "3.13.0")
5666 (source
5667 (origin
5668 (method url-fetch)
5669 (uri (string-append
5670 "https://github.com/MegaGlest/megaglest-source"
5671 "/releases/download/" version "/megaglest-source-"
5672 version ".tar.xz"))
5673 (sha256
5674 (base32
5675 "1ffck3ii1wp5k3nn5p0ga06jgp7pzk4zw0xln3xim2w7qrxzdzh9"))))
5676 (build-system cmake-build-system)
5677 (inputs
5678 `(("curl" ,curl)
5679 ("fontconfig" ,fontconfig)
5680 ("ftgl" ,ftgl)
5681 ("glew" ,glew)
5682 ("libjpeg-turbo" ,libjpeg-turbo)
5683 ("megaglest-data" ,megaglest-data)
5684 ("mesa" ,mesa)
5685 ("miniupnpc" ,miniupnpc)
5686 ("openal" ,openal)
5687 ("libircclient" ,libircclient)
5688 ("libpng" ,libpng)
5689 ("libvorbis" ,libvorbis)
5690 ("lua" ,lua)
5691 ("sdl2" ,sdl2)
5692 ("wxwidgets" ,wxwidgets)))
5693 (native-inputs
5694 `(("cppunit" ,cppunit)
5695 ("pkg-config" ,pkg-config)))
5696 (arguments
5697 `(#:configure-flags
5698 (list (string-append "-DCUSTOM_DATA_INSTALL_PATH="
5699 (assoc-ref %build-inputs "megaglest-data")
5700 "/share/megaglest")
5701 "-DBUILD_MEGAGLEST_TESTS=ON")
5702 #:phases
5703 (modify-phases %standard-phases
5704 (add-after 'unpack 'fix-ini-search-path
5705 (lambda* (#:key outputs #:allow-other-keys)
5706 (substitute* "source/glest_game/global/config.cpp"
5707 (("/usr/share/megaglest/")
5708 (string-append (assoc-ref outputs "out")
5709 "/share/megaglest/"))))))
5710 #:test-target "megaglest_tests"))
5711 (home-page "https://megaglest.org/")
5712 (synopsis "3D real-time strategy (RTS) game")
5713 (description "MegaGlest is a cross-platform 3D real-time strategy (RTS)
5714 game, where you control the armies of one of seven different factions: Tech,
5715 Magic, Egypt, Indians, Norsemen, Persian or Romans.")
5716 (license license:gpl2+)))
5717
5718 (define-public freegish
5719 (let ((commit "8795cd7adc95957883f2d3465eb9036a774667a7")
5720 (revision "1"))
5721 (package
5722 (name "freegish")
5723 (version (string-append "0-" revision "." (string-take commit 9)))
5724 (source (origin
5725 (method git-fetch)
5726 (uri (git-reference
5727 (url "https://github.com/freegish/freegish")
5728 (commit commit)))
5729 (file-name (git-file-name name version))
5730 (sha256
5731 (base32
5732 "1p1zf5qqagmcpi1db2bs02cnalpy3qiymp6yzan7k1bhmv859gsx"))
5733 (modules '((guix build utils)))
5734 ;; The audio files in the "music" directory are licensed under
5735 ;; CC-BY-NC, so we delete them.
5736 (snippet
5737 '(begin
5738 (delete-file-recursively "music")
5739 #t))))
5740 (build-system cmake-build-system)
5741 (arguments
5742 `(#:tests? #f ; no tests included
5743 #:configure-flags
5744 (list "-DCMAKE_INSTALL_FHS=ON")
5745 #:phases
5746 (modify-phases %standard-phases
5747 (add-after 'unpack 'set-DATAPATH
5748 (lambda* (#:key outputs #:allow-other-keys)
5749 (substitute* "CMakeLists.txt"
5750 (("^option\\(INSTALL_FHS" line)
5751 (string-append "add_definitions(-DDATAPATH=\""
5752 (assoc-ref outputs "out") "/share/freegish\")\n"
5753 line)))
5754 #t)))))
5755 (inputs
5756 `(("sdl-union" ,(sdl-union (list sdl sdl-mixer)))
5757 ("openal" ,openal)
5758 ("libvorbis" ,libvorbis)
5759 ("libogg" ,libogg)
5760 ("mesa" ,mesa)
5761 ("libpng" ,libpng)
5762 ("zlib" ,zlib)))
5763 (home-page "https://github.com/freegish/freegish")
5764 (synopsis "Side-scrolling physics platformer with a ball of tar")
5765 (description "In FreeGish you control Gish, a ball of tar who lives
5766 happily with his girlfriend Brea, until one day a mysterious dark creature
5767 emerges from a sewer hole and pulls her below ground.")
5768 ;; The textures are available under the Expat license. All other assets
5769 ;; (including levels) are covered under CC-BY-SA or public domain. The
5770 ;; source code is under GPLv2+.
5771 (license (list license:gpl2+
5772 license:expat
5773 license:public-domain
5774 license:cc-by-sa3.0)))))
5775
5776 (define-public cdogs-sdl
5777 (package
5778 (name "cdogs-sdl")
5779 (version "0.8.0")
5780 (source
5781 (origin
5782 (method git-fetch)
5783 (uri (git-reference
5784 (url "https://github.com/cxong/cdogs-sdl")
5785 (commit version)))
5786 (file-name (git-file-name name version))
5787 (sha256
5788 (base32 "0vx37zb2iw7sfw5a2bs97ydlmb301nvy485ybdm8g46c5hn9s13c"))))
5789 (build-system cmake-build-system)
5790 (arguments
5791 `(#:configure-flags
5792 (list (string-append "-DCDOGS_DATA_DIR="
5793 (assoc-ref %outputs "out")
5794 "/share/cdogs-sdl/"))))
5795 (native-inputs
5796 `(("pkg-config" ,pkg-config)))
5797 (inputs
5798 `(("gtk+" ,gtk+)
5799 ("mesa" ,mesa)
5800 ("sdl2" ,sdl2)
5801 ("sdl2-image" ,sdl2-image)
5802 ("sdl2-mixer" ,sdl2-mixer)))
5803 (home-page "https://cxong.github.io/cdogs-sdl/")
5804 (synopsis "Classic overhead run-and-gun game")
5805 (description "C-Dogs SDL is a classic overhead run-and-gun game,
5806 supporting up to 4 players in co-op and deathmatch modes. Customize your
5807 player, choose from many weapons, and blast, slide and slash your way through
5808 over 100 user-created campaigns.")
5809 ;; GPLv2+ for code (includes files under BSD-2 and BSD-3),
5810 ;; CC0/CC-BY/CC-BY-SA for assets.
5811 (license (list license:gpl2+
5812 license:bsd-2
5813 license:bsd-3
5814 license:cc0
5815 license:cc-by3.0
5816 license:cc-by-sa3.0))))
5817
5818 (define-public kiki
5819 (package
5820 (name "kiki")
5821 (version "1.0.2")
5822 (source (origin
5823 (method url-fetch)
5824 (uri (string-append "mirror://sourceforge/kiki/kiki-src/"
5825 version "/kiki-" version "-src.tgz"))
5826 (sha256
5827 (base32
5828 "0ihjdsxbn8z3cz0gpcprafiipcqaiskgdnh1rhmw4qff8dszalbn"))
5829 (modules '((guix build utils)))
5830 (snippet
5831 '(begin
5832 (for-each delete-file (find-files "." "\\.dll$"))
5833 #t))
5834 (patches
5835 (search-patches "kiki-level-selection-crash.patch"
5836 "kiki-makefile.patch"
5837 "kiki-missing-includes.patch"
5838 "kiki-portability-64bit.patch"))))
5839 (build-system gnu-build-system)
5840 (arguments
5841 `(#:tests? #f ; there are no tests
5842 #:make-flags '("CXX=g++")
5843 #:phases
5844 (modify-phases %standard-phases
5845 (replace 'configure
5846 (lambda* (#:key inputs outputs #:allow-other-keys)
5847 (setenv "CPLUS_INCLUDE_PATH"
5848 (string-append (assoc-ref inputs "sdl-union")
5849 "/include/SDL:"
5850 (assoc-ref inputs "python")
5851 "/include/python2.7:"
5852 (or (getenv "CPLUS_INCLUDE_PATH") "")))
5853 (substitute* "src/main/main.cpp"
5854 (("#include <SDL.h>" line)
5855 (string-append line "
5856 #define K_INCLUDE_GLUT
5857 #include \"KIncludeTools.h\""))
5858 (("// initialize SDL" line)
5859 (string-append "glutInit(&argc,argv);\n" line)))
5860 (substitute* "src/main/KikiController.cpp"
5861 (("getenv\\(\"KIKI_HOME\"\\)")
5862 (string-append "\"" (assoc-ref outputs "out") "/share/kiki/\"")))
5863 (substitute* "linux/Makefile"
5864 (("CXXOPTS =" line)
5865 (string-append line " -fpermissive"))
5866 (("PYTHON_VERSION=.*") "PYTHON_VERSION=2.7")
5867 (("PYTHONHOME =.*")
5868 (string-append "PYTHONHOME = "
5869 (assoc-ref inputs "python")
5870 "/lib/python2.7/"))
5871 (("\\$\\(GLLIBS\\)" line)
5872 (string-append line " -lm -lpython2.7")))
5873 (substitute* "src/main/KikiPythonWidget.h"
5874 (("#define __KikiPythonWidget" line)
5875 (string-append line "\n#include \"KikiPython.h\"")))
5876 #t))
5877 (add-before 'build 'build-kodilib
5878 (lambda* (#:key make-flags #:allow-other-keys)
5879 (with-directory-excursion "kodilib/linux"
5880 (apply invoke "make" make-flags))))
5881 (add-after 'build-kodilib 'chdir
5882 (lambda _ (chdir "linux") #t))
5883 (replace 'install
5884 (lambda* (#:key outputs #:allow-other-keys)
5885 (let* ((out (assoc-ref outputs "out"))
5886 (bin (string-append out "/bin"))
5887 (share (string-append out "/share/kiki")))
5888 (mkdir-p bin)
5889 (mkdir-p share)
5890 (install-file "kiki" bin)
5891 (copy-recursively "../py" (string-append share "/py"))
5892 (copy-recursively "../sound" (string-append share "/sound"))
5893 #t))))))
5894 (inputs
5895 `(("glu" ,glu)
5896 ;; Kiki builds fine with freeglut 3.0.0 but segfaults on start.
5897 ("freeglut" ,freeglut-2.8)
5898 ("sdl-union" ,(sdl-union (list sdl
5899 sdl-mixer
5900 sdl-image)))
5901 ("python" ,python-2)))
5902 (native-inputs
5903 `(("swig" ,swig)))
5904 (home-page "http://kiki.sourceforge.net/")
5905 (synopsis "3D puzzle game")
5906 (description "Kiki the nano bot is a 3D puzzle game. It is basically a
5907 mixture of the games Sokoban and Kula-World. Your task is to help Kiki, a
5908 small robot living in the nano world, repair its maker.")
5909 ;; See <http://metadata.ftp-master.debian.org/changelogs/main/k/
5910 ;; kiki-the-nano-bot/kiki-the-nano-bot_1.0.2+dfsg1-4_copyright>
5911 ;; for a statement from the author.
5912 (license license:public-domain)))
5913
5914 (define-public teeworlds
5915 (package
5916 (name "teeworlds")
5917 (version "0.7.5")
5918 (source (origin
5919 (method git-fetch)
5920 (uri (git-reference
5921 (url "https://github.com/teeworlds/teeworlds")
5922 (commit version)))
5923 (file-name (git-file-name name version))
5924 (sha256
5925 (base32
5926 "169dl83q08zl4h813az8hjs4rs3dms9yjn6bnsld4fjcj0imvvc6"))
5927 (modules '((guix build utils)
5928 (ice-9 ftw)
5929 (ice-9 regex)
5930 (srfi srfi-1)
5931 (srfi srfi-26)))
5932 (snippet ; remove bundled libraries except md5
5933 '(let ((base-dir "src/engine/external/"))
5934 (for-each (compose (cut delete-file-recursively <>)
5935 (cut string-append base-dir <>))
5936 (remove (cut string-match "(^.)|(^md5$)" <>)
5937 (scandir base-dir)))
5938 #t))))
5939 (build-system gnu-build-system)
5940 (arguments
5941 `(#:tests? #f ; no tests included
5942 #:modules ((guix build gnu-build-system)
5943 (guix build utils)
5944 (srfi srfi-26))
5945 #:phases
5946 (modify-phases %standard-phases
5947 (replace 'configure
5948 (lambda* (#:key outputs #:allow-other-keys)
5949 ;; Embed path to assets.
5950 (substitute* "src/engine/shared/storage.cpp"
5951 (("#define DATA_DIR.*")
5952 (string-append "#define DATA_DIR \""
5953 (assoc-ref outputs "out")
5954 "/share/teeworlds/data"
5955 "\"")))
5956
5957 ;; Bam expects all files to have a recent time stamp.
5958 (for-each (cut utime <> 1 1)
5959 (find-files "."))
5960
5961 ;; Do not use bundled libraries.
5962 (substitute* "bam.lua"
5963 (("local json = Compile.+$")
5964 "local json = nil
5965 settings.link.libs:Add(\"jsonparser\")")
5966 (("local png = Compile.+$")
5967 "local png = nil
5968 settings.link.libs:Add(\"pnglite\")")
5969 (("local wavpack = Compile.+$")
5970 "local wavpack = nil
5971 settings.link.libs:Add(\"wavpack\")")
5972 (("if config\\.zlib\\.value == 1")
5973 "if config.zlib.value"))
5974 (substitute* "src/engine/client/graphics_threaded.cpp"
5975 (("engine/external/pnglite/pnglite\\.h")
5976 "pnglite.h"))
5977 (substitute* "src/engine/client/sound.cpp"
5978 (("engine/external/wavpack/wavpack\\.h")
5979 "wavpack/wavpack.h"))
5980 #t))
5981 (replace 'build
5982 (lambda _
5983 (invoke "bam" "-a" "-v" "conf=release")))
5984 (replace 'install
5985 (lambda* (#:key outputs #:allow-other-keys)
5986 (let* ((arch ,(system->linux-architecture
5987 (or (%current-target-system)
5988 (%current-system))))
5989 (build (string-append "build/" (if (string=? arch "i386")
5990 "x86" arch)
5991 "/release/"))
5992 (data-built (string-append build "data/"))
5993 (out (assoc-ref outputs "out"))
5994 (bin (string-append out "/bin/"))
5995 (data (string-append out "/share/teeworlds/data/")))
5996 (for-each (cut install-file <> bin)
5997 (map (cut string-append build <>)
5998 '("teeworlds" "teeworlds_srv")))
5999 (copy-recursively data-built data)
6000 #t))))))
6001 (inputs
6002 `(("freetype" ,freetype)
6003 ("glu" ,glu)
6004 ("json-parser" ,json-parser)
6005 ("mesa" ,mesa)
6006 ("pnglite" ,pnglite)
6007 ("sdl2" ,sdl2)
6008 ("sdl2-image" ,sdl2-image)
6009 ("sdl2-mixer" ,sdl2-mixer)
6010 ("wavpack" ,wavpack)
6011 ("zlib" ,zlib)))
6012 (native-inputs
6013 `(("bam" ,bam)
6014 ("python" ,python-wrapper)
6015 ("pkg-config" ,pkg-config)))
6016 (home-page "https://www.teeworlds.com")
6017 (synopsis "2D retro multiplayer shooter game")
6018 (description "Teeworlds is an online multiplayer game. Battle with up to
6019 16 players in a variety of game modes, including Team Deathmatch and Capture
6020 The Flag. You can even design your own maps!")
6021 (license license:bsd-3)))
6022
6023 (define-public enigma
6024 (package
6025 (name "enigma")
6026 (version "1.21")
6027 (source (origin
6028 (method url-fetch)
6029 (uri (string-append "mirror://sourceforge/enigma-game/"
6030 "Release%20" version "/enigma-"
6031 version ".tar.gz"))
6032 (sha256
6033 (base32
6034 "00ffh9pypj1948pg3q9sjp1nmiabh52p5c8wpg9n1dcfgl3cywnq"))))
6035 (build-system gnu-build-system)
6036 (arguments
6037 `(#:configure-flags
6038 (list "--with-system-enet")
6039 #:phases
6040 (modify-phases %standard-phases
6041 (add-after 'unpack 'fix-build-with-new-gcc
6042 (lambda _
6043 ;; Fix build with GCC6 and later by avoiding comparing ifstream
6044 ;; to NULL. Can be removed for versions > 1.21.
6045 (substitute* "src/lev/Proxy.cc"
6046 (("ifs != NULL")
6047 "ifs"))
6048 #t))
6049 (add-after 'unpack 'find-sdl
6050 (lambda _
6051 (substitute* "configure"
6052 (("SDL_ttf.h") "SDL/SDL_ttf.h"))
6053 (substitute* '("tools/ttf2bmf.cc"
6054 "lib-src/enigma-core/ecl_font.cc"
6055 "lib-src/enigma-core/ecl_video.cc"
6056 "lib-src/enigma-core/ecl_buffer.hh"
6057 "src/SoundEngine.cc"
6058 "src/SoundEngine.hh"
6059 "src/MusicManager.cc"
6060 "src/MusicManager.hh"
6061 "src/d_models.cc"
6062 "src/main.cc"
6063 "src/network.cc")
6064 (("#include \"SDL_(image|ttf|mixer|types|syswm|mutex).h\"" line header)
6065 (string-append "#include \"SDL/SDL_" header ".h\"")))
6066 (substitute* "src/main.cc"
6067 (("#include <SDL_(image|ttf|mixer).h>" line header)
6068 (string-append "#include \"SDL/SDL_" header ".h\"")))
6069 #t)))))
6070 (inputs
6071 `(("xerces-c" ,xerces-c)
6072 ("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer sdl-ttf)))
6073 ("curl" ,curl)
6074 ("enet" ,enet)))
6075 (native-inputs
6076 `(("pkg-config" ,pkg-config)
6077 ("imagemagick" ,imagemagick)))
6078 (home-page "https://www.nongnu.org/enigma")
6079 (synopsis "Puzzle game with a dexterity component")
6080 (description "Enigma is a puzzle game with 550 unique levels. The object
6081 of the game is to find and uncover pairs of identically colored ‘Oxyd’ stones.
6082 Simple? Yes. Easy? Certainly not! Hidden traps, vast mazes, laser beams,
6083 and most of all, countless hairy puzzles usually block your direct way to the
6084 Oxyd stones. Enigma’s game objects (and there are hundreds of them, lest you
6085 get bored) interact in many unexpected ways, and since many of them follow the
6086 laws of physics (Enigma’s special laws of physics, that is), controlling them
6087 with the mouse isn’t always trivial.")
6088 (license license:gpl2+)))
6089
6090 (define-public chroma
6091 (package
6092 (name "chroma")
6093 (version "1.17")
6094 (source (origin
6095 (method url-fetch)
6096 (uri (string-append "http://level7.org.uk/chroma/download/chroma-"
6097 version ".tar.bz2"))
6098 (sha256
6099 (base32
6100 "047sf00x71xbmi8bqrhfbmr9bk89l2gbykkqsfpw4wz6yfjscs6y"))))
6101 (build-system gnu-build-system)
6102 (arguments
6103 `(#:tests? #f ; no tests included
6104 #:configure-flags '("CFLAGS=-fgnu89-inline"))) ; fix inlines
6105 (inputs
6106 `(("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer sdl-ttf)))
6107 ("freetype" ,freetype)
6108 ("ncurses" ,ncurses)
6109 ("fontconfig" ,fontconfig)
6110 ("libxft" ,libxft)))
6111 (native-inputs
6112 `(("pkg-config" ,pkg-config)))
6113 (home-page "http://level7.org.uk/chroma/")
6114 (synopsis "Abstract puzzle game")
6115 (description "Chroma is an abstract puzzle game. A variety of colourful
6116 shapes are arranged in a series of increasingly complex patterns, forming
6117 fiendish traps that must be disarmed and mysterious puzzles that must be
6118 manipulated in order to give up their subtle secrets. Initially so
6119 straightforward that anyone can pick it up and begin to play, yet gradually
6120 becoming difficult enough to tax even the brightest of minds.")
6121 (license license:gpl2+)))
6122
6123 (define-public fillets-ng
6124 (package
6125 (name "fillets-ng")
6126 (version "1.0.1")
6127 (source (origin
6128 (method url-fetch)
6129 (uri (string-append "mirror://sourceforge/fillets/"
6130 "Fish%20Fillets%20-%20Next%20Generation/"
6131 version "/fillets-ng-" version ".tar.gz"))
6132 (sha256
6133 (base32
6134 "1nljp75aqqb35qq3x7abhs2kp69vjcj0h1vxcpdyn2yn2nalv6ij"))))
6135 (build-system gnu-build-system)
6136 (arguments
6137 `(#:configure-flags
6138 (list (string-append "--with-lua="
6139 (assoc-ref %build-inputs "lua")))
6140 #:make-flags
6141 (list (string-append "CFLAGS=-I"
6142 (assoc-ref %build-inputs "sdl-union")
6143 "/include/SDL")
6144 (string-append "CXXFLAGS=-I"
6145 (assoc-ref %build-inputs "sdl-union")
6146 "/include/SDL"))
6147 #:phases
6148 (modify-phases %standard-phases
6149 ;; Lua 5.1 does not provide it.
6150 (add-after 'unpack 'do-not-link-with-lualib
6151 (lambda _
6152 (substitute* "configure"
6153 (("-llualib") ""))
6154 #t))
6155 (add-after 'install 'install-data
6156 (lambda* (#:key inputs outputs #:allow-other-keys)
6157 (let ((data (string-append (assoc-ref outputs "out")
6158 "/share/games/fillets-ng")))
6159 (mkdir-p data)
6160 (invoke "tar" "-xvf"
6161 (assoc-ref inputs "fillets-ng-data")
6162 "--strip-components=1"
6163 "-C" data)))))))
6164 (inputs
6165 `(("sdl-union" ,(sdl-union (list sdl
6166 sdl-mixer
6167 sdl-image
6168 sdl-ttf)))
6169 ("fribidi" ,fribidi)
6170 ("libx11" ,libx11)
6171 ("lua" ,lua-5.1)))
6172 (native-inputs
6173 `(("pkg-config" ,pkg-config)
6174 ("fillets-ng-data"
6175 ,(origin
6176 (method url-fetch)
6177 (uri (string-append "mirror://sourceforge/fillets/"
6178 "Fish%20Fillets%20-%20Next%20Generation/"
6179 version "/fillets-ng-data-" version ".tar.gz"))
6180 (sha256
6181 (base32
6182 "169p0yqh2gxvhdilvjc2ld8aap7lv2nhkhkg4i1hlmgc6pxpkjgh"))))))
6183 (home-page "http://fillets.sourceforge.net/")
6184 (synopsis "Puzzle game")
6185 (description "Fish Fillets NG is strictly a puzzle game. The goal in
6186 every of the seventy levels is always the same: find a safe way out. The fish
6187 utter witty remarks about their surroundings, the various inhabitants of their
6188 underwater realm quarrel among themselves or comment on the efforts of your
6189 fish. The whole game is accompanied by quiet, comforting music.")
6190 (license license:gpl2+)))
6191
6192 (define-public crawl
6193 (package
6194 (name "crawl")
6195 (version "0.25.0")
6196 (source
6197 (origin
6198 (method url-fetch)
6199 (uri (list
6200 ;; Older releases get moved into a versioned directory
6201 (string-append "http://crawl.develz.org/release/"
6202 (version-major+minor version) "/stone_soup-"
6203 version "-nodeps.tar.xz")
6204 ;; Only the latest release is in this directory
6205 (string-append "http://crawl.develz.org/release/stone_soup-"
6206 version "-nodeps.tar.xz")))
6207 (sha256
6208 (base32 "0rn1wjxdqw33caiwisfypm1j8cid3c9pz01ahicl17144zs29z3d"))
6209 (patches (search-patches "crawl-upgrade-saves.patch"))
6210 ;; The 0.25.0 -nodeps.tar.xz was built from an OSX machine; normally
6211 ;; apparently it's built from a Debian machine before the Debian
6212 ;; packages are made. These ._* files are binary and have the string
6213 ;; "Mac OS X" in them... removing these seems to result in compilation
6214 ;; again.
6215 (modules '((guix build utils)))
6216 (snippet
6217 '(begin
6218 (for-each delete-file (find-files "." "^\\._"))
6219 #t))))
6220 (build-system gnu-build-system)
6221 (inputs
6222 `(("lua51" ,lua-5.1)
6223 ("ncurses" ,ncurses)
6224 ("sqlite" ,sqlite)
6225 ("zlib" ,zlib)))
6226 (native-inputs
6227 `(("bison" ,bison)
6228 ("flex" ,flex)
6229 ("perl" ,perl)
6230 ("python" ,python-wrapper)
6231 ("python-pyyaml" ,python-pyyaml)
6232 ("pkg-config" ,pkg-config)))
6233 (arguments
6234 `(#:make-flags
6235 (let* ((sqlite (assoc-ref %build-inputs "sqlite"))
6236 (out (assoc-ref %outputs "out")))
6237 (list (string-append "SQLITE_INCLUDE_DIR=" sqlite "/include")
6238 (string-append "prefix=" out)
6239 "SAVEDIR=~/.crawl"
6240 ;; Don't compile with SSE on systems which don't have it.
6241 ,@(match (%current-system)
6242 ((or "i686-linux" "x86_64-linux")
6243 '())
6244 (_ '("NOSSE=TRUE")))
6245 ;; don't build any bundled dependencies
6246 "BUILD_LUA="
6247 "BUILD_SQLITE="
6248 "BUILD_ZLIB="
6249 "-Csource"))
6250 #:phases
6251 (modify-phases %standard-phases
6252 (add-after 'unpack 'find-SDL-image
6253 (lambda _
6254 (substitute* "source/windowmanager-sdl.cc"
6255 (("SDL_image.h") "SDL2/SDL_image.h"))
6256 #t))
6257 (delete 'configure)
6258 (replace 'check
6259 (lambda* (#:key inputs outputs make-flags #:allow-other-keys)
6260 (setenv "HOME" (getcwd))
6261 ;; Fake a terminal for the test cases.
6262 (setenv "TERM" "xterm-256color")
6263 ;; Run the tests that don't require a debug build.
6264 (apply invoke "make" "nondebugtest"
6265 (format #f "-j~d" (parallel-job-count))
6266 ;; Force command line build for test cases.
6267 (append make-flags '("GAME=crawl" "TILES="))))))))
6268 (synopsis "Roguelike dungeon crawler game")
6269 (description "Dungeon Crawl Stone Soup (also known as \"Crawl\" or DCSS
6270 for short) is a roguelike adventure through dungeons filled with dangerous
6271 monsters in a quest to find the mystifyingly fabulous Orb of Zot.")
6272 (home-page "https://crawl.develz.org")
6273 (license (list license:gpl2+
6274 license:bsd-2
6275 license:bsd-3
6276 license:cc0
6277 license:expat
6278 license:zlib
6279 license:asl2.0))))
6280
6281 ;; The linter here claims that patch file names should start with the package
6282 ;; name. But, in this case, the patches are inherited from crawl with the
6283 ;; "crawl-" prefix instead of "crawl-tiles-".
6284 (define-public crawl-tiles
6285 (package
6286 (inherit crawl)
6287 (name "crawl-tiles")
6288 (arguments
6289 (substitute-keyword-arguments
6290 (package-arguments crawl)
6291 ((#:make-flags flags)
6292 `(let ((dejavu (assoc-ref %build-inputs "font-dejavu")))
6293 (cons*
6294 (string-append "PROPORTIONAL_FONT=" dejavu
6295 "/share/fonts/truetype/DejaVuSans.ttf")
6296 (string-append "MONOSPACED_FONT=" dejavu
6297 "/share/fonts/truetype/DejaVuSansMono.ttf")
6298 "TILES=y"
6299 ;; Rename the executable to allow parallel installation with crawl.
6300 "GAME=crawl-tiles"
6301 ,flags)))))
6302 (inputs
6303 `(,@(package-inputs crawl)
6304 ("font-dejavu" ,font-dejavu)
6305 ("freetype6" ,freetype)
6306 ("glu" ,glu)
6307 ("libpng" ,libpng)
6308 ("sdl2" ,sdl2)
6309 ("sdl2-image" ,sdl2-image)
6310 ("sdl2-mixer" ,sdl2-mixer)))
6311 (native-inputs
6312 `(,@(package-native-inputs crawl)
6313 ("pngcrush" ,pngcrush)
6314 ("which" ,which)))
6315 (synopsis "Graphical roguelike dungeon crawler game")))
6316
6317 (define-public lugaru
6318 (package
6319 (name "lugaru")
6320 (version "1.2")
6321 (source (origin
6322 (method url-fetch)
6323 (uri (string-append "https://bitbucket.org/osslugaru/lugaru/downloads/"
6324 "lugaru-" version ".tar.xz"))
6325 (sha256
6326 (base32
6327 "15zgcshy22q51rm72zi6y9z7qlgnz5iw3gczjdlir4bqmxy4gspk"))))
6328 (build-system cmake-build-system)
6329 (arguments
6330 `(#:configure-flags
6331 (list "-DSYSTEM_INSTALL=ON")
6332 ;; no test target
6333 #:tests? #f))
6334 (native-inputs
6335 `(("pkg-config" ,pkg-config)))
6336 (inputs
6337 `(("sdl2" ,sdl2)
6338 ("glu" ,glu)
6339 ("libjpeg" ,libjpeg-turbo)
6340 ("libpng" ,libpng)
6341 ("openal" ,openal)
6342 ("vorbis" ,libvorbis)
6343 ("zlib" ,zlib)))
6344 (home-page "https://osslugaru.gitlab.io")
6345 (synopsis "Cross-platform third-person action game")
6346 (description "Lugaru is a third-person action game. The main character,
6347 Turner, is an anthropomorphic rebel bunny rabbit with impressive combat skills.
6348 In his quest to find those responsible for slaughtering his village, he uncovers
6349 a far-reaching conspiracy involving the corrupt leaders of the rabbit republic
6350 and the starving wolves from a nearby den. Turner takes it upon himself to
6351 fight against their plot and save his fellow rabbits from slavery.")
6352 (license (list license:gpl2+ ; code
6353 ;; assets:
6354 license:cc-by-sa3.0
6355 license:cc-by-sa4.0))))
6356
6357 (define-public 0ad-data
6358 (package
6359 (name "0ad-data")
6360 (version "0.0.23b-alpha")
6361 (source
6362 (origin
6363 (method url-fetch)
6364 (uri (string-append "https://releases.wildfiregames.com/0ad-"
6365 version "-unix-data.tar.xz"))
6366 (file-name (string-append name "-" version ".tar.xz"))
6367 (sha256
6368 (base32
6369 "04x7729hk6zw1xj3n4s4lvaviijsnbjf5rhzvjxlr5fygvg4l6z1"))
6370 (modules '((guix build utils)))
6371 (snippet
6372 #~(begin
6373 (for-each (lambda (name)
6374 (let* ((dir (string-append "binaries/data/mods/" name))
6375 (file (string-append dir "/" name ".zip"))
6376 (unzip #$(file-append unzip "/bin/unzip")))
6377 (invoke unzip "-d" dir file)
6378 (delete-file file)))
6379 '("mod" "public"))
6380 #t))))
6381 (build-system trivial-build-system)
6382 (native-inputs `(("tar" ,tar)
6383 ("xz" ,xz)))
6384 (arguments
6385 `(#:modules ((guix build utils))
6386 #:builder
6387 (begin
6388 (use-modules (guix build utils))
6389 (let ((out (assoc-ref %outputs "out"))
6390 (source (assoc-ref %build-inputs "source"))
6391 (tar (string-append (assoc-ref %build-inputs "tar") "/bin/tar"))
6392 (xz-path (string-append (assoc-ref %build-inputs "xz") "/bin")))
6393 (setenv "PATH" xz-path)
6394 (mkdir out)
6395 (invoke tar "xvf" source "-C" out "--strip=3")))))
6396 (synopsis "Data files for 0ad")
6397 (description "0ad-data provides the data files required by the game 0ad.")
6398 (home-page "https://play0ad.com")
6399 (license (list (license:fsdg-compatible
6400 "http://tavmjong.free.fr/FONTS/ArevCopyright.txt"
6401 "Similar to the license of the Bitstream Vera fonts.")
6402 (license:fsdg-compatible
6403 "https://www.gnome.org/fonts/#Final_Bitstream_Vera_Fonts")
6404 license:cc-by-sa3.0
6405 license:expat
6406 license:gfl1.0
6407 license:gpl2+
6408 license:gpl3+))))
6409
6410 (define-public 0ad
6411 (package
6412 (name "0ad")
6413 (version "0.0.23b-alpha")
6414 (source
6415 (origin
6416 (method url-fetch)
6417 (uri (string-append "https://releases.wildfiregames.com/0ad-"
6418 version "-unix-build.tar.xz"))
6419 (file-name (string-append name "-" version ".tar.xz"))
6420 (sha256
6421 (base32
6422 "0draa53xg69i5qhqym85658m45xhwkbiimaldj4sr3703rjgggq1"))))
6423 ;; A snippet here would cause a build failure because of timestamps
6424 ;; reset. See https://bugs.gnu.org/26734.
6425 (inputs
6426 `(("0ad-data" ,0ad-data)
6427 ("curl" ,curl)
6428 ("enet" ,enet)
6429 ("gloox" ,gloox)
6430 ("icu4c" ,icu4c)
6431 ("libpng" ,libpng)
6432 ("libsodium" ,libsodium)
6433 ("libvorbis" ,libvorbis)
6434 ("libxcursor" ,libxcursor)
6435 ("libxml2" ,libxml2)
6436 ("miniupnpc" ,miniupnpc)
6437 ("mozjs-38" ,mozjs-38)
6438 ("openal" ,openal)
6439 ("sdl2" ,sdl2)
6440 ("wxwidgets" ,wxwidgets)
6441 ("zlib" ,zlib)))
6442 (native-inputs
6443 `(("boost" ,boost)
6444 ("cmake" ,cmake-minimal)
6445 ("mesa" ,mesa)
6446 ("pkg-config" ,pkg-config)
6447 ("python-2" ,python-2)))
6448 (build-system gnu-build-system)
6449 (arguments
6450 `(#:make-flags '("config=release" "verbose=1" "-C" "build/workspaces/gcc")
6451 #:phases
6452 (modify-phases %standard-phases
6453 (add-after 'unpack 'delete-bundles
6454 (lambda _
6455 (delete-file-recursively "libraries/source/spidermonkey")
6456 #t))
6457 (add-after 'unpack 'fix-x11-includes
6458 (lambda _
6459 (substitute* "source/lib/sysdep/os/unix/x/x.cpp"
6460 (("<Xlib.h>") "<X11/Xlib.h>"))
6461 (substitute* "source/lib/sysdep/os/unix/x/x.cpp"
6462 (("<Xatom.h>") "<X11/Xatom.h>"))
6463 (substitute* "source/lib/sysdep/os/unix/x/x.cpp"
6464 (("<Xcursor/Xcursor.h>") "<X11/Xcursor/Xcursor.h>"))
6465 #t))
6466 (replace 'configure
6467 (lambda* (#:key inputs outputs #:allow-other-keys)
6468 (let* ((jobs (number->string (parallel-job-count)))
6469 (out (assoc-ref outputs "out"))
6470 (lib (string-append out "/lib"))
6471 (data (string-append out "/share/0ad")))
6472 (setenv "JOBS" (string-append "-j" jobs))
6473 (setenv "CC" "gcc")
6474 (with-directory-excursion "build/workspaces"
6475 (invoke "./update-workspaces.sh"
6476 (string-append "--libdir=" lib)
6477 (string-append "--datadir=" data)
6478 ;; TODO: "--with-system-nvtt"
6479 "--with-system-mozjs38")))))
6480 (delete 'check)
6481 (replace 'install
6482 (lambda* (#:key inputs outputs #:allow-other-keys)
6483 (chdir "binaries")
6484 (let* ((out (assoc-ref outputs "out"))
6485 (bin (string-append out "/bin"))
6486 (lib (string-append out "/lib"))
6487 (data (string-append out "/share/0ad"))
6488 (applications (string-append out "/share/applications"))
6489 (pixmaps (string-append out "/share/pixmaps"))
6490 (0ad-data (assoc-ref inputs "0ad-data")))
6491 ;; data
6492 (copy-recursively "data" data)
6493 (for-each (lambda (file)
6494 (symlink (string-append 0ad-data "/" file)
6495 (string-append data "/" file)))
6496 '("config" "mods/mod" "mods/public" "tools"))
6497 ;; libraries
6498 (for-each (lambda (file)
6499 (install-file file lib))
6500 (find-files "system" "\\.so$"))
6501 ;; binaries
6502 (install-file "system/pyrogenesis" bin)
6503 (with-directory-excursion bin
6504 (symlink "pyrogenesis" "0ad"))
6505 ;; resources
6506 (with-directory-excursion "../build/resources"
6507 (install-file "0ad.desktop" applications)
6508 (install-file "0ad.png" pixmaps))
6509 #t)))
6510 (add-after 'install 'check
6511 (lambda _
6512 (with-directory-excursion "system"
6513 (invoke "./test")))))))
6514 (home-page "https://play0ad.com")
6515 (synopsis "3D real-time strategy game of ancient warfare")
6516 (description "0 A.D. is a real-time strategy (RTS) game of ancient
6517 warfare. It's a historically-based war/economy game that allows players to
6518 relive or rewrite the history of twelve ancient civilizations, each depicted
6519 at their peak of economic growth and military prowess.
6520
6521 0ad needs a window manager that supports 'Extended Window Manager Hints'.")
6522 (license (list license:bsd-2
6523 license:bsd-3
6524 license:expat
6525 license:gpl2+
6526 license:ibmpl1.0
6527 license:isc
6528 license:lgpl2.1
6529 license:lgpl3
6530 license:mpl2.0
6531 license:zlib))))
6532
6533 (define-public open-adventure
6534 (package
6535 (name "open-adventure")
6536 (version "1.9")
6537 (source
6538 (origin
6539 (method git-fetch)
6540 (uri (git-reference
6541 (url "https://gitlab.com/esr/open-adventure")
6542 (commit version)))
6543 (file-name (git-file-name name version))
6544 (sha256
6545 (base32 "123svzy7xczdklx6plbafp22yv9bcvwfibjk0jv2c9i22dfsr07f"))))
6546 (build-system gnu-build-system)
6547 (arguments
6548 `(#:make-flags (list "CC=gcc")
6549 #:phases
6550 (modify-phases %standard-phases
6551 (delete 'configure) ;no configure script
6552 (add-before 'build 'use-echo
6553 (lambda _
6554 (substitute* "tests/Makefile"
6555 (("/bin/echo") (which "echo")))
6556 #t))
6557 (add-after 'build 'build-manpage
6558 (lambda _
6559 ;; This target is missing a dependency
6560 (substitute* "Makefile"
6561 ((".adoc.6:" line)
6562 (string-append line " advent.adoc")))
6563 (invoke "make" ".adoc.6")))
6564 ;; There is no install target.
6565 (replace 'install
6566 (lambda* (#:key outputs #:allow-other-keys)
6567 (let* ((out (assoc-ref outputs "out"))
6568 (bin (string-append out "/bin"))
6569 (man (string-append out "/share/man/man6")))
6570 (install-file "advent" bin)
6571 (install-file "advent.6" man))
6572 #t)))))
6573 (native-inputs
6574 `(("asciidoc" ,asciidoc)
6575 ("libedit" ,libedit)
6576 ("pkg-config" ,pkg-config)
6577 ("python" ,python-wrapper)
6578 ("python-pyyaml" ,python-pyyaml)))
6579 (home-page "https://gitlab.com/esr/open-adventure")
6580 (synopsis "Colossal Cave Adventure")
6581 (description
6582 "The original Colossal Cave Adventure from 1976 was the origin of all
6583 text adventures, dungeon-crawl (computer) games, and computer-hosted
6584 roleplaying games. This is a forward port of the last version released by
6585 Crowther & Woods, its original authors, in 1995. It has been known as
6586 ``adventure 2.5'' and ``430-point adventure''.")
6587 (license license:bsd-2)))
6588
6589 (define-public open-adventure-2.5
6590 (package
6591 (inherit open-adventure)
6592 (version "2.5")
6593 (properties `((superseded . ,open-adventure)))))
6594
6595 (define-public tome4
6596 (package
6597 (name "tome4")
6598 (version "1.7.2")
6599 (synopsis "Single-player, RPG roguelike game set in the world of Eyal")
6600 (source
6601 (origin
6602 (method url-fetch)
6603 (uri (string-append "https://te4.org/dl/t-engine/t-engine4-src-"
6604 version ".tar.bz2"))
6605 (sha256
6606 (base32 "1xa0pdn9pggwf7hnqb87ya2qxqhjahkdjwf8cr2y01gixgrkj9lv"))
6607 (modules '((guix build utils)))
6608 (snippet
6609 '(begin
6610 (substitute* '("src/music.h" "src/tSDL.h")
6611 (("#elif defined(__FreeBSD__)" line)
6612 (string-append
6613 line " || defined(__GNUC__)")))
6614 (substitute* '("src/tgl.h")
6615 (("#include <GL/glext.h>") ""))
6616 #t))))
6617 (build-system gnu-build-system)
6618 (native-inputs
6619 `(("unzip" ,unzip)))
6620 (inputs
6621 `(("sdl-union" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer sdl2-ttf)))
6622 ("glu" ,glu)
6623 ("premake4" ,premake4)
6624 ("openal" ,openal)
6625 ("vorbis" ,libvorbis)
6626 ("luajit" ,luajit)))
6627 (arguments
6628 `(#:make-flags
6629 (list (string-append "CC=" ,(cc-for-target))
6630 "config=release")
6631 ;; XXX: Building in parallel occasionally causes this build failure:
6632 ;; ../src/luajit2/src/host/buildvm.c:73:10: fatal error: buildvm_arch.h:
6633 ;; No such file or directory
6634 #:parallel-build? #f
6635 #:phases (modify-phases %standard-phases
6636 (delete 'bootstrap)
6637 (replace 'configure
6638 (lambda _
6639 (invoke "premake4" "gmake")
6640 #t))
6641 (add-after 'set-paths 'set-sdl-paths
6642 (lambda* (#:key inputs #:allow-other-keys)
6643 (setenv "CPATH"
6644 (string-append (assoc-ref inputs "sdl-union")
6645 "/include/SDL2:"
6646 (or (getenv "CPATH") "")))
6647 #t))
6648 (delete 'check)
6649 ;; premake doesn't provide install target
6650 (replace 'install
6651 (lambda* (#:key inputs outputs #:allow-other-keys)
6652 (let* ((out (assoc-ref outputs "out"))
6653 (usr (string-append out "/usr"))
6654 (bin (string-append out "/bin"))
6655 (licenses (string-append out "/share/licenses"))
6656 (documents (string-append out "/share/doc"))
6657 (pixmaps (string-append out "/share/pixmaps"))
6658 (icon "te4-icon.png")
6659 (data (string-append out "/share/" ,name))
6660 (applications (string-append
6661 out "/share/applications"))
6662 (unzip (string-append
6663 (assoc-ref inputs "unzip") "/bin/unzip"))
6664 (wrapper (string-append bin "/" ,name)))
6665 ;; icon
6666 (mkdir-p pixmaps)
6667 (invoke unzip "-j"
6668 (string-append
6669 "game/engines/te4-" ,version ".teae")
6670 (string-append
6671 "data/gfx/" icon) "-d" pixmaps)
6672 ;; game executable
6673 (install-file "t-engine" data)
6674 (mkdir-p bin)
6675 (with-output-to-file wrapper
6676 (lambda ()
6677 (display
6678 (string-append
6679 "#!/bin/sh\n"
6680 ;; No bootstrap code found,
6681 ;; defaulting to working directory
6682 ;; for engine code!
6683 "cd " data "\n"
6684 "exec -a tome4 ./t-engine \"$@\"\n"))))
6685 (chmod wrapper #o555)
6686 ;; licenses
6687 (for-each (lambda (file)
6688 (install-file file licenses))
6689 '("COPYING" "COPYING-MEDIA"))
6690 ;; documents
6691 (for-each (lambda (file)
6692 (install-file file documents))
6693 '("CONTRIBUTING" "CREDITS"))
6694 ;; data
6695 (copy-recursively "bootstrap" (string-append
6696 data "/bootstrap"))
6697 (copy-recursively "game" (string-append data "/game"))
6698 ;; launcher
6699 (mkdir-p applications)
6700 (make-desktop-entry-file
6701 (string-append applications "/" ,name ".desktop")
6702 #:name "ToME4"
6703 #:comment ,synopsis
6704 #:exec ,name
6705 #:icon icon
6706 #:categories '("Game" "RolePlaying")))
6707 #t)))))
6708 (home-page "https://te4.org")
6709 (description "Tales of Maj’Eyal (ToME) RPG, featuring tactical turn-based
6710 combat and advanced character building. Play as one of many unique races and
6711 classes in the lore-filled world of Eyal, exploring random dungeons, facing
6712 challenging battles, and developing characters with your own tailored mix of
6713 abilities and powers. With a modern graphical and customisable interface,
6714 intuitive mouse control, streamlined mechanics and deep, challenging combat,
6715 Tales of Maj’Eyal offers engaging roguelike gameplay for the 21st century.")
6716 (license license:gpl3+)))
6717
6718 (define-public quakespasm
6719 (package
6720 (name "quakespasm")
6721 (version "0.93.2")
6722 (source
6723 (origin
6724 (method url-fetch)
6725 (uri (string-append "mirror://sourceforge/quakespasm/Source/quakespasm-"
6726 version ".tgz"))
6727 (sha256
6728 (base32 "0qm0j5drybvvq8xadfyppkpk3rxqsxbywzm6iwsjwdf0iia3gss5"))))
6729 (arguments
6730 `(#:tests? #f
6731 #:make-flags '("CC=gcc"
6732 "MP3LIB=mpg123"
6733 "USE_CODEC_FLAC=1"
6734 "USE_CODEC_MIKMOD=1"
6735 "USE_SDL2=1"
6736 "-CQuake")
6737 #:phases (modify-phases %standard-phases
6738 (delete 'configure)
6739 (add-after 'unpack 'fix-makefile-paths
6740 (lambda* (#:key outputs #:allow-other-keys)
6741 (let ((out (assoc-ref outputs "out")))
6742 (mkdir-p (string-append out "/bin"))
6743 (substitute* "Quake/Makefile"
6744 (("/usr/local/games")
6745 (string-append out "/bin")))
6746 #t))))))
6747 (build-system gnu-build-system)
6748 (inputs `(("libmikmod" ,libmikmod)
6749 ("libvorbis" ,libvorbis)
6750 ("flac" ,flac)
6751 ("mesa" ,mesa)
6752 ("mpg123" ,mpg123)
6753 ("sdl2" ,sdl2)))
6754 (synopsis "First person shooter engine for Quake 1")
6755 (description "Quakespasm is a modern engine for id software's Quake 1.
6756 It includes support for 64 bit CPUs, custom music playback, a new sound driver,
6757 some graphical niceities, and numerous bug-fixes and other improvements.")
6758 (home-page "http://quakespasm.sourceforge.net/")
6759 (license license:gpl2+)))
6760
6761 (define-public vkquake
6762 (package
6763 (inherit quakespasm)
6764 (name "vkquake")
6765 (version "1.01.0")
6766 (source
6767 (origin
6768 (method git-fetch)
6769 (uri (git-reference
6770 (url "https://github.com/Novum/vkQuake")
6771 (commit version)))
6772 (file-name (git-file-name name version))
6773 (sha256
6774 (base32 "1iwin8j5kbyrknbkhjgpy8nmm7pxqzr0daa9gn7p38qhg2mh0a39"))))
6775 (arguments
6776 `(#:make-flags
6777 (let ((vulkanlib (string-append (assoc-ref %build-inputs
6778 "vulkan-loader") "/lib")))
6779 (list "CC=gcc"
6780 "MP3LIB=mpg123"
6781 "USE_CODEC_FLAC=1"
6782 "USE_CODEC_MIKMOD=1"
6783 "USE_SDL2=1"
6784 (string-append "LDFLAGS=-Wl,-rpath=" vulkanlib)
6785 "-CQuake"))
6786 #:phases (modify-phases %standard-phases
6787 (add-after 'unpack 'patch-for-new-vulkan
6788 (lambda _
6789 ;; Mimic upstream commit a869a22d9b51c68e for
6790 ;; compatibility with newer vulkan-headers.
6791 (substitute* "Quake/gl_rmisc.c"
6792 (("VK_DYNAMIC_STATE_RANGE_SIZE")
6793 "3"))
6794 #t))
6795 (delete 'configure)
6796 (add-after 'unpack 'fix-makefile-paths
6797 (lambda* (#:key outputs #:allow-other-keys)
6798 (let ((vulkan (assoc-ref %build-inputs
6799 "vulkan-loader"))
6800 (out (assoc-ref outputs "out")))
6801 (mkdir-p (string-append out "/bin"))
6802 (substitute* "Quake/Makefile" ((" /usr")
6803 (string-append " " out)))
6804 (substitute* "Quake/Makefile" (("/games")
6805 (string-append "/bin")))
6806 (substitute* "Quake/Makefile" (("..VULKAN_SDK.") vulkan))
6807 #t))))
6808 ,@(strip-keyword-arguments '(#:make-flags #:phases)
6809 (package-arguments quakespasm))))
6810 (inputs `(("vulkan-headers" ,vulkan-headers)
6811 ("vulkan-loader" ,vulkan-loader)
6812 ,@(package-inputs quakespasm)))
6813 (description "vkquake is a modern engine for id software's Quake 1.
6814 It includes support for 64 bit CPUs, custom music playback, a new sound driver,
6815 some graphical niceities, and numerous bug-fixes and other improvements.")
6816 (home-page "https://github.com/Novum/vkQuake")))
6817
6818 (define-public yamagi-quake2
6819 (package
6820 (name "yamagi-quake2")
6821 (version "7.45")
6822 (source
6823 (origin
6824 (method url-fetch)
6825 (uri (string-append "https://deponie.yamagi.org/quake2/quake2-"
6826 version ".tar.xz"))
6827 (sha256
6828 (base32 "0rgz8x7lzd0zb0xqd0gvnf2641nr9xpfm6v14mgh99hspxklaln7"))))
6829 (build-system gnu-build-system)
6830 (arguments
6831 `(#:tests? #f
6832 #:make-flags
6833 (list "CC=gcc"
6834 ;; link openAL instead of using dlopen at runtime
6835 "DLOPEN_OPENAL=\"no\""
6836 ;; an optional directory where it will look for quake2 data files
6837 ;; in addition to the current working directory
6838 "WITH_SYSTEMWIDE=yes"
6839 "WITH_SYSTEMDIR=\"/opt/quake2\"")
6840 #:phases
6841 (modify-phases %standard-phases
6842 (delete 'configure)
6843 (replace 'install
6844 (lambda* (#:key outputs #:allow-other-keys)
6845 (let ((out (assoc-ref outputs "out")))
6846 (mkdir-p (string-append out "/lib"))
6847 (mkdir-p (string-append out "/bin"))
6848 ;; The yamagi-quake2 binary must be in the same directory
6849 ;; as it's engine libraries, but symlinking it to /bin is okay
6850 ;; https://github.com/yquake2/yquake2/blob/master/stuff/packaging.md
6851 (copy-recursively "release"
6852 (string-append out "/lib/yamagi-quake2"))
6853 (symlink (string-append out "/lib/yamagi-quake2/quake2")
6854 (string-append out "/bin/yamagi-quake2"))
6855 (symlink (string-append out "/lib/yamagi-quake2/q2ded")
6856 (string-append out "/bin/yamagi-q2ded"))))))))
6857 (native-inputs
6858 `(("pkg-config" ,pkg-config)))
6859 (inputs
6860 `(("curl" ,curl-minimal)
6861 ("libvorbis" ,libvorbis)
6862 ("mesa" ,mesa)
6863 ("openal" ,openal)
6864 ("sdl2" ,sdl2)
6865 ("zlib" ,zlib)))
6866 (synopsis "First person shooter engine based on quake2")
6867 (description "Yamagi Quake II is an enhanced client for id Software's Quake II.
6868 The main focus is an unchanged single player experience like back in 1997,
6869 thus the gameplay and the graphics are unaltered. However the user may use one
6870 of the unofficial retexturing packs. In comparison with the official client,
6871 over 1000 bugs were fixed and an extensive code audit done,
6872 making Yamagi Quake II one of the most solid Quake II implementations available.")
6873 (home-page "https://www.yamagi.org/quake2/")
6874 (license (list license:gpl2+ ; game and server
6875 (license:non-copyleft ; info-zip
6876 "file://LICENSE"
6877 "See Info-Zip section.")
6878 license:public-domain)))) ; stb
6879
6880 (define-public nudoku
6881 (package
6882 (name "nudoku")
6883 (version "2.1.0")
6884 (source
6885 (origin
6886 (method git-fetch)
6887 (uri (git-reference
6888 (url "https://github.com/jubalh/nudoku")
6889 (commit version)))
6890 (file-name (git-file-name name version))
6891 (sha256
6892 (base32 "12v00z3p0ymi8f3w4b4bgl4c76irawn3kmd147r0ap6s9ssx2q6m"))))
6893 (build-system gnu-build-system)
6894 (native-inputs
6895 `(("autoconf" ,autoconf)
6896 ("automake" ,automake)
6897 ("gettext" ,gettext-minimal)
6898 ("pkg-config" ,pkg-config)))
6899 (inputs
6900 `(("ncurses" ,ncurses)))
6901 (home-page "https://jubalh.github.io/nudoku/")
6902 (synopsis "Sudoku for your terminal")
6903 (description "Nudoku is a ncurses-based Sudoku game for your terminal.")
6904 (license license:gpl3+)))
6905
6906 (define-public the-butterfly-effect
6907 (package
6908 (name "the-butterfly-effect")
6909 (version "0.9.3.1")
6910 (source
6911 (origin
6912 (method git-fetch)
6913 (uri (git-reference
6914 (url "https://github.com/the-butterfly-effect/tbe")
6915 (commit (string-append "v" version))))
6916 (file-name (git-file-name name version))
6917 (sha256
6918 (base32
6919 "1ag2cp346f9bz9qy6za6q54id44d2ypvkyhvnjha14qzzapwaysj"))))
6920 (build-system gnu-build-system)
6921 (arguments
6922 `(#:phases
6923 (modify-phases %standard-phases
6924 (delete 'configure)
6925 ;; There is no "install" phase. By default, tbe is installed
6926 ;; in the build directory. Provide our own installation.
6927 (replace 'install
6928 (lambda* (#:key outputs #:allow-other-keys)
6929 (let* ((out (assoc-ref outputs "out"))
6930 (bin (string-append out "/bin"))
6931 (share (string-append out "/share")))
6932 (install-file "usr/games/tbe" bin)
6933 (mkdir-p share)
6934 (copy-recursively "usr/share" share)
6935 #t))))
6936 ;; Test suite requires a running Xorg server. Even when
6937 ;; provided, it fails with "D-Bus library appears to be
6938 ;; incorrectly set up; failed to read machine uuid: Failed to
6939 ;; open "/etc/machine-id": No such file or directory" along
6940 ;; with multiple "QPainter:: ... Painter not active" warnings.
6941 #:tests? #f))
6942 (inputs
6943 `(("qtbase" ,qtbase)
6944 ("qtsvg" ,qtsvg)))
6945 (native-inputs
6946 `(("cmake" ,cmake-minimal)
6947 ("gettext-minimal" ,gettext-minimal)
6948 ("qttools" ,qttools)))
6949 (synopsis "Realistic physics puzzle game")
6950 (description "The Butterfly Effect (tbe) is a game that uses
6951 realistic physics simulations to combine lots of simple mechanical
6952 elements to achieve a simple goal in the most complex way possible.")
6953 (home-page "http://the-butterfly-effect.org/")
6954 ;; Main license is GPL2-only. However, artwork is distributed
6955 ;; under various licenses, listed here.
6956 (license (list license:gpl2 license:public-domain license:expat
6957 license:cc-by-sa3.0 license:gpl3+ license:wtfpl2))))
6958
6959 (define-public pioneer
6960 (package
6961 (name "pioneer")
6962 (version "20200203")
6963 (source (origin
6964 (method git-fetch)
6965 (uri (git-reference
6966 (url "https://github.com/pioneerspacesim/pioneer")
6967 (commit version)))
6968 (file-name (git-file-name name version))
6969 (sha256
6970 (base32
6971 "1011xsi94jhw98mhm8kryq8ajig0qfbrdx5xdasi92bd4nk7lcp8"))))
6972 (build-system cmake-build-system)
6973 (native-inputs
6974 `(("pkg-config" ,pkg-config)))
6975 (inputs
6976 `(("assimp" ,assimp)
6977 ("curl" ,curl)
6978 ("freetype" ,freetype)
6979 ("glew" ,glew)
6980 ("glu" ,glu)
6981 ("libpng" ,libpng)
6982 ("libsigc++" ,libsigc++)
6983 ("libvorbis" ,libvorbis)
6984 ("lua" ,lua-5.2) ;not compatible with 5.3
6985 ("mesa" ,mesa)
6986 ("sdl" ,(sdl-union (list sdl2 sdl2-image)))))
6987 (arguments
6988 `(#:tests? #f ;tests are broken
6989 #:configure-flags (list "-DUSE_SYSTEM_LIBLUA:BOOL=YES"
6990 (string-append "-DPIONEER_DATA_DIR="
6991 %output "/share/games/pioneer"))))
6992 (home-page "https://pioneerspacesim.net")
6993 (synopsis "Game of lonely space adventure")
6994 (description
6995 "Pioneer is a space adventure game set in our galaxy at the turn of the
6996 31st century. The game is open-ended, and you are free to eke out whatever
6997 kind of space-faring existence you can think of. Look for fame or fortune by
6998 exploring the millions of star systems. Turn to a life of crime as a pirate,
6999 smuggler or bounty hunter. Forge and break alliances with the various
7000 factions fighting for power, freedom or self-determination. The universe is
7001 whatever you make of it.")
7002 (license license:gpl3)))
7003
7004 (define-public badass
7005 (let ((commit "3c3cd669b4fc8f73a102e3702788f7b28dc47dbb")
7006 (revision "0"))
7007 (package
7008 (name "badass")
7009 (version (git-version "0.0" revision commit))
7010 (source (origin
7011 (method git-fetch)
7012 (uri (git-reference
7013 (url "https://github.com/umayr/badass")
7014 (commit commit)))
7015 (file-name (git-file-name name version))
7016 (sha256
7017 (base32
7018 "05c9vdcb5ym3z0n5ll3v39mw4yl9jcjnlydmn0yl89ai9pv71zb6"))))
7019 (build-system go-build-system)
7020 (arguments
7021 '(#:import-path "github.com/umayr/badass"))
7022 (synopsis "Hacking contribution graphs in git")
7023 (description
7024 "Badass generates false commits for a range of dates, essentially
7025 hacking the gamification of contribution graphs on platforms such as
7026 Github or Gitlab.")
7027 (home-page "https://github.com/umayr/badass")
7028 (license license:expat))))
7029
7030 (define-public colobot
7031 (package
7032 (name "colobot")
7033 (version "0.1.12-alpha")
7034 (source
7035 (origin
7036 (method git-fetch)
7037 (uri (git-reference
7038 (url "https://github.com/colobot/colobot")
7039 (commit (string-append "colobot-gold-" version))
7040 (recursive? #t))) ;for "data/" subdir
7041 (file-name (git-file-name name version))
7042 (sha256
7043 (base32
7044 "1c181cclkrnspgs07lvndg2c81cjq3smkv7qim8c470cj88rcrp2"))))
7045 (build-system cmake-build-system)
7046 (arguments
7047 `(#:tests? #f ;no test
7048 #:phases
7049 (modify-phases %standard-phases
7050 (add-after 'unpack 'make-git-checkout-writable
7051 (lambda _
7052 (for-each make-file-writable (find-files "."))
7053 #t))
7054 (add-after 'unpack 'fix-directories
7055 (lambda _
7056 (substitute* "CMakeLists.txt"
7057 (("(\\$\\{CMAKE_INSTALL_PREFIX\\})/games" _ prefix)
7058 (string-append prefix "/bin"))
7059 (("(\\$\\{CMAKE_INSTALL_PREFIX\\}/share)/games/colobot" _ prefix)
7060 (string-append prefix "/colobot")))
7061 #t))
7062 (add-after 'fix-directories 'install-music
7063 ;; Retrieve and install music files.
7064 (lambda* (#:key inputs #:allow-other-keys)
7065 ;; Installation process tries to download music files using
7066 ;; "wget" if not already present. Since we are going another
7067 ;; route, skip "wget" command check.
7068 (substitute* "data/music/CMakeLists.txt"
7069 (("find_program\\(WGET wget\\)") ""))
7070 ;; Populate "music/" directory.
7071 (let ((data (assoc-ref inputs "colobot-music")))
7072 (invoke "tar" "-xvf" data "-Cdata/music"))
7073 #t)))))
7074 (native-inputs
7075 `(("colobot-music"
7076 ,(origin
7077 (method url-fetch)
7078 (uri (string-append "https://colobot.info/files/music/"
7079 "colobot-music_ogg_" version ".tar.gz"))
7080 (sha256
7081 (base32
7082 "1s86cd36rwkff329mb1ay1wi5qqyi35564ppgr3f4qqz9wj9vs2m"))))
7083 ("gettext" ,gettext-minimal)
7084 ("librsvg" ,librsvg)
7085 ("po4a" ,po4a)
7086 ("python" ,python-wrapper)))
7087 (inputs
7088 `(("boost" ,boost)
7089 ("glew" ,glew)
7090 ("libogg" ,libogg)
7091 ("libpng" ,libpng)
7092 ("libsndfile" ,libsndfile)
7093 ("libvorbis" ,libvorbis)
7094 ("openal" ,openal)
7095 ("physfs" ,physfs)
7096 ("sdl" ,(sdl-union (list sdl2 sdl2-image sdl2-ttf)))))
7097 (synopsis "Educational programming strategy game")
7098 (description "Colobot: Gold Edition is a real-time strategy game, where
7099 you can program your units (bots) in a language called CBOT, which is similar
7100 to C++ and Java. Your mission is to find a new planet to live and survive.
7101 You can save humanity and get programming skills!")
7102 (home-page "https://colobot.info")
7103 (license license:gpl3+)))
7104
7105 (define-public gzdoom
7106 (package
7107 (name "gzdoom")
7108 (version "4.3.2")
7109 (source
7110 (origin
7111 (method git-fetch)
7112 (uri (git-reference
7113 (url "https://github.com/coelckers/gzdoom")
7114 (commit (string-append "g" version))))
7115 (file-name (git-file-name name version))
7116 (sha256
7117 (base32 "0i4hyg72z84fc6ca2ic9q82q5cbgrbd7bynl3kpkypxvyasq08wz"))
7118 (patches (search-patches "gzdoom-search-in-installed-share.patch"
7119 "gzdoom-find-system-libgme.patch"))
7120 (modules '((guix build utils)))
7121 (snippet
7122 '(begin
7123 ;; Remove some bundled libraries. XXX There are more, but removing
7124 ;; them would require, at least, patching the build system.
7125 (with-directory-excursion "libraries"
7126 (delete-file-recursively "bzip2")
7127 (delete-file-recursively "game-music-emu")
7128 (delete-file-recursively "jpeg")
7129 (delete-file-recursively "zlib"))
7130 #t))))
7131 (arguments
7132 '(#:tests? #f
7133 #:configure-flags
7134 (let ((out (assoc-ref %outputs "out")))
7135 (list
7136 (string-append
7137 "-DCMAKE_CXX_FLAGS:="
7138 "-DSHARE_DIR=\\\"" out "/share/\\\" "
7139 "-DGUIX_OUT_PK3=\\\"" out "/share/games/doom\\\"")
7140
7141 ;; The build requires some extra convincing not to use the bundled
7142 ;; libgme previously deleted in the soure snippet.
7143 "-DFORCE_INTERNAL_GME=OFF"
7144
7145 ;; Link libraries at build time instead of loading them at run time.
7146 "-DDYN_OPENAL=OFF"
7147 "-DDYN_FLUIDSYNTH=OFF"
7148 "-DDYN_GTK=OFF"
7149 "-DDYN_MPG123=OFF"
7150 "-DDYN_SNDFILE=OFF"))
7151 #:phases
7152 (modify-phases %standard-phases
7153 (add-before 'configure 'fix-referenced-paths
7154 (lambda* (#:key inputs outputs #:allow-other-keys)
7155 (let ((fluid-3 (assoc-ref inputs "fluid-3"))
7156 (timidity++ (assoc-ref inputs "timidity++"))
7157 (out (assoc-ref outputs "out")))
7158
7159 (substitute*
7160 "src/CMakeLists.txt"
7161 (("COMMAND /bin/sh")
7162 (string-append "COMMAND " (which "sh"))))
7163
7164 (substitute*
7165 "libraries/zmusic/mididevices/music_fluidsynth_mididevice.cpp"
7166 (("/usr/share/sounds/sf2/FluidR3_GM.sf2")
7167 (string-append fluid-3 "/share/soundfonts/FluidR3Mono_GM.sf3")))
7168
7169 (substitute*
7170 "libraries/zmusic/mididevices/music_timiditypp_mididevice.cpp"
7171 (("exename = \"timidity\"")
7172 (string-append "exename = \"" timidity++ "/bin/timidity\"")))
7173 #t))))))
7174 (build-system cmake-build-system)
7175 (inputs `(("bzip2" ,bzip2)
7176 ("fluid-3" ,fluid-3)
7177 ("fluidsynth" ,fluidsynth)
7178 ("gtk+3" ,gtk+)
7179 ("libgme" ,libgme)
7180 ("libjpeg" ,libjpeg-turbo)
7181 ("libsndfile" ,libsndfile)
7182 ("mesa" ,mesa)
7183 ("mpg123" ,mpg123)
7184 ("openal" ,openal)
7185 ("sdl2" ,sdl2)
7186 ("timidity++" ,timidity++)
7187 ("zlib" ,zlib)))
7188 (native-inputs `(("pkg-config" ,pkg-config)
7189 ("unzip" ,unzip)))
7190 (synopsis "Modern Doom 2 source port")
7191 (description "GZdoom is a port of the Doom 2 game engine, with a modern
7192 renderer. It improves modding support with ZDoom's advanced mapping features
7193 and the new ZScript language. In addition to Doom, it supports Heretic, Hexen,
7194 Strife, Chex Quest, and fan-created games like Harmony, Hacx and Freedoom.")
7195 (home-page "https://zdoom.org/index")
7196 ;; The source uses x86 assembly
7197 (supported-systems '("x86_64-linux" "i686-linux"))
7198 (license (list license:gpl3+ ; gzdoom game
7199 license:lgpl3+ ; gzdoom renderer
7200 license:expat ; gdtoa
7201 (license:non-copyleft ; modified dumb
7202 "file://dumb/licence.txt"
7203 "Dumb license, explicitly GPL compatible.")))))
7204
7205 (define-public odamex
7206 (package
7207 (name "odamex")
7208 (version "0.8.3")
7209 (source
7210 (origin
7211 (method url-fetch)
7212 (uri (string-append
7213 "mirror://sourceforge/odamex/Odamex/" version "/"
7214 "odamex-src-" version ".tar.gz"))
7215 (sha256
7216 (base32 "0f887g87bmcq4dpcga7xc2mpxs947dkbc934ir9xs55gz6z13q96"))))
7217 (build-system cmake-build-system)
7218 (arguments `(#:tests? #f)) ; no tests
7219 (inputs
7220 `(("sdl" ,sdl)
7221 ("sdl-mixer" ,sdl-mixer)
7222 ("zlib" ,zlib)
7223 ("libpng" ,libpng)
7224 ("alsa-lib" ,alsa-lib)))
7225 (home-page "https://odamex.net/")
7226 (synopsis "Multiplayer Doom port")
7227 (description "Odamex is a modification of the Doom engine that
7228 allows players to easily join servers dedicated to playing Doom
7229 online.")
7230 (license license:gpl2+)))
7231
7232 (define-public chocolate-doom
7233 (package
7234 (name "chocolate-doom")
7235 (version "3.0.1")
7236 (source (origin
7237 (method url-fetch)
7238 (uri (string-append "https://www.chocolate-doom.org/downloads/"
7239 version
7240 "/chocolate-doom-"
7241 version
7242 ".tar.gz"))
7243 (sha256
7244 (base32
7245 "1iy8rx7kjvi1zjiw4zh77szzmd1sgpqajvbhprh1sj93fhbxcdfl"))))
7246 (build-system gnu-build-system)
7247 (inputs `(("sdl2-net" ,sdl2-net)
7248 ("sdl2-mixer" , sdl2-mixer)
7249 ("sdl2" ,sdl2)))
7250 (native-inputs
7251 `(("pkg-config" ,pkg-config)))
7252 (synopsis "Doom source port preserving the look, feel, and bugs of vanilla
7253 Doom")
7254 (description
7255 "Chocolate Doom takes a different approach to other source ports. Its
7256 aim is to accurately reproduce the experience of playing Vanilla Doom. It is
7257 a conservative, historically accurate Doom source port, which is compatible
7258 with the thousands of mods and levels that were made before the Doom source
7259 code was released. Rather than flashy new graphics, Chocolate Doom's main
7260 features are its accurate reproduction of the game as it was played in the
7261 1990s. The project is developed around a carefully-considered philosophy that
7262 intentionally restricts which features may be added (and rejects any that
7263 affect gameplay).")
7264 (home-page "https://www.chocolate-doom.org/wiki/index.php/Chocolate_Doom")
7265 (license license:gpl2)))
7266
7267 (define-public crispy-doom
7268 (package
7269 (inherit chocolate-doom)
7270 (name "crispy-doom")
7271 (version "5.8.0")
7272 (source (origin
7273 (method git-fetch)
7274 (uri (git-reference
7275 (url "https://github.com/fabiangreffrath/crispy-doom")
7276 (commit (string-append "crispy-doom-" version))))
7277 (file-name (git-file-name name version))
7278 (sha256
7279 (base32 "1b6gn0dysv631jynh769whww9xcss1gms78sz3nrn855q1dsvcb4"))))
7280 (native-inputs
7281 (append
7282 (package-native-inputs chocolate-doom)
7283 `(("automake" ,automake)
7284 ("autoreconf" ,autoconf))))
7285 (arguments
7286 `(#:phases
7287 (modify-phases %standard-phases
7288 (replace 'bootstrap
7289 ;; The bundled autogen.sh script unconditionally runs ./configure.
7290 (lambda _ (invoke "autoreconf" "-vif"))))))
7291 (synopsis "Limit-removing enhanced-resolution Doom source port based on
7292 Chocolate Doom")
7293 (description
7294 "Crispy Doom is a friendly fork of Chocolate Doom that provides a higher
7295 display resolution, removes the static limits of the Doom engine and offers
7296 further optional visual, tactical and physical enhancements while remaining
7297 entirely config file, savegame, netplay and demo compatible with the
7298 original.")
7299 (home-page "https://www.chocolate-doom.org/wiki/index.php/Crispy_Doom")))
7300
7301 (define shlomif-cmake-modules
7302 (origin
7303 (method url-fetch)
7304 (uri (string-append "https://bitbucket.org/shlomif/shlomif-cmake-modules/"
7305 "raw/c505713d7a7cda608f97f01577e5868a711b883e/"
7306 "shlomif-cmake-modules/Shlomif_Common.cmake"))
7307 (sha256
7308 (base32 "0kx9s1qqhhzprp1w3b67xmsns0n0v506bg5hgrshxaxpy6lqiwb2"))))
7309
7310 (define-public rinutils
7311 (package
7312 (name "rinutils")
7313 (version "0.2.0")
7314 (source (origin
7315 (method git-fetch)
7316 (uri (git-reference
7317 (url "https://github.com/shlomif/rinutils")
7318 (commit version)))
7319 (file-name (git-file-name name version))
7320 (sha256
7321 (base32
7322 "1fpxyg86ggv0h7j8aarjjxrvwlj7jycd3bw066c0dwkq2fszxsf2"))))
7323 (native-inputs
7324 `(("perl" ,perl)
7325 ;; The following is only needed for tests.
7326 ("perl-file-find-object" ,perl-file-find-object)
7327 ("perl-test-differences" ,perl-test-differences)
7328 ("perl-class-xsaccessor" ,perl-class-xsaccessor)
7329 ("perl-io-all" ,perl-io-all)
7330 ("perl-test-runvalgrind" ,perl-test-runvalgrind)
7331 ("cmake-rules" ,shlomif-cmake-modules)
7332 ("pkg-config" ,pkg-config)))
7333 (inputs
7334 `(("cmocka" ,cmocka)
7335 ("perl-env-path" ,perl-env-path)
7336 ("perl-inline" ,perl-inline)
7337 ("perl-inline-c" ,perl-inline-c)
7338 ("perl-string-shellquote" ,perl-string-shellquote)
7339 ("perl-test-trailingspace" ,perl-test-trailingspace)
7340 ("perl-file-find-object-rule" ,perl-file-find-object-rule)
7341 ("perl-text-glob" ,perl-text-glob)
7342 ("perl-number-compare" ,perl-number-compare)
7343 ("perl-moo" ,perl-moo)))
7344 (arguments
7345 `(#:phases
7346 (modify-phases %standard-phases
7347 (add-after 'unpack 'fix-build-env
7348 (lambda* (#:key inputs #:allow-other-keys)
7349 (use-modules (guix build utils))
7350 (let* ((cmake-rules (assoc-ref inputs "cmake-rules")))
7351 (copy-file cmake-rules
7352 (string-append "cmake/"
7353 (strip-store-file-name cmake-rules)))
7354 #t)))
7355 (replace 'check
7356 (lambda _
7357 (with-directory-excursion "../source"
7358 (setenv "FCS_TEST_BUILD" "1")
7359 (setenv "RINUTILS_TEST_BUILD" "1")
7360 ;; TODO: Run tests after setting RINUTILS_TEST_TIDY to `1',
7361 ;; which requires tidy-all.
7362 ;; (setenv "RINUTILS_TEST_TIDY" "1")
7363 (invoke "perl" "CI-testing/continuous-integration-testing.pl")))))))
7364 (build-system cmake-build-system)
7365 (home-page "https://www.shlomifish.org/open-source/projects/")
7366 (synopsis "C11 / gnu11 utilities C library")
7367 (description "This package provides C11 / gnu11 utilities C library")
7368 (license license:expat)))
7369
7370 (define-public fortune-mod
7371 (package
7372 (name "fortune-mod")
7373 (version "2.28.0")
7374 (source
7375 (origin
7376 (method git-fetch)
7377 (uri (git-reference
7378 (url "https://github.com/shlomif/fortune-mod")
7379 (commit (string-append "fortune-mod-" version))))
7380 (file-name (git-file-name name version))
7381 (sha256
7382 (base32 "1ppzgnffgdcmq6fq4gmdq2ig10ip2bnfgklkb3i8nc6bdxm7pb89"))))
7383 (build-system cmake-build-system)
7384 (arguments
7385 `(#:test-target "check"
7386 #:phases
7387 (modify-phases %standard-phases
7388 (add-after 'unpack 'fix-build-env
7389 (lambda* (#:key inputs #:allow-other-keys)
7390 (use-modules (guix build utils))
7391 (let* ((cmake-rules (assoc-ref inputs "cmake-rules")))
7392 (copy-file cmake-rules
7393 (string-append "fortune-mod/cmake/"
7394 (strip-store-file-name cmake-rules)))
7395 (chdir "fortune-mod")
7396 ;; TODO: Valgrind tests fail for some reason.
7397 ;; Similar issue: https://github.com/shlomif/fortune-mod/issues/21 (?)
7398 (delete-file "tests/t/valgrind.t")
7399 #t)))
7400 (add-after 'install 'fix-install-directory
7401 (lambda* (#:key outputs #:allow-other-keys)
7402 ;; Move binary from "games/" to "bin/" and remove the latter. This
7403 ;; is easier than patching CMakeLists.txt since the tests hard-code
7404 ;; the location as well.
7405 (let* ((out (assoc-ref outputs "out"))
7406 (bin (string-append out "/bin"))
7407 (games (string-append out "/games")))
7408 (rename-file (string-append games "/fortune")
7409 (string-append bin "/fortune"))
7410 (rmdir games)
7411 #t))))))
7412 (inputs `(("recode" ,recode)))
7413 (native-inputs
7414 `(("perl" ,perl)
7415 ;; The following is only needed for tests.
7416 ("perl-file-find-object" ,perl-file-find-object)
7417 ("perl-test-differences" ,perl-test-differences)
7418 ("perl-class-xsaccessor" ,perl-class-xsaccessor)
7419 ("perl-io-all" ,perl-io-all)
7420 ("perl-test-runvalgrind" ,perl-test-runvalgrind)
7421 ("cmake-rules" ,shlomif-cmake-modules)
7422 ("rinutils" ,rinutils)))
7423 (home-page "https://www.shlomifish.org/open-source/projects/fortune-mod/")
7424 (synopsis "The Fortune Cookie program from BSD games")
7425 (description "Fortune is a command-line utility which displays a random
7426 quotation from a collection of quotes.")
7427 (license license:bsd-4)))
7428
7429 (define xonotic-data
7430 (package
7431 (name "xonotic-data")
7432 (version "0.8.2")
7433 (source
7434 (origin
7435 (method url-fetch)
7436 (uri (string-append "http://dl.xonotic.org/xonotic-"
7437 version ".zip"))
7438 (file-name (string-append name "-" version ".zip"))
7439 (sha256
7440 (base32
7441 "1mcs6l4clvn7ibfq3q69k2p0z6ww75rxvnngamdq5ic6yhq74bx2"))))
7442 (build-system trivial-build-system)
7443 (native-inputs
7444 `(("unzip" ,unzip)))
7445 (arguments
7446 `(#:modules ((guix build utils))
7447 #:builder
7448 (begin
7449 (use-modules (guix build utils))
7450 (let* ((out (assoc-ref %outputs "out"))
7451 (xonotic (string-append out "/share/xonotic"))
7452 (source (assoc-ref %build-inputs "source"))
7453 (unzip (string-append (assoc-ref %build-inputs "unzip") "/bin/unzip")))
7454 (copy-file source (string-append ,name "-" ,version ".zip"))
7455 (invoke unzip (string-append ,name "-" ,version ".zip"))
7456 (mkdir-p out)
7457 (mkdir-p xonotic)
7458 (chdir "Xonotic")
7459 (copy-recursively "data"
7460 (string-append xonotic "/data"))
7461 (copy-recursively "server"
7462 (string-append xonotic "/server"))
7463 (install-file "key_0.d0pk" xonotic)))))
7464 (home-page "http://xonotic.org")
7465 (synopsis "Data files for Xonotic")
7466 (description
7467 "Xonotic-data provides the data files required by the game Xonotic.")
7468 (license (list license:gpl2+
7469 (license:x11-style "file://server/rcon.pl")))))
7470
7471 (define-public xonotic
7472 (package
7473 (name "xonotic")
7474 (version "0.8.2")
7475 (source
7476 (origin
7477 (method url-fetch)
7478 (uri (string-append "http://dl.xonotic.org/xonotic-"
7479 version "-source.zip"))
7480 (file-name (string-append name "-" version ".zip"))
7481 (sha256
7482 (base32
7483 "0axxw04fyz6jlfqd0kp7hdrqa0li31sx1pbipf2j5qp9wvqicsay"))))
7484 (build-system gnu-build-system)
7485 (arguments
7486 `(#:configure-flags (list (string-append "--prefix="
7487 (assoc-ref %outputs "out"))
7488 "--disable-rijndael")
7489 #:phases
7490 (modify-phases %standard-phases
7491 (add-before 'configure 'make-darkplaces
7492 (lambda* (#:key outputs #:allow-other-keys)
7493 (let* ((out (assoc-ref outputs "out"))
7494 (sharedir (string-append out "/share/xonotic/")))
7495 (invoke "make" "-C" "source/darkplaces"
7496 (string-append "DP_FS_BASEDIR="
7497 sharedir)
7498 "DP_LINK_TO_LIBJPEG=1"
7499 "DP_SOUND_API=ALSA"
7500 "CC=gcc"
7501 "-f" "makefile"
7502 "cl-release")
7503 (invoke "make" "-C" "source/darkplaces"
7504 (string-append "DP_FS_BASEDIR="
7505 sharedir)
7506 "DP_LINK_TO_LIBJPEG=1"
7507 "DP_SOUND_API=ALSA"
7508 "CC=gcc"
7509 "-f" "makefile"
7510 "sdl-release")
7511 (invoke "make" "-C" "source/darkplaces"
7512 (string-append "DP_FS_BASEDIR="
7513 sharedir)
7514 "DP_LINK_TO_LIBJPEG=1"
7515 "DP_SOUND_API=ALSA"
7516 "CC=gcc"
7517 "-f" "makefile"
7518 "sv-release"))))
7519 (add-before 'configure 'bootstrap
7520 (lambda _
7521 (chdir "source/d0_blind_id")
7522 (invoke "sh" "autogen.sh")))
7523 (add-after 'build 'install-desktop-entry
7524 (lambda* (#:key outputs #:allow-other-keys)
7525 ;; Add .desktop files for the 2 variants and the symlink
7526 (let* ((output (assoc-ref outputs "out"))
7527 (apps (string-append output "/share/applications")))
7528 (mkdir-p apps)
7529 (with-output-to-file
7530 (string-append apps "/xonotic-glx.desktop")
7531 (lambda _
7532 (format #t
7533 "[Desktop Entry]~@
7534 Name=xonotic-glx~@
7535 Comment=Xonotic glx~@
7536 Exec=~a/bin/xonotic-glx~@
7537 TryExec=~@*~a/bin/xonotic-glx~@
7538 Icon=xonotic~@
7539 Categories=Game~@
7540 Type=Application~%"
7541 output)))
7542 (with-output-to-file
7543 (string-append apps "/xonotic-sdl.desktop")
7544 (lambda _
7545 (format #t
7546 "[Desktop Entry]~@
7547 Name=xonotic-sdl~@
7548 Comment=Xonotic sdl~@
7549 Exec=~a/bin/xonotic-sdl~@
7550 TryExec=~@*~a/bin/xonotic-sdl~@
7551 Icon=xonotic~@
7552 Categories=Game~@
7553 Type=Application~%"
7554 output)))
7555 (with-output-to-file
7556 (string-append apps "/xonotic.desktop")
7557 (lambda _
7558 (format #t
7559 "[Desktop Entry]~@
7560 Name=xonotic~@
7561 Comment=Xonotic~@
7562 Exec=~a/bin/xonotic-glx~@
7563 TryExec=~@*~a/bin/xonotic~@
7564 Icon=xonotic~@
7565 Categories=Game~@
7566 Type=Application~%"
7567 output)))
7568 #t)))
7569 (add-after 'install-desktop-entry 'install-icons
7570 (lambda* (#:key outputs #:allow-other-keys)
7571 (let ((out (assoc-ref outputs "out")))
7572 (with-directory-excursion "../../misc/logos/icons_png/"
7573 (for-each
7574 (lambda (file)
7575 (let* ((size (string-filter char-numeric? file))
7576 (icons (string-append out "/share/icons/hicolor/"
7577 size "x" size "/apps")))
7578 (mkdir-p icons)
7579 (copy-file file (string-append icons "/xonotic.png"))))
7580 '("xonotic_16.png" "xonotic_22.png" "xonotic_24.png"
7581 "xonotic_32.png" "xonotic_48.png" "xonotic_64.png"
7582 "xonotic_128.png" "xonotic_256.png" "xonotic_512.png"))))))
7583 (add-after 'install-icons 'install-binaries
7584 (lambda* (#:key outputs #:allow-other-keys)
7585 (let ((out (assoc-ref outputs "out")))
7586 (define (install src dst)
7587 (let ((dst (string-append out dst)))
7588 (mkdir-p (dirname dst))
7589 (copy-file src dst)))
7590 (mkdir-p (string-append out "/bin"))
7591 (install "../darkplaces/darkplaces-dedicated"
7592 "/bin/xonotic-dedicated")
7593 (install "../darkplaces/darkplaces-glx"
7594 "/bin/xonotic-glx")
7595 (install "../darkplaces/darkplaces-sdl"
7596 "/bin/xonotic-sdl")
7597 ;; Provide a default xonotic executable, defaulting to SDL.
7598 (symlink (string-append out "/bin/xonotic-sdl")
7599 (string-append out "/bin/xonotic"))
7600 #t)))
7601 (add-after 'install-binaries 'install-data
7602 (lambda* (#:key outputs inputs #:allow-other-keys)
7603 (let* ((out (assoc-ref outputs "out"))
7604 (data (assoc-ref inputs "xonotic-data")))
7605 (symlink (string-append data "/share/xonotic")
7606 (string-append out "/share/xonotic"))
7607 #t)))
7608 (add-after 'install-binaries 'wrap-binaries
7609 (lambda* (#:key outputs inputs #:allow-other-keys)
7610 ;; Curl and libvorbis need to be wrapped so that we get
7611 ;; sound and networking.
7612 (let* ((out (assoc-ref outputs "out"))
7613 (bin (string-append out "/bin/xonotic"))
7614 (bin-sdl (string-append out "/bin/xonotic-sdl"))
7615 (bin-glx (string-append out "/bin/xonotic-glx"))
7616 (bin-dedicated (string-append out "/bin/xonotic-dedicated"))
7617 (curl (assoc-ref inputs "curl"))
7618 (vorbis (assoc-ref inputs "libvorbis")))
7619 (wrap-program bin
7620 `("LD_LIBRARY_PATH" ":" prefix
7621 (,(string-append curl "/lib:" vorbis "/lib"))))
7622 (wrap-program bin-sdl
7623 `("LD_LIBRARY_PATH" ":" prefix
7624 (,(string-append curl "/lib:" vorbis "/lib"))))
7625 (wrap-program bin-glx
7626 `("LD_LIBRARY_PATH" ":" prefix
7627 (,(string-append curl "/lib:" vorbis "/lib"))))
7628 (wrap-program bin-dedicated
7629 `("LD_LIBRARY_PATH" ":" prefix
7630 (,(string-append curl "/lib:" vorbis "/lib"))))
7631 #t))))))
7632 (inputs
7633 `(("xonotic-data" ,xonotic-data)
7634 ("alsa-lib" ,alsa-lib)
7635 ("curl" ,curl)
7636 ("libjpeg" ,libjpeg-turbo)
7637 ("libmodplug" ,libmodplug)
7638 ("libvorbis" ,libvorbis)
7639 ("libogg" ,libogg)
7640 ("libxpm" ,libxpm)
7641 ("libxxf86dga" ,libxxf86dga)
7642 ("libxxf86vm" ,libxxf86vm)
7643 ("libx11" ,libx11)
7644 ("libxext" ,libxext)
7645 ("libxau" ,libxau)
7646 ("libxdmcp" ,libxdmcp)
7647 ("mesa" ,mesa)
7648 ("glu" ,glu)
7649 ("freetype" ,freetype)
7650 ("sdl2" ,sdl2)
7651 ("libpng" ,libpng)
7652 ("hicolor-icon-theme" ,hicolor-icon-theme)))
7653 (native-inputs
7654 `(("unzip" ,unzip)
7655 ("autoconf" ,autoconf)
7656 ("automake" ,automake)
7657 ("pkg-config" ,pkg-config)
7658 ("libtool" ,libtool)
7659 ("gmp" ,gmp)))
7660 (home-page "https://xonotic.org")
7661 (synopsis "Fast-paced first-person shooter game")
7662 (description
7663 "Xonotic is a free, fast-paced first-person shooter.
7664 The project is geared towards providing addictive arena shooter
7665 gameplay which is all spawned and driven by the community itself.
7666 Xonotic is a direct successor of the Nexuiz project with years of
7667 development between them, and it aims to become the best possible
7668 open-source FPS of its kind.")
7669 (license (list license:gpl2+
7670 license:bsd-3 ; /source/d0_blind_id folder and others
7671 (license:x11-style "" "See file rcon.pl.")))))
7672
7673 (define-public frotz
7674 (package
7675 (name "frotz")
7676 (version "2.44")
7677 (source (origin
7678 (method url-fetch)
7679 (uri (list (string-append
7680 "http://www.ifarchive.org/if-archive/infocom/interpreters/"
7681 "frotz/frotz-" version ".tar.gz")
7682 (string-append
7683 "ftp://ftp.ifarchive.org/if-archive/infocom/interpreters/"
7684 "frotz/frotz-" version ".tar.gz")))
7685 (sha256
7686 (base32
7687 "1v735xr3blznac8fnwa27s1vhllx4jpz7kw7qdw1bsfj6kq21v3k"))))
7688 (build-system gnu-build-system)
7689 (arguments
7690 `(#:tests? #f ; there are no tests
7691 #:phases
7692 (modify-phases %standard-phases
7693 (delete 'configure)
7694 (add-before 'build 'curses
7695 (lambda _
7696 (substitute* "Makefile"
7697 (("lcurses") "lncurses"))
7698 #t))
7699 (replace 'install
7700 (lambda* (#:key outputs #:allow-other-keys)
7701 (let* ((out (assoc-ref outputs "out"))
7702 (bin (string-append out "/bin"))
7703 (man (string-append out "/share/man/man6")))
7704 (install-file "frotz" bin)
7705 (mkdir-p man)
7706 (install-file "doc/frotz.6" man)
7707 #t))))))
7708 (inputs `(("libmodplug" ,libmodplug)
7709 ("libsamplerate" ,libsamplerate)
7710 ("libsndfile" ,libsndfile)
7711 ("libvorbis" ,libvorbis)
7712 ("ncurses" ,ncurses)))
7713 (synopsis "Portable Z-machine interpreter (ncurses version) for text adventure games")
7714 (description "Frotz is an interpreter for Infocom games and other Z-machine
7715 games in the text adventure/interactive fiction genre. This version of Frotz
7716 complies with standard 1.0 of Graham Nelson's specification. It plays all
7717 Z-code games V1-V8, including V6, with sound support through libao, and uses
7718 ncurses for text display.")
7719 (home-page "http://frotz.sourceforge.net")
7720 (license license:gpl2+)))
7721
7722 (define-public frotz-dumb-terminal
7723 (package
7724 (name "frotz-dumb-terminal")
7725 (version "2.44")
7726 (source (origin
7727 (method url-fetch)
7728 (uri (list (string-append
7729 "http://www.ifarchive.org/if-archive/infocom/interpreters/"
7730 "frotz/frotz-" version ".tar.gz")
7731 (string-append
7732 "ftp://ftp.ifarchive.org/if-archive/infocom/interpreters/"
7733 "frotz/frotz-" version ".tar.gz")))
7734 (sha256
7735 (base32
7736 "1v735xr3blznac8fnwa27s1vhllx4jpz7kw7qdw1bsfj6kq21v3k"))))
7737 (build-system gnu-build-system)
7738 (arguments
7739 `(#:tests? #f ; there are no tests
7740 #:phases
7741 (modify-phases %standard-phases
7742 (delete 'configure)
7743 (replace 'build
7744 (lambda _
7745 (invoke "make" "dumb")))
7746 (replace 'install
7747 (lambda* (#:key outputs #:allow-other-keys)
7748 (let* ((out (assoc-ref outputs "out"))
7749 (bin (string-append out "/bin"))
7750 (man (string-append out "/share/man/man6")))
7751 (install-file "dfrotz" bin)
7752 (mkdir-p man)
7753 (install-file "doc/dfrotz.6" man)
7754 #t))))))
7755 (synopsis "Portable Z-machine dumb interpreter for text adventure games")
7756 (description "Frotz is an interpreter for Infocom games and
7757 other Z-machine games in the text adventure/interactive fiction genre.
7758 dfrotz is the dumb interface version. You get no screen control; everything
7759 is just printed to the terminal line by line. The terminal handles all the
7760 scrolling. Maybe you'd like to experience what it's like to play Adventure on
7761 a teletype. A much cooler use for compiling Frotz with the dumb interface is
7762 that it can be wrapped in CGI scripting, PHP, and the like to allow people
7763 to play games on webpages. It can also be made into a chat bot.")
7764 (home-page "http://frotz.sourceforge.net")
7765 (license license:gpl2+)))
7766
7767 (define-public frotz-sdl
7768 (let* ((commit "4de8c34f2116fff554af6216c30ec9d41bf50b24"))
7769 (package
7770 (name "frotz-sdl")
7771 (version "2.45pre")
7772 (source (origin
7773 (method git-fetch)
7774 (uri (git-reference
7775 (url "https://gitlab.com/DavidGriffith/frotz")
7776 (commit commit)))
7777 (sha256
7778 (base32
7779 "18ms21pcrl7ipcnyqnf8janamkryzx78frsgd9kfk67jvbj0z2k8"))
7780 (file-name (git-file-name name version))))
7781 (build-system gnu-build-system)
7782 (arguments
7783 `(#:tests? #f ; there are no tests
7784 #:phases
7785 (modify-phases %standard-phases
7786 (delete 'configure)
7787 (add-before 'build 'patch-makefile
7788 (lambda _
7789 (substitute* "Makefile"
7790 (("lcurses") "lncurses")
7791 (("^BUILD_DATE_TIME =.*$")
7792 "BUILD_DATE_TIME = \"2.45pre-20180907.00000\"\n"))
7793 #t))
7794 (replace 'build
7795 (lambda _
7796 (invoke "make" "sdl")))
7797 (replace 'install
7798 (lambda* (#:key outputs #:allow-other-keys)
7799 (let* ((out (assoc-ref outputs "out"))
7800 (bin (string-append out "/bin"))
7801 (man (string-append out "/share/man/man6")))
7802 (install-file "sfrotz" bin)
7803 (mkdir-p man)
7804 (install-file "doc/sfrotz.6" man)
7805 #t))))))
7806 (native-inputs
7807 `(("pkg-config" ,pkg-config)
7808 ("which" ,which)
7809 ("perl" ,perl)))
7810 (inputs `(("sdl2" ,sdl2)
7811 ("sdl2-mixer" ,sdl2-mixer)
7812 ("libmodplug" ,libmodplug)
7813 ("libsamplerate" ,libsamplerate)
7814 ("libsndfile" ,libsndfile)
7815 ("libvorbis" ,libvorbis)
7816 ("ncurses" ,ncurses)
7817 ("freetype" ,freetype)
7818 ("libjpeg-turbo" ,libjpeg-turbo)))
7819 (synopsis "Portable Z-machine interpreter (SDL port) for text adventure games")
7820 (description "Frotz is an interpreter for Infocom games and other Z-machine
7821 games in the text adventure/interactive fiction genre. This version of Frotz
7822 using SDL fully supports all these versions of the Z-Machine including the
7823 graphical version 6. Graphics and sound are created through the use of the SDL
7824 libraries. AIFF sound effects and music in MOD and OGG formats are supported
7825 when packaged in Blorb container files or optionally from individual files.")
7826 (home-page "http://frotz.sourceforge.net")
7827 (license license:gpl2+))))
7828
7829 (define-public frozen-bubble
7830 ;; Last official release is very outdated (2010). Use latest commit (2017).
7831 (let ((commit "d6a029110ad6ab9e4960052e175addc98807fb7e")
7832 (revision "1"))
7833 (package
7834 (name "frozen-bubble")
7835 (version (git-version "2.2.1" revision commit))
7836 (source
7837 (origin
7838 (method git-fetch)
7839 (uri (git-reference
7840 (url "https://github.com/kthakore/frozen-bubble")
7841 (commit commit)))
7842 (file-name (git-file-name name version))
7843 (sha256
7844 (base32 "1rfrcym5lf4qac2qdklikb1ywijyxypq298azzxahy461dadl6cx"))))
7845 (build-system perl-build-system)
7846 (arguments
7847 `(#:phases
7848 (modify-phases %standard-phases
7849 ;; Build process needs to create files in the "server"
7850 ;; directory.
7851 (add-after 'unpack 'fix-permissions
7852 (lambda _
7853 (for-each make-file-writable
7854 (find-files "server" "." #:directories? #t))))
7855 ;; By default, build stops at warnings.
7856 (add-after 'unpack 'prevent-build-error
7857 (lambda _
7858 (substitute* "inc/My/Builder.pm"
7859 (("-Werror") ""))
7860 #t))
7861 (add-after 'install 'install-desktop-file-and-icons
7862 (lambda* (#:key outputs #:allow-other-keys)
7863 (let* ((share (string-append (assoc-ref outputs "out") "/share"))
7864 (hicolor (string-append share "/icons/hicolor")))
7865 ;; Create desktop entry.
7866 (make-desktop-entry-file
7867 (string-append share "/applications/" ,name ".desktop")
7868 #:name "Frozen Bubble"
7869 #:comment "Frozen Bubble arcade game"
7870 #:exec ,name
7871 #:icon ,name
7872 #:categories '("Game" "ArcadeGame"))
7873 ;; Add icons.
7874 (with-directory-excursion "share/icons"
7875 (for-each
7876 (lambda (size)
7877 (let* ((dim (string-append size "x" size))
7878 (dir (string-append hicolor "/" dim "/apps")))
7879 (mkdir-p dir)
7880 (copy-file
7881 (string-append "frozen-bubble-icon-" dim ".png")
7882 (string-append dir "/frozen-bubble.png"))))
7883 '("16" "32" "48" "64"))))
7884 #t))
7885 (add-after 'install 'wrap-perl-libs
7886 (lambda* (#:key outputs #:allow-other-keys)
7887 (let ((out (assoc-ref outputs "out"))
7888 (perl5lib (getenv "PERL5LIB")))
7889 (for-each (lambda (prog)
7890 (wrap-program (string-append out "/" prog)
7891 `("PERL5LIB" ":" prefix
7892 (,(string-append perl5lib ":" out
7893 "/lib/perl5/site_perl")))))
7894 (find-files "bin" ".")))
7895 #t)))))
7896 (native-inputs
7897 `(("perl-alien-sdl" ,perl-alien-sdl)
7898 ("perl-capture-tiny" ,perl-capture-tiny)
7899 ("perl-locale-maketext-lexicon" ,perl-locale-maketext-lexicon)
7900 ("perl-module-build" ,perl-module-build)
7901 ("pkg-config" ,pkg-config)))
7902 (inputs
7903 `(("glib" ,glib)
7904 ("perl-compress-bzip2" ,perl-compress-bzip2)
7905 ("perl-file-sharedir" ,perl-file-sharedir)
7906 ("perl-file-slurp" ,perl-file-slurp)
7907 ("perl-file-which" ,perl-file-which)
7908 ("perl-ipc-system-simple" ,perl-ipc-system-simple)
7909 ("perl-sdl" ,perl-sdl)
7910 ("sdl" ,(sdl-union (list sdl sdl-image sdl-mixer sdl-pango sdl-ttf)))))
7911 (home-page "http://frozen-bubble.org/")
7912 (synopsis "Puzzle with bubbles")
7913 (description
7914 "Frozen-Bubble is a clone of the popular Puzzle Bobble game, in which
7915 you attempt to shoot bubbles into groups of the same color to cause them to
7916 pop.
7917
7918 Players compete as penguins and must use the arrow keys to aim a colored
7919 bubble at groups of bubbles. The objective is to clear all the bubbles off
7920 the screen before a bubble passes below a line at the bottom.
7921
7922 It features 100 single-player levels, a two-player mode, music and striking
7923 graphics. A level editor is also included to allow players to create and play
7924 their own levels.")
7925 (license license:gpl2))))
7926
7927 (define-public libmanette
7928 (package
7929 (name "libmanette")
7930 (version "0.2.6")
7931 (source (origin
7932 (method url-fetch)
7933 (uri (string-append "mirror://gnome/sources/libmanette/"
7934 (version-major+minor version) "/"
7935 "libmanette-" version ".tar.xz"))
7936 (sha256
7937 (base32
7938 "1b3bcdkk5xd5asq797cch9id8692grsjxrc1ss87vv11m1ck4rb3"))))
7939 (build-system meson-build-system)
7940 (native-inputs
7941 `(("glib" ,glib "bin") ; for glib-compile-resources
7942 ("gobject-introspection" ,gobject-introspection)
7943 ("pkg-config" ,pkg-config)
7944 ("vala" ,vala)))
7945 (inputs
7946 `(("libevdev" ,libevdev)
7947 ("libgudev" ,libgudev)))
7948 (home-page "https://wiki.gnome.org/Apps/Games")
7949 (synopsis "Game controller library")
7950 (description "Libmanette is a small GObject library giving you simple
7951 access to game controllers. It supports the de-facto standard gamepads as
7952 defined by the W3C standard Gamepad specification or as implemented by the SDL
7953 GameController.")
7954 (license license:lgpl2.1+)))
7955
7956 (define-public quadrapassel
7957 (package
7958 (name "quadrapassel")
7959 (version "3.36.05")
7960 (source (origin
7961 (method url-fetch)
7962 (uri (string-append "mirror://gnome/sources/quadrapassel/"
7963 (version-major+minor version) "/"
7964 "quadrapassel-" version ".tar.xz"))
7965 (sha256
7966 (base32
7967 "04abxmimh5npw8rhz1sfi6wxilgc6i1wka9mlnfwp8v1p1cb00cv"))))
7968 (build-system meson-build-system)
7969 (arguments
7970 '(#:glib-or-gtk? #t
7971 #:phases
7972 (modify-phases %standard-phases
7973 (add-after 'unpack 'skip-gtk-update-icon-cache
7974 ;; Don't create 'icon-theme.cache'.
7975 (lambda _
7976 (substitute* "build-aux/meson_post_install.py"
7977 (("gtk-update-icon-cache") (which "true")))
7978 #t)))))
7979 (native-inputs
7980 `(("desktop-file-utils" ,desktop-file-utils) ;for desktop-file-validate
7981 ("gettext" ,gettext-minimal)
7982 ("glib" ,glib "bin") ;for glib-compile-resources
7983 ("itstool" ,itstool)
7984 ("libxml2" ,libxml2) ;for xmllint
7985 ("pkg-config" ,pkg-config)
7986 ("vala" ,vala)))
7987 (inputs
7988 `(("clutter" ,clutter)
7989 ("clutter-gtk" ,clutter-gtk)
7990 ("gsound" ,gsound)
7991 ("gtk+" ,gtk+)
7992 ("libcanberra" ,libcanberra)
7993 ("libmanette" ,libmanette)
7994 ("librsvg" ,librsvg)))
7995 (home-page "https://wiki.gnome.org/Apps/Quadrapassel")
7996 (synopsis "GNOME version of Tetris")
7997 (description "Quadrapassel comes from the classic falling-block game,
7998 Tetris. The goal of the game is to create complete horizontal lines of
7999 blocks, which will disappear. The blocks come in seven different shapes made
8000 from four blocks each: one straight, two L-shaped, one square, and two
8001 S-shaped. The blocks fall from the top center of the screen in a random
8002 order. You rotate the blocks and move them across the screen to drop them in
8003 complete lines. You score by dropping blocks fast and completing lines. As
8004 your score gets higher, you level up and the blocks fall faster.")
8005 (license license:gpl2+)))
8006
8007 (define-public endless-sky
8008 (package
8009 (name "endless-sky")
8010 (version "0.9.12")
8011 (source
8012 (origin
8013 (method git-fetch)
8014 (uri (git-reference
8015 (url "https://github.com/endless-sky/endless-sky")
8016 (commit (string-append "v" version))))
8017 (file-name (git-file-name name version))
8018 (sha256
8019 (base32 "18nkl4s3r5sy3sd9lhbdg9160c7fggklklprx0d5azifc8g6k0wj"))))
8020 (build-system scons-build-system)
8021 (arguments
8022 `(#:scons ,scons-python2
8023 #:scons-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
8024 #:tests? #f ; no tests
8025 #:phases
8026 (modify-phases %standard-phases
8027 (add-after 'unpack 'patch-resource-locations
8028 (lambda* (#:key outputs #:allow-other-keys)
8029 (substitute* "source/Files.cpp"
8030 (("/usr/local/")
8031 (string-append (assoc-ref outputs "out") "/")))
8032 #t))
8033 (add-after 'unpack 'patch-scons
8034 (lambda _
8035 (substitute* "SConstruct"
8036 ;; Keep environmental variables
8037 (("Environment\\(\\)")
8038 "Environment(ENV = os.environ)")
8039 ;; Install into %out/bin
8040 (("games\"") "bin\""))
8041 #t)))))
8042 (inputs
8043 `(("glew" ,glew)
8044 ("libjpeg" ,libjpeg-turbo)
8045 ("libmad" ,libmad)
8046 ("libpng" ,libpng)
8047 ("openal" ,openal)
8048 ("sdl2" ,sdl2)))
8049 (home-page "https://endless-sky.github.io/")
8050 (synopsis "2D space trading and combat game")
8051 (description "Endless Sky is a 2D space trading and combat game. Explore
8052 other star systems. Earn money by trading, carrying passengers, or completing
8053 missions. Use your earnings to buy a better ship or to upgrade the weapons and
8054 engines on your current one. Blow up pirates. Take sides in a civil war. Or
8055 leave human space behind and hope to find friendly aliens whose culture is more
8056 civilized than your own.")
8057 (license (list license:gpl3+
8058 license:cc-by-sa3.0
8059 license:cc-by-sa4.0
8060 license:public-domain))))
8061
8062 (define-public stepmania
8063 (package
8064 (name "stepmania")
8065 (version "5.1.0-b2")
8066 (source
8067 (origin
8068 (method git-fetch)
8069 (uri (git-reference
8070 (url "https://github.com/stepmania/stepmania")
8071 (commit (string-append "v" version))))
8072 (file-name (git-file-name name version))
8073 (sha256
8074 (base32
8075 "0a7y9l7xm510vgnpmj1is7p9m6d6yd0fcaxrjcickz295k5w3rdn"))
8076 (modules '((guix build utils)))
8077 (snippet
8078 '(begin
8079 ;; Remove song files, which are licensed under a non-commercial
8080 ;; clause, and a course pointing to them.
8081 (for-each delete-file-recursively
8082 '("Songs/StepMania 5/Goin' Under"
8083 "Songs/StepMania 5/MechaTribe Assault"
8084 "Songs/StepMania 5/Springtime"))
8085 (for-each delete-file '("Courses/Default/Jupiter.crs"
8086 "Courses/Default/Jupiter.png"))
8087 ;; Unbundle libpng.
8088 (substitute* "extern/CMakeLists.txt"
8089 (("include\\(CMakeProject-png.cmake\\)") ""))
8090 (delete-file-recursively "extern/libpng")
8091 #t))))
8092 (build-system cmake-build-system)
8093 (arguments
8094 `(#:tests? #f ;FIXME: couldn't find how to run tests
8095 #:build-type "Release"
8096 #:out-of-source? #f ;for the 'install-desktop' phase
8097 #:configure-flags
8098 (list "-DWITH_SYSTEM_FFMPEG=1"
8099 ;; SSE instructions are available on Intel systems only.
8100 ,@(if (any (cute string-prefix? <> (or (%current-target-system)
8101 (%current-system)))
8102 '("x86_64" "i686"))
8103 '()
8104 '("-DWITH_SSE2=NO"))
8105 ;; Configuration cannot find GTK2 without the two following
8106 ;; flags.
8107 (string-append "-DGTK2_GDKCONFIG_INCLUDE_DIR="
8108 (assoc-ref %build-inputs "gtk+")
8109 "/lib/gtk-2.0/include")
8110 (string-append "-DGTK2_GLIBCONFIG_INCLUDE_DIR="
8111 (assoc-ref %build-inputs "glib")
8112 "/lib/glib-2.0/include"))
8113 #:phases
8114 (modify-phases %standard-phases
8115 (add-after 'unpack 'ensure-application-files-can-be-found
8116 (lambda* (#:key outputs #:allow-other-keys)
8117 (let ((out (assoc-ref outputs "out")))
8118 (substitute* "src/arch/LoadingWindow/LoadingWindow_Gtk.cpp"
8119 (("RageFileManagerUtil::sDirOfExecutable \\+ \"/\" \\+ \"GtkModule.so\"")
8120 (string-append "\"" out
8121 "/share/stepmania/GtkModule.so\"")))
8122 (substitute* "src/arch/ArchHooks/ArchHooks_Unix.cpp"
8123 (("Root = sDirOfExecutable")
8124 (string-append "Root = \"" out "/share/stepmania/\""))
8125 (("sDirOfExecutable \\+ \"/(Packages|Songs)\"" _ dir)
8126 (string-append "\"" out "/share/stepmania/" dir "\"")))
8127 (substitute* "src/RageFileManager.cpp"
8128 (("RageFileManagerUtil::sDirOfExecutable \\+ \"/\"")
8129 (string-append "\"" out "/share/stepmania/\""))))
8130 #t))
8131 (add-after 'unpack 'fix-install-subdir
8132 ;; Installation would be done in "%out/stepmania-X.Y", but we
8133 ;; prefer the more common layout "%out/share/stepmania".
8134 (lambda _
8135 (substitute* "src/CMakeLists.txt"
8136 (("\"stepmania-.*?\"") "\"share/stepmania\""))
8137 #t))
8138 (add-after 'unpack 'unbundle-libpng
8139 (lambda* (#:key inputs #:allow-other-keys)
8140 (substitute* "src/CMakeLists.txt"
8141 (("\\$\\{SM_EXTERN_DIR\\}/libpng/include")
8142 (string-append (assoc-ref inputs "libpng") "/include")))
8143 #t))
8144 (add-after 'install 'install-executable
8145 (lambda* (#:key outputs #:allow-other-keys)
8146 (let* ((out (assoc-ref outputs "out"))
8147 (bin (string-append out "/bin"))
8148 (exe (string-append out "/share/stepmania/stepmania")))
8149 (mkdir-p bin)
8150 (symlink exe (string-append bin "/stepmania"))
8151 #t)))
8152 (add-after 'install-executable 'install-desktop
8153 (lambda* (#:key outputs #:allow-other-keys)
8154 (let* ((out (assoc-ref outputs "out"))
8155 (share (string-append out "/share"))
8156 (applications (string-append share "/applications"))
8157 (icons (string-append share "/icons")))
8158 (install-file "stepmania.desktop" applications)
8159 (mkdir-p icons)
8160 (copy-recursively "icons" icons)
8161 #t)))
8162 ;; Move documentation in a more usual place, i.e.,
8163 ;; "%out/share/doc/stepmania/".
8164 (add-after 'install-desktop 'install-doc
8165 (lambda* (#:key outputs #:allow-other-keys)
8166 (let* ((out (assoc-ref outputs "out"))
8167 (share (string-append out "/share")))
8168 (with-directory-excursion share
8169 (mkdir-p "doc")
8170 (symlink "../stepmania/Docs" "doc/stepmania"))
8171 #t))))))
8172 (native-inputs
8173 `(("pkg-config" ,pkg-config)
8174 ("yasm" ,yasm)))
8175 (inputs
8176 `(("alsa-lib" ,alsa-lib)
8177 ;; Per upstream, StepMania is only guaranteed to work with a very
8178 ;; specific FFmpeg version, which is included in the repository as
8179 ;; a Git submodule. This particular version requirement usually
8180 ;; changes every few years.
8181 ("ffmpeg" ,ffmpeg-for-stepmania)
8182 ("glib" ,glib)
8183 ("glew" ,glew)
8184 ("gtk+" ,gtk+-2)
8185 ("jsoncpp" ,jsoncpp)
8186 ("libpng" ,libpng)
8187 ("libjpeg" ,libjpeg-turbo)
8188 ("libmad" ,libmad)
8189 ("libogg" ,libogg)
8190 ("libva" ,libva)
8191 ("libvorbis" ,libvorbis)
8192 ("libxinerama" ,libxinerama)
8193 ("libxrandr" ,libxrandr)
8194 ("mesa" ,mesa)
8195 ("pcre" ,pcre)
8196 ("pulseaudio" ,pulseaudio)
8197 ("sdl" ,sdl2)
8198 ("udev" ,eudev)
8199 ("zlib" ,zlib)))
8200 (synopsis "Advanced rhythm game designed for both home and arcade use")
8201 (description "StepMania is a dance and rhythm game. It features 3D
8202 graphics, keyboard and dance pad support, and an editor for creating your own
8203 steps.
8204
8205 This package provides the core application, but no song is shipped. You need
8206 to download and install them in @file{$HOME/.stepmania-X.Y/Songs} directory.")
8207 (home-page "https://www.stepmania.com")
8208 (license license:expat)))
8209
8210 (define-public btanks
8211 (package
8212 (name "btanks")
8213 (version "0.9.8083")
8214 (source
8215 (origin
8216 (method url-fetch)
8217 (uri (string-append "mirror://sourceforge/btanks/btanks-source/"
8218 "btanks-" version ".tar.bz2"))
8219 (sha256
8220 (base32
8221 "0ha35kxc8xlbg74wsrbapfgxvcrwy6psjkqi7c6adxs55dmcxliz"))))
8222 (build-system scons-build-system)
8223 (arguments
8224 `(#:tests? #f ; there are none
8225 #:scons ,scons-python2
8226 #:scons-flags (list (string-append "prefix=" (assoc-ref %outputs "out")))
8227 #:phases
8228 (modify-phases %standard-phases
8229 (add-after 'unpack 'replace-removed-scons-syntax
8230 (lambda _
8231 (substitute* "SConstruct"
8232 (("Options") "Variables")
8233 (("opts.Add\\(BoolOption.*") "opts.Add('gcc_visibility', 'gcc visibility', 'true')")
8234 (("opts.Add\\(EnumOption.*") "opts.Add('mode', 'build mode', 'release')"))
8235 #t))
8236 (add-after 'set-paths 'set-sdl-paths
8237 (lambda* (#:key inputs #:allow-other-keys)
8238 (setenv "CPATH"
8239 (string-append (assoc-ref inputs "sdl")
8240 "/include/SDL:"
8241 (or (getenv "CPATH") "")))
8242 #t))
8243 (add-after 'unpack 'fix-compilation-errors
8244 (lambda _
8245 (substitute* "mrt/base_file.h"
8246 (("#include <string>" m)
8247 (string-append m "\n#include <sys/types.h>")))
8248 (substitute* '("engine/sl08/sl08.h"
8249 "engine/sl08/sl08.py")
8250 (("signal = NULL") "signal = 0")
8251 (("object\\(NULL\\)") "object(0)")
8252 (("func\\(NULL\\)") "func(0)")
8253 ((" connect\\(signal_ref\\)")
8254 " this->connect(signal_ref)"))
8255 (substitute* "math/range_list.h"
8256 ((" lower_bound\\(value\\)")
8257 " this->lower_bound(value)")
8258 ((" erase\\(i\\)")
8259 " this->erase(i)"))
8260 (substitute* "clunk/source.cpp"
8261 (("using namespace clunk" m)
8262 (string-append "# define pow10f(x) exp10f(x)\n" m)))
8263 #t))
8264 (add-after 'unpack 'find-lua
8265 (lambda _
8266 (substitute* "engine/SConscript"
8267 (("lua5.1") "lua-5.1")
8268 (("bt_libs.append\\(lua\\)")
8269 "bt_libs.append(\"lua\")"))
8270 #t)))))
8271 (inputs
8272 `(("expat" ,expat)
8273 ("glu" ,glu)
8274 ("libsmpeg" ,libsmpeg-with-sdl1)
8275 ("libvorbis" ,libvorbis)
8276 ("lua51" ,lua-5.1)
8277 ("sdl" ,(sdl-union (list sdl
8278 sdl-mixer
8279 sdl-image
8280 sdl-ttf)))
8281 ("zlib" ,zlib)))
8282 (native-inputs
8283 `(("pkg-config" ,pkg-config)
8284 ("zip" ,zip)))
8285 (home-page "http://btanks.sourceforge.net")
8286 (synopsis "Multiplayer tank battle game")
8287 (description "Battle Tanks (also known as \"btanks\") is a funny battle
8288 game, where you can choose one of three vehicles and eliminate your enemy
8289 using the whole arsenal of weapons. It has original cartoon-like graphics and
8290 cool music, it’s fun and dynamic, it has several network modes for deathmatch
8291 and cooperative.")
8292 ;; Some parts (e.g. mrt/b64.cpp) are LGPLv2.1+, but the whole package is
8293 ;; released under GPLv2 or later. It comes with extra exceptions for the
8294 ;; developers.
8295 (license (list license:gpl2+ license:lgpl2.1+))))
8296
8297 (define-public slimevolley
8298 (package
8299 (name "slimevolley")
8300 (version "2.4.2")
8301 (source
8302 (origin
8303 (method url-fetch)
8304 (uri (string-append "https://download.tuxfamily.org/slime/"
8305 "slimevolley_" version ".tar.gz"))
8306 (sha256
8307 (base32 "1pi60zjpx95mfdkrbwf4cbzy5lv4v5qrljvgck46qca78i9g9g46"))))
8308 (build-system cmake-build-system)
8309 (arguments
8310 `(#:tests? #f ;no test
8311 ;; Work around build failure: "error adding symbols: DSO
8312 ;; missing from command line".
8313 #:configure-flags (list "-DCMAKE_EXE_LINKER_FLAGS=-lm")))
8314 (native-inputs
8315 `(("gettext" ,gettext-minimal)))
8316 (inputs
8317 `(("sdl" ,(sdl-union (list sdl sdl-image sdl-net sdl-ttf)))))
8318 (home-page "https://slime.tuxfamily.org/")
8319 (synopsis "Unrealistic 2D volleyball simulation")
8320 (description
8321 "Slime Volley is a 2D arcade-oriented volleyball simulation, in
8322 the spirit of some Java games of the same name.
8323
8324 Two teams, 1-3 players each, try to be the first to get 10 points.
8325 This happens when the one ball touches the floor on the other side of
8326 the net. There can be 1 to 8 balls in game. Once one ball touches
8327 the ground, the set ends and all balls are served again.")
8328 (license license:gpl3+)))
8329
8330 (define-public slingshot
8331 (package
8332 (name "slingshot")
8333 (version "0.9")
8334 (source
8335 (origin
8336 (method git-fetch)
8337 (uri (git-reference
8338 (url "https://github.com/ryanakca/slingshot")
8339 (commit version)))
8340 (file-name (git-file-name name version))
8341 (sha256
8342 (base32
8343 "19m8b6nsi786bc6gmkp185mwri3r5y249gjmqd5qsc23nnfhgrs1"))))
8344 (build-system python-build-system)
8345 (arguments
8346 `(#:python ,python-2))
8347 (inputs
8348 `(("python-pygame" ,python2-pygame)))
8349 (home-page "https://github.com/ryanakca/slingshot")
8350 (synopsis "Simple 2D shooting strategy game set in space")
8351 (description "Slingshot is a two-dimensional strategy game where two
8352 players attempt to shoot one another through a section of space populated by
8353 planets. The main feature of the game is that the shots, once fired, are
8354 affected by the gravity of the planets.")
8355 (license license:gpl2+)))
8356
8357 (define-public 4dtris
8358 (package
8359 (name "4dtris")
8360 (version "0.4.3")
8361 (source
8362 (origin
8363 (method url-fetch)
8364 (uri (string-append "https://launchpad.net/4dtris/"
8365 (version-major+minor version)
8366 "/" version "/+download/4dtris_"
8367 version ".orig.tar.gz"))
8368 (sha256
8369 (base32
8370 "1nfkhcm0l89jyw8yr65na97g4l385zhjf7whkyg47c3v5sdqq2g7"))))
8371 (build-system gnu-build-system)
8372 (arguments
8373 `(#:phases
8374 (modify-phases %standard-phases
8375 (add-after 'unpack 'fix-install-directories
8376 (lambda* (#:key outputs #:allow-other-keys)
8377 (let ((out (assoc-ref outputs "out")))
8378 (substitute* "Makefile.in"
8379 (("bindir = /usr/games")
8380 (string-append "bindir = " out "/bin"))
8381 (("/usr/share/applications")
8382 (string-append out "/share/applications"))
8383 (("/usr/share/games/4dtris")
8384 (string-append out "/share/4dtris"))))
8385 #t))
8386 (add-after 'set-paths 'set-sdl-paths
8387 (lambda* (#:key inputs #:allow-other-keys)
8388 (setenv "CPATH"
8389 (string-append (assoc-ref inputs "sdl")
8390 "/include/SDL:"
8391 (or (getenv "CPATH") "")))
8392 #t)))))
8393 (inputs
8394 `(("fontconfig" ,fontconfig)
8395 ("freeglut" ,freeglut)
8396 ("sdl" ,(sdl-union (list sdl sdl-ttf)))))
8397 (home-page "https://launchpad.net/4dtris/")
8398 (synopsis "4D Tetris")
8399 (description "4D-TRIS is an alteration of the well-known Tetris game. The
8400 game field is extended to 4D space, which has to filled up by the gamer with
8401 4D hyper cubes.")
8402 (license license:gpl3)))
8403
8404 (define-public arx-libertatis
8405 (package
8406 (name "arx-libertatis")
8407 (version "1.1.2")
8408 (source
8409 (origin
8410 (method url-fetch)
8411 (uri (string-append "http://arx-libertatis.org/files/arx-libertatis-"
8412 version ".tar.xz"))
8413 (sha256
8414 (base32
8415 "0hjfxlsmp8wwqr06snv2dlly2s79ra0d9aw49gkp6rn8m50b9bc2"))))
8416 (build-system cmake-build-system)
8417 (outputs '("out" "installer"))
8418 (arguments
8419 '(#:tests? #f ; No tests.
8420 #:phases
8421 (modify-phases %standard-phases
8422 (add-after 'unpack 'fix-install-helper-paths
8423 (lambda* (#:key inputs #:allow-other-keys)
8424 (let ((p7zip (assoc-ref inputs "p7zip"))
8425 (innoextract (assoc-ref inputs "innoextract"))
8426 (wget (assoc-ref inputs "wget"))
8427 (zenity (assoc-ref inputs "zenity")))
8428 (substitute* "scripts/arx-install-data"
8429 (("have innoextract")
8430 (string-append "have " innoextract "/bin/innoextract"))
8431 (("then innoextract")
8432 (string-append "then " innoextract "/bin/innoextract"))
8433 (("else innoextract")
8434 (string-append "else " innoextract "/bin/innoextract"))
8435 (("for _extract_zip_sz in 7za 7z")
8436 (string-append "for _extract_zip_sz in " p7zip "/bin/7za"))
8437 (("else if have 7z")
8438 (string-append "else if have " p7zip "/bin/7za"))
8439 (("7z x -tiso")
8440 (string-append p7zip "/bin/7z x -tiso"))
8441 (("if have wget")
8442 (string-append "if have " wget "/bin/wget"))
8443 (("wget -O")
8444 (string-append wget "/bin/wget -O"))
8445 (("for backend in \\$preferred zenity")
8446 (string-append "for backend in $preferred " zenity "/bin/zenity"))
8447 (("zenity +--title")
8448 (string-append zenity "/bin/zenity --title"))
8449 (("^zenity\\)")
8450 (string-append zenity "/bin/zenity)"))))
8451 #t))
8452 (add-after 'install 'move-installer
8453 (lambda* (#:key outputs #:allow-other-keys)
8454 (let ((out (assoc-ref outputs "out"))
8455 (installer (assoc-ref outputs "installer")))
8456 (mkdir-p (string-append installer "/bin"))
8457 (rename-file (string-append out "/bin/arx-install-data")
8458 (string-append installer "/bin/arx-install-data"))))))))
8459 (inputs
8460 `(("sdl" ,sdl) ; Switch to sdl2 in >1.1.2.
8461 ("mesa" ,mesa) ; Switch to libepoxy in >1.1.2.
8462 ("glew" ,glew)
8463 ("openal" ,openal)
8464 ("zlib" ,zlib)
8465 ("boost" ,boost)
8466 ("glm" ,glm)
8467 ("freetype" ,freetype)
8468 ;; The following are only needed by the arx-install-data script.
8469 ("p7zip" ,p7zip) ; Install-helper uses it to extract ISO and .cab archives.
8470 ("zenity" ,zenity) ; GUI for install-helper.
8471 ("wget" ,wget) ; Used by the install-helper to download the patch.
8472 ;; The install-helper needs it to extract the patch.
8473 ("innoextract" ,innoextract)))
8474 (home-page "https://arx-libertatis.org/")
8475 (synopsis "Port of Arx Fatalis, a first-person role-playing game")
8476 (description "Arx Libertatis is a cross-platform port of Arx Fatalis, a 2002
8477 first-person role-playing game / dungeon crawler developed by Arkane Studios.
8478 This port however does not include the game data, so you need to obtain a copy
8479 of the original Arx Fatalis or its demo to play Arx Libertatis. Arx Fatalis
8480 features crafting, melee and ranged combat, as well as a unique casting system
8481 where the player draws runes in real time to effect the desired spell.")
8482 (license license:gpl3+)))
8483
8484 (define-public edgar
8485 (package
8486 (name "edgar")
8487 (version "1.33")
8488 (source
8489 (origin
8490 (method url-fetch)
8491 (uri
8492 (string-append "https://github.com/riksweeney/edgar/releases/download/"
8493 version "/edgar-" version "-1.tar.gz"))
8494 (sha256
8495 (base32 "1mbx7dvizdca4g1blcv3bdh6yxd13k47rkya4rdzg0nvvz24m175"))))
8496 (build-system gnu-build-system)
8497 (arguments '(#:tests? #f ; there are no tests
8498 #:make-flags
8499 (list "CC=gcc"
8500 (string-append "PREFIX=" (assoc-ref %outputs "out"))
8501 (string-append "BIN_DIR=" (assoc-ref %outputs "out") "/bin/"))
8502 #:phases
8503 (modify-phases %standard-phases
8504 (delete 'configure)
8505 (add-before 'build 'fix-env
8506 (lambda* (#:key inputs #:allow-other-keys)
8507 (setenv "CPATH"
8508 (string-append (assoc-ref inputs "sdl2-union")
8509 "/include/SDL2:"
8510 (or (getenv "CPATH") "")))
8511 #t)))))
8512 (inputs
8513 `(("sdl2-union" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer sdl2-ttf)))
8514 ("zlib" ,zlib)))
8515 (native-inputs
8516 `(("pkg-config" ,pkg-config)
8517 ("autoconf" ,autoconf)
8518 ("automake" ,automake)
8519 ("gnu-gettext" ,gettext-minimal)
8520 ("libtool" ,libtool)
8521 ("which" ,which)))
8522 (synopsis "2d action platformer game")
8523 (description "The Legend of Edgar is a 2D platform game with a persistent world.
8524 When Edgar's father fails to return home after venturing out one dark and stormy night,
8525 Edgar fears the worst: he has been captured by the evil sorcerer who lives in
8526 a fortress beyond the forbidden swamp.")
8527 (home-page "https://www.parallelrealities.co.uk/games/edgar/")
8528 (license license:gpl2+)))
8529
8530 (define-public openclonk
8531 (package
8532 (name "openclonk")
8533 (version "8.1")
8534 (source (origin
8535 (method url-fetch)
8536 (uri (string-append
8537 "https://www.openclonk.org/builds/release/" version "/"
8538 "openclonk-" version "-src.tar.bz2"))
8539 (sha256
8540 (base32
8541 "0imkqjp8lww5p0cnqf4k4mb2v682mnsas63qmiz17rspakr7fxik"))))
8542 (build-system cmake-build-system)
8543 (arguments
8544 `(#:configure-flags '("-DAudio_TK=OpenAL")
8545 #:test-target "tests"
8546 #:phases
8547 (modify-phases %standard-phases
8548 (add-after 'unpack 'prepare-gmock
8549 (lambda* (#:key inputs #:allow-other-keys)
8550 (mkdir "gmock")
8551 (copy-recursively (assoc-ref inputs "googlemock") "gmock")
8552 (substitute* "tests/CMakeLists.txt"
8553 (("/usr/src/gmock")
8554 (string-append (getcwd) "/gmock/googlemock"))
8555 (("/usr/src/gtest")
8556 (string-append (getcwd) "/gmock/googletest"))
8557 (("PATH_SUFFIXES \"src\" \"gtest\"")
8558 "PATH_SUFFIXES \"src\""))
8559 #t))
8560 (add-after 'unpack 'adjust-backward-cpp-includes
8561 (lambda _
8562 ;; XXX: The bundled backward-cpp exports a CMake "interface"
8563 ;; that includes external libraries such as libdl from glibc.
8564 ;; By default, CMake interface includes are treated as "system
8565 ;; headers", and GCC behaves poorly when glibc is passed as a
8566 ;; system header (causing #include_next failures).
8567
8568 ;; Here we prevent targets that consume the Backward::Backward
8569 ;; interface from treating it as "system includes".
8570 (substitute* "CMakeLists.txt"
8571 (("target_link_libraries\\((.+) Backward::Backward\\)" all target)
8572 (string-append "set_property(TARGET " target " PROPERTY "
8573 "NO_SYSTEM_FROM_IMPORTED true)\n"
8574 all)))
8575 #t))
8576 (add-after 'unpack 'add-libiberty
8577 ;; Build fails upon linking executables without this.
8578 (lambda _
8579 (substitute* "thirdparty/backward-cpp/BackwardConfig.cmake"
8580 (("set\\(LIBBFD_LIBRARIES (.*?)\\)" _ libraries)
8581 (string-append "set(LIBBFD_LIBRARIES " libraries " iberty)")))
8582 #t))
8583 (add-after 'add-libiberty 'lax-freealut-requirement
8584 ;; TODO: We provide freealut 1.1.0, but pkg-config somehow detects
8585 ;; it as 1.0.1. Force minimal version.
8586 (lambda _
8587 (substitute* "cmake/FindAudio.cmake"
8588 (("freealut>=1.1.0") "freealut>=1.0.1"))
8589 #t))
8590 (add-after 'lax-freealut-requirement 'fix-directories
8591 ;; Prefer "$out/share/openclonk" over
8592 ;; "$out/share/games/openclonk". Also install "openclonk"
8593 ;; binary in "bin/", not "games/".
8594 (lambda _
8595 (substitute* "CMakeLists.txt"
8596 (("share/games/openclonk") "share/openclonk")
8597 (("TARGETS openclonk DESTINATION games")
8598 "TARGETS openclonk DESTINATION bin"))
8599 #t)))))
8600 (native-inputs
8601 `(("googlemock" ,(package-source googletest))
8602 ("googletest" ,googletest)
8603 ("pkg-config" ,pkg-config)))
8604 (inputs
8605 `(("freealut" ,freealut)
8606 ("freetype" ,freetype)
8607 ("glew" ,glew)
8608 ("libiberty" ,libiberty)
8609 ("libjpeg" ,libjpeg-turbo)
8610 ("libogg" ,libogg)
8611 ("libpng" ,libpng)
8612 ("libvorbis" ,libvorbis)
8613 ("libxrandr" ,libxrandr)
8614 ("mesa" ,mesa)
8615 ("miniupnpc" ,miniupnpc)
8616 ("openal" ,openal)
8617 ("qtbase" ,qtbase)
8618 ("readline" ,readline)
8619 ("sdl" ,sdl2)
8620 ("tinyxml" ,tinyxml)
8621 ("zlib" ,zlib)))
8622 (home-page "https://www.openclonk.org/")
8623 (synopsis
8624 "Multiplayer action game where you control small and nimble humanoids")
8625 (description "OpenClonk is a multiplayer action/tactics/skill game. It is
8626 often referred to as a mixture of The Settlers and Worms. In a simple 2D
8627 antfarm-style landscape, the player controls a crew of Clonks, small but
8628 robust humanoid beings. The game encourages free play but the normal goal is
8629 to either exploit valuable resources from the earth by building a mine or
8630 fight each other on an arena-like map.")
8631 ;; Software as a whole is licensed under ISC, artwork under CC-BY.
8632 (license (list license:isc license:cc-by3.0))))
8633
8634 (define-public flare-engine
8635 (package
8636 (name "flare-engine")
8637 (version "1.11")
8638 (source (origin
8639 (method git-fetch)
8640 (uri (git-reference
8641 (url "https://github.com/flareteam/flare-engine")
8642 (commit (string-append "v" version))))
8643 (file-name (git-file-name name version))
8644 (sha256
8645 (base32
8646 "1mqr1s72p5bdh4kq2a8hg72dk8lwnddicjnd2cdp1sbfa9lmjym8"))))
8647 (build-system cmake-build-system)
8648 (arguments
8649 `(#:tests? #f ;no test
8650 #:configure-flags '("-DBINDIR=bin" "-DDATADIR=share/flare")))
8651 (inputs
8652 `(("hicolor-icon-theme" ,hicolor-icon-theme)
8653 ("python" ,python-wrapper)
8654 ("sdl" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer sdl2-ttf)))))
8655 (home-page "http://www.flarerpg.org/")
8656 (synopsis "Action Roleplaying Engine")
8657 (description "Flare (Free Libre Action Roleplaying Engine) is a simple
8658 game engine built to handle a very specific kind of game: single-player 2D
8659 action RPGs.")
8660 (license license:gpl3+)))
8661
8662 (define-public flare-game
8663 (package
8664 (name "flare-game")
8665 (version "1.11")
8666 (source (origin
8667 (method git-fetch)
8668 (uri (git-reference
8669 (url "https://github.com/flareteam/flare-game")
8670 (commit (string-append "v" version))))
8671 (file-name (git-file-name name version))
8672 (sha256
8673 (base32
8674 "0bd5g7sd89a9176ilr408hdqzdfv4j7wj0idd685c1n6s01c3h6p"))))
8675 (build-system cmake-build-system)
8676 (arguments
8677 `(#:tests? #f ;no test
8678 #:configure-flags '("-DDATADIR=share/flare")
8679 #:phases
8680 (modify-phases %standard-phases
8681 ;; Flare expects the mods to be located in the same folder.
8682 ;; Yet, "default" mod is in the engine, whereas the others
8683 ;; are in the current package. Merge everything here with
8684 ;; a symlink.
8685 (add-after 'install 'add-default-mod
8686 (lambda* (#:key inputs outputs #:allow-other-keys)
8687 (let* ((out (assoc-ref outputs "out"))
8688 (mods (string-append out "/share/flare/mods")))
8689 (with-directory-excursion mods
8690 (symlink (string-append (assoc-ref inputs "flare-engine")
8691 "/share/flare/mods/default")
8692 "default")))
8693 #t))
8694 (add-after 'install 'install-executable
8695 ;; The package only provides assets for the game, the
8696 ;; executable coming from "flare-engine". Since more than
8697 ;; one game may use the engine, we create a new executable,
8698 ;; "flare-game", which launches the engine with appropriate
8699 ;; parameters.
8700 (lambda* (#:key inputs outputs #:allow-other-keys)
8701 (let* ((out (assoc-ref outputs "out"))
8702 (bash (string-append (assoc-ref inputs "bash")
8703 "/bin/bash"))
8704 (flare (string-append (assoc-ref inputs "flare-engine")
8705 "/bin/flare"))
8706 (script (string-append out "/bin/flare-game")))
8707 (mkdir-p (dirname script))
8708 (call-with-output-file script
8709 (lambda (port)
8710 (format port
8711 "#!~a
8712 exec ~a --data-path=~a/share/flare --mods=empyrean_campaign~%"
8713 bash
8714 flare
8715 out)))
8716 (chmod script #o755))
8717 #t)))))
8718 (inputs
8719 `(("flare-engine" ,flare-engine)))
8720 (home-page "http://www.flarerpg.org/")
8721 (synopsis "Fantasy action RPG using the FLARE engine")
8722 (description "Flare is a single-player 2D action RPG with
8723 fast-paced action and a dark fantasy style.")
8724 (license license:cc-by-sa3.0)))
8725
8726 (define-public meritous
8727 (package
8728 (name "meritous")
8729 (version "1.5")
8730 (source (origin
8731 (method git-fetch)
8732 (uri (git-reference
8733 (url "https://gitlab.com/meritous/meritous.git")
8734 (commit (string-append "v" version))))
8735 (file-name (git-file-name name version))
8736 (sha256
8737 (base32
8738 "0n5jm4g0arjllgqmd2crv8h02i6hs3hlh1zyc7ng7yfpg1mbd8p8"))))
8739 (build-system gnu-build-system)
8740 (arguments
8741 `(#:tests? #f ;no test
8742 #:make-flags
8743 (list "CC=gcc"
8744 (string-append "prefix=" (assoc-ref %outputs "out")))
8745 #:phases
8746 (modify-phases %standard-phases
8747 (delete 'configure)
8748 (add-after 'unpack 'fix-sdl-path
8749 ;; XXX: For some reason, `sdl-config' reports stand-alone SDL
8750 ;; directory, not SDL-union provided as an input to the package.
8751 ;; We force the latter with "--prefix=" option.
8752 (lambda* (#:key inputs #:allow-other-keys)
8753 (substitute* "Makefile"
8754 (("sdl-config" command)
8755 (string-append command " --prefix=" (assoc-ref inputs "sdl"))))
8756 #t))
8757 (add-after 'unpack 'fix-crash
8758 ;; XXX: Songs are not present in the repository, due to licensing
8759 ;; issues. Yet, the game tries to load them, and, since it cannot
8760 ;; find them, crashes. Users cannot add them back, the store being
8761 ;; read-only, so we turn off background music altogether.
8762 (lambda _
8763 (substitute* "src/audio.c"
8764 (("PlayBackgroundMusic\\(new_track\\);" all)
8765 (string-append "// " all)))
8766 #t)))))
8767 (native-inputs
8768 `(("intltool" ,intltool)))
8769 (inputs
8770 `(("sdl" ,(sdl-union (list sdl sdl-image sdl-mixer)))
8771 ("zlib" ,zlib)))
8772 (home-page "https://gitlab.com/meritous/meritous")
8773 (synopsis "Action-adventure dungeon crawl game")
8774 (description "Far below the surface of the planet is a place of limitless
8775 power. Those that seek to control such a utopia will soon bring an end to
8776 themselves. Seeking an end to the troubles that plague him, PSI user Merit
8777 journeys into the hallowed Orcus Dome in search of answers.
8778
8779 Meritous is a action-adventure game with simple controls but a challenge to
8780 find a balance of power versus recovery time during real-time battles. Set in
8781 a procedurally generated world, the player can explore thousands of rooms in
8782 search of powerful artifacts, tools to help them, and to eventually free the
8783 Orcus Dome from evil.")
8784 (license license:gpl3+)))
8785
8786 (define-public marble-marcher
8787 (let ((commit "e580460a0c3826f9b28ab404607942a8ecb625d7")
8788 (revision "1"))
8789 (package
8790 (name "marble-marcher")
8791 (version (git-version "0" revision commit))
8792 (source (origin
8793 (method git-fetch)
8794 (uri (git-reference
8795 (url "https://github.com/HackerPoet/MarbleMarcher")
8796 (commit commit)))
8797 (file-name (git-file-name name version))
8798 (sha256
8799 (base32
8800 "0jjv832hl1v170n6gryp2sr3lgqndi9ab841qvgqk68bks8701mx"))))
8801 (build-system cmake-build-system)
8802 (arguments
8803 `(#:tests? #f ; there are none
8804 #:phases
8805 (modify-phases %standard-phases
8806 (add-after 'unpack 'embed-asset-directory
8807 (lambda* (#:key outputs #:allow-other-keys)
8808 (let ((assets (string-append (assoc-ref outputs "out")
8809 "/share/marble-marcher/assets/")))
8810 ;; Some of the files we're patching are
8811 ;; ISO-8859-1-encoded, so choose it as the default
8812 ;; encoding so the byte encoding is preserved.
8813 (with-fluids ((%default-port-encoding #f))
8814 (substitute* "src/Resource.rc"
8815 (("../assets/icon.ico")
8816 (string-append assets "icon.ico")))
8817 (substitute* "src/Res.h"
8818 (("assets/") assets))))
8819 #t))
8820 (replace 'install
8821 (lambda* (#:key outputs #:allow-other-keys)
8822 (let* ((out (assoc-ref outputs "out"))
8823 (assets (string-append out "/share/marble-marcher/assets"))
8824 (bin (string-append out "/bin/")))
8825 (mkdir-p bin)
8826 (mkdir-p assets)
8827 (copy-recursively "../source/assets" assets)
8828 (install-file "MarbleMarcher" bin))
8829 #t)))))
8830 (inputs
8831 `(("eigen" ,eigen)
8832 ("mesa" ,mesa)
8833 ("sfml" ,sfml)))
8834 (native-inputs
8835 `(("pkg-config" ,pkg-config)))
8836 (home-page "https://codeparade.itch.io/marblemarcher")
8837 (synopsis "Guide a marble across fractal landscapes")
8838 (description "Marble Marcher is a video game that uses a fractal physics
8839 engine and fully procedural rendering to produce beautiful and unique
8840 gameplay. The game is played on the surface of evolving fractals. The goal
8841 of the game is to get your marble to the flag as quickly as possible. But be
8842 careful not to fall off the level or get crushed by the fractal! There are 24
8843 levels to unlock.")
8844 ;; Code is under GPLv2+, assets are under CC-BY-SA 3.0 and OFL 1.1.
8845 (license (list license:gpl2+
8846 license:silofl1.1
8847 license:cc-by-sa3.0)))))
8848
8849 ;; This must be updated together with flightgear.
8850 (define simgear
8851 (package
8852 (name "simgear")
8853 (version "2018.3.5")
8854 (source
8855 (origin
8856 (method url-fetch)
8857 (uri (string-append "mirror://sourceforge/flightgear/release-"
8858 (version-major+minor version) "/"
8859 "simgear-" version ".tar.bz2"))
8860 (sha256
8861 (base32 "1vkqm66r1205k3hdjmx5wmx5kvmsb0dgfzrs8n5gqnxj8szs42dl"))))
8862 (build-system cmake-build-system)
8863 (arguments
8864 `(#:phases
8865 (modify-phases %standard-phases
8866 (replace 'check
8867 (lambda _
8868 ;; Skip tests that require internet access.
8869 (invoke "ctest" "-E" "(http|dns)"))))))
8870 (inputs
8871 `(("boost" ,boost-for-mysql) ; fails with 1.69
8872 ("curl" ,curl)
8873 ("expat" ,expat)
8874 ("mesa" ,mesa)
8875 ("openal" ,openal)
8876 ("openscenegraph" ,openscenegraph-3.4)
8877 ("zlib" ,zlib)))
8878 (home-page "https://home.flightgear.org/")
8879 (synopsis "Libraries for 3D simulations and games")
8880 (description "SimGear is a set of libraries designed to be used as
8881 building blocks for quickly assembling 3D simulations, games, and
8882 visualization applications. SimGear is developed by the FlightGear project
8883 and also provides the base for the FlightGear Flight Simulator.")
8884 (license license:lgpl2.0+)))
8885
8886 (define-public flightgear
8887 (package
8888 (name "flightgear")
8889 (version (package-version simgear))
8890 (source
8891 (origin
8892 (method url-fetch)
8893 (uri (string-append "mirror://sourceforge/flightgear/release-"
8894 (version-major+minor version) "/"
8895 "flightgear-" version ".tar.bz2"))
8896 (sha256
8897 (base32 "0ya3vb539kwi1qrifqhsj5j3k4w6s06hrllp2vdzxf6id7cgf0hc"))
8898 (modules '((guix build utils)))
8899 (snippet
8900 '(begin
8901 ;; There are some bundled libraries.
8902 (for-each delete-file-recursively
8903 '("3rdparty/sqlite3/"))
8904 #t))))
8905 (build-system cmake-build-system)
8906 (arguments
8907 `(#:configure-flags
8908 (list "-DSYSTEM_SQLITE=ON"
8909 (string-append "-DFG_DATA_DIR="
8910 (assoc-ref %outputs "out")
8911 "/share/flightgear"))
8912 ;; TODO: test cannot be run because the "run_test_suite" executable
8913 ;; does not seem to be built.
8914 #:tests? #f
8915 #:phases
8916 (modify-phases %standard-phases
8917 (add-after 'install 'wrap-executable
8918 (lambda* (#:key inputs outputs #:allow-other-keys)
8919 (let ((out (assoc-ref outputs "out")))
8920 (wrap-program (string-append out "/bin/fgfs")
8921 `("QT_PLUGIN_PATH" ":" prefix
8922 ,(map (lambda (label)
8923 (string-append (assoc-ref inputs label)
8924 "/lib/qt5/plugins"))
8925 '("qtbase" "qtdeclarative" "qtsvg")))
8926 `("QML2_IMPORT_PATH" ":" prefix
8927 ,(map (lambda (label)
8928 (string-append (assoc-ref inputs label)
8929 "/lib/qt5/qml"))
8930 '("qtdeclarative" "qtsvg"))))
8931 #t)))
8932 (add-after 'install 'install-data
8933 (lambda* (#:key inputs outputs #:allow-other-keys)
8934 (let ((share (string-append (assoc-ref outputs "out") "/share/flightgear")))
8935 (mkdir-p share)
8936 (with-directory-excursion share
8937 (invoke "tar" "xf" (assoc-ref inputs "flightgear-data")
8938 "--strip-components=1")))
8939 #t)))))
8940 (inputs
8941 `(("boost" ,boost-for-mysql) ; same as simgear
8942 ("dbus" ,dbus)
8943 ("eudev" ,eudev)
8944 ("freeglut" ,freeglut)
8945 ("freetype" ,freetype)
8946 ("glew" ,glew)
8947 ("libpng" ,libpng)
8948 ("openal" ,openal)
8949 ("openscenegraph" ,openscenegraph-3.4)
8950 ("plib" ,plib)
8951 ("qtbase" ,qtbase)
8952 ("qtdeclarative" ,qtdeclarative)
8953 ("qtsvg" ,qtsvg)
8954 ("simgear" ,simgear)
8955 ("speexdsp" ,speexdsp)
8956 ("sqlite" ,sqlite)
8957 ("zlib" ,zlib)))
8958 (native-inputs
8959 `(("cppunit" ,cppunit)
8960 ("pkg-config" ,pkg-config)
8961 ("qttools" ,qttools)
8962 ("flightgear-data"
8963 ,(origin
8964 (method url-fetch)
8965 (uri (string-append "mirror://sourceforge/flightgear/release-"
8966 (version-major+minor version) "/"
8967 "FlightGear-" version "-data.tar.bz2"))
8968 (sha256
8969 (base32
8970 "04fv9za5zlyxlyfh6jx78y42l3jazvzl9dq2y6rzxqlcc9g5swhk"))))))
8971 (home-page "https://home.flightgear.org/")
8972 (synopsis "Flight simulator")
8973 (description "The goal of the FlightGear project is to create a
8974 sophisticated flight simulator framework for use in research or academic
8975 environments, pilot training, as an industry engineering tool, for DIY-ers to
8976 pursue their favorite interesting flight simulation idea, and last but
8977 certainly not least as a fun, realistic, and challenging desktop flight
8978 simulator.")
8979 (license license:gpl2+)))
8980
8981 (define-public jumpnbump
8982 (package
8983 (name "jumpnbump")
8984 (version "1.61")
8985 (source (origin
8986 (method git-fetch)
8987 (uri (git-reference
8988 (url "https://gitlab.com/LibreGames/jumpnbump.git")
8989 (commit version)))
8990 (file-name (git-file-name name version))
8991 (sha256
8992 (base32
8993 "12lwl5sl5n009nb83r8l4lakb9286csqdf1ynpmwwydy17giqsdp"))))
8994 (build-system gnu-build-system)
8995 (arguments
8996 `(#:make-flags
8997 (list "CC=gcc"
8998 (string-append "PREFIX=" (assoc-ref %outputs "out")))
8999 #:tests? #f ;no test
9000 #:phases
9001 (modify-phases %standard-phases
9002 (delete 'configure) ;no configure script
9003 (add-after 'unpack 'fix-sdl-path
9004 ;; XXX: For some reason, `sdl2-config' reports stand-alone SDL
9005 ;; directory, not SDL-union provided as an input to the package.
9006 ;; We force the latter with "--prefix=" option.
9007 (lambda* (#:key inputs #:allow-other-keys)
9008 (substitute* "Makefile"
9009 (("sdl2-config" command)
9010 (string-append command " --prefix=" (assoc-ref inputs "sdl"))))
9011 #t)))))
9012 (inputs
9013 `(("bzip2" ,bzip2)
9014 ("sdl" ,(sdl-union (list sdl2 sdl2-mixer sdl2-net)))
9015 ("zlib" ,zlib)))
9016 (native-inputs
9017 `(("gettext" ,gettext-minimal))) ;for msgfmt
9018 (home-page "https://gitlab.com/LibreGames/jumpnbump")
9019 (synopsis "Multiplayer platform game with bunnies")
9020 (description "You, as a bunny, have to jump on your opponents to make them
9021 explode. It is a true multiplayer game; you cannot play this alone. You can
9022 play with up to four players simultaneously. It has network support.")
9023 (license license:gpl2+)))
9024
9025 (define-public hedgewars
9026 (package
9027 (name "hedgewars")
9028 (version "1.0.0")
9029 (source (origin
9030 (method url-fetch)
9031 (uri (string-append "https://www.hedgewars.org/download/releases/"
9032 "hedgewars-src-" version ".tar.bz2"))
9033 (sha256
9034 (base32
9035 "0nqm9w02m0xkndlsj6ys3wr0ik8zc14zgilq7k6fwjrf3zk385i1"))))
9036 (build-system cmake-build-system)
9037 (arguments
9038 ;; XXX: Engine is built as Pascal source code, requiring Free Pascal
9039 ;; Compiler, which we haven't packaged yet. With the flag below, we use
9040 ;; a Pascal to C translator and Clang instead.
9041 `(#:configure-flags (list "-DBUILD_ENGINE_C=ON"
9042 "-Dhaskell_flags=-dynamic;-fPIC")
9043 #:phases
9044 (modify-phases %standard-phases
9045 (replace 'check
9046 (lambda _ (invoke "ctest")))
9047 (add-after 'install 'install-icon
9048 (lambda _
9049 ;; Install icon for the desktop file.
9050 (let* ((out (assoc-ref %outputs "out"))
9051 (icons (string-append out "/share/icons/hicolor/512x512/apps")))
9052 (with-directory-excursion (string-append "../hedgewars-src-" ,version)
9053 (install-file "misc/hedgewars.png" icons)))
9054 #t)))))
9055 (inputs
9056 `(("ffmpeg" ,ffmpeg)
9057 ("freeglut" ,freeglut)
9058 ("ghc-entropy" ,ghc-entropy)
9059 ("ghc-hslogger" ,ghc-hslogger)
9060 ("ghc-network" ,ghc-network)
9061 ("ghc-random" ,ghc-random)
9062 ("ghc-regex-tdfa" ,ghc-regex-tdfa)
9063 ("ghc-sandi" ,ghc-sandi)
9064 ("ghc-sha" ,ghc-sha)
9065 ("ghc-utf8-string" ,ghc-utf8-string)
9066 ("ghc-vector" ,ghc-vector)
9067 ("ghc-zlib" ,ghc-zlib)
9068 ("glew" ,glew)
9069 ("libpng" ,libpng)
9070 ("lua" ,lua-5.1)
9071 ("physfs" ,physfs)
9072 ("qtbase" ,qtbase)
9073 ("sdl" ,(sdl-union
9074 (list sdl2 sdl2-mixer sdl2-net sdl2-ttf sdl2-image)))))
9075 (native-inputs
9076 `(("clang" ,clang)
9077 ("ghc" ,ghc)
9078 ("pkg-config" ,pkg-config)
9079 ("qttools" ,qttools)))
9080 (home-page "https://hedgewars.org/")
9081 (synopsis "Turn-based artillery game featuring fighting hedgehogs")
9082 (description
9083 "Hedgewars is a turn based strategy, artillery, action and comedy game,
9084 featuring the antics of pink hedgehogs with attitude as they battle from the
9085 depths of hell to the depths of space.
9086
9087 As commander, it's your job to assemble your crack team of hedgehog soldiers
9088 and bring the war to your enemy.")
9089 ;; Software as a whole is licensed under GPL-2 terms. Artwork and
9090 ;; scripts are distributed under various terms.
9091 (license (list license:gpl2
9092 license:bsd-2 license:bsd-3 license:cc-by3.0 license:cc0
9093 license:expat license:fdl1.3+ license:public-domain
9094 license:zlib))))
9095
9096 (define-public harmonist
9097 (package
9098 (name "harmonist")
9099 (version "0.3.0")
9100 (source (origin
9101 (method git-fetch)
9102 (uri (git-reference
9103 (url "https://git.tuxfamily.org/harmonist/harmonist.git")
9104 (commit (string-append "v" version))))
9105 (file-name (git-file-name name version))
9106 (sha256
9107 (base32
9108 "146wiyanag0zqj6fhyll2sw6sydnnll8mgxhhqf9sjqsl2rx4s5r"))))
9109 (build-system go-build-system)
9110 (arguments
9111 '(#:import-path "git.tuxfamily.org/harmonist/harmonist"))
9112 (inputs
9113 `(("go-github.com-nsf-termbox-go" ,go-github.com-nsf-termbox-go)))
9114 (home-page "https://harmonist.tuxfamily.org/")
9115 (synopsis "Stealth coffee-break roguelike game")
9116 (description "Harmonist: Dayoriah Clan Infiltration is a stealth
9117 coffee-break roguelike game. The game has a heavy focus on tactical
9118 positioning, light and noise mechanisms, making use of various terrain types
9119 and cones of view for monsters. Aiming for a replayable streamlined experience,
9120 the game avoids complex inventory management and character building, relying
9121 on items and player adaptability for character progression.")
9122 (license license:isc)))
9123
9124 (define-public harmonist-tk
9125 (package
9126 (inherit harmonist)
9127 (name "harmonist-tk")
9128 (arguments
9129 (append
9130 (package-arguments harmonist)
9131 `(#:phases
9132 (modify-phases %standard-phases
9133 (replace 'build
9134 (lambda _
9135 (invoke "go" "install" "-v" "-x" "--tags" "tk"
9136 "git.tuxfamily.org/harmonist/harmonist")))
9137 (replace 'check
9138 (lambda _
9139 (invoke "go" "test" "--tags" "tk"
9140 "git.tuxfamily.org/harmonist/harmonist")))))))
9141 (inputs
9142 `(("go-github.com-nsf-gothic" ,go-github.com-nsf-gothic)))))
9143
9144 (define-public drascula
9145 (package
9146 (name "drascula")
9147 (version "1.0")
9148 (source (origin
9149 (method url-fetch)
9150 (uri (string-append "mirror://sourceforge/scummvm/extras/"
9151 "Drascula_%20The%20Vampire%20Strikes%20Back/"
9152 "drascula-" version ".zip"))
9153 (sha256
9154 (base32
9155 "1pj29rpb754sn6a56f8brfv6f2m1p5qgaqik7d68pfi2bb5zccdp"))))
9156 (build-system trivial-build-system)
9157 (arguments
9158 `(#:modules ((guix build utils))
9159 #:builder
9160 (begin
9161 (use-modules (guix build utils)
9162 (ice-9 match))
9163 (let* ((out (assoc-ref %outputs "out"))
9164 (share (string-append out "/share/drascula"))
9165 (scummvm (assoc-ref %build-inputs "scummvm")))
9166 ;; Install data.
9167 (let ((unzip (string-append (assoc-ref %build-inputs "unzip")
9168 "/bin/unzip"))
9169 (doc (string-append out "/share/doc/" ,name "-" ,version)))
9170 (for-each
9171 (lambda (input)
9172 (invoke unzip
9173 "-j"
9174 (assoc-ref %build-inputs input)
9175 "-x" "__MACOSX")
9176 ;; Every input provides "readme.txt", and we want to
9177 ;; preserve them all. Therefore we rename them first.
9178 (match input
9179 ("drascula-int"
9180 (rename-file "readme.txt" "readme-international.txt"))
9181 ("drascula-audio"
9182 (rename-file "readme.txt" "readme-audio.txt"))
9183 (_ #f))
9184 ;; Install documentation.
9185 (for-each (lambda (f) (install-file f doc))
9186 (find-files "." "\\.(txt|doc)$"))
9187 ;; Install data.
9188 (for-each (lambda (f) (install-file f share))
9189 (find-files "." "\\.(ogg|00[0-9])$")))
9190 '("drascula-audio" "drascula-int" "source")))
9191 ;; Create standalone executable.
9192 (let* ((bin (string-append out "/bin"))
9193 (executable (string-append bin "/drascula"))
9194 (bash (string-append (assoc-ref %build-inputs "bash")
9195 "/bin/bash")))
9196 (mkdir-p bin)
9197 (with-output-to-file executable
9198 (lambda ()
9199 (format #t "#!~a~%" bash)
9200 (format #t
9201 "exec ~a/bin/scummvm --path=~a drascula~%"
9202 scummvm share)))
9203 (chmod executable #o755))
9204 ;; Create desktop file. There is no dedicated icon for the
9205 ;; game, so we borrow SCUMMVM's.
9206 (let ((apps (string-append out "/share/applications")))
9207 (mkdir-p apps)
9208 (make-desktop-entry-file
9209 (string-append apps "/drascula.desktop")
9210 #:name "Drascula: The Vampire Strikes Back"
9211 #:generic-name "Drascula"
9212 #:exec (string-append out "/bin/drascula")
9213 #:icon (string-append scummvm "/share/icons/hicolor/scalable/apps/scummvm.svg")
9214 #:categories '("AdventureGame" "Game" "RolePlaying")
9215 #:keywords '("game" "adventure" "roleplaying" "2D" "fantasy")
9216 #:comment '((#f "Classic 2D point and click adventure game")
9217 ("de" "Klassisches 2D-Abenteuerspiel in Zeigen-und-Klicken-Manier")
9218 ("fr" "Jeu classique d'aventure pointer-et-cliquer en 2D")
9219 ("it" "Gioco classico di avventura punta e clicca 2D"))))
9220 #t))))
9221 (native-inputs
9222 `(("bash" ,bash)
9223 ("unzip" ,unzip)))
9224 (inputs
9225 `(("scummvm" ,scummvm)
9226 ("drascula-int"
9227 ,(let ((version "1.1"))
9228 (origin
9229 (method url-fetch)
9230 (uri (string-append "mirror://sourceforge/scummvm/extras/"
9231 "Drascula_%20The%20Vampire%20Strikes%20Back/"
9232 "drascula-int-" version ".zip"))
9233 (sha256
9234 (base32
9235 "12236i7blamal92p1i8dgp3nhp2yicics4whsl63v682bj999n14")))))
9236 ("drascula-audio"
9237 ,(let ((version "2.0"))
9238 (origin
9239 (method url-fetch)
9240 (uri (string-append "mirror://sourceforge/scummvm/extras/"
9241 "Drascula_%20The%20Vampire%20Strikes%20Back/"
9242 "drascula-audio-" version ".zip"))
9243 (sha256
9244 (base32
9245 "00g4izmsqzxb8ry1vhfx6jrygl58lvlij09nw01ds4zddsiznsky")))))))
9246 (home-page "https://www.scummvm.org")
9247 (synopsis "Classic 2D point and click adventure game")
9248 (description "Drascula: The Vampire Strikes Back is a classic humorous 2D
9249 point and click adventure game.
9250
9251 In Drascula you play the role of John Hacker, a British estate agent, that
9252 gets to meet a gorgeous blond girl who is kidnapped by the notorious vampire
9253 Count Drascula and embark on a fun yet dangerous quest to rescue her.
9254 Unfortunately, Hacker is not aware of Drascula's real ambitions: DOMINATING
9255 the World and demonstrating that he is even more evil than his brother Vlad.")
9256 ;; Drascula uses a BSD-like license.
9257 (license (license:non-copyleft "file:///readme.txt"))))
9258
9259 (define (make-lure-package name language hash)
9260 (package
9261 (name name)
9262 (version "1.1")
9263 (source
9264 (origin
9265 (method url-fetch)
9266 (uri (string-append
9267 "mirror://sourceforge/scummvm/extras/"
9268 "Lure%20of%20the%20Temptress/"
9269 name "-" version ".zip"))
9270 (sha256
9271 (base32 hash))))
9272 (build-system trivial-build-system)
9273 (arguments
9274 `(#:modules ((guix build utils))
9275 #:builder
9276 (begin
9277 (use-modules (guix build utils))
9278 (let* ((out (assoc-ref %outputs "out"))
9279 (share (string-append out "/share"))
9280 (data (string-append share "/" ,name "/" ,language))
9281 (apps (string-append share "/applications"))
9282 (bin (string-append out "/bin"))
9283 (executable (string-append bin "/" ,name))
9284 (scummvm (assoc-ref %build-inputs "scummvm")))
9285 (let ((unzip (string-append (assoc-ref %build-inputs "unzip")
9286 "/bin/unzip")))
9287 (invoke unzip "-j" (assoc-ref %build-inputs "source")))
9288 (let ((doc (string-append share "/doc/" ,name "-" ,version)))
9289 (for-each (lambda (f) (install-file f doc))
9290 (find-files "." "\\.(txt|PDF|pdf)$")))
9291 (for-each (lambda (f) (install-file f data))
9292 (find-files "." "\\.(vga|VGA)$"))
9293 ;; Build the executable.
9294 (mkdir-p bin)
9295 (let ((bash (assoc-ref %build-inputs "bash")))
9296 (with-output-to-file executable
9297 (lambda ()
9298 (format #t "#!~a/bin/bash~%" bash)
9299 (format #t "exec ~a/bin/scummvm -q ~a -p ~a lure~%"
9300 scummvm ,language data))))
9301 (chmod executable #o755)
9302 ;; Create desktop file. There is no dedicated
9303 ;; icon for the game, so we borrow SCUMMVM's.
9304 (mkdir-p apps)
9305 (with-output-to-file (string-append apps "/" ,name ".desktop")
9306 (lambda _
9307 (format #t
9308 "[Desktop Entry]~@
9309 Name=Lure of the Temptress~@
9310 GenericName=Lure~@
9311 Exec=~a~@
9312 Icon=~a/share/icons/hicolor/scalable/apps/scummvm.svg~@
9313 Categories=AdventureGame;Game;RolePlaying;~@
9314 Keywords=game;adventure;roleplaying;2D,fantasy;~@
9315 Comment=Classic 2D point and click adventure game~@
9316 Comment[de]=klassisches 2D-Abenteuerspiel in Zeigen-und-Klicken-Manier~@
9317 Comment[fr]=Jeu classique d'aventure pointer-et-cliquer en 2D~@
9318 Comment[it]=Gioco classico di avventura punta e clicca 2D~@
9319 Type=Application~%"
9320 executable scummvm)))
9321 #t))))
9322 (native-inputs
9323 `(("unzip" ,unzip)))
9324 (inputs
9325 `(("bash" ,bash)
9326 ("scummvm" ,scummvm)))
9327 (home-page "https://www.scummvm.org")
9328 (synopsis "2D point and click fantasy adventure game")
9329 (description
9330 "Lure of the Temptress is a classic 2D point and click adventure game.
9331
9332 You are Diermot, an unwilling hero who'd prefer a quiet life, and are, to all
9333 intents and purposes, a good man. After decades of unrest the King has united
9334 the warring factions in his kingdom and all his lands are at peace, except
9335 a remote region around a town called Turnvale. A revolt has recently taken
9336 place in Turnvale, a revolt orchestrated by an apprentice sorceress called
9337 Selena, the titular temptress. The king calls together his finest horsemen
9338 and heads off (with you in tow) to Turnvale just to witness how hellish
9339 mercenary monsters called Skorl are invading the town.
9340
9341 The king's men are defeated, the king is killed and you fall of your horse and
9342 bang your head heavily on the ground. You have been *unconscious for a while
9343 when you realize that you are in a dingy cell guarded by a not so friendly
9344 Skorl. Maybe it would be an idea to try and escape...")
9345 (license (license:non-copyleft "file:///README"))))
9346
9347 (define-public lure
9348 (make-lure-package
9349 "lure" "en" "0201i70qcs1m797kvxjx3ygkhg6kcl5yf49sihba2ga8l52q45zk"))
9350
9351 (define-public lure-de
9352 (make-lure-package
9353 "lure-de" "de" "0sqq7h5llml6rv85x0bfv4bgzwhs4c82p4w4zmfcaab6cjlad0sy"))
9354
9355 (define-public lure-es
9356 (make-lure-package
9357 "lure-es" "es" "1dvv5znvlsakw6w5r16calv9jkgw27aymgybsf4q22lcmpxbj1lk"))
9358
9359 (define-public lure-fr
9360 (make-lure-package
9361 "lure-fr" "fr" "1y51jjb7f8023832g44vd1jsb6ni85586pi2n5hjg9qjk6gi90r9"))
9362
9363 (define-public lure-it
9364 (make-lure-package
9365 "lure-it" "it" "1ks6n39r1cllisrrh6pcr39swsdv7ng3gx5c47vaw71zzfr70hjj"))
9366
9367 (define (make-queen-package name file-prefix release language hash)
9368 (package
9369 (name name)
9370 (version release)
9371 (source
9372 (origin
9373 (method url-fetch)
9374 (uri (string-append "mirror://sourceforge/scummvm/extras/"
9375 "Flight%20of%20the%20Amazon%20Queen/"
9376 file-prefix release ".zip"))
9377 (sha256
9378 (base32 hash))))
9379 (build-system trivial-build-system)
9380 (arguments
9381 `(#:modules ((guix build utils))
9382 #:builder
9383 (begin
9384 (use-modules (guix build utils))
9385 (let* ((out (assoc-ref %outputs "out"))
9386 (share (string-append out "/share"))
9387 (data (string-append share "/" ,name))
9388 (apps (string-append share "/applications"))
9389 (bin (string-append out "/bin"))
9390 (executable (string-append bin "/" ,name))
9391 (scummvm (assoc-ref %build-inputs "scummvm")))
9392 (let ((unzip (string-append (assoc-ref %build-inputs "unzip")
9393 "/bin/unzip")))
9394 (invoke unzip "-j" (assoc-ref %build-inputs "source")))
9395 (let ((doc (string-append share "/doc/" ,name "-" ,version)))
9396 (install-file "readme.txt" doc))
9397 (install-file "queen.1c" data)
9398 (mkdir-p bin)
9399 (let ((bash (assoc-ref %build-inputs "bash")))
9400 (with-output-to-file executable
9401 (lambda ()
9402 (format #t "#!~a/bin/bash~%" bash)
9403 (format #t "exec ~a/bin/scummvm -q fr -p ~a queen~%"
9404 scummvm data))))
9405 (chmod executable #o755)
9406 ;; Create desktop file. There is no dedicated
9407 ;; icon for the game, so we borrow SCUMMVM's.
9408 (mkdir-p apps)
9409 (with-output-to-file (string-append apps "/" ,name ".desktop")
9410 (lambda _
9411 (format #t
9412 "[Desktop Entry]~@
9413 Name=Flight of the Amazon Queen~@
9414 GenericName=Queen~@
9415 Comment=Embark on a quest to rescue a kidnapped princess and in the process, discover the true sinister intentions of a suspiciously located Lederhosen company~@
9416 Comment[de]=Begib dich auf ein Abenteuer, um eine entführte Prinzessin zu retten und entdecke die wahren, finsteren Absichten eines verdächtig erscheinenden Lederhosen-Unternehmens~@
9417 Type=Application~@
9418 Exec=~a~@
9419 Icon=~a/share/icons/hicolor/scalable/apps/scummvm.svg~@
9420 Categories=AdventureGame;Game;RolePlaying;~@
9421 Keywords=adventure;game;roleplaying;fantasy;~%"
9422 executable scummvm))))
9423 #t)))
9424 (native-inputs
9425 `(("unzip" ,unzip)))
9426 (inputs
9427 `(("bash" ,bash)
9428 ("scummvm" ,scummvm)))
9429 (home-page "https://www.scummvm.org/")
9430 (synopsis "Classic 2D point and click adventure game")
9431 (description "Flight of the Amazon Queen is a 2D point-and-click
9432 adventure game set in the 1940s.
9433
9434 You assume the role of Joe King, a pilot for hire who is given the job
9435 of flying Faye Russell (a famous movie star) into the Amazon jungle
9436 for a photo shoot. Of course, things never go according to plans.
9437 After an unfortunate turn of events they find themselves stranded in
9438 the heart of the Amazon jungle, where Joe will embark on a quest to
9439 rescue a kidnapped princess and in the process, discover the true
9440 sinister intentions of a suspiciously located Lederhosen company. In
9441 a rich 2D environment, Joe will cross paths with a variety of unlikely
9442 jungle inhabitants including, but not limited to, a tribe of Amazon
9443 women and 6-foot-tall pygmies.")
9444 (license (license:non-copyleft "file:///readme.txt"))))
9445
9446 (define-public queen
9447 (make-queen-package
9448 "queen" "FOTAQ_Talkie-" "1.1" "en"
9449 "1a6q71q1dl9vvw2qqsxk5h1sv0gaqy6236zr5905w2is01gdsp52"))
9450
9451 (define-public queen-de
9452 (make-queen-package
9453 "queen-de" "FOTAQ_Ger_talkie-" "1.0" "de"
9454 "13vn43x7214vyprlpqabvv71k890nff3d6fjscflr1ll7acjca3f"))
9455
9456 (define-public queen-fr
9457 (make-queen-package
9458 "queen-fr" "FOTAQ_Fr_Talkie_" "1.0" "fr"
9459 "0hq5g4qrkcwm2kn5i4kv4hijs9hi7bw9xl1vrwd1l69qqn30crwy"))
9460
9461 (define-public queen-it
9462 (make-queen-package
9463 "queen-it" "FOTAQ_It_Talkie_" "1.0" "it"
9464 "1h76y70lrpzfjkm53n4nr364nhyka54vbz9r7sadzyzl7c7ilv4d"))
9465
9466 (define-public sky
9467 (package
9468 (name "sky")
9469 (version "1.2") ;1.3 is floppy version
9470 (source
9471 (origin
9472 (method url-fetch)
9473 (uri (string-append "mirror://sourceforge/scummvm/extras/"
9474 "Beneath%20a%20Steel%20Sky/"
9475 "bass-cd-" version ".zip"))
9476 (sha256
9477 (base32 "14s5jz67kavm8l15gfm5xb7pbpn8azrv460mlxzzvdpa02a9n82k"))))
9478 (build-system trivial-build-system)
9479 (arguments
9480 `(#:modules ((guix build utils))
9481 #:builder
9482 (begin
9483 (use-modules (guix build utils))
9484 (let* ((out (assoc-ref %outputs "out"))
9485 (share (string-append out "/share"))
9486 (data (string-append share "/" ,name))
9487 (apps (string-append share "/applications"))
9488 (bin (string-append out "/bin"))
9489 (executable (string-append bin "/" ,name))
9490 (scummvm (assoc-ref %build-inputs "scummvm")))
9491 (let ((unzip (string-append (assoc-ref %build-inputs "unzip")
9492 "/bin/unzip")))
9493 (invoke unzip "-j" (assoc-ref %build-inputs "source")))
9494 (let ((doc (string-append share "/doc/bass-" ,version)))
9495 (install-file "readme.txt" doc))
9496 (for-each (lambda (f) (install-file f data))
9497 (find-files "." "^sky\\."))
9498 ;; Build the executable.
9499 (mkdir-p bin)
9500 (let ((bash (assoc-ref %build-inputs "bash")))
9501 (with-output-to-file executable
9502 (lambda ()
9503 (format #t "#!~a/bin/bash~%" bash)
9504 (format #t "exec ~a/bin/scummvm -p ~a sky~%" scummvm data))))
9505 (chmod executable #o755)
9506 ;; Create desktop file. There is no dedicated
9507 ;; icon for the game, so we borrow SCUMMVM's.
9508 (mkdir-p apps)
9509 (with-output-to-file (string-append apps "/" ,name ".desktop")
9510 (lambda _
9511 (format #t
9512 "[Desktop Entry]~@
9513 Name=Beneath a Steel Sky~@
9514 GenericName=Bass~@
9515 Exec=~a~@
9516 Icon=~a/share/icons/hicolor/scalable/apps/scummvm.svg~@
9517 Categories=AdventureGame;Game;RolePlaying;~@
9518 Keywords=adventure;game;roleplaying;cyberpunk;~@
9519 Comment=A science-fiction adventure game set in a bleak post-apocalyptic vision of the future~@
9520 Comment[de]=Ein Science-Fiction-Abenteuerspiel \
9521 angesiedelt in einer düsteren, postapokalyptischen Vision der Zukunft~@
9522 Type=Application~%"
9523 executable scummvm)))
9524 #t))))
9525 (native-inputs
9526 `(("unzip" ,unzip)))
9527 (inputs
9528 `(("bash" ,bash)
9529 ("scummvm" ,scummvm)))
9530 (home-page "https://www.scummvm.org/")
9531 (synopsis "Classic 2D point and click science-fiction adventure game")
9532 (description
9533 "Beneath a Steel Sky is a science-fiction thriller set in a bleak
9534 post-apocalyptic vision of the future. It revolves around Union City,
9535 where selfishness, rivalry, and corruption by its citizens seems to be
9536 all too common, those who can afford it live underground, away from
9537 the pollution and social problems which are plaguing the city.
9538
9539 You take on the role of Robert Foster, an outcast of sorts from the
9540 city since a boy who was raised in a remote environment outside of
9541 Union City simply termed ``the gap''. Robert's mother took him away
9542 from Union City as a child on their way to ``Hobart'' but the
9543 helicopter crashed on its way. Unfortunately, Robert's mother died,
9544 but he survived and was left to be raised by a local tribe from the
9545 gap.
9546
9547 Years later, Union City security drops by and abducts Robert, killing
9548 his tribe in the process; upon reaching the city the helicopter taking
9549 him there crashes with him escaping, high upon a tower block in the
9550 middle of the city. He sets out to discover the truth about his past,
9551 and to seek vengeance for the killing of his tribe.")
9552 (license (license:non-copyleft "file:///readme.txt"))))
9553
9554 (define-public gnurobots
9555 (package
9556 (name "gnurobots")
9557 (version "1.2.0")
9558 (source
9559 (origin
9560 (method url-fetch)
9561 (uri (string-append "mirror://gnu/gnurobots/gnurobots-"
9562 version ".tar.gz"))
9563 (sha256
9564 (base32
9565 "07gi3lsmbzzsjambgixj6xy79lh22km84z7bnzgwzxdy806lyvwb"))))
9566 (build-system gnu-build-system)
9567 (inputs
9568 `(("glib" ,glib)
9569 ("gtk+" ,gtk+-2)
9570 ("vte" ,vte/gtk+-2)
9571 ("readline" ,readline)
9572 ("guile" ,guile-1.8)))
9573 (native-inputs
9574 `(("pkg-config" ,pkg-config)))
9575 (arguments
9576 `(#:make-flags
9577 (list
9578 ;; Do not abort build on "deprecated-declarations" warnings.
9579 "CFLAGS=-Wno-error=deprecated-declarations"
9580 ;; Find readline headers in sub-directory.
9581 (string-append "READLINE_CFLAGS=-I"
9582 (assoc-ref %build-inputs "readline")
9583 "/include/readline/"))
9584 #:phases
9585 (modify-phases %standard-phases
9586 (add-after 'install 'install-doc
9587 (lambda* (#:key outputs #:allow-other-keys)
9588 (install-file "doc/Robots-HOWTO"
9589 (string-append (assoc-ref outputs "out")
9590 "/share/doc/gnurobots-"
9591 ,version))
9592 #t)))))
9593 (home-page "https://www.gnu.org/software/gnurobots/")
9594 (synopsis "Program a little robot and watch it explore a world")
9595 (description
9596 "GNU Robots is a game in which you program a robot to explore a world
9597 full of enemies that can hurt it, obstacles and food to be eaten. The goal of
9598 the game is to stay alive and collect prizes. The robot program conveniently
9599 may be written in a plain text file in the Scheme programming language.")
9600 (license license:gpl3+)))
9601
9602 (define-public ri-li
9603 (package
9604 (name "ri-li")
9605 (version "2.0.1")
9606 (source (origin
9607 (method url-fetch)
9608 (uri (string-append "mirror://sourceforge/ri-li/"
9609 "Ri-li%20Linux_Unix/Ri-li%20V" version "/"
9610 "Ri-li-" version ".tar.bz2"))
9611 (sha256
9612 (base32
9613 "1gcdsgnnbbn1mb1hkpwniv3fhkaj1nn8gq33v5c16q3wqchcq77p"))
9614 ;; Taken from
9615 ;; <https://github.com/NixOS/nixpkgs/blob/master/pkgs/games/rili/moderinze_cpp.patch>.
9616 ;; It doesn't build otherwise.
9617 (patches (search-patches "ri-li-modernize_cpp.patch"))))
9618 (build-system gnu-build-system)
9619 (arguments
9620 `(#:phases
9621 (modify-phases %standard-phases
9622 ;; Remove "gentoo" subdirectory from Makefile, as it is
9623 ;; missing a make file and generates a build failure.
9624 (add-after 'configure 'fix-build
9625 (lambda _
9626 (substitute* "Makefile"
9627 ((" gentoo") ""))
9628 #t))
9629 (add-after 'install 'install-desktop-file
9630 (lambda* (#:key outputs #:allow-other-keys)
9631 (let* ((out (assoc-ref outputs "out"))
9632 (apps (string-append out "/share/applications"))
9633 (pixmaps (string-append out "/share/pixmaps")))
9634 (for-each (lambda (f) (install-file f pixmaps))
9635 (find-files "data" "\\.(png|ico)$"))
9636 (mkdir-p apps)
9637 (with-output-to-file (string-append apps "/ri-li.desktop")
9638 (lambda _
9639 (format #t
9640 "[Desktop Entry]~@
9641 Name=Ri-li~@
9642 Exec=~a/bin/Ri_li~@
9643 Icon=~a/Ri-li-icon-32x32.png~@
9644 Categories=Game;ArcadeGame;~@
9645 Keywords=toy;train;wooden;snake-like;engine;~@
9646 Comment=a toy simulator game~@
9647 Comment[de]=Ein Spiel mit einem kleinen Zug~@
9648 Comment[fr]=un jeu de petit train~@
9649 Comment[ro_RO]=un joc cu un tren de jucărie~@
9650 Terminal=false~@
9651 Type=Application~%"
9652 out pixmaps))))
9653 #t))
9654 (add-after 'install-desktop-file 'remove-spurious-files
9655 ;; Delete redundant files already installed somewhere else.
9656 (lambda* (#:key outputs #:allow-other-keys)
9657 (let ((out (assoc-ref outputs "out")))
9658 (for-each delete-file
9659 (find-files (string-append out "/share/Ri-li")
9660 "\\.(png|ico)|COPYING"))
9661 #t))))))
9662 (inputs
9663 `(("sdl" ,(sdl-union (list sdl sdl-mixer)))))
9664 (home-page "http://www.ri-li.org")
9665 (synopsis "Toy train simulation game")
9666 (description "Ri-li is a game in which you drive a wooden toy
9667 steam locomotive across many levels and collect all the coaches to
9668 win.")
9669 ;; The project is dual-licensed GPL2+ and GPL3+.
9670 (license (list license:gpl2+ license:gpl3+))))
9671
9672 (define-public freeorion
9673 (package
9674 (name "freeorion")
9675 (version "0.4.10")
9676 (source
9677 (origin
9678 (method url-fetch)
9679 (uri (string-append "https://github.com/freeorion/freeorion/releases/"
9680 "download/v" version "/FreeOrion_v" version
9681 "_2020-07-10.f3d403e_Source.tar.gz"))
9682 (sha256
9683 (base32 "12xspixrkx6mmmsdqjha0hg02r4y73pk229l0wjq9s0yp8nb8ap7"))
9684 (modules '((guix build utils)))
9685 (snippet
9686 '(begin
9687 ;; There are some bundled fonts.
9688 (for-each delete-file-recursively '("default/data/fonts"))
9689 #t))))
9690 (build-system cmake-build-system)
9691 (arguments
9692 '(#:tests? #f ;no test
9693 #:phases
9694 (modify-phases %standard-phases
9695 (add-after 'unpack 'unbundle-fonts
9696 (lambda* (#:key inputs #:allow-other-keys)
9697 (let ((roboto-dir (string-append (assoc-ref inputs "font-roboto")
9698 "/share/fonts/truetype/")))
9699 (substitute* "UI/ClientUI.cpp"
9700 (("\\(GetRootDataDir.*?Roboto-(Bold|Regular)\\.ttf\"\\)\\.string\\(\\)\\);"
9701 all type)
9702 (string-append "\"" roboto-dir "Roboto-" type ".ttf\");")))
9703 #t))))))
9704 (inputs
9705 `(("boost" ,boost)
9706 ("boost_signals" ,boost-signals2)
9707 ("font-dejavu" ,font-dejavu)
9708 ("font-roboto" ,font-google-roboto)
9709 ("freetype2" ,freetype)
9710 ("glew" ,glew)
9711 ("glu" ,glu)
9712 ("libogg" ,libogg)
9713 ("libpng" ,libpng)
9714 ("libvorbis" ,libvorbis)
9715 ("openal" ,openal)
9716 ("python" ,python)
9717 ("sdl2" ,sdl2)
9718 ("zlib" ,zlib)))
9719 (home-page "https://www.freeorion.org/index.php/Main_Page")
9720 (synopsis "Turn-based space empire and galactic conquest computer game")
9721 (description
9722 "FreeOrion is a turn-based space empire and galactic conquest (4X)
9723 computer game being designed and built by the FreeOrion project. Control an
9724 empire with the goal of exploring the galaxy, expanding your territory,
9725 exploiting the resources, and exterminating rival alien empires. FreeOrion is
9726 inspired by the tradition of the Master of Orion games, but is not a clone or
9727 remake of that series or any other game.")
9728 ;; Source code is released under gpl2. Artwork, music and sounds, and
9729 ;; in-game text are released under cc-by-sa3.0. Game content scripts are
9730 ;; released under both gpl2 and cc-by-sa3.0. Bundled Gigi library is
9731 ;; released under lgpl2.1+.
9732 (license (list license:gpl2 license:cc-by-sa3.0 license:lgpl2.1+))))
9733
9734 (define-public leela-zero
9735 (package
9736 (name "leela-zero")
9737 (version "0.17")
9738 (source
9739 (origin
9740 (method git-fetch)
9741 (uri (git-reference
9742 (url "https://github.com/leela-zero/leela-zero")
9743 (commit (string-append "v" version))))
9744 (file-name (git-file-name name version))
9745 (sha256
9746 (base32
9747 "17px5iny8mql5c01bymcli7zfssswkzvb2i8gnsmjcck6i2n8srl"))
9748 (patches (search-patches "leela-zero-gtest.patch"))))
9749 (build-system cmake-build-system)
9750 (native-inputs
9751 `(("googletest" ,googletest)))
9752 (inputs
9753 `(("boost" ,boost)
9754 ("ocl-icd" ,ocl-icd)
9755 ("openblas" ,openblas)
9756 ("opencl-headers" ,opencl-headers)
9757 ("qtbase" ,qtbase)
9758 ("zlib" ,zlib)))
9759 (arguments
9760 '(#:configure-flags '("-DUSE_BLAS=YES")
9761 #:phases (modify-phases %standard-phases
9762 (add-before 'configure 'fix-tests
9763 (lambda* (#:key outputs #:allow-other-keys)
9764 (let ((home (getcwd)))
9765 (setenv "HOME" home)
9766 (substitute* "src/tests/gtests.cpp"
9767 (("\\.\\./src/tests/0k\\.txt")
9768 (string-append home "/src/tests/0k.txt"))
9769 (("cfg_gtp_mode = true;")
9770 "cfg_gtp_mode = true; cfg_cpu_only = true;")))
9771 #t))
9772 (replace 'check
9773 (lambda _
9774 (invoke "./tests"))))))
9775 (home-page "https://github.com/leela-zero/leela-zero")
9776 (synopsis "Program playing the game of Go")
9777 (description
9778 "Leela-zero is a Go engine with no human-provided knowledge, modeled after
9779 the AlphaGo Zero paper. The current best network weights file for the engine
9780 can be downloaded from @url{https://zero.sjeng.org/best-network}.")
9781 (license license:gpl3+)))
9782
9783 (define-public q5go
9784 (package
9785 (name "q5go")
9786 (version "1.0")
9787 (source (origin
9788 (method git-fetch)
9789 (uri (git-reference
9790 (url "https://github.com/bernds/q5Go")
9791 (commit (string-append "q5go-" version))))
9792 (file-name (git-file-name name version))
9793 (sha256
9794 (base32
9795 "1gdlfqcqkqv7vph3qwq78d0qz6dhmdsranxq9bmixiisbzkqby31"))))
9796 (build-system gnu-build-system)
9797 (native-inputs
9798 `(("pkg-config" ,pkg-config)))
9799 (inputs
9800 `(("qtbase" ,qtbase)
9801 ("qtmultimedia" ,qtmultimedia)
9802 ("qtsvg" ,qtsvg)))
9803 (arguments
9804 '(#:phases
9805 (modify-phases %standard-phases
9806 (add-after 'unpack 'fix-configure-script
9807 (lambda _
9808 ;; Bypass the unavailable qtchooser program.
9809 (substitute* "configure"
9810 (("test -z \"QTCHOOSER\"")
9811 "false")
9812 (("qtchooser -run-tool=(.*) -qt=qt5" _ command)
9813 command))
9814 #t))
9815 (add-after 'unpack 'fix-paths
9816 (lambda _
9817 (substitute* '("src/pics/Makefile.in"
9818 "src/translations/Makefile.in")
9819 (("\\$\\(datadir\\)/qGo/")
9820 "$(datadir)/q5go/"))
9821 #t))
9822 (add-after 'install 'install-desktop-file
9823 (lambda* (#:key outputs #:allow-other-keys)
9824 (let* ((out (assoc-ref outputs "out"))
9825 (apps (string-append out "/share/applications"))
9826 (pics (string-append out "/share/q5go/pics")))
9827 (delete-file-recursively (string-append out "/share/applnk"))
9828 (delete-file-recursively (string-append out "/share/mimelnk"))
9829 (install-file "../source/src/pics/Bowl.ico" pics)
9830 (mkdir-p apps)
9831 (with-output-to-file (string-append apps "/q5go.desktop")
9832 (lambda _
9833 (format #t
9834 "[Desktop Entry]~@
9835 Name=q5go~@
9836 Exec=~a/bin/q5go~@
9837 Icon=~a/Bowl.ico~@
9838 Categories=Game;~@
9839 Comment=Game of Go~@
9840 Comment[de]=Spiel des Go~@
9841 Comment[eo]=Goo~@
9842 Comment[es]=Juego de Go~@
9843 Comment[fr]=Jeu de Go~@
9844 Comment[ja]=囲碁~@
9845 Comment[ko]=바둑~@
9846 Comment[zh]=围棋~@
9847 Terminal=false~@
9848 Type=Application~%"
9849 out pics))))
9850 #t)))))
9851 (synopsis "Qt GUI to play the game of Go")
9852 (description
9853 "This a tool for Go players which performs the following functions:
9854 @itemize
9855 @item SGF editor,
9856 @item Analysis frontend for Leela Zero (or compatible engines),
9857 @item GTP interface (to play against an engine),
9858 @item IGS client (to play on the internet),
9859 @item Export games to a variety of formats.
9860 @end itemize")
9861 (home-page "https://github.com/bernds/q5Go")
9862 (license license:gpl2+)))
9863
9864 (define-public ktuberling
9865 (package
9866 (name "ktuberling")
9867 (version "19.08.3")
9868 (source
9869 (origin
9870 (method url-fetch)
9871 (uri (string-append "mirror://kde/stable/applications/" version
9872 "/src/ktuberling-" version ".tar.xz"))
9873 (sha256
9874 (base32 "1qdf4q6wjh1lnlqw5c8z4rpj9w5vbyjfri1dah6yjm3mwppbc12j"))))
9875 (build-system qt-build-system)
9876 (native-inputs
9877 `(("extra-cmake-modules" ,extra-cmake-modules)
9878 ("perl" ,perl)))
9879 (inputs
9880 `(("kcompletion" ,kcompletion)
9881 ("kconfigwidgets" ,kconfigwidgets)
9882 ("kcoreaddons" ,kcoreaddons)
9883 ("kcrash" ,kcrash)
9884 ("kdbusaddons" ,kdbusaddons)
9885 ("kdelibs4support" ,kdelibs4support)
9886 ("ki18n" ,ki18n)
9887 ("kwidgetsaddons" ,kwidgetsaddons)
9888 ("kxmlgui" ,kxmlgui)
9889 ("libkdegames" ,libkdegames)
9890 ("qtbase" ,qtbase)
9891 ("qtmultimedia" ,qtmultimedia)
9892 ("qtdeclarative" ,qtdeclarative)
9893 ("qtsvg" ,qtsvg)))
9894 (home-page "https://games.kde.org/")
9895 (synopsis "Stamp drawing toy")
9896 (description "KTuberling is a drawing toy intended for small children and
9897 adults who remain young at heart. The game has no winner; the only purpose is
9898 to make the funniest faces you can. Several activities are possible, e.g.:
9899
9900 @itemize
9901 @item Give the potato a funny face, clothes, and other goodies
9902 @item Build a small town, complete with school, zoo, and fire department
9903 @item Create a fantastic moonscape with spaceships and aliens
9904 @item Top a pizza
9905 @end itemize
9906
9907 KTuberling can speak the name of each the object in several languages,
9908 to assist in learning basic vocabulary.
9909
9910 This package is part of the KDE games module.")
9911 (license (list license:gpl2+ license:fdl1.2+))))
9912
9913 (define-public picmi
9914 (package
9915 (name "picmi")
9916 (version "19.08.3")
9917 (source
9918 (origin
9919 (method url-fetch)
9920 (uri (string-append "mirror://kde/stable/applications/" version
9921 "/src/picmi-" version ".tar.xz"))
9922 (sha256
9923 (base32 "0z9mpmv49w914gqdx274brdzl6d1bz9j9nkvbwgmr3iq1ba49m3f"))))
9924 (build-system qt-build-system)
9925 (native-inputs
9926 `(("extra-cmake-modules" ,extra-cmake-modules)
9927 ("kdoctools" ,kdoctools)))
9928 (inputs
9929 `(("kcoreaddons" ,kcoreaddons)
9930 ("kcrash" ,kcrash)
9931 ("kdbusaddons" ,kdbusaddons)
9932 ("kdeclarative" ,kdeclarative)
9933 ("ki18n" ,ki18n)
9934 ("kio" ,kio)
9935 ("knewstuff" ,knewstuff)
9936 ("kxmlgui" ,kxmlgui)
9937 ("libkdegames" ,libkdegames)
9938 ("qtbase" ,qtbase)
9939 ("qtdeclarative" ,qtdeclarative)
9940 ("qtsvg" ,qtsvg)))
9941 (home-page "https://games.kde.org/")
9942 (synopsis "Number logic game")
9943 (description "Picmi is a number logic game in which cells in a grid have
9944 to be colored or left blank according to numbers given at the side of the
9945 grid. The aim is to reveal a hidden picture.
9946
9947 This package is part of the KDE games module.")
9948 (license (list license:gpl2+ license:fdl1.2+))))
9949
9950 (define-public kolf
9951 (package
9952 (name "kolf")
9953 (version "19.08.3")
9954 (source
9955 (origin
9956 (method url-fetch)
9957 (uri (string-append "mirror://kde/stable/applications/" version
9958 "/src/kolf-" version ".tar.xz"))
9959 (sha256
9960 (base32 "06sfd0llr5cc3zf1vrpcxgw9bm009ky7y8822kynic9ipcd4z1hw"))))
9961 (build-system qt-build-system)
9962 (native-inputs
9963 `(("extra-cmake-modules" ,extra-cmake-modules)
9964 ("kdoctools" ,kdoctools)))
9965 (inputs
9966 `(("kcompletion" ,kcompletion)
9967 ("kconfigwidgets" ,kconfigwidgets)
9968 ("kcoreaddons" ,kcoreaddons)
9969 ("kcrash" ,kcrash)
9970 ("kdbusaddons" ,kdbusaddons)
9971 ("ki18n" ,ki18n)
9972 ("kio" ,kio)
9973 ("kwidgetsaddons" ,kwidgetsaddons)
9974 ("kxmlgui" ,kxmlgui)
9975 ("ktextwidgets" ,ktextwidgets)
9976 ("libkdegames" ,libkdegames)
9977 ("qtbase" ,qtbase)
9978 ("qtdeclarative" ,qtdeclarative)))
9979 (home-page "https://games.kde.org/")
9980 (synopsis "Miniature golf game")
9981 (description "Kolf is a miniature golf game for one to ten players. The
9982 game is played from an overhead view, with a short bar representing the golf
9983 club. Kolf features many different types of objects, such as water hazards,
9984 slopes, sand traps, and black holes (warps), among others.
9985
9986 Features are:
9987 @itemize
9988 @item Single and Multi-player (up to ten players) modes
9989 @item High scores table
9990 @item Dynamic courses
9991 @item Third-party courses
9992 @item Course editor
9993 @end itemize
9994
9995 This package is part of the KDE games module.")
9996 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
9997
9998 (define-public libkmahjongg
9999 (package
10000 (name "libkmahjongg")
10001 (version "19.08.3")
10002 (source
10003 (origin
10004 (method url-fetch)
10005 (uri (string-append "mirror://kde/stable/applications/"
10006 version "/src/libkmahjongg-" version ".tar.xz"))
10007 (sha256
10008 (base32 "0rdimk11hrc8qrmiv26z0ddjzi1k6806c0rfskx4cwmildmh6zgx"))))
10009 (build-system qt-build-system)
10010 (native-inputs
10011 `(("extra-cmake-modules" ,extra-cmake-modules)))
10012 (inputs
10013 `(("kauth" ,kauth)
10014 ("kcompletion" ,kcompletion)
10015 ;("kconfig" ,kconfig)
10016 ("kcodecs" ,kcodecs)
10017 ("kconfigwidgets" ,kconfigwidgets)
10018 ("kcoreaddons" ,kcoreaddons)
10019 ("ki18n" ,ki18n)
10020 ("kwidgetsaddons" ,kwidgetsaddons)
10021 ("qtbase" ,qtbase)
10022 ("qtsvg" ,qtsvg)))
10023 (home-page "https://games.kde.org/")
10024 (synopsis "Shared library for kmahjongg and kshisen")
10025 (description "Shared library and common files for kmahjongg, kshisen and
10026 other Mah Jongg like games.")
10027 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
10028
10029 (define-public kmahjongg
10030 (package
10031 (name "kmahjongg")
10032 (version "19.08.3")
10033 (source
10034 (origin
10035 (method url-fetch)
10036 (uri (string-append "mirror://kde/stable/applications/"
10037 version "/src/kmahjongg-" version ".tar.xz"))
10038 (sha256
10039 (base32 "08na845h0nhmfrszdmvfq5y1dy7kgbrlzjp0f5snvbbf7w44ci6p"))))
10040 (build-system qt-build-system)
10041 (native-inputs
10042 `(("extra-cmake-modules" ,extra-cmake-modules)
10043 ("kdoctools" ,kdoctools)))
10044 (inputs
10045 `(("kcompletion" ,kcompletion)
10046 ("kcrash" ,kcrash)
10047 ("kdbusaddons" ,kdbusaddons)
10048 ("kdeclarative" ,kdeclarative)
10049 ("ki18n" ,ki18n)
10050 ("knewstuff" ,knewstuff)
10051 ("kxmlgui" ,kxmlgui)
10052 ("libkdegames" ,libkdegames)
10053 ("libkmahjongg" ,libkmahjongg)
10054 ("qtbase" ,qtbase)
10055 ("qtdeclarative" ,qtdeclarative)
10056 ("qtsvg" ,qtsvg)))
10057 (home-page "https://games.kde.org/")
10058 (synopsis "Tile laying patience")
10059 (description "In KMahjongg the tiles are scrambled and staked on top of
10060 each other to resemble a certain shape. The player is then expected to remove
10061 all the tiles off the game board by locating each tile's matching pair.
10062
10063 A variety of tile layouts are included, as well as an editor to create new
10064 layouts.
10065
10066 This package is part of the KDE games module.")
10067 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
10068
10069 (define-public kshisen
10070 (package
10071 (name "kshisen")
10072 (version "19.08.3")
10073 (source
10074 (origin
10075 (method url-fetch)
10076 (uri (string-append "mirror://kde/stable/applications/"
10077 version "/src/kshisen-" version ".tar.xz"))
10078 (sha256
10079 (base32 "1bq5m48af4h5apfp3bfsp76nlpv6h5sc0gd544zv7cgpfznz1sds"))))
10080 (build-system qt-build-system)
10081 (native-inputs
10082 `(("extra-cmake-modules" ,extra-cmake-modules)
10083 ;("perl" ,perl)
10084 ;("pkg-config" ,pkg-config)
10085 ("kdoctools" ,kdoctools)))
10086 (inputs
10087 `(("kauth" ,kauth)
10088 ("kcompletion" ,kcompletion)
10089 ("kconfigwidgets" ,kconfigwidgets)
10090 ("kcoreaddons" ,kcoreaddons)
10091 ("kcrash" ,kcrash)
10092 ("kdbusaddons" ,kdbusaddons)
10093 ("ki18n" ,ki18n)
10094 ("kxmlgui" ,kxmlgui)
10095 ("libkdegames" ,libkdegames)
10096 ("libkmahjongg" ,libkmahjongg)
10097 ("qtbase" ,qtbase)
10098 ("qtdeclarative" ,qtdeclarative)))
10099 (home-page "https://games.kde.org/")
10100 (synopsis "Shisen-Sho solitaire game")
10101 (description "KShisen is a solitaire-like game played using the standard
10102 set of Mahjong tiles. Unlike Mahjong however, KShisen has only one layer of
10103 scrambled tiles
10104
10105 This package is part of the KDE games module.")
10106 (license license:gpl2+)))
10107
10108 (define-public kajongg
10109 (package
10110 (name "kajongg")
10111 (version "19.08.3")
10112 (source
10113 (origin
10114 (method url-fetch)
10115 (uri (string-append "mirror://kde/stable/applications/"
10116 version "/src/kajongg-" version ".tar.xz"))
10117 (sha256
10118 (base32 "0ql6p5zifdpdf65r7ki9ml123azpwwk9x3x8r9ij6xhjnf7p7x6w"))))
10119 (build-system qt-build-system)
10120 (native-inputs
10121 `(("extra-cmake-modules" ,extra-cmake-modules)
10122 ;("perl" ,perl)
10123 ("kdoctools" ,kdoctools)))
10124 (inputs
10125 `(("kconfig" ,kconfig)
10126 ("kconfigwidgets" ,kconfigwidgets)
10127 ("kcoreaddons" ,kcoreaddons)
10128 ("ki18n" ,ki18n)
10129 ("libkmahjongg" ,libkmahjongg)
10130 ("python" ,python)
10131 ("qtbase" ,qtbase)
10132 ("qtsvg" ,qtsvg)))
10133 (propagated-inputs
10134 `(("python-twisted" ,python-twisted)
10135 ("python-pyqt" ,python-pyqt)))
10136 ;; FIXME: Need to wrap PYTHONPATH
10137 (home-page "https://games.kde.org/")
10138 (synopsis "Classical Mah Jongg game for 4 players")
10139 (description "Kajongg is the ancient Chinese board game for 4 players.
10140
10141 If you are looking for the Mah Jongg solitaire please use the application
10142 kmahjongg.
10143
10144 Kajongg can be used in two different ways: Scoring a manual game where you
10145 play as always and use Kajongg for the computation of scores and for
10146 bookkeeping. Or you can use Kajongg to play against any combination of other
10147 human players or computer players.
10148
10149 This package is part of the KDE games module.")
10150 (license (list license:gpl2+ license:fdl1.2+))))
10151
10152 (define-public kbreakout
10153 (package
10154 (name "kbreakout")
10155 (version "19.08.3")
10156 (source
10157 (origin
10158 (method url-fetch)
10159 (uri (string-append "mirror://kde/stable/applications/" version
10160 "/src/kbreakout-" version ".tar.xz"))
10161 (sha256
10162 (base32 "0gwzx1z9mxrjlcjzglg8cxkyd6900whcar3b5j9laxxarc6xhj8w"))))
10163 (build-system qt-build-system)
10164 (native-inputs
10165 `(("extra-cmake-modules" ,extra-cmake-modules)
10166 ("kdoctools" ,kdoctools)))
10167 (inputs
10168 `(("kcompletion" ,kcompletion)
10169 ("kconfig" ,kconfig)
10170 ("kconfigwidgets" ,kconfigwidgets)
10171 ("kcoreaddons" ,kcoreaddons)
10172 ("kcrash" ,kcrash)
10173 ("kdbusaddons" ,kdbusaddons)
10174 ("ki18n" ,ki18n)
10175 ("kwidgetsaddons" ,kwidgetsaddons)
10176 ("kxmlgui" ,kxmlgui)
10177 ("libkdegames" ,libkdegames)
10178 ("qtbase" ,qtbase)
10179 ("qtdeclarative" ,qtdeclarative)))
10180 (home-page "https://games.kde.org/")
10181 (synopsis "Breakout like game")
10182 (description "KBreakout is similar to the classics breakout and xboing,
10183 featuring a number of added graphical enhancements and effects. You control a
10184 paddle at the bottom of the playing-field, and must destroy bricks at the top
10185 by bouncing balls against them.
10186
10187 This package is part of the KDE games module.")
10188 (license (list license:gpl2+ license:fdl1.2+))))
10189
10190 (define-public kmines
10191 (package
10192 (name "kmines")
10193 (version "19.08.3")
10194 (source
10195 (origin
10196 (method url-fetch)
10197 (uri (string-append "mirror://kde/stable/applications/" version
10198 "/src/kmines-" version ".tar.xz"))
10199 (sha256
10200 (base32 "0ac3za36lh8hpx6mqfic9amwmzhzhzplm9hg3pw12gxl5a9mvfsf"))))
10201 (build-system qt-build-system)
10202 (native-inputs
10203 `(("extra-cmake-modules" ,extra-cmake-modules)
10204 ("kdoctools" ,kdoctools)))
10205 (inputs
10206 `(("kcompletion" ,kcompletion)
10207 ("kconfig" ,kconfig)
10208 ("kconfigwidgets" ,kconfigwidgets)
10209 ("kcoreaddons" ,kcoreaddons)
10210 ("kcrash" ,kcrash)
10211 ("kdbusaddons" ,kdbusaddons)
10212 ("ki18n" ,ki18n)
10213 ("ktextwidgets" ,ktextwidgets)
10214 ("kwidgetsaddons" ,kwidgetsaddons)
10215 ("kxmlgui" ,kxmlgui)
10216 ("libkdegames" ,libkdegames)
10217 ("qtbase" ,qtbase)
10218 ("qtdeclarative" ,qtdeclarative)))
10219 (home-page "https://games.kde.org/")
10220 (synopsis "Classical mine sweeper game")
10221 (description "KMines is a classic Minesweeper game. The idea is to
10222 uncover all the squares without blowing up any mines. When a mine is blown
10223 up, the game is over.
10224
10225 This package is part of the KDE games module.")
10226 (license (list license:gpl2+ license:fdl1.2+))))
10227
10228 (define-public konquest
10229 (package
10230 (name "konquest")
10231 (version "19.08.3")
10232 (source
10233 (origin
10234 (method url-fetch)
10235 (uri (string-append "mirror://kde/stable/applications/"
10236 version "/src/konquest-" version ".tar.xz"))
10237 (sha256
10238 (base32 "02gjxskhi10a1sqh3skcild8zria7wncz1a4sbz7ax1p851q76k1"))))
10239 (build-system qt-build-system)
10240 (native-inputs
10241 `(("extra-cmake-modules" ,extra-cmake-modules)
10242 ("kdoctools" ,kdoctools)))
10243 (inputs
10244 `(("kcompletion" ,kcompletion)
10245 ("kconfig" ,kconfig)
10246 ("kcoreaddons" ,kcoreaddons)
10247 ("kcrash" ,kcrash)
10248 ("kdbusaddons" ,kdbusaddons)
10249 ("kguiaddons" ,kguiaddons)
10250 ("ki18n" ,ki18n)
10251 ("kwidgetsaddons" ,kwidgetsaddons)
10252 ("kxmlgui" ,kxmlgui)
10253 ("libkdegames" ,libkdegames)
10254 ("qtbase" ,qtbase)
10255 ("qtdeclarative" ,qtdeclarative)
10256 ("qtsvg" ,qtsvg)))
10257 (home-page "https://games.kde.org/")
10258 (synopsis "Simple turn-based strategy game")
10259 (description "Konquest is the KDE version of Gnu-Lactic Konquest. Players
10260 conquer other planets by sending ships to them. The goal is to build an
10261 interstellar empire and ultimately conquer all other player's planets. The
10262 game can be played with up to nine empires, commanded either by the computer
10263 or by puny earthlings.
10264
10265 This package is part of the KDE games module.")
10266 (license (list license:gpl2+ license:fdl1.2+))))
10267
10268 (define-public kbounce
10269 (package
10270 (name "kbounce")
10271 (version "19.08.3")
10272 (source
10273 (origin
10274 (method url-fetch)
10275 (uri (string-append "mirror://kde/stable/applications/"
10276 version "/src/kbounce-" version ".tar.xz"))
10277 (sha256
10278 (base32 "02rfv0qzz5cmyfx8f56a45hbm9gsp6m3dcy8ajwx88rw5wpbrr11"))))
10279 (build-system qt-build-system)
10280 (native-inputs
10281 `(("extra-cmake-modules" ,extra-cmake-modules)
10282 ("kdoctools" ,kdoctools)))
10283 (inputs
10284 `(("kcompletion" ,kcompletion)
10285 ("kconfigwidgets" ,kconfigwidgets)
10286 ("kcoreaddons" ,kcoreaddons)
10287 ("kcrash" ,kcrash)
10288 ("kdbusaddons" ,kdbusaddons)
10289 ("ki18n" ,ki18n)
10290 ("kio" ,kio)
10291 ("kwidgetsaddons" ,kwidgetsaddons)
10292 ("kxmlgui" ,kxmlgui)
10293 ("libkdegames" ,libkdegames)
10294 ("qtbase" ,qtbase)
10295 ("qtdeclarative" ,qtdeclarative)
10296 ("qtsvg" ,qtsvg)))
10297 (home-page "https://games.kde.org/")
10298 (synopsis "Jezzball arcade game")
10299 (description "KBounce is a single player arcade game with the elements of
10300 puzzle. It is played on a field, surrounded by wall, with two or more balls
10301 bouncing around within the walls. The object of the game is to build new
10302 walls to decrease the size of the active field.
10303
10304 This package is part of the KDE games module.")
10305 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
10306
10307 (define-public kblocks
10308 (package
10309 (name "kblocks")
10310 (version "19.08.3")
10311 (source
10312 (origin
10313 (method url-fetch)
10314 (uri (string-append "mirror://kde/stable/applications/"
10315 version "/src/kblocks-" version ".tar.xz"))
10316 (sha256
10317 (base32 "0qrm0dihzhkxsq9l49ndzms802x6jn92vvabb2zf2q9z593m69cx"))))
10318 (build-system qt-build-system)
10319 (native-inputs
10320 `(("extra-cmake-modules" ,extra-cmake-modules)
10321 ("kdoctools" ,kdoctools)))
10322 (inputs
10323 `(("kcompletion" ,kcompletion)
10324 ("kconfig" ,kconfig)
10325 ("kconfigwidgets" ,kconfigwidgets)
10326 ("kcoreaddons" ,kcoreaddons)
10327 ("kcrash" ,kcrash)
10328 ("kdbusaddons" ,kdbusaddons)
10329 ("ki18n" ,ki18n)
10330 ("kwidgetsaddons" ,kwidgetsaddons)
10331 ("kxmlgui" ,kxmlgui)
10332 ("libkdegames" ,libkdegames)
10333 ("qtbase" ,qtbase)
10334 ("qtdeclarative" ,qtdeclarative)
10335 ("qtsvg" ,qtsvg)))
10336 (home-page "https://games.kde.org/")
10337 (synopsis "Single player falling blocks puzzle game")
10338 (description "KBlocks is the classic Tetris-like falling blocks game.
10339
10340 The idea is to stack the falling blocks to create horizontal lines without any
10341 gaps. When a line is completed it is removed, and more space is available in
10342 the play area. When there is not enough space for blocks to fall, the game is
10343 over.
10344
10345 This package is part of the KDE games module.")
10346 (license (list license:gpl2+ license:fdl1.2+))))
10347
10348 (define-public ksudoku
10349 (package
10350 (name "ksudoku")
10351 (version "19.08.3")
10352 (source
10353 (origin
10354 (method url-fetch)
10355 (uri (string-append "mirror://kde/stable/applications/"
10356 version "/src/ksudoku-" version ".tar.xz"))
10357 (sha256
10358 (base32 "0rcscz91hilm7l3am5w02n0n8l7xhi4l0n4sskznh68kblw0ggw2"))))
10359 (build-system qt-build-system)
10360 (native-inputs
10361 `(("extra-cmake-modules" ,extra-cmake-modules)
10362 ("kdoctools" ,kdoctools)))
10363 (inputs
10364 `(("karchive" ,karchive)
10365 ("kconfig" ,kconfig)
10366 ("kconfigwidgets" ,kconfigwidgets)
10367 ("kcoreaddons" ,kcoreaddons)
10368 ("kcrash" ,kcrash)
10369 ("kguiaddons" ,kguiaddons)
10370 ("ki18n" ,ki18n)
10371 ("kiconthemes" ,kiconthemes)
10372 ("kio" ,kio)
10373 ("kwidgetsaddons" ,kwidgetsaddons)
10374 ("kxmlgui" ,kxmlgui)
10375 ("libkdegames" ,libkdegames)
10376 ("glu" ,glu)
10377 ("qtbase" ,qtbase)
10378 ("qtdeclarative" ,qtdeclarative)
10379 ("qtsvg" ,qtsvg)))
10380 (home-page "https://games.kde.org/")
10381 (synopsis "Sudoku puzzle game and solver")
10382 (description "KSudoku is a Sudoku game and solver, supporting a range of
10383 2D and 3D Sudoku variants. In addition to playing Sudoku, it can print Sudoku
10384 puzzle sheets and find the solution to any Sudoku puzzle.
10385
10386 The word Sudoku means \"single number in an allotted place\" in Japanese.
10387 These are the basic rules: Every Sudoku is a square divided into 3x3
10388 subsquares with 3x3 cells each.
10389
10390 Some cells are filled with a number at the beginning. The remaining ones are
10391 to be filled by the player using numbers from 1 to 9, without repeating a
10392 number twice on each column, row or subsquare (each of them must contain only
10393 one 1, one 2, one 3, and so on). The game requires logic and patience.
10394 Solving takes usually 10 to 30 minutes, depending on puzzle level, your skill
10395 and experience.
10396
10397 The numerals in Sudoku puzzles are used for convenience (for example in 16x16
10398 board we use letters): arithmetic relationships between numbers are
10399 irrelevant.
10400
10401 This program supports also 16x16 games with numbers from 1 to 16 and 256
10402 cells with 16 cols, rows and subsquares!
10403
10404 More information at http://en.wikipedia.org/wiki/Sudoku
10405
10406 This package is part of the KDE games module.")
10407 (license (list license:gpl2+ license:fdl1.2+))))
10408
10409 (define-public klines
10410 (package
10411 (name "klines")
10412 (version "19.08.3")
10413 (source
10414 (origin
10415 (method url-fetch)
10416 (uri (string-append "mirror://kde/stable/applications/" version
10417 "/src/klines-" version ".tar.xz"))
10418 (sha256
10419 (base32 "1g1f46jp0rb8gpqkgcf915ydpsscn1sxk3gjvm8bcqgx9ddq59xa"))))
10420 (build-system qt-build-system)
10421 (native-inputs
10422 `(("extra-cmake-modules" ,extra-cmake-modules)
10423 ("kdoctools" ,kdoctools)))
10424 (inputs
10425 `(("kcompletion" ,kcompletion)
10426 ("kconfigwidgets" ,kconfigwidgets)
10427 ("kcoreaddons" ,kcoreaddons)
10428 ("kcrash" ,kcrash)
10429 ("kdbusaddons" ,kdbusaddons)
10430 ("ki18n" ,ki18n)
10431 ("kwidgetsaddons" ,kwidgetsaddons)
10432 ("kxmlgui" ,kxmlgui)
10433 ("libkdegames" ,libkdegames)
10434 ("qtbase" ,qtbase)
10435 ("qtdeclarative" ,qtdeclarative)))
10436 (home-page "https://games.kde.org/")
10437 (synopsis "Place 5 equal pieces together, but wait, there are 3 new ones")
10438 (description "KLines is a simple but highly addictive one player game.
10439
10440 The player has to move the colored balls around the game board, gathering them
10441 into the lines of the same color by five. Once the line is complete it is
10442 removed from the board, therefore freeing precious space. In the same time
10443 the new balls keep arriving by three after each move, filling up the game
10444 board.
10445
10446 KLines is a single-player game where the player removes colored balls from the
10447 board by arranging them into lines of five or more. However, every time the
10448 player moves a ball, three more balls are added to the board.
10449
10450 This package is part of the KDE games module.")
10451 (license (list license:gpl2+ license:fdl1.2+))))
10452
10453 (define-public kgoldrunner
10454 (package
10455 (name "kgoldrunner")
10456 (version "19.08.3")
10457 (source
10458 (origin
10459 (method url-fetch)
10460 (uri (string-append "mirror://kde/stable/applications/" version "/src/kgoldrunner-"
10461 version ".tar.xz"))
10462 (sha256
10463 (base32 "16rcvq796r3asz4v4ap75xvwnxd3dd2nsq5r9vxvzl6rrf1w9bj4"))))
10464 (build-system qt-build-system)
10465 (native-inputs
10466 `(("extra-cmake-modules" ,extra-cmake-modules)
10467 ("kdoctools" ,kdoctools)))
10468 (inputs
10469 `(("kcompletion" ,kcompletion)
10470 ("kcoreaddons" ,kcoreaddons)
10471 ("kcrash" ,kcrash)
10472 ("kdbusaddons" ,kdbusaddons)
10473 ("ki18n" ,ki18n)
10474 ("kio" ,kio)
10475 ("kwidgetsaddons" ,kwidgetsaddons)
10476 ("kxmlgui" ,kxmlgui)
10477 ("libkdegames" ,libkdegames)
10478 ("qtbase" ,qtbase)
10479 ("qtdeclarative" ,qtdeclarative)))
10480 (home-page "https://games.kde.org/")
10481 (synopsis "Action and puzzle solving game")
10482 (description "KGoldrunner is an action game where the hero runs through a
10483 maze, climbs stairs, dig holes and dodges enemies in order to collect all the
10484 gold nuggets and escape to the next level. Your enemies are also after the
10485 gold. Worse still, they are after you!.
10486
10487 KGoldrunner is a fast-paced platform game where the player must navigate a
10488 maze while collecting gold nuggets and avoiding enemies. A variety of level
10489 packs are included, as well as an editor to create new levels.
10490
10491 This package is part of the KDE games module.")
10492 (license (list license:gpl2+ license:fdl1.2+))))
10493
10494 (define-public kdiamond
10495 (package
10496 (name "kdiamond")
10497 (version "19.08.3")
10498 (source
10499 (origin
10500 (method url-fetch)
10501 (uri (string-append "mirror://kde/stable/applications/" version
10502 "/src/kdiamond-" version ".tar.xz"))
10503 (sha256
10504 (base32 "1v5yb9hb26lk277zhw8d37ks829yfqr5anzx1qhms44gca5kqhva"))))
10505 (build-system qt-build-system)
10506 (native-inputs
10507 `(("extra-cmake-modules" ,extra-cmake-modules)
10508 ("kdoctools" ,kdoctools)))
10509 (inputs
10510 `(("kcompletion" ,kcompletion)
10511 ("kconfig" ,kconfig)
10512 ("kconfigwidgets" ,kconfigwidgets)
10513 ("kcoreaddons" ,kcoreaddons)
10514 ("kcrash" ,kcrash)
10515 ("kdbusaddons" ,kdbusaddons)
10516 ("ki18n" ,ki18n)
10517 ("knotifications" ,knotifications)
10518 ("knotifyconfig" ,knotifyconfig)
10519 ("kwidgetsaddons" ,kwidgetsaddons)
10520 ("kxmlgui" ,kxmlgui)
10521 ("libkdegames" ,libkdegames)
10522 ("qtbase" ,qtbase)
10523 ("qtdeclarative" ,qtdeclarative)))
10524 (home-page "https://games.kde.org/")
10525 (synopsis "Three-in-a-row game")
10526 (description "KDiamond is a three-in-a-row game like Bejeweled. It
10527 features unlimited fun with randomly generated games and five difficulty
10528 levels with varying number of diamond colors and board sizes.
10529
10530 This package is part of the KDE games module.")
10531 (license (list license:gpl2+ license:fdl1.2+))))
10532
10533 (define-public kfourinline
10534 (package
10535 (name "kfourinline")
10536 (version "19.08.3")
10537 (source
10538 (origin
10539 (method url-fetch)
10540 (uri (string-append "mirror://kde/stable/applications/" version
10541 "/src/kfourinline-" version ".tar.xz"))
10542 (sha256
10543 (base32 "1vprs6dc1ccn3g6k594i9s94xy4b91vzlqjysyc6fqcq2fs54ny3"))))
10544 (build-system qt-build-system)
10545 (native-inputs
10546 `(("extra-cmake-modules" ,extra-cmake-modules)
10547 ("kdoctools" ,kdoctools)))
10548 (inputs
10549 `(("kcompletion" ,kcompletion)
10550 ("kconfig" ,kconfig)
10551 ("kconfigwidgets" ,kconfigwidgets)
10552 ("kcoreaddons" ,kcoreaddons)
10553 ("kcrash" ,kcrash)
10554 ("kdelibs4support" ,kdelibs4support)
10555 ("kdnssd" ,kdnssd)
10556 ("ki18n" ,ki18n)
10557 ("kxmlgui" ,kxmlgui)
10558 ("libkdegames" ,libkdegames)
10559 ("qtbase" ,qtbase)
10560 ("qtdeclarative" ,qtdeclarative)
10561 ("qtsvg" ,qtsvg)))
10562 (home-page "https://games.kde.org/")
10563 (synopsis "Place 4 pieces in a row")
10564 (description "KFourInLine is a board game for two players based on the
10565 Connect-Four game.
10566
10567 KFourInLine is a game where two players take turns dropping pieces into a
10568 grid, the winner being the first to place four pieces in a line.
10569
10570 This package is part of the KDE games module.")
10571 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
10572
10573 (define-public kblackbox
10574 (package
10575 (name "kblackbox")
10576 (version "19.08.3")
10577 (source
10578 (origin
10579 (method url-fetch)
10580 (uri (string-append "mirror://kde/stable/applications/" version
10581 "/src/kblackbox-" version ".tar.xz"))
10582 (sha256
10583 (base32 "1x42sfpf75c6mavwkc7g7dm11y9s5dpj8igphly5kvm0pajqby0n"))))
10584 (build-system qt-build-system)
10585 (native-inputs
10586 `(("extra-cmake-modules" ,extra-cmake-modules)
10587 ("kdoctools" ,kdoctools)))
10588 (inputs
10589 `(("karchive" ,karchive)
10590 ("kcompletion" ,kcompletion)
10591 ("kconfig" ,kconfig)
10592 ("kcoreaddons" ,kcoreaddons)
10593 ("kcrash" ,kcrash)
10594 ("kdbusaddons" ,kdbusaddons)
10595 ("ki18n" ,ki18n)
10596 ("ktextwidgets" ,ktextwidgets)
10597 ("kxmlgui" ,kxmlgui)
10598 ("libkdegames" ,libkdegames)
10599 ("qtbase" ,qtbase)
10600 ("qtdeclarative" ,qtdeclarative)
10601 ("qtsvg" ,qtsvg)))
10602 (home-page "https://games.kde.org/")
10603 (synopsis "Find atoms in a grid by shooting electrons")
10604 (description "KBlackbox is a game of hide and seek played on a grid of
10605 boxes where the computer has hidden several balls. The position of the hidden
10606 balls can be deduced by shooting beams into the box
10607
10608 KBlackBox is a game of hide and seek played on an grid of boxes, where the
10609 player shoots rays into the grid to deduce the positions of hidden objects.
10610
10611 This package is part of the KDE games module.")
10612 (license (list license:gpl2+ license:fdl1.2+))))
10613
10614 (define-public knetwalk
10615 (package
10616 (name "knetwalk")
10617 (version "19.08.3")
10618 (source
10619 (origin
10620 (method url-fetch)
10621 (uri (string-append "mirror://kde/stable/applications/" version
10622 "/src/knetwalk-" version ".tar.xz"))
10623 (sha256
10624 (base32 "1i340salzgqdw8y33wrrydmpgx3pvwf5wrbljlh67cjf6s4csx7d"))))
10625 (build-system qt-build-system)
10626 (native-inputs
10627 `(("extra-cmake-modules" ,extra-cmake-modules)
10628 ("kdoctools" ,kdoctools)))
10629 (inputs
10630 `(("kcompletion" ,kcompletion)
10631 ("kconfig" ,kconfig)
10632 ("kconfigwidgets" ,kconfigwidgets)
10633 ("kcoreaddons" ,kcoreaddons)
10634 ("kcrash" ,kcrash)
10635 ("kdbusaddons" ,kdbusaddons)
10636 ("ki18n" ,ki18n)
10637 ("ktextwidgets" ,ktextwidgets)
10638 ("kwidgetsaddons" ,kwidgetsaddons)
10639 ("kxmlgui" ,kxmlgui)
10640 ("libkdegames" ,libkdegames)
10641 ("qtbase" ,qtbase)
10642 ("qtdeclarative" ,qtdeclarative)))
10643 (home-page "https://games.kde.org/")
10644 (synopsis "Turn the board pieces to get all computers connected")
10645 (description "KNetWalk is a small game where you have to build up a
10646 computer network by rotating the wires to connect the terminals to the server.
10647 When the network is build, a highscore-list comes up where competitions can be
10648 fought out.
10649
10650 KNetwalk is a puzzle game where the player arranges sections of wire to
10651 connect all the computers on the board.
10652
10653 This package is part of the KDE games module.")
10654 (license (list license:gpl2+ license:fdl1.2+))))
10655
10656 (define-public bomber
10657 (package
10658 (name "bomber")
10659 (version "19.08.3")
10660 (source
10661 (origin
10662 (method url-fetch)
10663 (uri (string-append "mirror://kde/stable/applications/" version
10664 "/src/bomber-" version ".tar.xz"))
10665 (sha256
10666 (base32 "1lvzd0mzgq25akvwvkm57l3plm65k731v2i1ahakn985bb5gc3is"))))
10667 (build-system qt-build-system)
10668 (native-inputs
10669 `(("extra-cmake-modules" ,extra-cmake-modules)
10670 ("kdoctools" ,kdoctools)))
10671 (inputs
10672 `(("kcompletiom" ,kcompletion)
10673 ("kconfig" ,kconfig)
10674 ("kcoreaddons" ,kcoreaddons)
10675 ("kcrash" ,kcrash)
10676 ("kdbusaddons" ,kdbusaddons)
10677 ("ki18n" ,ki18n)
10678 ("kxmlgui" ,kxmlgui)
10679 ("libkdegames" ,libkdegames)
10680 ("qtbase" ,qtbase)
10681 ("qtdeclarative" ,qtdeclarative)))
10682 (home-page "https://games.kde.org/")
10683 (synopsis "Arcade bombing game")
10684 (description "Bomber is a single player arcade game.
10685
10686 The player is invading various cities in a plane that is decreasing in height.
10687 The goal of the game is to destroy all the buildings and advance to the next
10688 level. Each level gets a bit harder by increasing the speed of the plane and
10689 the height of the buildings.
10690
10691 Bomber is a game where you fly a spaceship and attempt to bomb the buildings
10692 below you. Each pass the spaceship makes, it gets lower and lower. If you've
10693 not destroyed a building in your path, you will crash into it.
10694
10695 This package is part of the KDE games module.")
10696 (license (list license:gpl2+ license:fdl1.2+))))
10697
10698 (define-public granatier
10699 (package
10700 (name "granatier")
10701 (version "19.08.3")
10702 (source
10703 (origin
10704 (method url-fetch)
10705 (uri (string-append "mirror://kde/stable/applications/" version
10706 "/src/granatier-" version ".tar.xz"))
10707 (sha256
10708 (base32 "141qmdinz7ikbbrs8dq6cap3nl22sl7pw62r80pf3xxwn2q4phpa"))))
10709 (build-system qt-build-system)
10710 (native-inputs
10711 `(("extra-cmake-modules" ,extra-cmake-modules)
10712 ("kdoctools" ,kdoctools)))
10713 (inputs
10714 `(("kcompletion" ,kcompletion)
10715 ("kconfig" ,kconfig)
10716 ("kconfigwidgets" ,kconfigwidgets)
10717 ("kcoreaddons" ,kcoreaddons)
10718 ("kcrash" ,kcrash)
10719 ("kdbusaddons" ,kdbusaddons)
10720 ("ki18n" ,ki18n)
10721 ("knewstuff" ,knewstuff)
10722 ("kwidgetsaddons" ,kwidgetsaddons)
10723 ("kxmlgui" ,kxmlgui)
10724 ("libkdegames" ,libkdegames)
10725 ("qtbase" ,qtbase)
10726 ("qtdeclarative" ,qtdeclarative)
10727 ("qtsvg" ,qtsvg)))
10728 (home-page "https://games.kde.org/")
10729 (synopsis "Bomberman clone")
10730 (description "Granatier is a clone of the classic Bomberman game,
10731 inspired by the work of the Clanbomber clone.
10732
10733 This package is part of the KDE games module.")
10734 (license (list license:gpl2+ license:fdl1.2+))))
10735
10736 (define-public ksirk
10737 (package
10738 (name "ksirk")
10739 (version "19.08.3")
10740 (source
10741 (origin
10742 (method url-fetch)
10743 (uri (string-append "mirror://kde/stable/applications/" version
10744 "/src/ksirk-" version ".tar.xz"))
10745 (sha256
10746 (base32 "1b1wixs2hp5qnvdygfwa3kvy0kn94ysa4ifmx90q6r3yfr2lpfca"))))
10747 (build-system qt-build-system)
10748 (native-inputs
10749 `(("extra-cmake-modules" ,extra-cmake-modules)
10750 ("kdoctools" ,kdoctools)))
10751 (inputs
10752 `(("kcrash" ,kcrash)
10753 ("ki18n" ,ki18n)
10754 ("kiconthemes" ,kiconthemes)
10755 ("kio" ,kio)
10756 ("knewstuff" ,knewstuff)
10757 ("kwallet" ,kwallet)
10758 ("kxmlgui" ,kxmlgui)
10759 ("libkdegames" ,libkdegames)
10760 ("phonon" ,phonon)
10761 ("qca" ,qca)
10762 ("qtbase" ,qtbase)
10763 ("qtdeclarative" ,qtdeclarative)
10764 ("qtsvg" ,qtsvg)
10765 ("zlib" ,zlib)))
10766 (home-page "https://games.kde.org/")
10767 (synopsis "Computerized version of the well known strategy board game
10768 'Risk'")
10769 (description "KsirK is a multi-player network-enabled game. The goal of
10770 the game is simply to conquer the world by attacking your neighbors with your
10771 armies.
10772
10773 At the beginning of the game, countries are distributed to all the players.
10774 Each country contains one army represented by an infantryman. Each player has
10775 some armies to distribute to his countries. On each turn, each player can
10776 attack his neighbours, eventually conquering one or more countries. At the
10777 end of each turn, some bonus armies are distributed to the players in function
10778 of the number of countries they own. The winner is the player that conquered
10779 all the world.
10780
10781 Features:
10782 @itemize
10783 @item Support for 1-6 human or computer players
10784 @item Multi-player gaming over a network
10785 @item You can easily create new skins with SVG graphics and the skin editor
10786 @item Hot New Stuff support. You can easily download and install new skins
10787 @end itemize
10788
10789 This package is part of the KDE games module.")
10790 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
10791
10792 (define-public palapeli
10793 (package
10794 (name "palapeli")
10795 (version "19.08.3")
10796 (source
10797 (origin
10798 (method url-fetch)
10799 (uri (string-append "mirror://kde/stable/applications/" version
10800 "/src/palapeli-" version ".tar.xz"))
10801 (sha256
10802 (base32 "1g91ydbc0x2y2gn3lcb5w03mn7k78l5bq4cb1s59kx6yjbflv3pw"))))
10803 (build-system qt-build-system)
10804 (native-inputs
10805 `(("extra-cmake-modules" ,extra-cmake-modules)
10806 ("kdoctools" ,kdoctools)))
10807 (inputs
10808 `(("karchive" ,karchive)
10809 ("kcompletion" ,kcompletion)
10810 ("kconfig" ,kconfig)
10811 ("kconfigwidgets" ,kconfigwidgets)
10812 ("kcoreaddons" ,kcoreaddons)
10813 ("kcrash" ,kcrash)
10814 ("kcrash" ,kcrash)
10815 ("ki18n" ,ki18n)
10816 ("ki18n" ,ki18n)
10817 ("kio" ,kio)
10818 ("kitemviews" ,kitemviews)
10819 ("knotifications" ,knotifications)
10820 ("kservice" ,kservice)
10821 ("kwidgetsaddons" ,kwidgetsaddons)
10822 ("kxmlgui" ,kxmlgui)
10823 ("libkdegames" ,libkdegames)
10824 ("qtbase" ,qtbase)
10825 ("qtdeclarative" ,qtdeclarative)
10826 ("qtsvg" ,qtsvg)
10827 ("shared-mime-info" ,shared-mime-info)))
10828 (home-page "https://games.kde.org/")
10829 (synopsis "Jigsaw puzzle game")
10830 (description "Palapeli is a jigsaw puzzle game. Unlike other games in
10831 that genre, you are not limited to aligning pieces on imaginary grids. The
10832 pieces are freely moveable. Also, Palapeli features real persistency, i.e.
10833 everything you do is saved on your disk immediately.
10834
10835 Palapeli is the Finnish word for jigsaw puzzle.
10836
10837 This package is part of the KDE games module.")
10838 (license license:gpl2+)))
10839
10840 (define-public kiriki
10841 (package
10842 (name "kiriki")
10843 (version "19.08.3")
10844 (source
10845 (origin
10846 (method url-fetch)
10847 (uri (string-append "mirror://kde/stable/applications/" version
10848 "/src/kiriki-" version ".tar.xz"))
10849 (sha256
10850 (base32 "1xg25dj95g81dc5l7k47am4j52abrwwfx4h73lvsbn4lc8lfmshw"))))
10851 (build-system qt-build-system)
10852 (native-inputs
10853 `(("extra-cmake-modules" ,extra-cmake-modules)
10854 ("kdoctools" ,kdoctools)))
10855 (inputs
10856 `(("kcompletion" ,kcompletion)
10857 ("kconfig" ,kconfig)
10858 ("kconfigwidgets" ,kconfigwidgets)
10859 ("kcoreaddons" ,kcoreaddons)
10860 ("kcrash" ,kcrash)
10861 ("kdbusaddons" ,kdbusaddons)
10862 ("ki18n" ,ki18n)
10863 ("kiconthemes" ,kiconthemes)
10864 ("kxmlgui" ,kxmlgui)
10865 ("libkdegames" ,libkdegames)
10866 ("qtbase" ,qtbase)
10867 ("qtdeclarative" ,qtdeclarative)))
10868 (home-page "https://games.kde.org/")
10869 (synopsis "Yahtzee dice game")
10870 (description "Kiriki is an addictive and fun dice game, designed to be
10871 played by as many as six players.
10872
10873 Participants have to collect points by rolling five dice for up to three times
10874 per single turn to make combinations with the highest score.
10875
10876 This package is part of the KDE games module.")
10877 (license (list license:gpl2+ license:fdl1.2+))))
10878
10879 (define-public kigo
10880 (package
10881 (name "kigo")
10882 (version "19.08.3")
10883 (source
10884 (origin
10885 (method url-fetch)
10886 (uri (string-append "mirror://kde/stable/applications/" version
10887 "/src/kigo-" version ".tar.xz"))
10888 (sha256
10889 (base32 "00l5gcbi8xyj9c1lngkrddka3a4m4cd78prfplrpq32ma9xq681f"))))
10890 (build-system qt-build-system)
10891 (native-inputs
10892 `(("extra-cmake-modules" ,extra-cmake-modules)
10893 ("kdoctools" ,kdoctools)))
10894 (inputs
10895 `(("kconfig" ,kconfig)
10896 ("kconfigwidgets" ,kconfigwidgets)
10897 ("kcoreaddons" ,kcoreaddons)
10898 ("kcrash" ,kcrash)
10899 ("kdbusaddons" ,kdbusaddons)
10900 ("ki18n" ,ki18n)
10901 ("kio" ,kio)
10902 ("knewstuff" ,knewstuff)
10903 ("ktextwidgets" ,ktextwidgets)
10904 ("kxmlgui" ,kxmlgui)
10905 ("libkdegames" ,libkdegames)
10906 ("qtbase" ,qtbase)
10907 ("qtdeclarative" ,qtdeclarative)
10908 ("qtsvg" ,qtsvg)))
10909 (home-page "https://games.kde.org/")
10910 (synopsis "Go board game")
10911 (description "Kigo is an open-source implementation of the popular Go
10912 game.
10913
10914 Go is a strategic board game for two players. It is also known as
10915 igo (Japanese), weiqi or wei ch'i (Chinese) or baduk (Korean). Go is noted
10916 for being rich in strategic complexity despite its simple rules. The game is
10917 played by two players who alternately place black and white stones (playing
10918 pieces, now usually made of glass or plastic) on the vacant intersections of a
10919 grid of 19x19 lines (9x9 or 13x13 for easier games).
10920
10921 You also need to install a go engine, e.g. @code{gnugo}.
10922
10923 This package is part of the KDE games module.")
10924 (license license:gpl3+)))
10925
10926 (define-public kubrick
10927 (package
10928 (name "kubrick")
10929 (version "19.08.3")
10930 (source
10931 (origin
10932 (method url-fetch)
10933 (uri (string-append "mirror://kde/stable/applications/" version
10934 "/src/kubrick-" version ".tar.xz"))
10935 (sha256
10936 (base32 "0ma8wja4rqlsmsr8cyicfpkwlgqva4450ls4c0ql53p0kabf04gx"))))
10937 (build-system qt-build-system)
10938 (native-inputs
10939 `(("extra-cmake-modules" ,extra-cmake-modules)
10940 ("kdoctools" ,kdoctools)))
10941 (inputs
10942 `(("glu" ,glu)
10943 ("kconfig" ,kconfig)
10944 ("kconfigwidgets" ,kconfigwidgets)
10945 ("kcoreaddons" ,kcoreaddons)
10946 ("kcrash" ,kcrash)
10947 ("ki18n" ,ki18n)
10948 ("kio" ,kio)
10949 ("kwidgetsaddons" ,kwidgetsaddons)
10950 ("kxmlgui" ,kxmlgui)
10951 ("libkdegames" ,libkdegames)
10952 ("qtbase" ,qtbase)
10953 ("qtdeclarative" ,qtdeclarative)
10954 ("qtsvg" ,qtsvg)))
10955 (home-page "https://games.kde.org/")
10956 (synopsis "Game based on Rubik's Cube")
10957 (description "Kubrick is a game based on the Rubik's Cube puzzle.
10958
10959 The cube sizes range from 2x2x2 up to 6x6x6, or you can play with irregular
10960 \"bricks\" such as 5x3x2 or \"mats\" such as 6x4x1 or 2x2x1. The game has a
10961 selection of puzzles at several levels of difficulty, as well as demos of
10962 pretty patterns and solution moves, or you can make up your own puzzles. The
10963 game has unlimited undo, redo, save and reload capabilities.
10964
10965 This package is part of the KDE games module.")
10966 (license (list license:gpl2+ license:fdl1.2+))))
10967
10968 (define-public lskat
10969 (package
10970 (name "lskat")
10971 (version "19.08.3")
10972 (source
10973 (origin
10974 (method url-fetch)
10975 (uri (string-append "mirror://kde/stable/applications/" version
10976 "/src/lskat-" version ".tar.xz"))
10977 (sha256
10978 (base32 "1qk5hd27zb42pbcxq5wyzz62nj5f0qdmgy54r9rnk92pzzzk94s9"))))
10979 (build-system qt-build-system)
10980 (native-inputs
10981 `(("extra-cmake-modules" ,extra-cmake-modules)
10982 ("kdoctools" ,kdoctools)))
10983 (inputs
10984 `(("kcompletion" ,kcompletion)
10985 ("kconfig" ,kconfig)
10986 ("kcoreaddons" ,kcoreaddons)
10987 ("kcrash" ,kcrash)
10988 ("kguiaddons" ,kguiaddons)
10989 ("ki18n" ,ki18n)
10990 ("kwidgetsaddons" ,kwidgetsaddons)
10991 ("kxmlgui" ,kxmlgui)
10992 ("libkdegames" ,libkdegames)
10993 ("qtbase" ,qtbase)
10994 ("qtdeclarative" ,qtdeclarative)
10995 ("qtsvg" ,qtsvg)))
10996 (home-page "https://games.kde.org/")
10997 (synopsis "Lieutnant Skat card game")
10998 (description "Lieutnant Skat (from German \"Offiziersskat\") is a fun and
10999 engaging card game for two players, where the second player is either live
11000 opponent, or a built in artificial intelligence.
11001
11002 Lieutnant Skat is a simplified variant of the Skat card game for two players.
11003
11004 This package is part of the KDE games module.")
11005 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
11006
11007 (define-public kapman
11008 (package
11009 (name "kapman")
11010 (version "19.08.3")
11011 (source
11012 (origin
11013 (method url-fetch)
11014 (uri (string-append "mirror://kde/stable/applications/" version
11015 "/src/kapman-" version ".tar.xz"))
11016 (sha256
11017 (base32 "03pq38caam30q4bw14c045kayw2d87xq1yaa3s2jkrylylfq3p0f"))))
11018 (build-system qt-build-system)
11019 (native-inputs
11020 `(("extra-cmake-modules" ,extra-cmake-modules)
11021 ("kdoctools" ,kdoctools)))
11022 (inputs
11023 `(("kcompletion" ,kcompletion)
11024 ("kconfig" ,kconfig)
11025 ("kconfigwidgets" ,kconfigwidgets)
11026 ("kcoreaddons" ,kcoreaddons)
11027 ("kcrash" ,kcrash)
11028 ("kdbusaddons" ,kdbusaddons)
11029 ("ki18n" ,ki18n)
11030 ("kxmlgui" ,kxmlgui)
11031 ("libkdegames" ,libkdegames)
11032 ("qtbase" ,qtbase)
11033 ("qtdeclarative" ,qtdeclarative)
11034 ("qtsvg" ,qtsvg)))
11035 (home-page "https://games.kde.org/")
11036 (synopsis "Pac-Man clone")
11037 (description "Kapman is a clone of the well known game Pac-Man.
11038
11039 You must run through the maze to eat all pills without being captured by a
11040 ghost. By eating an energizer, Kapman gets the ability to eat ghosts for a
11041 few seconds. When a stage is cleared of pills and energizer the player is
11042 taken to the next stage with slightly increased game speed
11043
11044 This package is part of the KDE games module.")
11045 (license (list license:gpl2+ license:fdl1.2+))))
11046
11047 (define-public kspaceduel
11048 (package
11049 (name "kspaceduel")
11050 (version "19.08.3")
11051 (source
11052 (origin
11053 (method url-fetch)
11054 (uri (string-append "mirror://kde/stable/applications/" version
11055 "/src/kspaceduel-" version ".tar.xz"))
11056 (sha256
11057 (base32 "1hppni0ihs7psc0dly5rxyy2a38nzhlig9yfyhi3lkh36z05pql8"))))
11058 (build-system qt-build-system)
11059 (native-inputs
11060 `(("extra-cmake-modules" ,extra-cmake-modules)
11061 ("kdoctools" ,kdoctools)))
11062 (inputs
11063 `(("kcompletion" ,kcompletion)
11064 ("kconfig" ,kconfig)
11065 ("kconfigwidgets" ,kconfigwidgets)
11066 ("kcoreaddons" ,kcoreaddons)
11067 ("kcrash" ,kcrash)
11068 ("kdbusaddons" ,kdbusaddons)
11069 ("ki18n" ,ki18n)
11070 ("kxmlgui" ,kxmlgui)
11071 ("libkdegames" ,libkdegames)
11072 ("qtbase" ,qtbase)
11073 ("qtdeclarative" ,qtdeclarative)
11074 ("qtsvg" ,qtsvg)))
11075 (home-page "https://games.kde.org/")
11076 (synopsis "Two player game with shooting spaceships flying around a sun")
11077 (description "KSpaceduel is a space battle game for one or two players,
11078 where two ships fly around a star in a struggle to be the only survivor.
11079
11080 This package is part of the KDE games module.")
11081 (license (list license:gpl2+ license:fdl1.2+))))
11082
11083 (define-public bovo
11084 (package
11085 (name "bovo")
11086 (version "19.08.3")
11087 (source
11088 (origin
11089 (method url-fetch)
11090 (uri (string-append "mirror://kde/stable/applications/" version
11091 "/src/bovo-" version ".tar.xz"))
11092 (sha256
11093 (base32 "0dbpng0w52nahmx7brsll66zw23ql1g6pcvn2k4g2lnvxch0i59g"))))
11094 (build-system qt-build-system)
11095 (native-inputs
11096 `(("extra-cmake-modules" ,extra-cmake-modules)
11097 ("kdoctools" ,kdoctools)))
11098 (inputs
11099 `(("kcompletion" ,kcompletion)
11100 ("kcoreaddons" ,kcoreaddons)
11101 ("kcrash" ,kcrash)
11102 ("kdbusaddons" ,kdbusaddons)
11103 ("ki18n" ,ki18n)
11104 ("kxmlgui" ,kxmlgui)
11105 ("libkdegames" ,libkdegames)
11106 ("qtbase" ,qtbase)
11107 ("qtdeclarative" ,qtdeclarative)
11108 ("qtsvg" ,qtsvg)))
11109 (home-page "https://games.kde.org/")
11110 (synopsis "Classic pen and paper game: five in a line")
11111 (description "Bovo is a Gomoku (from Japanese 五目並べ - lit. \"five
11112 points\") like game for two players, where the opponents alternate in placing
11113 their respective pictogram on the game board. The winner is the first to
11114 complete a line of five markers. (Also known as: Connect Five, Five in a row,
11115 X and O, Naughts and Crosses)
11116
11117 This package is part of the KDE games module.")
11118 (license (list license:gpl2+ license:fdl1.2+))))
11119
11120 (define-public killbots
11121 (package
11122 (name "killbots")
11123 (version "19.08.3")
11124 (source
11125 (origin
11126 (method url-fetch)
11127 (uri (string-append "mirror://kde/stable/applications/" version
11128 "/src/killbots-" version ".tar.xz"))
11129 (sha256
11130 (base32 "1qi86q7diw7glkp9v33yim9nhz2da4balbxa1hjrdgjdv8zdbxbm"))))
11131 (build-system qt-build-system)
11132 (native-inputs
11133 `(("extra-cmake-modules" ,extra-cmake-modules)
11134 ("kdoctools" ,kdoctools)))
11135 (inputs
11136 `(("kcompletion" ,kcompletion)
11137 ("kconfig" ,kconfig)
11138 ("kconfigwidgets" ,kconfigwidgets)
11139 ("kcoreaddons" ,kcoreaddons)
11140 ("kcrash" ,kcrash)
11141 ("kdbusaddons" ,kdbusaddons)
11142 ("ki18n" ,ki18n)
11143 ("kwidgetsaddons" ,kwidgetsaddons)
11144 ("kxmlgui" ,kxmlgui)
11145 ("libkdegames" ,libkdegames)
11146 ("qtbase" ,qtbase)
11147 ("qtdeclarative" ,qtdeclarative)))
11148 (home-page "https://games.kde.org/")
11149 (synopsis "Port of the classic BSD console game robots")
11150 (description "Killbots is a simple game of evading killer robots.
11151
11152 Who created the robots and why they have been programmed to destroy, no one
11153 knows. All that is known is that the robots are numerous and their sole
11154 objective is to destroy you. Fortunately for you, their creator has focused
11155 on quantity rather than quality and as a result the robots are severely
11156 lacking in intelligence. Your superior wit and a fancy teleportation device
11157 are your only weapons against the never-ending stream of mindless automatons.
11158
11159 This package is part of the KDE games module.")
11160 (license (list license:gpl2+ license:fdl1.2+))))
11161
11162 (define-public ksnakeduel
11163 (package
11164 (name "ksnakeduel")
11165 (version "19.08.3")
11166 (source
11167 (origin
11168 (method url-fetch)
11169 (uri (string-append "mirror://kde/stable/applications/" version
11170 "/src/ksnakeduel-" version ".tar.xz"))
11171 (sha256
11172 (base32 "0mprrnpax8pv7ab36zwhvdfj8id52w8g6x76nnj8qvkdlkjiqdnn"))))
11173 (build-system qt-build-system)
11174 (native-inputs
11175 `(("extra-cmake-modules" ,extra-cmake-modules)
11176 ("kdoctools" ,kdoctools)))
11177 (inputs
11178 `(("kcompletion" ,kcompletion)
11179 ("kconfig" ,kconfig)
11180 ("kconfigwidgets" ,kconfigwidgets)
11181 ("kcoreaddons" ,kcoreaddons)
11182 ("kcrash" ,kcrash)
11183 ("kdbusaddons" ,kdbusaddons)
11184 ("kguiaddons" ,kguiaddons)
11185 ("ki18n" ,ki18n)
11186 ("kxmlgui" ,kxmlgui)
11187 ("libkdegames" ,libkdegames)
11188 ("qtbase" ,qtbase)
11189 ("qtdeclarative" ,qtdeclarative)
11190 ("qtsvg" ,qtsvg)))
11191 (home-page "https://games.kde.org/")
11192 (synopsis "Snake race played against the computer")
11193 (description "KSnakeDuel is a fast action game where you steer a snake
11194 which has to eat food. While eating the snake grows. But once a player
11195 collides with the other snake or the wall the game is lost. This becomes of
11196 course more and more difficult the longer the snakes grow.
11197
11198 This package is part of the KDE games module.")
11199 (license (list license:gpl2+ license:fdl1.2+))))
11200
11201 (define-public kollision
11202 (package
11203 (name "kollision")
11204 (version "19.08.3")
11205 (source
11206 (origin
11207 (method url-fetch)
11208 (uri (string-append "mirror://kde/stable/applications/" version
11209 "/src/kollision-" version ".tar.xz"))
11210 (sha256
11211 (base32 "1p7qrn3d0ybpvc9k6k5wzj54dsrp1rqh39844maz0ay2fhvmch12"))))
11212 (build-system qt-build-system)
11213 (native-inputs
11214 `(("extra-cmake-modules" ,extra-cmake-modules)
11215 ("kdoctools" ,kdoctools)))
11216 (inputs
11217 `(("kcompletion" ,kcompletion)
11218 ("kconfig" ,kconfig)
11219 ("kcoreaddons" ,kcoreaddons)
11220 ("kcrash" ,kcrash)
11221 ("kdbusaddons" ,kdbusaddons)
11222 ("ki18n" ,ki18n)
11223 ("kwidgetsaddons" ,kwidgetsaddons)
11224 ("kxmlgui" ,kxmlgui)
11225 ("libkdegames" ,libkdegames)
11226 ("qtbase" ,qtbase)
11227 ("qtdeclarative" ,qtdeclarative)))
11228 (home-page "https://games.kde.org/")
11229 (synopsis "Simple ball dodging game")
11230 (description "In Kollision you use mouse to control a small blue ball in a
11231 closed space environment filled with small red balls, which move about
11232 chaotically. Your goal is to avoid touching any of those red balls with your
11233 blue one, because the moment you do the game will be over. The longer you can
11234 stay in game the higher will your score be.
11235
11236 This package is part of the KDE games module.")
11237 (license (list license:gpl2+ license:fdl1.2+))))
11238
11239 (define-public knavalbattle
11240 (package
11241 (name "knavalbattle")
11242 (version "19.08.3")
11243 (source
11244 (origin
11245 (method url-fetch)
11246 (uri (string-append "mirror://kde/stable/applications/" version
11247 "/src/knavalbattle-" version ".tar.xz"))
11248 (sha256
11249 (base32 "0sdfjplqkb30x2mvh66pkzay6vn5px87779sh2s8lpl6fcw0v9g4"))))
11250 (build-system qt-build-system)
11251 (native-inputs
11252 `(("extra-cmake-modules" ,extra-cmake-modules)
11253 ("kdoctools" ,kdoctools)))
11254 (inputs
11255 `(("kauth" ,kauth)
11256 ("kcompletion" ,kcompletion)
11257 ("kconfig" ,kconfig)
11258 ("kconfigwidgets" ,kconfigwidgets)
11259 ("kcoreaddons" ,kcoreaddons)
11260 ("kcrash" ,kcrash)
11261 ("kdbusaddons" ,kdbusaddons)
11262 ("kdnssd" ,kdnssd)
11263 ("ki18n" ,ki18n)
11264 ("ktextwidgets" ,ktextwidgets)
11265 ("kxmlgui" ,kxmlgui)
11266 ("libkdegames" ,libkdegames)
11267 ("qtbase" ,qtbase)
11268 ("qtdeclarative" ,qtdeclarative)))
11269 (home-page "https://games.kde.org/")
11270 (synopsis "Battleship board game with built-in game server")
11271 (description "KBattleship is a Battle Ship game for KDE.
11272
11273 Ships are placed on a board which represents the sea. Players try to hit each
11274 others ships in turns without knowing where they are placed. The first player
11275 to destroy all ships wins the game.
11276
11277 This package is part of the KDE games module.")
11278 (license (list license:gpl2+ license:fdl1.2+))))
11279
11280 (define-public kreversi
11281 (package
11282 (name "kreversi")
11283 (version "19.08.3")
11284 (source
11285 (origin
11286 (method url-fetch)
11287 (uri (string-append "mirror://kde/stable/applications/" version
11288 "/src/kreversi-" version ".tar.xz"))
11289 (sha256
11290 (base32 "0b6q8df2bawgnrswhq59z37axad0q3zpvvzxdds7sz1lw505xw9h"))))
11291 (build-system qt-build-system)
11292 (native-inputs
11293 `(("extra-cmake-modules" ,extra-cmake-modules)
11294 ("kdoctools" ,kdoctools)))
11295 (inputs
11296 `(("kconfig" ,kconfig)
11297 ("kconfigwidgets" ,kconfigwidgets)
11298 ("kcoreaddons" ,kcoreaddons)
11299 ("kcrash" ,kcrash)
11300 ("kdbusaddons" ,kdbusaddons)
11301 ("kdeclarative" ,kdeclarative)
11302 ("ki18n" ,ki18n)
11303 ("kiconthemes" ,kiconthemes)
11304 ("kio" ,kio)
11305 ("kxmlgui" ,kxmlgui)
11306 ("libkdegames" ,libkdegames)
11307 ("qtbase" ,qtbase)
11308 ("qtdeclarative" ,qtdeclarative)
11309 ("qtsvg" ,qtsvg)))
11310 (home-page "https://games.kde.org/")
11311 (synopsis "Old reversi board game, also known as othello")
11312 (description "KReversi is a simple one player strategy game played
11313 against the computer.
11314
11315 If a player's piece is captured by an opposing player, that piece is turned
11316 over to reveal the color of that player. A winner is declared when one player
11317 has more pieces of his own color on the board and there are no more possible
11318 moves.
11319
11320 This package is part of the KDE games module.")
11321 (license (list license:gpl2+ license:fdl1.2+))))
11322
11323 (define-public ksquares
11324 (package
11325 (name "ksquares")
11326 (version "19.08.3")
11327 (source
11328 (origin
11329 (method url-fetch)
11330 (uri (string-append "mirror://kde/stable/applications/" version
11331 "/src/ksquares-" version ".tar.xz"))
11332 (sha256
11333 (base32 "0hv8hls5s627lys08nnw72rfzsafj3dmp49mh2afzmh6lgk9h5vy"))))
11334 (build-system qt-build-system)
11335 (native-inputs
11336 `(("extra-cmake-modules" ,extra-cmake-modules)
11337 ("kdoctools" ,kdoctools)))
11338 (inputs
11339 `(("kcompletion" ,kcompletion)
11340 ("kconfig" ,kconfig)
11341 ("kconfigwidgets" ,kconfigwidgets)
11342 ("kcoreaddons" ,kcoreaddons)
11343 ("kcrash" ,kcrash)
11344 ("kdbusaddons" ,kdbusaddons)
11345 ("ki18n" ,ki18n)
11346 ("kwidgetsaddons" ,kwidgetsaddons)
11347 ("kxmlgui" ,kxmlgui)
11348 ("libkdegames" ,libkdegames)
11349 ("qtbase" ,qtbase)
11350 ("qtdeclarative" ,qtdeclarative)))
11351 (home-page "https://games.kde.org/")
11352 (synopsis "Dots and Boxes game")
11353 (description "KSquares is an implementation of the popular paper based
11354 game Squares. Two players take turns connecting dots on a grid to complete
11355 squares, the player with the most squares wins.
11356
11357 This package is part of the KDE games module.")
11358 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
11359
11360 (define-public kjumpingcube
11361 (package
11362 (name "kjumpingcube")
11363 (version "19.08.3")
11364 (source
11365 (origin
11366 (method url-fetch)
11367 (uri (string-append "mirror://kde/stable/applications/" version
11368 "/src/kjumpingcube-" version ".tar.xz"))
11369 (sha256
11370 (base32 "0d67zqkf2xffjkj671gl2n6nj6jajyn6rgqqj5i6gm500mqi9rm1"))))
11371 (build-system qt-build-system)
11372 (native-inputs
11373 `(("extra-cmake-modules" ,extra-cmake-modules)
11374 ("kdoctools" ,kdoctools)))
11375 (inputs
11376 `(("kconfig" ,kconfig)
11377 ("kconfigwidgets" ,kconfigwidgets)
11378 ("kcoreaddons" ,kcoreaddons)
11379 ("kcrash" ,kcrash)
11380 ("kdbusaddons" ,kdbusaddons)
11381 ("ki18n" ,ki18n)
11382 ("kio" ,kio)
11383 ("kwidgetsaddons" ,kwidgetsaddons)
11384 ("kxmlgui" ,kxmlgui)
11385 ("libkdegames" ,libkdegames)
11386 ("qtbase" ,qtbase)
11387 ("qtdeclarative" ,qtdeclarative)
11388 ("qtsvg" ,qtsvg)))
11389 (home-page "https://games.kde.org/")
11390 (synopsis "Simple tactical game for number-crunchers")
11391 (description "KJumpingcube is a simple tactical game for one or two
11392 players, played on a grid of numbered squares. Each turn, players compete for
11393 control of the board by capturing or adding to one square.
11394
11395 This package is part of the KDE games module.")
11396 (license (list license:gpl2+ license:fdl1.2+))))
11397
11398 (define-public xmoto
11399 (package
11400 (name "xmoto")
11401 (version "0.6.1")
11402 (source
11403 (origin
11404 (method git-fetch)
11405 (uri (git-reference
11406 (url "https://github.com/xmoto/xmoto")
11407 (commit version)))
11408 (file-name (git-file-name name version))
11409 (sha256
11410 (base32 "00f5ha79lfa2iiaz66wl0hl5dapa1l15qdr7m7knzi0ll7j6z66n"))
11411 (modules '((guix build utils)
11412 (ice-9 ftw)
11413 (srfi srfi-1)))
11414 ;; XXX: Remove some bundled libraries. Guix provides Chipmunk, but
11415 ;; it appears to be incompatible with the (older) one bundled.
11416 (snippet
11417 `(begin
11418 (let ((keep '("chipmunk" "glad" "md5sum")))
11419 (with-directory-excursion "vendor"
11420 (for-each delete-file-recursively
11421 (lset-difference string=?
11422 (scandir ".")
11423 (cons* "." ".." keep))))
11424 (substitute* "src/CMakeLists.txt"
11425 (("add_subdirectory\\(.*?/vendor/(.+?)\".*" line library)
11426 (if (member library keep) line ""))))
11427 #t))))
11428 (build-system cmake-build-system)
11429 (arguments
11430 `(#:tests? #f ;no test
11431 #:phases
11432 (modify-phases %standard-phases
11433 (add-after 'unpack 'fix-hard-coded-directory
11434 (lambda* (#:key outputs #:allow-other-keys)
11435 (substitute* "src/common/VFileIO.cpp"
11436 (("/usr/share")
11437 (string-append (assoc-ref outputs "out") "/share")))
11438 #t))
11439 (add-before 'build 'set-SDL
11440 ;; Set correct environment for SDL.
11441 (lambda* (#:key inputs #:allow-other-keys)
11442 (setenv "CPATH"
11443 (string-append
11444 (assoc-ref inputs "sdl") "/include/SDL:"
11445 (or (getenv "CPATH") "")))
11446 #t))
11447 (add-after 'install 'unbundle-fonts
11448 ;; Unbundle DejaVuSans TTF files.
11449 (lambda* (#:key outputs inputs #:allow-other-keys)
11450 (let ((font-dir (string-append (assoc-ref inputs "font-dejavu")
11451 "/share/fonts/truetype/"))
11452 (target-dir (string-append (assoc-ref outputs "out")
11453 "/share/xmoto/Textures/Fonts/")))
11454 (for-each (lambda (f)
11455 (let ((font (string-append font-dir f))
11456 (target (string-append target-dir f)))
11457 (delete-file target)
11458 (symlink font target)))
11459 '("DejaVuSans.ttf" "DejaVuSansMono.ttf"))
11460 #t))))))
11461 (native-inputs
11462 `(("gettext" ,gettext-minimal)
11463 ("pkg-config" ,pkg-config)))
11464 (inputs
11465 `(("bzip2" ,bzip2)
11466 ("curl" ,curl)
11467 ("font-dejavu" ,font-dejavu)
11468 ("glu" ,glu)
11469 ("libjpeg" ,libjpeg-turbo)
11470 ("libpng" ,libpng)
11471 ("libxdg-basedir" ,libxdg-basedir)
11472 ("libxml2" ,libxml2)
11473 ("lua" ,lua-5.1)
11474 ("ode" ,ode)
11475 ("sdl" ,(sdl-union (list sdl sdl-mixer sdl-net sdl-ttf)))
11476 ("sqlite" ,sqlite)
11477 ("zlib" ,zlib)))
11478 (home-page "https://xmoto.tuxfamily.org/")
11479 (synopsis "2D motocross platform game")
11480 (description
11481 "X-Moto is a challenging 2D motocross platform game, where
11482 physics play an all important role in the gameplay. You need to
11483 control your bike to its limit, if you want to have a chance finishing
11484 the more difficult challenges.")
11485 (license (list license:gpl2+ ;whole project
11486 license:bsd-3 ;vendor/md5sum
11487 license:lgpl2.1+
11488 license:expat))))
11489
11490 (define-public eboard
11491 (package
11492 (name "eboard")
11493 (version "1.1.3")
11494 (source
11495 (origin
11496 (method git-fetch)
11497 (uri (git-reference
11498 (url "https://github.com/fbergo/eboard")
11499 (commit (string-append "v" version))))
11500 (file-name (git-file-name name version))
11501 (sha256
11502 (base32 "1z4pwpqyvxhlda99h6arh2rjk90fbms9q29fqizjblrdn01dlxn1"))))
11503 (build-system gnu-build-system)
11504 (native-inputs
11505 `(("perl" ,perl)
11506 ("pkg-config" ,pkg-config)))
11507 (inputs
11508 `(("gtk+" ,gtk+-2)
11509 ("libpng" ,libpng)
11510 ("gstreamer" ,gstreamer)))
11511 (arguments
11512 `(#:tests? #f
11513 #:phases
11514 (modify-phases %standard-phases
11515 (replace 'configure
11516 (lambda* (#:key outputs #:allow-other-keys)
11517 (make-file-writable "eboard-config")
11518 (setenv "CC" "gcc")
11519 (invoke "./configure"
11520 (string-append "--prefix=" (assoc-ref outputs "out")))
11521 #t))
11522 (add-before 'install 'make-required-directories
11523 (lambda* (#:key outputs #:allow-other-keys)
11524 (mkdir-p (string-append (assoc-ref outputs "out")
11525 "/share/eboard"))
11526 #t)))))
11527 (synopsis "Graphical user interface to play chess")
11528 (description
11529 "Eboard is a chess board interface for ICS (Internet Chess Servers)
11530 and chess engines.")
11531 (home-page "https://www.bergo.eng.br/eboard/")
11532 (license license:gpl2+)))
11533
11534 (define-public chessx
11535 (package
11536 (name "chessx")
11537 (version "1.5.4")
11538 (source
11539 (origin
11540 (method url-fetch)
11541 (uri (string-append "mirror://sourceforge/chessx/chessx/"
11542 version "/chessx-" version ".tgz"))
11543 (sha256
11544 (base32 "1a3541vl5hp6jllgx998w9kjh9kp3wrl80yfwkxmq1bc5bzsrnz2"))))
11545 (build-system qt-build-system)
11546 (native-inputs
11547 `(("qttools" ,qttools)))
11548 (inputs
11549 `(("qtbase" ,qtbase)
11550 ("qtmultimedia" ,qtmultimedia)
11551 ("qtspeech" ,qtspeech)
11552 ("qtsvg" ,qtsvg)
11553 ("zlib" ,zlib)))
11554 (arguments
11555 `(#:tests? #f
11556 #:phases
11557 (modify-phases %standard-phases
11558 (add-after 'unpack 'fix-paths
11559 (lambda* (#:key inputs #:allow-other-keys)
11560 (substitute* "chessx.pro"
11561 (("\\$\\$\\[QT_INSTALL_BINS\\]/lrelease")
11562 (string-append (assoc-ref inputs "qttools") "/bin/lrelease"))
11563 ;; Fix missing translations.
11564 (("TRANSLATIONS = i18n/chessx_de.ts")
11565 "TRANSLATIONS = i18n/chessx_de.ts i18n/chessx_da.ts \\
11566 i18n/chessx_fr.ts i18n/chessx_it.ts i18n/chessx_cz.ts i18n/chessx_ru.ts \\
11567 i18n/chessx_es.ts"))
11568 #t))
11569 (add-after 'fix-paths 'make-qt-deterministic
11570 (lambda _
11571 (setenv "QT_RCC_SOURCE_DATE_OVERRIDE" "1")
11572 #t))
11573 (replace 'configure
11574 (lambda _
11575 (invoke "qmake")
11576 #t))
11577 (replace 'install
11578 (lambda* (#:key outputs #:allow-other-keys)
11579 (let ((out (assoc-ref outputs "out")))
11580 (install-file "release/chessx" (string-append out "/bin"))
11581 (install-file "unix/chessx.desktop"
11582 (string-append out "/share/applications")))
11583 #t)))))
11584 (synopsis "Chess game database")
11585 (description
11586 "ChessX is a chess database. With ChessX you can operate on your
11587 collection of chess games in many ways: browse, edit, add, organize, analyze,
11588 etc. You can also play games on FICS or against an engine.")
11589 (home-page "http://chessx.sourceforge.net/")
11590 (license license:gpl2+)))
11591
11592 (define-public stockfish
11593 (package
11594 (name "stockfish")
11595 (version "12")
11596 (source
11597 (origin
11598 (method git-fetch)
11599 (uri (git-reference
11600 (url "https://github.com/official-stockfish/Stockfish")
11601 (commit (string-append "sf_" version))))
11602 (file-name (git-file-name name version))
11603 (sha256
11604 (base32 "0vcymbwp5nf114pp3ax40s21ki5dckda15vmhr77d1mnq3fn0l32"))))
11605 (build-system gnu-build-system)
11606 (inputs
11607 `(("neural-network"
11608 ,(origin
11609 (method url-fetch)
11610 (uri "https://tests.stockfishchess.org/api/nn/nn-82215d0fd0df.nnue")
11611 (sha256
11612 (base32 "1r4yqrh4di05syyhl84hqcz84djpbd605b27zhbxwg6zs07ms8c2"))))))
11613 (arguments
11614 `(#:tests? #f
11615 #:make-flags (list "-C" "src"
11616 "build"
11617 (string-append "PREFIX="
11618 (assoc-ref %outputs "out"))
11619 (string-append "ARCH="
11620 ,(match (%current-system)
11621 ("x86_64-linux" "x86-64")
11622 ("i686-linux" "x86-32")
11623 ("aarch64-linux" "general-64")
11624 ("armhf-linux" "armv7")
11625 ("mips64el-linux" "general-64")
11626 (_ "general-32"))))
11627 #:phases (modify-phases %standard-phases
11628 (delete 'configure)
11629 ;; The official neural network file is needed for building
11630 ;; and is embedded in the resulting binary.
11631 (add-after 'unpack 'copy-net
11632 (lambda* (#:key inputs #:allow-other-keys)
11633 (copy-file (assoc-ref inputs "neural-network")
11634 "src/nn-82215d0fd0df.nnue")
11635 #t)))))
11636 (synopsis "Strong chess engine")
11637 (description
11638 "Stockfish is a very strong chess engine. It is much stronger than the
11639 best human chess grandmasters. It can be used with UCI-compatible GUIs like
11640 ChessX.")
11641 (home-page "https://stockfishchess.org/")
11642 (license license:gpl3+)))
11643
11644 (define-public barrage
11645 (package
11646 (name "barrage")
11647 (version "1.0.5")
11648 (source
11649 (origin
11650 (method url-fetch)
11651 (uri (string-append "mirror://sourceforge/lgames/barrage/"
11652 "barrage-" version ".tar.gz"))
11653 (sha256
11654 (base32 "0139wxyrir10cbkvkjn548xgmp84wax8mfwk80yxbxlcdamrg257"))))
11655 (build-system gnu-build-system)
11656 (inputs
11657 `(("hicolor-icon-theme" ,hicolor-icon-theme)
11658 ("sdl" ,sdl)
11659 ("sdl-mixer" ,sdl-mixer)))
11660 (arguments
11661 `(#:configure-flags
11662 (list
11663 (string-append "CFLAGS="
11664 "-I" (assoc-ref %build-inputs "sdl-mixer")
11665 "/include/SDL"))))
11666 (home-page "http://lgames.sourceforge.net/Barrage/")
11667 (synopsis "Violent point-and-click shooting game with nice effects")
11668 (description
11669 "Barrage is a rather destructive action game that puts you on a shooting
11670 range with the objective to hit as many dummy targets as possible within
11671 3 minutes. You control a gun that may either fire small or large grenades at
11672 soldiers, jeeps and tanks. The gameplay is simple but it is not that easy to
11673 get high scores.")
11674 (license license:gpl2+)))
11675
11676 (define-public burgerspace
11677 (package
11678 (name "burgerspace")
11679 (version "1.9.3")
11680 (source
11681 (origin
11682 (method url-fetch)
11683 (uri (string-append "http://perso.b2b2c.ca/~sarrazip/dev/"
11684 "burgerspace-" version ".tar.gz"))
11685 (sha256
11686 (base32 "1005a04rbn4lzjrpfg0m394k2mfaji63fm2qhdqdsxila8a6kjbv"))))
11687 (build-system gnu-build-system)
11688 (native-inputs
11689 `(("pkg-config" ,pkg-config)))
11690 (inputs
11691 `(("flatzebra" ,flatzebra)))
11692 (home-page "http://perso.b2b2c.ca/~sarrazip/dev/burgerspace.html")
11693 (synopsis "Avoid evil foodstuffs and make burgers")
11694 (description
11695 "This is a clone of the classic game BurgerTime. In it, you play
11696 the part of a chef who must create burgers by stepping repeatedly on
11697 the ingredients until they fall into place. And to make things more
11698 complicated, you also must avoid evil animate food items while
11699 performing this task, with nothing but your trusty pepper shaker to
11700 protect you.")
11701 (license license:gpl2+)))
11702
11703 (define-public 7kaa
11704 (package
11705 (name "7kaa")
11706 (version "2.15.4p1")
11707 (source
11708 (origin
11709 (method url-fetch)
11710 (uri (string-append "https://github.com/the3dfxdude/7kaa/"
11711 "releases/download/v" version "/"
11712 "7kaa-" version ".tar.xz"))
11713 (sha256
11714 (base32 "1y7v0jhp3apb619p7asikqr1dnwb2yxbh40wbx1ppmr5f03mq9ph"))))
11715 (build-system gnu-build-system)
11716 (native-inputs
11717 `(("gettext" ,gettext-minimal)
11718 ("pkg-config" ,pkg-config)))
11719 (inputs
11720 `(("curl" ,curl)
11721 ("enet" ,enet)
11722 ("openal" ,openal)
11723 ("sdl2" ,sdl2)))
11724 (home-page "https://7kfans.com/")
11725 (synopsis "Seven Kingdoms Ancient Adversaries: real-time strategy game")
11726 (description
11727 "Seven Kingdoms, designed by Trevor Chan, brings a blend of Real-Time
11728 Strategy with the addition of trade, diplomacy, and espionage. The game
11729 enables players to compete against up to six other kingdoms allowing players
11730 to conquer opponents by defeating them in war (with troops or machines),
11731 capturing their buildings with spies, or offering opponents money for their
11732 kingdom.")
11733 (license license:gpl2+)))
11734
11735 (define-public neverball
11736 ;; Git version is 6-years younger than latest release.
11737 (let ((commit "760a25d32a5fb0661b99426d4ddcb9ac9f3d1644")
11738 (revision "1"))
11739 (package
11740 (name "neverball")
11741 (version (git-version "1.6.0" revision commit))
11742 (source
11743 (origin
11744 (method git-fetch)
11745 (uri (git-reference
11746 (url "https://github.com/Neverball/neverball")
11747 (commit commit)))
11748 (sha256
11749 (base32
11750 "0bwh67df3lyf33bv710y25l3frjdd34j9b7gsjadwxviz6r1vpj5"))
11751 (file-name (git-file-name name version))
11752 (modules '((guix build utils)))
11753 (snippet
11754 '(begin
11755 ;; Octocat seems to be non-free. Oddly, Debian doesn't strip it.
11756 (delete-file-recursively "data/ball/octocat")
11757 #t))))
11758 (build-system copy-build-system)
11759 (arguments
11760 `(#:install-plan
11761 '(("neverball" "bin/")
11762 ("neverputt" "bin/")
11763 ("mapc" "bin/")
11764 ("data" "share/games/neverball/")
11765 ("locale" "share/")
11766 ("dist/" "share/games/neverball" #:include ("neverball_replay.png"
11767 "neverlogos.svg"
11768 "svg readme.txt"))
11769 ("dist/" "share/applications" #:include ("neverball.desktop"
11770 "neverputt.desktop"))
11771 ("dist/neverball_16.png"
11772 "/share/icons/hicolor/16x16/apps/neverball.png")
11773 ("dist/neverball_24.png"
11774 "/share/icons/hicolor/24x24/apps/neverball.png")
11775 ("dist/neverball_32.png"
11776 "/share/icons/hicolor/32x32/apps/neverball.png")
11777 ("dist/neverball_48.png"
11778 "/share/icons/hicolor/48x48/apps/neverball.png")
11779 ("dist/neverball_64.png"
11780 "/share/icons/hicolor/64x64/apps/neverball.png")
11781 ("dist/neverball_128.png"
11782 "/share/icons/hicolor/128x128/apps/neverball.png")
11783 ("dist/neverball_256.png"
11784 "/share/icons/hicolor/256x256/apps/neverball.png")
11785 ("dist/neverball_512.png"
11786 "/share/icons/hicolor/512x512/apps/neverball.png")
11787 ("dist/neverputt_16.png"
11788 "/share/icons/hicolor/16x16/apps/neverputt.png")
11789 ("dist/neverputt_24.png"
11790 "/share/icons/hicolor/24x24/apps/neverputt.png")
11791 ("dist/neverputt_32.png"
11792 "/share/icons/hicolor/32x32/apps/neverputt.png")
11793 ("dist/neverputt_48.png"
11794 "/share/icons/hicolor/48x48/apps/neverputt.png")
11795 ("dist/neverputt_64.png"
11796 "/share/icons/hicolor/64x64/apps/neverputt.png")
11797 ("dist/neverputt_128.png"
11798 "/share/icons/hicolor/128x128/apps/neverputt.png")
11799 ("dist/neverputt_256.png"
11800 "/share/icons/hicolor/256x256/apps/neverputt.png")
11801 ("dist/neverputt_512.png"
11802 "/share/icons/hicolor/512x512/apps/neverputt.png")
11803 ("dist/" "share/man/man1" #:include ("mapc.1"))
11804 ("dist/" "share/man/man6" #:include ("neverball.6" "neverputt.6"))
11805 ("doc/" "share/doc/neverball")
11806 ("README.md" "share/doc/neverball/"))
11807 #:phases
11808 (modify-phases %standard-phases
11809 (add-before 'install 'build
11810 (lambda* (#:key inputs outputs #:allow-other-keys)
11811 (let* ((out (assoc-ref outputs "out"))
11812 (sdl (assoc-ref inputs "sdl")))
11813 (invoke "make" "-j" (number->string (parallel-job-count))
11814 "--environment-overrides"
11815 "CC=gcc" "BUILD=release"
11816 (string-append "DATADIR="
11817 out
11818 "/share/games/neverball/data")
11819 (string-append "LOCALEDIR=" out "/share/locale")
11820 (string-append "SDL_CPPFLAGS=-I"
11821 sdl
11822 "/include/SDL2/")))
11823 #t))
11824 (add-after 'install 'fix-some-broken-fonts
11825 (lambda* (#:key outputs #:allow-other-keys)
11826 (let* ((out (assoc-ref outputs "out")))
11827 (wrap-program (string-append out "/bin/neverball")
11828 `("LANG" = ("en_US.utf8")))
11829 (wrap-program (string-append out "/bin/neverputt")
11830 `("LANG" = ("en_US.utf8"))))
11831 #t)))))
11832 (native-inputs
11833 `(("gettext" ,gettext-minimal))) ;for msgfmt
11834 (inputs
11835 `(("libjpeg" ,libjpeg-turbo)
11836 ("libpng" ,libpng)
11837 ("libvorbis" ,libvorbis)
11838 ("physfs" ,physfs)
11839 ("sdl" ,(sdl-union (list sdl2 sdl2-ttf)))))
11840 (home-page "https://neverball.org/")
11841 (synopsis "3D floor-tilting game")
11842 (description
11843 "In the grand tradition of Marble Madness and Super Monkey Ball,
11844 Neverball has you guide a rolling ball through dangerous territory. Balance
11845 on narrow bridges, navigate mazes, ride moving platforms, and dodge pushers
11846 and shovers to get to the goal. Race against the clock to collect coins to
11847 earn extra balls. Also included is Neverputt, which is a 3D miniature golf
11848 game.") ;thanks to Debian for description
11849 (license license:gpl2+))))
11850
11851 (define-public pokerth
11852 (package
11853 (name "pokerth")
11854 (version "1.1.2")
11855 (source
11856 (origin
11857 (method url-fetch)
11858 (uri (string-append "mirror://sourceforge/pokerth/pokerth/"
11859 version "/pokerth-" version ".tar.gz"))
11860 (sha256
11861 (base32 "0yi9bj3k8yc1gkwmaf14zbbvvn13n54n1dli8k6j1pkph3p3vjq2"))
11862 (modules '((guix build utils)))
11863 (snippet
11864 '(begin
11865 ;; Remove bundled websocketpp.
11866 (delete-file-recursively "src/third_party/websocketpp")
11867 (substitute* "pokerth_lib.pro"
11868 (("src/third_party/websocketpp")
11869 ""))
11870 #t))))
11871 (build-system qt-build-system)
11872 (inputs
11873 `(("boost" ,boost)
11874 ("curl" ,curl)
11875 ("gsasl" ,gsasl)
11876 ("libgcrypt" ,libgcrypt)
11877 ("libircclient" ,libircclient)
11878 ("protobuf" ,protobuf-2) ; remove package when no longer needed
11879 ("qtbase" ,qtbase)
11880 ("sdl" ,(sdl-union (list sdl sdl-mixer)))
11881 ("sqlite" ,sqlite)
11882 ("tinyxml" ,tinyxml)
11883 ("websocketpp" ,websocketpp)
11884 ("zlib" ,zlib)))
11885 (arguments
11886 `(#:tests? #f ; No test suite
11887 #:phases
11888 (modify-phases %standard-phases
11889 (add-after 'unpack 'fix-paths
11890 (lambda* (#:key inputs #:allow-other-keys)
11891 (substitute* (find-files "." "\\.pro$")
11892 (("/opt/gsasl")
11893 (assoc-ref inputs "gsasl"))
11894 (("\\$\\$\\{PREFIX\\}/include/libircclient")
11895 (string-append (assoc-ref inputs "libircclient")
11896 "/include/libircclient"))
11897 (("LIB_DIRS =")
11898 (string-append "LIB_DIRS = "
11899 (assoc-ref inputs "boost") "/lib")))
11900 #t))
11901 (add-after 'unpack 'fix-build
11902 (lambda _
11903 ;; Fixes for Boost versions >= 1.66.
11904 (substitute* '("src/net/common/clientthread.cpp"
11905 "src/net/serveraccepthelper.h")
11906 (("boost::asio::socket_base::non_blocking_io command\\(true\\);")
11907 "")
11908 (("newSock->io_control\\(command\\);")
11909 "newSock->non_blocking(true);")
11910 (("acceptedSocket->io_control\\(command\\);")
11911 "acceptedSocket->non_blocking(true);"))
11912 #t))
11913 (replace 'configure
11914 (lambda* (#:key outputs #:allow-other-keys)
11915 (invoke "qmake" "pokerth.pro" "CONFIG+=client"
11916 (string-append "PREFIX=" (assoc-ref outputs "out"))))))))
11917 (home-page "https://www.pokerth.net")
11918 (synopsis "Texas holdem poker game")
11919 (description
11920 "With PokerTH you can play the Texas holdem poker game, either against
11921 computer opponents or against real players online.")
11922 (license license:agpl3+)))
11923
11924 (define-public azimuth
11925 (package
11926 (name "azimuth")
11927 ;; Not marked as latest release, but it fixes a compiling issue
11928 ;; and adds the install target.
11929 (version "1.0.3")
11930 (source
11931 (origin
11932 (method git-fetch)
11933 (uri (git-reference
11934 (url "https://github.com/mdsteele/azimuth")
11935 (commit (string-append "v" version))))
11936 (file-name (git-file-name name version))
11937 (sha256
11938 (base32
11939 "1znfvpmqiixd977jv748glk5zc4cmhw5813zp81waj07r9b0828r"))))
11940 (build-system gnu-build-system)
11941 (arguments
11942 `(#:test-target "test"
11943 #:phases
11944 (modify-phases %standard-phases
11945 (delete 'configure) ; no configure script
11946 ;; Build release version instead of debug version.
11947 (add-after 'unpack 'set-release
11948 (lambda _
11949 (setenv "BUILDTYPE" "release") #t))
11950 (add-after 'unpack 'fix-install ; set install directory
11951 (lambda* (#:key outputs #:allow-other-keys)
11952 (substitute* "Makefile" (("/usr") (assoc-ref outputs "out"))) #t)))))
11953 (inputs `(("sdl" ,sdl)))
11954 (home-page "https://mdsteele.games/azimuth/")
11955 (synopsis "Metroidvania game with vector graphics")
11956 (description
11957 "Pilot your ship inside a planet to find and rescue the colonists trapped
11958 inside the Zenith Colony.")
11959 (license license:gpl3+)))
11960
11961 (define-public cgoban
11962 (package
11963 (name "cgoban")
11964 (version "1.9.14")
11965 (source
11966 (origin
11967 (method url-fetch)
11968 (uri (string-append "mirror://sourceforge/cgoban1/cgoban1/"
11969 version "/cgoban-" version ".tar.gz"))
11970 (sha256
11971 (base32 "0qlvkiaglqq0izfph3l04mp4rqqqm9ks6rcsrmzrggw9x706z2iv"))))
11972 (build-system gnu-build-system)
11973 (inputs
11974 `(("libx11" ,libx11)
11975 ("libxt" ,libxt)
11976 ("xorgproto" ,xorgproto)))
11977 (home-page "http://cgoban1.sourceforge.net/")
11978 (synopsis "Go client for X11")
11979 (description "Provides a large set of Go-related services for X11:
11980 @itemize
11981 @item Local games with precise implementation of the Chinese and Japanese rulesets
11982 @item Edition and visualization of SGF files-Connection to the NNGS or IGS Go servers
11983 @item Bridge to Go modem protocol, allowing to play against Go modem-capable AIs
11984 such as GnuGo.
11985 @end itemize")
11986 (license license:gpl2+)))
11987
11988 (define-public paperview
11989 (let ((commit "9f8538eb6734c76877b878b8f1e52587f2ae19e6")
11990 (revision "1"))
11991 (package
11992 (name "paperview")
11993 (version (git-version "0.0.1" revision commit)) ;no upstream release
11994 (source (origin
11995 (method git-fetch)
11996 (uri (git-reference
11997 (url "https://github.com/glouw/paperview")
11998 (commit commit)))
11999 (file-name (git-file-name name version))
12000 (sha256
12001 (base32
12002 "09sb9sg44fvkgfdyycrm1ndpx7cnkrglxhci41y8f3gpagnvi7jk"))))
12003 (build-system gnu-build-system)
12004 (inputs
12005 `(("sdl2" ,sdl2)))
12006 (arguments
12007 '(#:tests? #f ;no tests
12008 #:make-flags
12009 (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
12010 #:phases
12011 (modify-phases %standard-phases
12012 (delete 'configure))))
12013 (home-page "https://github.com/glouw/paperview/")
12014 (synopsis "High performance X11 animated wallpaper setter")
12015 (description "High performance animated desktop background setter for
12016 X11 that won't set your CPU on fire, drain your laptop battery, or lower video
12017 game FPS.")
12018 (license license:unlicense))))
12019
12020 (define-public curseofwar
12021 (package
12022 (name "curseofwar")
12023 (version "1.3.0")
12024 (source
12025 (origin
12026 (method git-fetch)
12027 (uri (git-reference
12028 (url "https://github.com/a-nikolaev/curseofwar")
12029 (commit (string-append "v" version))))
12030 (file-name (git-file-name name version))
12031 (sha256
12032 (base32 "1wd71wdnj9izg5d95m81yx3684g4zdi7fsy0j5wwnbd9j34ilz1i"))))
12033 (build-system gnu-build-system)
12034 (arguments
12035 `(#:tests? #f ; no tests
12036 #:make-flags
12037 (list (string-append "CC=" ,(cc-for-target))
12038 (string-append "PREFIX=" (assoc-ref %outputs "out")))
12039 #:phases
12040 (modify-phases %standard-phases
12041 (delete 'configure))))
12042 (inputs `(("ncurses" ,ncurses)))
12043 (home-page "https://a-nikolaev.github.io/curseofwar/")
12044 (synopsis "Fast-paced action strategy game")
12045 (description "Curse of War is a fast-paced action strategy game originally
12046 implemented using ncurses user interface. An SDL graphical version is also
12047 available.")
12048 (license license:gpl3+)))