gnu: solarus: Update to 1.6.5.
[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, 2021 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, 2021 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–2021 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, 2021 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, 2021 Michael Rohleder <mike@rohleder.de>
55 ;;; Copyright © 2020 Trevor Hass <thass@okstate.edu>
56 ;;; Copyright © 2020, 2021 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 ;;; Copyright © 2021 Olivier Rojon <o.rojon@posteo.net>
60 ;;; Copyright © 2021 Stefan Reichör <stefan@xsteve.at>
61 ;;; Copyright © 2021 Greg Hogan <code@greghogan.com>
62 ;;;
63 ;;; This file is part of GNU Guix.
64 ;;;
65 ;;; GNU Guix is free software; you can redistribute it and/or modify it
66 ;;; under the terms of the GNU General Public License as published by
67 ;;; the Free Software Foundation; either version 3 of the License, or (at
68 ;;; your option) any later version.
69 ;;;
70 ;;; GNU Guix is distributed in the hope that it will be useful, but
71 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
72 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
73 ;;; GNU General Public License for more details.
74 ;;;
75 ;;; You should have received a copy of the GNU General Public License
76 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
77
78 (define-module (gnu packages games)
79 #:use-module (ice-9 match)
80 #:use-module ((guix licenses) #:prefix license:)
81 #:use-module (guix utils)
82 #:use-module (guix packages)
83 #:use-module (guix download)
84 #:use-module (guix git-download)
85 #:use-module (guix svn-download)
86 #:use-module (guix gexp)
87 #:use-module (gnu packages)
88 #:use-module (gnu packages adns)
89 #:use-module (gnu packages algebra)
90 #:use-module (gnu packages autotools)
91 #:use-module (gnu packages backup)
92 #:use-module (gnu packages base)
93 #:use-module (gnu packages build-tools)
94 #:use-module (gnu packages admin)
95 #:use-module (gnu packages audio)
96 #:use-module (gnu packages avahi)
97 #:use-module (gnu packages assembly)
98 #:use-module (gnu packages bash)
99 #:use-module (gnu packages bison)
100 #:use-module (gnu packages boost)
101 #:use-module (gnu packages check)
102 #:use-module (gnu packages cmake)
103 #:use-module (gnu packages compression)
104 #:use-module (gnu packages cpp)
105 #:use-module (gnu packages curl)
106 #:use-module (gnu packages crypto)
107 #:use-module (gnu packages cyrus-sasl)
108 #:use-module (gnu packages documentation)
109 #:use-module (gnu packages docbook)
110 #:use-module (gnu packages emulators)
111 #:use-module (gnu packages flex)
112 #:use-module (gnu packages fltk)
113 #:use-module (gnu packages fonts)
114 #:use-module (gnu packages fontutils)
115 #:use-module (gnu packages freedesktop)
116 #:use-module (gnu packages fribidi)
117 #:use-module (gnu packages game-development)
118 #:use-module (gnu packages gcc)
119 #:use-module (gnu packages gettext)
120 #:use-module (gnu packages ghostscript)
121 #:use-module (gnu packages gimp)
122 #:use-module (gnu packages gl)
123 #:use-module (gnu packages glib)
124 #:use-module (gnu packages gnome)
125 #:use-module (gnu packages gnu-doc)
126 #:use-module (gnu packages gnupg)
127 #:use-module (gnu packages gnuzilla)
128 #:use-module (gnu packages gperf)
129 #:use-module (gnu packages graphics)
130 #:use-module (gnu packages gsasl)
131 #:use-module (gnu packages gstreamer)
132 #:use-module (gnu packages gtk)
133 #:use-module (gnu packages guile)
134 #:use-module (gnu packages haskell)
135 #:use-module (gnu packages haskell-crypto)
136 #:use-module (gnu packages haskell-xyz)
137 #:use-module (gnu packages icu4c)
138 #:use-module (gnu packages image)
139 #:use-module (gnu packages imagemagick)
140 #:use-module (gnu packages javascript)
141 #:use-module (gnu packages kde)
142 #:use-module (gnu packages kde-frameworks)
143 #:use-module (gnu packages less)
144 #:use-module (gnu packages libcanberra)
145 #:use-module (gnu packages libedit)
146 #:use-module (gnu packages libunwind)
147 #:use-module (gnu packages linux)
148 #:use-module (gnu packages llvm)
149 #:use-module (gnu packages lua)
150 #:use-module (gnu packages man)
151 #:use-module (gnu packages maths)
152 #:use-module (gnu packages messaging)
153 #:use-module (gnu packages mp3)
154 #:use-module (gnu packages music)
155 #:use-module (gnu packages multiprecision)
156 #:use-module (gnu packages ncurses)
157 #:use-module (gnu packages netpbm)
158 #:use-module (gnu packages networking)
159 #:use-module (gnu packages ocaml)
160 #:use-module (gnu packages opencl)
161 #:use-module (gnu packages pcre)
162 #:use-module (gnu packages perl)
163 #:use-module (gnu packages perl-check)
164 #:use-module (gnu packages perl-compression)
165 #:use-module (gnu packages pkg-config)
166 #:use-module (gnu packages protobuf)
167 #:use-module (gnu packages pulseaudio)
168 #:use-module (gnu packages python)
169 #:use-module (gnu packages python-xyz)
170 #:use-module (gnu packages qt)
171 #:use-module (gnu packages readline)
172 #:use-module (gnu packages ruby)
173 #:use-module (gnu packages shells)
174 #:use-module (gnu packages sdl)
175 #:use-module (gnu packages serialization)
176 #:use-module (gnu packages sqlite)
177 #:use-module (gnu packages squirrel)
178 #:use-module (gnu packages swig)
179 #:use-module (gnu packages tcl)
180 #:use-module (gnu packages terminals)
181 #:use-module (gnu packages texinfo)
182 #:use-module (gnu packages textutils)
183 #:use-module (gnu packages tls)
184 #:use-module (gnu packages upnp)
185 #:use-module (gnu packages video)
186 #:use-module (gnu packages vulkan)
187 #:use-module (gnu packages web)
188 #:use-module (gnu packages wget)
189 #:use-module (gnu packages wxwidgets)
190 #:use-module (gnu packages xdisorg)
191 #:use-module (gnu packages xorg)
192 #:use-module (gnu packages xiph)
193 #:use-module (gnu packages xml)
194 #:use-module (guix build-system copy)
195 #:use-module (guix build-system cmake)
196 #:use-module (guix build-system glib-or-gtk)
197 #:use-module (guix build-system gnu)
198 #:use-module (guix build-system go)
199 #:use-module (guix build-system meson)
200 #:use-module (guix build-system perl)
201 #:use-module (guix build-system python)
202 #:use-module (guix build-system qt)
203 #:use-module (guix build-system scons)
204 #:use-module (guix build-system trivial)
205 #:use-module ((srfi srfi-1) #:hide (zip))
206 #:use-module (srfi srfi-26))
207
208 (define-public abe
209 (package
210 (name "abe")
211 (version "1.1")
212 (source
213 (origin
214 (method url-fetch)
215 (uri (string-append "mirror://sourceforge/abe/abe/abe-" version
216 "/abe-" version ".tar.gz"))
217 (sha256
218 (base32 "1xvpnq1y6y48fn3pvn2lk0h1ilmalv7nb7awpid1g4jcq1sfmi6z"))))
219 (build-system gnu-build-system)
220 (arguments
221 `(#:configure-flags
222 (list (string-append "--with-data-dir="
223 (assoc-ref %outputs "out")
224 "/share/abe"))
225 #:phases
226 (modify-phases %standard-phases
227 (replace 'bootstrap
228 (lambda _ (invoke "sh" "autogen.sh")))
229 (add-before 'build 'set-SDL
230 ;; Set correct environment for SDL.
231 (lambda* (#:key inputs #:allow-other-keys)
232 (setenv "CPATH"
233 (string-append
234 (assoc-ref inputs "sdl") "/include/SDL:"
235 (or (getenv "CPATH") "")))
236 #t))
237 (add-after 'install 'finalize-install
238 (lambda* (#:key outputs #:allow-other-keys)
239 (let ((share (string-append (assoc-ref outputs "out") "/share")))
240 ;; Installation script does not copy game data files.
241 (let ((data (string-append share "/abe")))
242 (for-each (lambda (dir)
243 (let ((target (string-append data "/" dir)))
244 (mkdir-p target)
245 (copy-recursively dir target)))
246 '("images" "maps" "sounds")))
247 ;; Create desktop file.
248 (let ((apps (string-append share "/applications")))
249 (mkdir-p apps)
250 (make-desktop-entry-file
251 (string-append apps "/abe.desktop")
252 #:name "Abe's Amazing Adventure"
253 #:exec ,name
254 #:categories '("AdventureGame" "Game")
255 #:keywords
256 '("side-scrolling" "adventure" "pyramid" "singleplayer")
257 #:comment
258 '(("de" "Ein sich seitwärts bewegendes Abenteuerspiel")
259 (#f "Side-scrolling game")))))
260 #t)))))
261 (native-inputs
262 `(("autoconf" ,autoconf)
263 ("automake" ,automake)))
264 (inputs
265 `(("libxi" ,libxi)
266 ("libxmu" ,libxmu)
267 ("libxt" ,libxt)
268 ("sdl" ,(sdl-union (list sdl sdl-mixer)))))
269 (home-page "http://abe.sourceforge.net")
270 (synopsis "Scrolling, platform-jumping, ancient pyramid exploring game")
271 (description
272 "Abe's Amazing Adventure is a scrolling,
273 platform-jumping, key-collecting, ancient pyramid exploring game, vaguely in
274 the style of similar games for the Commodore+4.")
275 (license license:gpl2+)))
276
277 ;; Data package for adanaxisgpl.
278 (define adanaxis-mush
279 (let ((version "1.1.0"))
280 (origin
281 (method url-fetch)
282 (uri (string-append "http://www.mushware.com/files/adanaxis-mush-"
283 version ".tar.gz"))
284 (sha256
285 (base32 "0mk9ibis5nkdcalcg1lkgnsdxxbw4g5w2i3icjzy667hqirsng03")))))
286
287 (define-public adanaxisgpl
288 (package
289 (name "adanaxisgpl")
290 (version "1.2.5")
291 (source
292 (origin
293 (method url-fetch)
294 (uri (string-append "http://www.mushware.com/files/adanaxisgpl-"
295 version ".tar.gz"))
296 (sha256
297 (base32 "0jkn637jaabvlhd6hpvzb57vvjph94l6fbf7qxbjlw9zpr19dw1f"))
298 (modules '((guix build utils)))
299 (snippet
300 '(begin
301 ;; Necessary for building with gcc >=4.7.
302 (substitute* "src/Mushcore/MushcoreSingleton.h"
303 (("SingletonPtrSet\\(new SingletonType\\);")
304 "MushcoreSingleton::SingletonPtrSet(new SingletonType);"))
305 ;; Avoid an "invalid conversion from const char* to char*" error.
306 (substitute* "src/Platform/X11/PlatformMiscUtils.cpp"
307 (("char \\*end, \\*result;")
308 (string-append "const char *end;"
309 "\n"
310 "char *result;")))
311 #t))))
312 (build-system gnu-build-system)
313 (arguments
314 `(#:tests? #f ; no check target
315 #:phases
316 (modify-phases %standard-phases
317 (add-after 'install 'install-data
318 (lambda* (#:key inputs outputs #:allow-other-keys)
319 (let ((data (assoc-ref inputs "adanaxis-mush"))
320 (share (string-append (assoc-ref outputs "out")
321 "/share/" ,name "-" ,version)))
322 (mkdir-p share)
323 (invoke "tar" "xvf" data "-C" share)))))))
324 (native-inputs
325 `(("adanaxis-mush" ,adanaxis-mush))) ; game data
326 (inputs
327 `(("expat" ,expat)
328 ("freeglut" ,freeglut)
329 ("glu" ,glu)
330 ("libjpeg" ,libjpeg-turbo)
331 ("libogg" ,libogg)
332 ("libtiff" ,libtiff)
333 ("libvorbis" ,libvorbis)
334 ("libx11" ,libx11)
335 ("libxext" ,libxext)
336 ("pcre" ,pcre)
337 ("sdl" ,sdl)
338 ("sdl-mixer" ,sdl-mixer)))
339 (home-page "https://www.mushware.com")
340 (synopsis "Action game in four spatial dimensions")
341 (description
342 "Adanaxis is a fast-moving first person shooter set in deep space, where
343 the fundamentals of space itself are changed. By adding another dimension to
344 space this game provides an environment with movement in four directions and
345 six planes of rotation. Initially the game explains the 4D control system via
346 a graphical sequence, before moving on to 30 levels of gameplay with numerous
347 enemy, ally, weapon and mission types. Features include simulated 4D texturing,
348 mouse and joystick control, and original music.")
349 (license license:gpl2)))
350
351 (define-public alex4
352 (package
353 (name "alex4")
354 (version "1.2.1")
355 (source
356 (origin
357 (method git-fetch)
358 (uri (git-reference
359 (url "https://github.com/carstene1ns/alex4")
360 (commit version)))
361 (file-name (git-file-name name version))
362 (sha256
363 (base32 "098wy72mh4lsvq3gm0rhamjssf9l1hp6hhkpzrv7klpb97cwwc3h"))))
364 (build-system gnu-build-system)
365 (arguments
366 `(#:tests? #f ; no check target
367 #:make-flags
368 (list "CC=gcc"
369 "CFLAGS=-D_FILE_OFFSET_BITS=64"
370 (string-append "PREFIX=" (assoc-ref %outputs "out")))
371 #:phases
372 (modify-phases %standard-phases
373 (delete 'configure) ; no configure script
374 (add-after 'install 'install-data
375 (lambda* (#:key outputs #:allow-other-keys)
376 (let ((share (string-append (assoc-ref outputs "out")
377 "/share/" ,name)))
378 (install-file "alex4.ini" share)
379 #t))))))
380 (inputs
381 `(("allegro" ,allegro-4)
382 ("dumb" ,dumb-allegro4)))
383 (home-page "http://allegator.sourceforge.net/")
384 (synopsis "Retro platform game")
385 (description
386 "Guide Alex the Allegator through the jungle in order to save his
387 girlfriend Lola from evil humans who want to make a pair of shoes out of her.
388 Plenty of classic platforming in four nice colors guaranteed!
389
390 The game includes a built-in editor so you can design and share your own maps.")
391 (license license:gpl2+)))
392
393 (define-public armagetronad
394 (package
395 (name "armagetronad")
396 (version "0.2.9.0.1")
397 (source (origin
398 (method url-fetch)
399 (uri (string-append "mirror://sourceforge/armagetronad/stable/"
400 version "/armagetronad-" version ".tbz"))
401 (sha256
402 (base32
403 "19rfhlg4gp0r7k1j8v4iw20325ciy156nmzax4xikmw22c6nmxcz"))))
404 (build-system gnu-build-system)
405 (native-inputs
406 `(("pkg-config" ,pkg-config)))
407 (inputs
408 `(("libxml2" ,libxml2)
409 ("sdl" ,sdl)
410 ("sdl-image" ,sdl-image)
411 ("freeglut" ,freeglut)
412 ("libpng" ,libpng)
413 ("libjpeg-turbo" ,libjpeg-turbo)))
414 (home-page "http://www.armagetronad.org")
415 (synopsis "Tron clone in 3D")
416 (description "Armagetron Advanced is a multiplayer game in 3d that
417 attempts to emulate and expand on the lightcycle sequence from the movie Tron.
418 It's an old school arcade game slung into the 21st century. Highlights
419 include a customizable playing arena, HUD, unique graphics, and AI bots. For
420 the more advanced player there are new game modes and a wide variety of
421 physics settings to tweak as well.")
422 (license license:gpl2+)))
423
424 (define-public astromenace
425 (package
426 (name "astromenace")
427 (version "1.4.1")
428 (source
429 (origin
430 (method git-fetch)
431 (uri (git-reference
432 (url "https://github.com/viewizard/astromenace")
433 (commit (string-append "v" version))))
434 (file-name (git-file-name name version))
435 (sha256
436 (base32 "1ad6l887jxqv8xspwc2rvy8ym9sdlmkqdqhsh0pi076kjarxsyws"))))
437 (build-system cmake-build-system)
438 (arguments
439 `(#:tests? #f ;no test
440 #:configure-flags (list (string-append "-DDATADIR="
441 (assoc-ref %outputs "out")
442 "/share/astromenace"))
443 #:phases
444 (modify-phases %standard-phases
445 (replace 'install
446 ;; Upstream provides no install phase.
447 (lambda* (#:key inputs outputs #:allow-other-keys)
448 (let* ((out (assoc-ref outputs "out"))
449 (bin (string-append out "/bin"))
450 (share (string-append out "/share"))
451 (apps (string-append share "/applications"))
452 (data (string-append share "/astromenace"))
453 (icons (string-append share "/icons/hicolor/64x64/apps")))
454 (install-file "astromenace" bin)
455 (install-file "gamedata.vfs" data)
456 (let ((source (assoc-ref inputs "source")))
457 (with-directory-excursion (string-append source "/share")
458 (install-file "astromenace.desktop" apps)
459 (mkdir-p icons)
460 (copy-file "astromenace_64.png"
461 (string-append icons "/astromenace.png")))))
462 #t)))))
463 (inputs
464 `(("freealut" ,freealut)
465 ("freetype" ,freetype)
466 ("glu" ,glu)
467 ("libogg" ,libogg)
468 ("libvorbis" ,libvorbis)
469 ("openal" ,openal)
470 ("sdl2" ,sdl2)))
471 (home-page "https://www.viewizard.com/")
472 (synopsis "3D space shooter with spaceship upgrade possibilities")
473 (description
474 "Space is a vast area, an unbounded territory where it seems there is
475 a room for everybody, but reversal of fortune put things differently. The
476 hordes of hostile creatures crawled out from the dark corners of the universe,
477 craving to conquer your homeland. Their force is compelling, their legions
478 are interminable. However, humans didn't give up without a final showdown and
479 put their best pilot to fight back. These malicious invaders chose the wrong
480 galaxy to conquer and you are to prove it! Go ahead and make alien aggressors
481 regret their insolence.")
482 ;; Game is released under GPL3+ terms. Artwork is subject to CC
483 ;; BY-SA 4.0, and fonts to OFL1.1.
484 (license (list license:gpl3+ license:cc-by-sa4.0 license:silofl1.1))))
485
486 (define-public bastet
487 (package
488 (name "bastet")
489 (version "0.43.2")
490 (source
491 (origin
492 (method git-fetch)
493 (uri (git-reference
494 (url "https://github.com/fph/bastet")
495 (commit version)))
496 (file-name (git-file-name name version))
497 (sha256
498 (base32 "09kamxapm9jw9przpsgjfg33n9k94bccv65w95dakj0br33a75wn"))
499 (patches
500 (search-patches "bastet-change-source-of-unordered_set.patch"))))
501 (build-system gnu-build-system)
502 (arguments
503 `(#:make-flags
504 (list (string-append "CXXFLAGS=-I"
505 (assoc-ref %build-inputs "boost") "/include"))
506 #:phases
507 (modify-phases %standard-phases
508 (delete 'configure) ; no configure script
509 (replace 'check
510 ;; The 'Test' target builds the tests, but doesn't actually run them.
511 (lambda* (#:key make-flags #:allow-other-keys)
512 (apply invoke "make" "Test" make-flags)
513 (setenv "HOME" ".")
514 (invoke "./Test")))
515 (replace 'install
516 (lambda* (#:key outputs #:allow-other-keys)
517 (let* ((out (assoc-ref outputs "out"))
518 (share (string-append out "/share"))
519 (hicolor (string-append share "/icons/hicolor")))
520 (install-file "bastet"
521 (string-append out "/bin"))
522
523 (install-file "bastet.desktop"
524 (string-append share "/applications"))
525 (install-file "bastet.svg"
526 (string-append hicolor "/scalable/apps"))
527
528 (install-file "bastet.appdata.xml"
529 (string-append share "/appdata"))
530
531 (install-file "bastet.6"
532 (string-append out "/share/man/man6"))
533 #t))))))
534 (native-inputs
535 `(("hicolor-icon-theme" ,hicolor-icon-theme)))
536 (inputs
537 `(("boost" ,boost)
538 ("ncurses" ,ncurses)))
539 (home-page "https://fph.altervista.org/prog/bastet.html")
540 (synopsis "Antagonistic Tetris-style falling brick game for text terminals")
541 (description
542 "Bastet (short for Bastard Tetris) is a simple ncurses-based falling brick
543 game. Unlike normal Tetris, Bastet does not choose the next brick at random.
544 Instead, it uses a special algorithm to choose the worst brick possible.
545
546 Playing bastet can be a painful experience, especially if you usually make
547 canyons and wait for the long I-shaped block to clear four rows at a time.")
548 (license license:gpl3+)))
549
550 (define-public vitetris
551 (package
552 (name "vitetris")
553 (version "0.59.1")
554 (source
555 (origin
556 (method git-fetch)
557 (uri (git-reference
558 (url "https://github.com/vicgeralds/vitetris")
559 (commit (string-append "v" version))))
560 (sha256
561 (base32 "1ah1c5g7abksif0n8v5rb7r4pn2az20c3mkp4ak13vgs23ddmds5"))
562 (file-name (git-file-name name version))))
563 (build-system gnu-build-system)
564 (arguments
565 `(#:tests? #f ;no test
566 #:make-flags
567 (list ,(string-append "CC=" (cc-for-target))
568 (string-append "DESTDIR=" (assoc-ref %outputs "out")))
569 #:phases
570 (modify-phases %standard-phases
571 (replace 'configure
572 (lambda _
573 ;; the non standard configure script does not accept
574 ;; standard parameters -> invoke configure by hand
575 (invoke "./configure" "prefix=")
576 ;; src/src-conf.mk must be writable for the build step
577 (make-file-writable "src/src-conf.mk"))))))
578 (home-page "http://victornils.net/tetris/")
579 (synopsis "Terminal-based Tetris clone")
580 (description "Vitetris is a classic multiplayer Tetris clone for the
581 terminal.")
582 (license license:bsd-2)))
583
584 (define-public blobwars
585 (package
586 (name "blobwars")
587 (version "2.00")
588 (source
589 (origin
590 (method url-fetch)
591 (uri (string-append "mirror://sourceforge/blobwars/"
592 "blobwars-" version ".tar.gz"))
593 (sha256
594 (base32 "16aagvkx6azf75gm5kaa94bh5npydvhqp3fvdqyfsanzdjgjf1n4"))))
595 (build-system gnu-build-system)
596 (arguments
597 `(#:tests? #f ;no test
598 #:make-flags
599 (let ((out (assoc-ref %outputs "out")))
600 (list (string-append "PREFIX=" out)
601 (string-append "BINDIR=" out "/bin/")
602 "USEPAK=1"
603 "RELEASE=1"))
604 #:phases
605 (modify-phases %standard-phases
606 (add-after 'unpack 'werror-begone
607 (lambda _
608 (substitute* "Makefile" (("-Werror") ""))
609 #t))
610 (delete 'configure)))) ;no configure script
611 (native-inputs
612 `(("gettext" ,gettext-minimal)
613 ("pkg-config" ,pkg-config)))
614 (inputs
615 `(("hicolor-icon-theme" ,hicolor-icon-theme)
616 ("sdl" ,(sdl-union (list sdl2
617 sdl2-image
618 sdl2-mixer
619 sdl2-ttf
620 sdl2-net)))))
621 (home-page "https://sourceforge.net/projects/blobwars/")
622 (synopsis "Platform action game featuring a blob with a lot of weapons")
623 (description "Blobwars: Metal Blob Solid is a 2D platform game, the first
624 in the Blobwars series. You take on the role of a fearless Blob agent. Your
625 mission is to infiltrate various enemy bases and rescue as many MIAs as
626 possible, while battling many vicious aliens.")
627 (license (list license:gpl2 ; For code and graphics
628 license:cc0 ; Music and sounds have specific licenses
629 license:cc-by3.0 ; see /doc/readme
630 license:cc-by-sa3.0
631 license:lgpl2.1+
632 license:bsd-2))))
633
634 (define-public bsd-games
635 (package
636 (name "bsd-games")
637 (version "2.17.0")
638 (source
639 (origin
640 (method url-fetch)
641 (uri "https://ibiblio.org/pub/linux/games/bsd-games-2.17.tar.gz")
642 (sha256
643 (base32 "0q7zdyyfvn15y0w4g54kq3gza89h61py727m8slmw73cxx594vq6"))
644 (patches
645 (search-patches
646 ;; thanks Arch, and Debian
647 "bsd-games-2.17-64bit.patch"
648 "bsd-games-bad-ntohl-cast.patch"
649 "bsd-games-gamescreen.h.patch"
650 "bsd-games-getline.patch"
651 "bsd-games-null-check.patch"
652 "bsd-games-number.c-and-test.patch"
653 "bsd-games-stdio.h.patch"
654 "bsd-games-prevent-name-collisions.patch"
655 ;; Guix customizations
656 "bsd-games-add-configure-config.patch"
657 "bsd-games-dont-install-empty-files.patch"
658 "bsd-games-add-wrapper.patch"))))
659 (build-system gnu-build-system)
660 (native-inputs
661 `(("flex" ,flex)
662 ("bison" ,bison)))
663 (inputs
664 `(("curses" ,ncurses)
665 ("pager" ,less)
666 ("miscfiles" ,miscfiles)
667 ("openssl" ,openssl))) ;used only by 'factor'
668 (arguments
669 `(#:phases
670 (modify-phases %standard-phases
671 (replace 'configure
672 (lambda* (#:key outputs inputs #:allow-other-keys)
673 (let* ((out (assoc-ref outputs "out"))
674 (bin (string-append out "/bin"))
675 (doc (string-append out "/share/doc/bsd-games-" ,version))
676 (man (string-append out "/share/man"))
677 (word-list (string-append (assoc-ref inputs "miscfiles")
678 "/share/web2"))
679 (static-data (string-append out "/share/games/bsd-games"))
680 ;; Not a "./" because of substitute* in 'patch-install
681 ;; below. The .// allow us not to mess with the games'
682 ;; code any further: we just use a wrapper script that
683 ;; cd's to a BSD_GAMES_DIR. :]
684 (save-files ".//"))
685 (substitute* "configure"
686 (("/usr/share/man") man)
687 (("/usr/share/doc/bsd-games") doc)
688 (("/usr/share/[^\n/]*") static-data)
689 (("/var/games") save-files)
690 (("/usr/bin/less") (which "less"))
691 (("(/usr/bin|/usr/games)") bin))
692 (substitute* "config.params" (("WORD_LIST") word-list))
693 (substitute* "wrapper" (("STATIC_DATA") static-data))
694 (invoke "./configure"))
695 #t))
696 (add-before 'install 'patch-install
697 ;; Some games need a writable directory containing pre-maded files.
698 ;; The files get installed to the Store. Then the wrapper kicks in.
699 (lambda* (#:key outputs #:allow-other-keys)
700 (let* ((out (assoc-ref outputs "out"))
701 (static-data (string-append out "/share/games/bsd-games"))
702 (save-files ".//"))
703 (substitute* "Makeconfig" ((save-files) static-data)))
704 #t))
705 (add-after 'install 'install-documents
706 (lambda* (#:key outputs #:allow-other-keys)
707 (let* ((out (assoc-ref outputs "out"))
708 (doc (string-append out "/share/doc/bsd-games-" ,version)))
709 (rename-file "phantasia/COPYRIGHT" "phantasia-COPYRIGHT")
710 (for-each
711 (lambda(file) (install-file file doc))
712 '("AUTHORS" "BUGS" "README" "SECURITY" "THANKS"
713 "phantasia-COPYRIGHT")))
714 #t)))))
715 (home-page "https://github.com/vattam/BSDGames")
716 (synopsis "Collection of the old text-based games and amusements")
717 (description
718 "These are the BSD games. See the fortune-mod package for fortunes.
719
720 Action: atc (keep the airplanes safe), hack (explore the dangerous Dungeon),
721 hunt (kill the others for the Pair of Boots, multi-player only), robots (avoid
722 the evil robots), sail (game of naval warfare with wooden ships), snake (steal
723 the $$ from the cave, anger the snake, and get out alive), tetris (game of
724 lining up the falling bricks of different shapes), and worm (eat, grow big,
725 and neither bite your tail, nor ram the wall).
726
727 Amusements: banner (prints a large banner), bcd & morse & ppt (print a punch
728 card, or paper tape, or Morse codes), caesar & rot13 (ciphers and deciphers
729 the input), factor (factorizes a number), number (translates numbers into
730 text), pig (translates from English to Pig Latin), pom (should print the
731 Moon's phase), primes (generates primes), rain & worms (plays an screen-saver
732 in terminal), random (prints randomly chosen lines from files, or returns a
733 random exit-code), and wtf (explains what do some acronyms mean).
734
735 Board: backgammon (lead the men out of board faster than the friend do),
736 boggle (find the words in the square of letters), dab (game of dots and
737 boxes), gomoku (game of five in a row), hangman (guess a word before man is
738 hanged), and monop (game of monopoly, hot-seat only). Also the card-games:
739 canfield, cribbage, fish (juniors game), and mille.
740
741 Quests: adventure (search for treasures with the help of wizard),
742 battlestar (explore the world around, starting from dying spaceship),
743 phantasia (role-play as an rogue), trek (hunt the Klingons, and save the
744 Federation), and wump (hunt the big smelly Wumpus in a dark cave).
745
746 Quizes: arithmetic, and quiz.")
747 ;; "Auxiliary and data files, distributed with the games in NetBSD, but
748 ;; not bearing copyright notices, probably fall under the terms of the UCB
749 ;; or NetBSD copyrights and licences. The file "fortune/Notes" contains a
750 ;; warning in regard to the fortune databases."
751 (license (list
752 ;; Most games. Files: countmail/countmail.6, dab/dab.6,
753 ;; lib/strlcpy.c, wargames/wargames.6
754 license:bsd-3
755 ;; dab and hunt. Files: adventure/extern.h,
756 ;; backgammon/backgammon/backlocal.h, caesar/rot13.in,
757 ;; countmail/countmail, dm/utmpentry.c, dm/utmpentry.h,
758 ;; hack/extern.h, robots/auto.c, sail/display.h,
759 ;; sail/restart.h, wargames/wargames
760 license:bsd-4
761 ;; wtf (the game)
762 license:public-domain
763 ;; phantasia (all but phantasia/pathnames.h.in, which is bsd-3)
764 (license:fsf-free "file:///phantasia/COPYRIGHT")))))
765
766
767 (define-public bzflag
768 (package
769 (name "bzflag")
770 (version "2.4.22")
771 (source
772 (origin
773 (method url-fetch)
774 (uri (string-append "https://download.bzflag.org/bzflag/source/"
775 version "/bzflag-" version ".tar.bz2"))
776 (sha256
777 (base32 "0kba0011nswc2csqlzkd7bas307zm5813zlnby5vsmxn08rnar4y"))))
778 (build-system gnu-build-system)
779 (arguments
780 `(#:phases
781 (modify-phases %standard-phases
782 (add-after 'install 'install-desktop-file-and-icons
783 (lambda* (#:key outputs #:allow-other-keys)
784 (let* ((share (string-append (assoc-ref outputs "out") "/share"))
785 (data (string-append share "/bzflag"))
786 (hicolor (string-append share "/icons/hicolor"))
787 (applications (string-append share "/applications")))
788 ;; Move desktop file.
789 (install-file (string-append data "/bzflag.desktop")
790 applications)
791 ;; Install icons.
792 (for-each (lambda (size)
793 (let* ((dim (string-append size "x" size))
794 (dir (string-append hicolor "/" dim "/apps")))
795 (mkdir-p dir)
796 (copy-file
797 (string-append data "/bzflag-" dim ".png")
798 (string-append dir "/bzflag.png"))))
799 '("48" "256")))
800 #t)))))
801 (native-inputs
802 `(("pkg-config" ,pkg-config)))
803 (inputs
804 `(("c-ares" ,c-ares)
805 ("curl" ,curl)
806 ("glew" ,glew)
807 ("glu" ,glu)
808 ("sdl2" ,sdl2)
809 ("zlib" ,zlib)))
810 (home-page "https://www.bzflag.org/")
811 (synopsis "3D first person tank battle game")
812 (description
813 "BZFlag is a 3D multi-player multiplatform tank battle game that
814 allows users to play against each other in a network environment.
815 There are five teams: red, green, blue, purple and rogue (rogue tanks
816 are black). Destroying a player on another team scores a win, while
817 being destroyed or destroying a teammate scores a loss. Rogues have
818 no teammates (not even other rogues), so they cannot shoot teammates
819 and they do not have a team score.
820
821 There are two main styles of play: capture-the-flag and free-for-all.
822 In capture-the-flag, each team (except rogues) has a team base and
823 each team with at least one player has a team flag. The object is to
824 capture an enemy team's flag by bringing it to your team's base. This
825 destroys every player on the captured team, subtracts one from that
826 team's score, and adds one to your team's score. In free-for-all,
827 there are no team flags or team bases. The object is simply to get as
828 high a score as possible.")
829 ;; The game is dual-licensed.
830 (license (list license:lgpl2.1 license:mpl2.0))))
831
832 (define-public cataclysm-dda
833 (package
834 (name "cataclysm-dda")
835 (version "0.E-3")
836 (source
837 (origin
838 (method git-fetch)
839 (uri (git-reference
840 (url "https://github.com/CleverRaven/Cataclysm-DDA")
841 (commit version)))
842 (sha256
843 (base32 "108cs6vp99qmqqfnmczad0xjgcl82bypm5xszwnlfcswdsrfs4da"))
844 (file-name (git-file-name name version))))
845 (build-system gnu-build-system)
846 (arguments
847 '(#:make-flags
848 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
849 "USE_HOME_DIR=1" "DYNAMIC_LINKING=1" "RELEASE=1"
850 "LOCALIZE=1" "LANGUAGES=all")
851 #:phases
852 (modify-phases %standard-phases
853 (delete 'configure)
854 (add-after 'build 'build-tiles
855 (lambda* (#:key make-flags outputs #:allow-other-keys)
856 ;; Change prefix directory and enable tile graphics and sound.
857 (apply invoke "make" "TILES=1" "SOUND=1"
858 (string-append "PREFIX="
859 (assoc-ref outputs "tiles"))
860 (cdr make-flags))))
861 (add-after 'install 'install-tiles
862 (lambda* (#:key make-flags outputs #:allow-other-keys)
863 (apply invoke "make" "install" "TILES=1" "SOUND=1"
864 (string-append "PREFIX="
865 (assoc-ref outputs "tiles"))
866 (cdr make-flags)))))
867 ;; TODO: Add libtap++ from https://github.com/cbab/libtappp as a native
868 ;; input in order to support tests.
869 #:tests? #f))
870 (outputs '("out"
871 "tiles")) ;for tile graphics and sound support
872 (native-inputs
873 `(("gettext" ,gettext-minimal)
874 ("pkg-config" ,pkg-config)))
875 (inputs
876 `(("freetype" ,freetype)
877 ("libogg" ,libogg)
878 ("libvorbis" ,libvorbis)
879 ("ncurses" ,ncurses)
880 ("sdl2" ,sdl2)
881 ("sdl2-image" ,sdl2-image)
882 ("sdl2-ttf" ,sdl2-ttf)
883 ("sdl2-mixer" ,sdl2-mixer)))
884 (home-page "https://cataclysmdda.org/")
885 (synopsis "Survival horror roguelike video game")
886 (description
887 "Cataclysm: Dark Days Ahead (or \"DDA\" for short) is a roguelike set
888 in a post-apocalyptic world. Struggle to survive in a harsh, persistent,
889 procedurally generated world. Scavenge the remnants of a dead civilization
890 for food, equipment, or, if you are lucky, a vehicle with a full tank of gas
891 to get you out of Dodge. Fight to defeat or escape from a wide variety of
892 powerful monstrosities, from zombies to giant insects to killer robots and
893 things far stranger and deadlier, and against the others like yourself, that
894 want what you have.")
895 (license license:cc-by-sa3.0)))
896
897 (define-public cockatrice
898 (let ((release-date "2021-01-26"))
899 (package
900 (name "cockatrice")
901 (version "2.8.0")
902 (source
903 (origin
904 (method git-fetch)
905 (uri (git-reference
906 (url "https://github.com/Cockatrice/Cockatrice")
907 (commit (string-append release-date "-Release-" version))))
908 (file-name (git-file-name name version))
909 (sha256
910 (base32
911 "0q8ffcklb2b7hcqhy3d2f9kz9aw22pp04pc9y4sslyqmf17pwnz9"))
912 (modules '((guix build utils)))
913 (snippet
914 ;; Strip image URLs as they point towards non-free web services
915 '(substitute* "cockatrice/src/settings/downloadsettings.cpp"
916 (("downloadURLs.append\\(\".*\"\\);") "")))))
917 (build-system cmake-build-system)
918 (arguments
919 `(#:configure-flags '("-DWITH_SERVER=1"
920 "-DWITH_CLIENT=1"
921 "-DWITH_ORACLE=1"
922 "-DTEST=1")))
923 (native-inputs
924 `(("googletest" ,googletest)
925 ("pkg-config" ,pkg-config)))
926 (inputs
927 `(("protobuf" ,protobuf)
928 ("qtbase" ,qtbase)
929 ("qtmultimedia" ,qtmultimedia)
930 ("qtsvg" ,qtsvg)
931 ("qttools" ,qttools)
932 ("qtwebsockets" ,qtwebsockets)
933 ("xz" ,xz)
934 ("zlib" ,zlib)))
935 (home-page "https://cockatrice.github.io")
936 (synopsis "Tabletop card game simulator")
937 (description "Cockatrice is a program for playing tabletop card games
938 over a network. Its server design prevents users from manipulating the game
939 for unfair advantage. The client also provides a single-player mode, which
940 allows users to brew while offline.")
941 (license license:gpl2))))
942
943 (define-public corsix-th
944 (package
945 (name "corsix-th")
946 (version "0.64")
947 (source
948 (origin
949 (method git-fetch)
950 (uri (git-reference
951 (url "https://github.com/CorsixTH/CorsixTH")
952 (commit (string-append "v" version))))
953 (file-name (git-file-name name version))
954 (sha256
955 (base32 "0chh9cv2kdc39sr0x8hclcyzd8dz2y6grgagqzkvr7j570wa5cqh"))))
956 (build-system cmake-build-system)
957 (arguments
958 `(#:phases
959 (modify-phases %standard-phases
960 (add-after 'install 'wrap-binary
961 (lambda _
962 ;; Set Lua module paths and default MIDI soundfont on startup.
963 (let* ((out (assoc-ref %outputs "out"))
964 (fluid (assoc-ref %build-inputs "fluid-3"))
965 (lua-version ,(version-major+minor (package-version lua)))
966 (lua-cpath
967 (map (lambda (lib)
968 (string-append
969 (assoc-ref %build-inputs (string-append "lua-" lib))
970 "/lib/lua/" lua-version "/?.so"))
971 '("filesystem" "lpeg"))))
972 (wrap-program (string-append out "/bin/corsix-th")
973 `("LUA_CPATH" ";" = ,lua-cpath)
974 `("SDL_SOUNDFONTS" ":" suffix
975 (,(string-append fluid "/share/soundfonts/FluidR3Mono_GM.sf3")))))
976 #t)))
977 #:tests? #f)) ; TODO need busted package to run tests
978 ;; Omit Lua-Socket dependency to disable automatic updates.
979 (inputs
980 `(("ffmpeg" ,ffmpeg)
981 ("fluid-3" ,fluid-3)
982 ("freetype" ,freetype)
983 ("lua" ,lua)
984 ("lua-filesystem" ,lua-filesystem)
985 ("lua-lpeg" ,lua-lpeg)
986 ("sdl2" ,sdl2)
987 ("sdl2-mixer" ,sdl2-mixer)))
988 (home-page "https://corsixth.com")
989 (synopsis "Implementation of the @i{Theme Hospital} game engine")
990 (description
991 "This package provides a reimplementation of the 1997 Bullfrog business
992 simulation game @i{Theme Hospital}. As well as faithfully recreating the
993 original engine, CorsixTH adds support for high resolutions, custom levels and
994 more. This package does @emph{not} provide the game assets.")
995 (license (list
996 license:expat ; main license
997 license:bsd-3)))) ; CorsixTH/Src/random.c
998
999 (define-public cowsay
1000 (package
1001 (name "cowsay")
1002 (version "3.04")
1003 (source (origin
1004 (method git-fetch)
1005 (uri (git-reference
1006 (url "https://github.com/tnalpgge/rank-amateur-cowsay")
1007 (commit (string-append name "-" version))))
1008 (file-name (git-file-name name version))
1009 (sha256
1010 (base32
1011 "06455kq37hvq1xb7adyiwrx0djs50arsxvjgixyxks16lm1rlc7n"))))
1012 (build-system gnu-build-system)
1013 (arguments
1014 `(#:phases
1015 (modify-phases %standard-phases
1016 (delete 'configure) ; no configure script
1017 (delete 'build) ; nothing to be built
1018 (replace 'install
1019 (lambda* (#:key outputs #:allow-other-keys)
1020 (invoke "sh" "install.sh"
1021 (assoc-ref outputs "out"))))
1022 (delete 'check)
1023 (add-after 'install 'check
1024 (lambda* (#:key outputs #:allow-other-keys)
1025 (invoke (string-append (assoc-ref outputs "out")
1026 "/bin/cowsay")
1027 "We're done!"))))))
1028 (inputs
1029 `(("perl" ,perl)))
1030 (home-page (string-append "https://web.archive.org/web/20071026043648/"
1031 "http://www.nog.net:80/~tony/warez/cowsay.shtml"))
1032 (synopsis "Speaking cow text filter")
1033 (description "Cowsay is basically a text filter. Send some text into it,
1034 and you get a cow saying your text. If you think a talking cow isn't enough,
1035 cows can think too: all you have to do is run @command{cowthink}. If you're
1036 tired of cows, a variety of other ASCII-art messengers are available.")
1037 (license license:gpl3+)))
1038
1039 (define-public lolcat
1040 (let ((commit "35dca3d0a381496d7195cd78f5b24aa7b62f2154")
1041 (revision "0"))
1042 (package
1043 (name "lolcat")
1044 (version (git-version "1.0" revision commit))
1045 (source
1046 (origin
1047 (method git-fetch)
1048 (uri (git-reference
1049 (url "https://github.com/jaseg/lolcat")
1050 (commit commit)))
1051 (sha256
1052 (base32
1053 "0jjbkqcc2ikjxd1xgdyv4rb0vsw218181h89f2ywg29ffs3ypd8g"))
1054 (file-name (git-file-name name version))))
1055 (build-system gnu-build-system)
1056 (arguments
1057 `(#:tests? #f ; no check target
1058 #:make-flags
1059 (list ,(string-append "CC=" (cc-for-target)))
1060 #:phases
1061 (modify-phases %standard-phases
1062 (delete 'bootstrap)
1063 (delete 'configure)
1064 (replace 'install
1065 (lambda* (#:key outputs #:allow-other-keys)
1066 (let* ((out (assoc-ref outputs "out"))
1067 (dest (string-append out "/bin")))
1068 (mkdir-p dest)
1069 (install-file "lolcat" dest)
1070 (install-file "censor" dest)
1071 #t))))))
1072 (home-page "https://github.com/jaseg/lolcat")
1073 (synopsis "Rainbow coloring effect for text console display")
1074 (description "@command{lolcat} concatenates files and streams like
1075 regular @command{cat}, but it also adds terminal escape codes between
1076 characters and lines resulting in a rainbow effect.")
1077 (license license:wtfpl2))))
1078
1079 (define-public foobillard++
1080 ;; Even though this latest revision is old already, stable release is
1081 ;; lagging way behind it, and has issues with textures rendering.
1082 (let ((svn-revision 170))
1083 (package
1084 (name "foobillard++")
1085 (version (string-append "3.43-r" (number->string svn-revision)))
1086 (source
1087 (origin
1088 (method svn-fetch)
1089 (uri (svn-reference
1090 (url "svn://svn.code.sf.net/p/foobillardplus/code/")
1091 (revision svn-revision)))
1092 (file-name (git-file-name name version))
1093 (sha256
1094 (base32 "00b693ys5zvzjbjzzj3dqfzm5xw64gwjf9m8qv6bkmf0klbhmayk"))
1095 (patches
1096 (search-patches "foobillard++-pkg-config.patch"))
1097 (modules '((guix build utils)))
1098 (snippet
1099 '(begin
1100 ;; Unfortunately, the game includes background music with
1101 ;; a non-commercial clause. Delete it.
1102 (for-each delete-file (find-files "data/music" "\\.ogg$"))
1103 #t))))
1104 (build-system gnu-build-system)
1105 (arguments
1106 `(#:configure-flags
1107 (list
1108 ;; Install data in a less exotic location.
1109 (string-append "--prefix=" (assoc-ref %outputs "out") "/share")
1110 ;; Prevent a build error about undefined trigonometric functions.
1111 "--enable-fastmath=no")
1112 #:phases
1113 (modify-phases %standard-phases
1114 (add-after 'unpack 'fix-makefile
1115 ;; Remove hard-coded directories. Also fix installation
1116 ;; rule: it tries to move around non-existent files or
1117 ;; files already moved.
1118 (lambda* (#:key outputs #:allow-other-keys)
1119 (substitute* "Makefile.am"
1120 (("/usr") (assoc-ref outputs "out"))
1121 (("cp .*?/foobillardplus\\.desktop.*") "")
1122 (("cp .*?/foobillardplus\\.(png|xbm) \\$\\(datarootdir\\).*")
1123 ""))
1124 #t))
1125 (add-after 'unpack 'unbundle-font
1126 ;; XXX: The package ships with LinBiolinum_aSB.ttf and
1127 ;; LinBiolinum_aS.ttf, which are not provided by
1128 ;; `font-linuxlibertine' package. Therefore, we cannot replace
1129 ;; them yet.
1130 (lambda* (#:key inputs #:allow-other-keys)
1131 (let ((dejavu (string-append (assoc-ref inputs "font-dejavu")
1132 "/share/fonts/truetype/")))
1133 (with-directory-excursion "data"
1134 (for-each (lambda (f)
1135 (delete-file f)
1136 (symlink (string-append dejavu f) f))
1137 '("DejaVuSans-Bold.ttf" "DejaVuSans.ttf"))))
1138 #t))
1139 (replace 'bootstrap
1140 (lambda _
1141 (invoke "aclocal" "--force")
1142 (invoke "autoconf" "-f")
1143 (invoke "autoheader" "-f")
1144 (invoke "automake" "-a" "-c" "-f")))
1145 (add-before 'build 'prepare-build
1146 ;; Set correct environment for SDL.
1147 (lambda* (#:key inputs #:allow-other-keys)
1148 (setenv "CPATH"
1149 (string-append (assoc-ref inputs "sdl")
1150 "/include/SDL:"
1151 (or (getenv "CPATH") "")))
1152 #t))
1153 (add-before 'build 'fix-settings-directory
1154 ;; Hide foobillardplus settings directory in $HOME.
1155 (lambda _
1156 (substitute* "src/history.c"
1157 (("/foobillardplus-data") "/.foobillardplus"))
1158 #t))
1159 (add-before 'install 'create-directories
1160 ;; Install process does not create directories before
1161 ;; trying to move file in it.
1162 (lambda* (#:key outputs #:allow-other-keys)
1163 (let ((out (assoc-ref outputs "out")))
1164 (mkdir-p (string-append out "/share/icons"))
1165 (mkdir-p (string-append out "/share/applications")))
1166 #t))
1167 (add-after 'install 'symlink-executable
1168 ;; Symlink executable to $out/bin.
1169 (lambda* (#:key outputs #:allow-other-keys)
1170 (let* ((out (assoc-ref outputs "out"))
1171 (bin (string-append out "/bin")))
1172 (mkdir-p bin)
1173 (with-directory-excursion bin
1174 (symlink "../share/foobillardplus/bin/foobillardplus"
1175 "foobillardplus"))
1176 #t))))))
1177 (native-inputs
1178 `(("autoconf" ,autoconf)
1179 ("automake" ,automake)
1180 ("pkg-config" ,pkg-config)))
1181 (inputs
1182 `(("font-dejavu" ,font-dejavu)
1183 ("freetype" ,freetype)
1184 ("glu" ,glu)
1185 ("libpng" ,libpng)
1186 ("sdl" ,(sdl-union (list sdl sdl-mixer sdl-net)))))
1187 (home-page "http://foobillardplus.sourceforge.net/")
1188 (synopsis "3D billiard game")
1189 (description "FooBillard++ is an advanced 3D OpenGL billiard game
1190 based on the original foobillard 3.0a sources from Florian Berger.
1191 You can play it with one or two players or against the computer.
1192
1193 The game features:
1194
1195 @itemize
1196 @item Wood paneled table with gold covers and gold diamonds.
1197 @item Reflections on balls.
1198 @item Zoom in and out, rotation, different angles and bird's eye view.
1199 @item Different game modes: 8 or 9-ball, Snooker or Carambole.
1200 @item Tournaments. Compete against other players.
1201 @item Animated cue with strength and eccentric hit adjustment.
1202 @item Jump shots and snipping.
1203 @item Realistic gameplay and billiard sounds.
1204 @item Red-Green stereo.
1205 @item And much more.
1206 @end itemize")
1207 (license (list license:gpl2 license:silofl1.1)))))
1208
1209 (define-public freedoom
1210 (package
1211 (name "freedoom")
1212 (version "0.12.1")
1213 (source
1214 (origin
1215 (method git-fetch)
1216 (uri (git-reference
1217 (url "https://github.com/freedoom/freedoom")
1218 (commit (string-append "v" version))))
1219 (file-name (git-file-name name version))
1220 (sha256
1221 (base32 "1mq60lfwaaxmch7hsz8403pwafnlsmsd5z2df2j77ppwndwcrypb"))))
1222 (build-system gnu-build-system)
1223 (arguments
1224 '(#:make-flags
1225 (list (string-append "prefix=" (assoc-ref %outputs "out")))
1226 #:tests? #f ; no check target
1227 #:phases
1228 (modify-phases %standard-phases
1229 (delete 'bootstrap)
1230 (replace 'configure
1231 (lambda* (#:key inputs outputs #:allow-other-keys)
1232 (let* ((freedoom (assoc-ref outputs "out"))
1233 (wad-dir (string-append freedoom "/share/games/doom")))
1234 ;; Make sure that the install scripts know where to find
1235 ;; the appropriate WAD files.
1236 (substitute* "dist/freedoom"
1237 (("IWAD=freedm.wad")
1238 (string-append "IWAD=" wad-dir "/freedm.wad"))
1239 (("IWAD=freedoom1.wad")
1240 (string-append "IWAD=" wad-dir "/freedoom1.wad"))
1241 (("IWAD=freedoom2.wad")
1242 (string-append "IWAD=" wad-dir "/freedoom2.wad")))
1243 #t))))))
1244 (native-inputs
1245 `(("asciidoc" ,asciidoc)
1246 ("deutex" ,deutex)
1247 ("python" ,python)
1248 ("python-pillow" ,python-pillow)))
1249 (home-page "https://freedoom.github.io/")
1250 (synopsis "Free content game based on the Doom engine")
1251 (native-search-paths
1252 (list (search-path-specification
1253 (variable "DOOMWADDIR")
1254 (files '("share/games/doom")))
1255 (search-path-specification
1256 (variable "DOOMWADPATH")
1257 (files '("share/games/doom")))))
1258 (description
1259 "The Freedoom project aims to create a complete free content first person
1260 shooter game. Freedoom by itself is just the raw material for a game: it must
1261 be paired with a compatible game engine (such as @code{prboom-plus}) to be
1262 played. Freedoom complements the Doom engine with free levels, artwork, sound
1263 effects and music to make a completely free game.")
1264 (license license:bsd-3)))
1265
1266 (define-public freedroidrpg
1267 (package
1268 (name "freedroidrpg")
1269 (version "0.16.1")
1270 (source
1271 (origin
1272 (method url-fetch)
1273 (uri (string-append "http://ftp.osuosl.org/pub/freedroid/"
1274 "freedroidRPG-" (version-major+minor version) "/"
1275 "freedroidRPG-" version ".tar.gz"))
1276 (sha256
1277 (base32 "0n4kn38ncmcy3lrxmq8fjry6c1z50z4q1zcqfig0j4jb0dsz2va2"))))
1278 (build-system gnu-build-system)
1279 (arguments
1280 `(#:configure-flags
1281 (list
1282 (string-append "CFLAGS="
1283 "-I" (assoc-ref %build-inputs "sdl-gfx") "/include/SDL "
1284 "-I" (assoc-ref %build-inputs "sdl-image") "/include/SDL "
1285 "-I" (assoc-ref %build-inputs "sdl-mixer") "/include/SDL")
1286 "--enable-opengl")
1287 ;; FIXME: the test suite fails with the following error output:
1288 ;; 4586 Segmentation fault env SDL_VIDEODRIVER=dummy \
1289 ;; SDL_AUDIODRIVER=dummy ./src/freedroidRPG -nb text
1290 #:tests? #f))
1291 (native-inputs
1292 `(("pkg-config" ,pkg-config)))
1293 (inputs
1294 `(("glu" ,glu)
1295 ("libjpeg" ,libjpeg-turbo)
1296 ("libogg" ,libogg)
1297 ("libpng" ,libpng)
1298 ("libvorbis" ,libvorbis)
1299 ("mesa" ,mesa)
1300 ("python" ,python-wrapper)
1301 ("sdl" ,sdl)
1302 ("sdl-gfx" ,sdl-gfx)
1303 ("sdl-image" ,sdl-image)
1304 ("sdl-mixer" ,sdl-mixer)
1305 ("zlib" ,zlib)))
1306 (home-page "https://www.freedroid.org/")
1307 (synopsis "Isometric role-playing game against killer robots")
1308 (description
1309 "Freedroid RPG is an @dfn{RPG} (Role-Playing Game) with isometric graphics.
1310 The game tells the story of a world destroyed by a conflict between robots and
1311 their human masters. To restore peace to humankind, the player must complete
1312 numerous quests while fighting off rebelling robots---either by taking control
1313 of them, or by simply blasting them to pieces with melee and ranged weapons in
1314 real-time combat.")
1315 (license (list license:expat ; lua/
1316 license:gpl3 ; src/gen_savestruct.py
1317 license:gpl2+)))) ; the rest
1318
1319 (define-public golly
1320 (package
1321 (name "golly")
1322 (version "3.3")
1323 (source (origin
1324 (method url-fetch)
1325 (uri (string-append "mirror://sourceforge/golly/golly/golly-"
1326 version "/golly-" version
1327 "-src.tar.gz"))
1328 (sha256
1329 (base32
1330 "1j3ksnar4rdam4xiyspgyrs1pifbvxfxkrn65brkwxpx39mpgzc8"))))
1331 (build-system gnu-build-system)
1332 (arguments
1333 '(#:make-flags (list "CC=gcc"
1334 (string-append "GOLLYDIR="
1335 (assoc-ref %outputs "out")
1336 "/share/golly"))
1337 #:tests? #f ; no check target
1338 #:phases
1339 (modify-phases %standard-phases
1340 (replace 'configure
1341 (lambda* (#:key inputs #:allow-other-keys)
1342 ;; For some reason, setting the PYTHON_SHLIB make flag doesn't
1343 ;; properly set the path to the Python shared library. This
1344 ;; substitution acheives the same end by different means.
1345 (substitute* "gui-wx/wxprefs.cpp"
1346 (("pythonlib = wxT\\(STRINGIFY\\(PYTHON_SHLIB\\)\\)")
1347 (string-append "pythonlib = \""
1348 (assoc-ref inputs "python")
1349 "/lib/libpython-2.7.so\"")))
1350 #t))
1351 (replace 'build
1352 (lambda* (#:key make-flags outputs #:allow-other-keys)
1353 (with-directory-excursion "gui-wx"
1354 (apply invoke `("make" ,@make-flags "-f" "makefile-gtk")))))
1355 (replace 'install
1356 (lambda* (#:key outputs #:allow-other-keys)
1357 (let* ((out (assoc-ref outputs "out"))
1358 (bin (string-append out "/bin"))
1359 (doc (string-append out "/share/doc/golly"))
1360 (pixmaps (string-append out "/share/pixmaps"))
1361 (share (string-append out "/share/golly")))
1362 (for-each (lambda (binary)
1363 (install-file binary bin))
1364 '("bgolly" "golly"))
1365 (for-each (lambda (document)
1366 (install-file
1367 (string-append "docs/" document ".html")
1368 doc))
1369 '("License" "ReadMe" "ToDo"))
1370 (install-file "gui-wx/icons/appicon.xpm" pixmaps)
1371 (for-each (lambda (folder)
1372 (copy-recursively
1373 folder
1374 (string-append share "/" folder)))
1375 '("Help" "Patterns" "Rules" "Scripts")))
1376 #t)))))
1377 (native-inputs
1378 `(("lua" ,lua)))
1379 (inputs
1380 `(("glu" ,glu)
1381 ("mesa" ,mesa)
1382 ("python" ,python-2)
1383 ("wxwidgets" ,wxwidgets-gtk2)
1384 ("zlib" ,zlib)))
1385 (home-page "http://golly.sourceforge.net/")
1386 (synopsis "Software for exploring cellular automata")
1387 (description
1388 "Golly simulates Conway's Game of Life and many other types of cellular
1389 automata. The following features are available:
1390 @enumerate
1391 @item Support for bounded and unbounded universes, with cells of up to 256
1392 states.
1393 @item Support for multiple algorithms, including Bill Gosper's Hashlife
1394 algorithm.
1395 @item Loading patterns from BMP, PNG, GIF and TIFF image files.
1396 @item Reading RLE, macrocell, Life 1.05/1.06, dblife and MCell files.
1397 @item Scriptable via Lua or Python.
1398 @item Extracting patterns, rules and scripts from zip files.
1399 @item Downloading patterns, rules and scripts from online archives.
1400 @item Pasting patterns from the clipboard.
1401 @item Unlimited undo/redo.
1402 @item Configurable keyboard shortcuts.
1403 @item Auto fit option to keep patterns within the view.
1404 @end enumerate")
1405 (license license:gpl2+)))
1406
1407 (define-public julius
1408 (package
1409 (name "julius")
1410 (version "1.6.0")
1411 (source
1412 (origin
1413 (method git-fetch)
1414 (uri (git-reference
1415 (url "https://github.com/bvschaik/julius")
1416 (commit (string-append "v" version))))
1417 (file-name (git-file-name name version))
1418 (sha256
1419 (base32 "0nfdn8n6ywhm69ckz9a1chl5xxiqyaj3l337wadsbppnpscjihrc"))
1420 ;; Remove unused bundled libraries.
1421 (modules '((guix build utils)))
1422 (snippet
1423 '(begin
1424 (with-directory-excursion "ext"
1425 (for-each delete-file-recursively '("dirent" "png" "SDL2" "zlib")))
1426 #t))))
1427 (build-system cmake-build-system)
1428 (inputs
1429 `(("libpng" ,libpng)
1430 ("sdl2" ,sdl2)
1431 ("sdl2-mixer" ,sdl2-mixer)))
1432 (home-page "https://github.com/bvschaik/julius")
1433 (synopsis "Re-implementation of Caesar III game engine")
1434 (description
1435 "Engine for Caesar III, a city-building real-time strategy game.
1436 Julius includes some UI enhancements while preserving the logic (including
1437 bugs) of the original game, so that saved games are compatible. This package
1438 does not include game data.")
1439 (license (list license:agpl3
1440 license:zlib)))) ; ext/tinyfiledialogs
1441
1442 (define-public augustus
1443 (package
1444 (inherit julius)
1445 (name "augustus")
1446 (version "2.0.1")
1447 (source
1448 (origin
1449 (method git-fetch)
1450 (uri (git-reference
1451 (url "https://github.com/Keriew/augustus")
1452 (commit (string-append "v" version))))
1453 (file-name (git-file-name name version))
1454 (sha256
1455 (base32 "0czazw8mc3fbvdazs2nzvgxd1dpzjc8z5fwiv89vv4nd7laz3jkj"))
1456 ;; Remove unused bundled libraries.
1457 (modules '((guix build utils)))
1458 (snippet
1459 '(begin
1460 (with-directory-excursion "ext"
1461 (for-each delete-file-recursively '("dirent" "png" "SDL2" "zlib")))
1462 #t))))
1463 (arguments
1464 ;; No tests. See https://github.com/Keriew/augustus/issues/82.
1465 `(#:tests? #f))
1466 (home-page "https://github.com/Keriew/augustus")
1467 (synopsis "Re-implementation of Caesar III game engine with gameplay changes")
1468 (description
1469 "Fork of Julius, an engine for the a city-building real-time strategy
1470 game Caesar III. Gameplay enhancements include:
1471
1472 @itemize
1473 @item roadblocks;
1474 @item market special orders;
1475 @item global labour pool;
1476 @item partial warehouse storage;
1477 @item increased game limits;
1478 @item zoom controls.
1479 @end itemize\n")))
1480
1481 (define-public meandmyshadow
1482 (package
1483 (name "meandmyshadow")
1484 (version "0.5a")
1485 (source (origin
1486 (method url-fetch)
1487 (uri (string-append "mirror://sourceforge/meandmyshadow/"
1488 version "/meandmyshadow-" version
1489 "-src.tar.gz"))
1490 (sha256
1491 (base32
1492 "0i98v6cgmpsxy7mbb0s2y6f6qq6mkwzk2nrv1nz39ncf948aky2h"))))
1493 (build-system cmake-build-system)
1494 (arguments
1495 `(#:tests? #f)) ; there are no tests
1496 (native-inputs
1497 `(("pkg-config" ,pkg-config)))
1498 (inputs
1499 `(("curl" ,curl)
1500 ("libarchive" ,libarchive)
1501 ("lua" ,lua)
1502 ("sdl" ,(sdl-union (list sdl2
1503 sdl2-image
1504 sdl2-mixer
1505 sdl2-ttf)))))
1506 (home-page "https://acmepjz.github.io/meandmyshadow/")
1507 (synopsis "Puzzle/platform game")
1508 (description "Me and My Shadow is a puzzle/platform game in which you try
1509 to reach the exit by solving puzzles. Spikes, moving blocks, fragile blocks
1510 and much more stand between you and the exit. Record your moves and let your
1511 shadow mimic them to reach blocks you couldn't reach alone.")
1512 (license license:gpl3+)))
1513
1514 (define-public opensurge
1515 (package
1516 (name "opensurge")
1517 (version "0.5.1.2")
1518 (source
1519 (origin
1520 (method git-fetch)
1521 (uri (git-reference
1522 (url "https://github.com/alemart/opensurge")
1523 (commit (string-append "v" version))))
1524 (file-name (git-file-name name version))
1525 (sha256
1526 (base32 "0ih7hlqjnp9rv0m4lqf7c0s1ai532way5i4pk45jq1gqm8325dbv"))))
1527 (build-system cmake-build-system)
1528 (arguments
1529 `(#:tests? #f ;there are no tests
1530 #:configure-flags
1531 (let* ((out (assoc-ref %outputs "out"))
1532 (share (string-append out "/share")))
1533 (list (string-append "-DCMAKE_INSTALL_PREFIX=" out "/bin")
1534 (string-append "-DGAME_DATADIR=" share "/" ,name)
1535 (string-append "-DDESKTOP_ENTRY_PATH=" share "/applications")
1536 (string-append "-DDESKTOP_ICON_PATH=" share "/pixmaps")
1537 (string-append "-DDESKTOP_METAINFO_PATH=" share "/metainfo")))
1538 #:phases
1539 (modify-phases %standard-phases
1540 (add-after 'unpack 'fix-xdg-open-path
1541 (lambda* (#:key inputs #:allow-other-keys)
1542 ;; Look for xdg-open in the store.
1543 (substitute* "src/core/web.c"
1544 (("/usr(/bin/xdg-open)" _ bin)
1545 (string-append (assoc-ref inputs "xdg-utils") bin)))
1546 #t))
1547 (add-after 'unpack 'unbundle-fonts
1548 (lambda* (#:key inputs #:allow-other-keys)
1549 ;; Replace bundled Roboto fonts with links to the store.
1550 (with-directory-excursion "fonts"
1551 (let ((roboto-dir (string-append
1552 (assoc-ref inputs "font-google-roboto")
1553 "/share/fonts/truetype/")))
1554 (for-each
1555 (lambda (font)
1556 (delete-file font)
1557 (symlink (string-append roboto-dir font) font))
1558 '("Roboto-Black.ttf" "Roboto-Bold.ttf" "Roboto-Medium.ttf")))
1559 #t))))))
1560 (inputs
1561 `(("allegro" ,allegro)
1562 ("font-google-roboto" ,font-google-roboto)
1563 ("surgescript" ,surgescript)
1564 ("xdg-utils" ,xdg-utils)))
1565 (home-page "https://opensurge2d.org")
1566 (synopsis "2D retro side-scrolling game")
1567 (description "@code{Open Surge} is a 2D retro side-scrolling platformer
1568 inspired by the Sonic games. The player runs at high speeds through each
1569 level while collecting items and avoiding obstacles. The game includes a
1570 built-in level editor.")
1571 (license
1572 ;; Code is under GPL 3+, assets are under various licenses.
1573 ;; See src/misc/credits.c for details.
1574 (list license:gpl3+
1575 license:cc0
1576 license:cc-by3.0
1577 license:cc-by-sa3.0
1578 license:expat
1579 license:public-domain
1580 license:silofl1.1))))
1581
1582 (define-public knights
1583 (package
1584 (name "knights")
1585 (version "025")
1586 (source (origin
1587 (method url-fetch)
1588 (uri (string-append "http://www.knightsgame.org.uk/files/knights_"
1589 version "_src.tar.gz"))
1590 (sha256
1591 (base32
1592 "18vp2ygvn0s0jz8rm585jqf6hjqkam1ximq81k0r9hpmfj7wb88f"))))
1593 (build-system gnu-build-system)
1594 (arguments
1595 '(#:make-flags
1596 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
1597 "CXXFLAGS=-lpthread")
1598 #:phases
1599 (modify-phases %standard-phases
1600 ;; No configure script.
1601 (delete 'configure))
1602 #:tests? #f)) ;; No check target.
1603 (inputs
1604 `(("boost" ,boost)
1605 ("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer)))
1606 ("freetype" ,freetype)
1607 ("fontconfig" ,fontconfig)
1608 ("curl" ,curl)))
1609 (native-inputs
1610 `(("pkg-config" ,pkg-config)))
1611 (home-page "http://www.knightsgame.org.uk/")
1612 (synopsis "Multiplayer dungeon game involving knights and quests")
1613 (description "Knights is a multiplayer game involving several knights who
1614 must run around a dungeon and complete various quests. Each game revolves
1615 around a quest – for example, you might have to find some items and carry them
1616 back to your starting point. This may sound easy, but as there are only
1617 enough items in the dungeon for one player to win, you may end up having to
1618 kill your opponents to get their stuff! Other quests involve escaping from
1619 the dungeon, fighting a duel to the death against the enemy knights, or
1620 destroying an ancient book using a special wand.")
1621 ;; This package includes modified sources of lua (X11), enet (Expat), and
1622 ;; guichan (BSD-3). The "Coercri" library is released under the Boost
1623 ;; license. The whole package is released under GPLv3+.
1624 (license license:gpl3+)))
1625
1626 (define-public gnome-chess
1627 (package
1628 (name "gnome-chess")
1629 (version "3.37.3")
1630 (source (origin
1631 (method url-fetch)
1632 (uri (string-append "mirror://gnome/sources/gnome-chess/"
1633 (version-major+minor version) "/"
1634 "gnome-chess-" version ".tar.xz"))
1635 (sha256
1636 (base32
1637 "09axf0q1mp13sv8cs0syfg8ahcd9r2qb26278r09j6s4njxmkfv4"))))
1638 (build-system meson-build-system)
1639 (arguments
1640 '(#:glib-or-gtk? #t
1641 #:phases
1642 (modify-phases %standard-phases
1643 (add-after 'unpack 'skip-gtk-update-icon-cache
1644 ;; Don't create 'icon-theme.cache'.
1645 (lambda _
1646 (substitute* "meson_post_install.py"
1647 (("gtk-update-icon-cache") "true"))
1648 #t)))))
1649 (inputs
1650 `(("gtk+" ,gtk+)
1651 ("librsvg" ,librsvg)))
1652 (native-inputs
1653 `(("gettext" ,gettext-minimal)
1654 ("glib:bin" ,glib "bin") ; for desktop-file-validate and appstream-util
1655 ("itstool" ,itstool)
1656 ("pkg-config" ,pkg-config)
1657 ("vala" ,vala)))
1658 (home-page "https://wiki.gnome.org/Apps/Chess")
1659 (synopsis "Chess board for GNOME")
1660 (description "GNOME Chess provides a 2D board for playing chess games
1661 against human or computer players. It supports loading and saving games in
1662 Portable Game Notation. To play against a computer, install a chess engine
1663 such as chess or stockfish.")
1664 (license license:gpl3+)))
1665
1666 (define-public gnubg
1667 (package
1668 (name "gnubg")
1669 (version "1.06.002")
1670 (source
1671 (origin
1672 (method url-fetch)
1673 (uri (string-append "mirror://gnu/gnubg/gnubg-release-"
1674 version "-sources.tar.gz"))
1675 (sha256
1676 (base32
1677 "11xwhcli1h12k6rnhhyq4jphzrhfik7i8ah3k32pqw803460n6yf"))))
1678 (build-system gnu-build-system)
1679 (inputs `(;; XXX: Build with an older Pango for 'pango_font_get_hb_font' and
1680 ;; 'pango_coverage_get_type'. Try removing this for versions > 1.06.002.
1681 ("pango" ,pango-1.42)
1682
1683 ("glib" ,glib)
1684 ("readline" ,readline)
1685 ("gtk+" ,gtk+-2)
1686 ("mesa" ,mesa)
1687 ("glu" ,glu)
1688 ("gtkglext" ,gtkglext)
1689 ("sqlite" ,sqlite)
1690 ("libcanberra" ,libcanberra)))
1691 (native-inputs `(("python-2" ,python-2)
1692 ("pkg-config" ,pkg-config)))
1693 (arguments
1694 `(#:configure-flags
1695 ;; SSE instructions are available on Intel systems only.
1696 (list ,@(if (any (cute string-prefix? <> (or (%current-target-system)
1697 (%current-system)))
1698 '("x86_64" "i686"))
1699 '("--enable-simd=sse2") ; prevent avx instructions
1700 '()))
1701 #:phases
1702 (modify-phases %standard-phases
1703 (add-after 'install 'install-desktop-file
1704 (lambda* (#:key outputs #:allow-other-keys)
1705 (let* ((out (assoc-ref outputs "out"))
1706 (apps (string-append out "/share/applications")))
1707 (mkdir-p apps)
1708 (with-output-to-file (string-append apps "/gnubg.desktop")
1709 (lambda _
1710 (format #t
1711 "[Desktop Entry]~@
1712 Name=GNU Backgammon~@
1713 Exec=~a/bin/gnubg -w~@
1714 Icon=gnubg~@
1715 Categories=Game;~@
1716 Terminal=false~@
1717 Type=Application~%"
1718 out))))
1719 #t)))))
1720 (home-page "https://www.gnu.org/software/gnubg/")
1721 (synopsis "Backgammon game")
1722 (description "The GNU backgammon application (also known as \"gnubg\") can
1723 be used for playing, analyzing and teaching the game. It has an advanced
1724 evaluation engine based on artificial neural networks suitable for both
1725 beginners and advanced players. In addition to a command-line interface, it
1726 also features an attractive, 3D representation of the playing board.")
1727 (license license:gpl3+)))
1728
1729 (define-public gnubik
1730 (package
1731 (name "gnubik")
1732 (version "2.4.3")
1733 (source
1734 (origin
1735 (method url-fetch)
1736 (uri (string-append "mirror://gnu/gnubik/gnubik-"
1737 version ".tar.gz"))
1738 (sha256
1739 (base32
1740 "1vlf924mq8hg93bsjj0rzvs0crc6psmlxyc6zn0fr7msnmpx6gib"))))
1741 (build-system gnu-build-system)
1742 (arguments
1743 '(#:phases (modify-phases %standard-phases
1744 (add-after 'unpack 'skip-gtk-update-icon-cache
1745 (lambda _
1746 ;; Do not attempt to run 'gtk-update-icon-cache', which is
1747 ;; unnecessary and causes a needless dependency on glib.
1748 (substitute* "Makefile.in"
1749 (("gtk-update-icon-cache")
1750 "true"))
1751 #t)))))
1752 (inputs `(("gtk+" ,gtk+-2)
1753 ("mesa" ,mesa)
1754 ("glu" ,glu)
1755 ("libx11" ,libx11)
1756 ("guile" ,guile-2.0)
1757 ("gtkglext" ,gtkglext)))
1758 (native-inputs `(("gettext" ,gettext-minimal)
1759 ("pkg-config" ,pkg-config)))
1760 (home-page "https://www.gnu.org/software/gnubik/")
1761 (synopsis "3d Rubik's cube game")
1762 (description
1763 "GNUbik is a puzzle game in which you must manipulate a cube to make
1764 each of its faces have a uniform color. The game is customizable, allowing
1765 you to set the size of the cube (the default is 3x3) or to change the colors.
1766 You may even apply photos to the faces instead of colors. The game is
1767 scriptable with Guile.")
1768 (license license:gpl3+)))
1769
1770 (define-public gnushogi
1771 (package
1772 (name "gnushogi")
1773 (version "1.4.2")
1774 (source
1775 (origin
1776 (method url-fetch)
1777 (uri (string-append "mirror://gnu/gnushogi/gnushogi-"
1778 version ".tar.gz"))
1779 (sha256
1780 (base32
1781 "0a9bsl2nbnb138lq0h14jfc5xvz7hpb2bcsj4mjn6g1hcsl4ik0y"))))
1782 (arguments `(#:tests? #f)) ;; No check target.
1783 (build-system gnu-build-system)
1784 (home-page "https://www.gnu.org/software/gnushogi/")
1785 (synopsis "The game of Shogi (Japanese chess)")
1786 (description "GNU Shogi is a program that plays the game Shogi (Japanese
1787 Chess). It is similar to standard chess but this variant is far more complicated.")
1788 (license license:gpl3+)))
1789
1790 (define-public ltris
1791 (package
1792 (name "ltris")
1793 (version "1.2.1")
1794 (source
1795 (origin
1796 (method url-fetch)
1797 (uri (string-append "mirror://sourceforge/lgames/ltris/"
1798 "ltris-" version ".tar.gz"))
1799 (sha256
1800 (base32 "0959vvxh5xnxzpdv7i67lpd2b6ghx69z65ldnclj1z6llyfzfs7q"))))
1801 (build-system gnu-build-system)
1802 (arguments
1803 '(;; The code in LTris uses traditional GNU semantics for inline functions
1804 #:configure-flags '("CFLAGS=-fgnu89-inline")
1805 #:phases
1806 (modify-phases %standard-phases
1807 (add-after 'set-paths 'set-sdl-paths
1808 (lambda* (#:key inputs #:allow-other-keys)
1809 (setenv "CPATH"
1810 (string-append (assoc-ref inputs "sdl-union")
1811 "/include/SDL:"
1812 (or (getenv "CPATH") "")))
1813 #t)))))
1814 (inputs
1815 `(("sdl-union" ,(sdl-union (list sdl sdl-mixer)))))
1816 (home-page "http://lgames.sourceforge.net/LTris/")
1817 (synopsis "Tetris clone based on the SDL library")
1818 (description
1819 "LTris is a tetris clone: differently shaped blocks are falling down the
1820 rectangular playing field and can be moved sideways or rotated by 90 degree
1821 units with the aim of building lines without gaps which then disappear (causing
1822 any block above the deleted line to fall down). LTris has three game modes: In
1823 Classic you play until the stack of blocks reaches the top of the playing field
1824 and no new blocks can enter. In Figures the playing field is reset to a new
1825 figure each level and later on tiles and lines suddenly appear. In Multiplayer
1826 up to three players (either human or CPU) compete with each other sending
1827 removed lines to all opponents. There is also a Demo mode in which you can
1828 watch your CPU playing while enjoying a cup of tea!")
1829 (license license:gpl2+)))
1830
1831 (define-public nethack
1832 (package
1833 (name "nethack")
1834 (version "3.6.6")
1835 (source
1836 (origin
1837 (method url-fetch)
1838 (uri
1839 (string-append "https://www.nethack.org/download/" version "/nethack-"
1840 (string-join (string-split version #\.) "") "-src.tgz"))
1841 (sha256
1842 (base32 "1liyckjp34j354qnxc1zn9730lh1p2dabrg1hap24z6xnqx0rpng"))))
1843 (native-inputs
1844 `(("bison" ,bison)
1845 ("flex" ,flex)))
1846 (inputs
1847 `(("ncurses" ,ncurses)
1848 ("less" ,less)))
1849 (build-system gnu-build-system)
1850 (arguments
1851 '(#:make-flags
1852 `(,(string-append "PREFIX=" (assoc-ref %outputs "out")))
1853 #:phases
1854 (modify-phases %standard-phases
1855 (add-before 'configure 'patch-paths
1856 (lambda _
1857 (substitute* "sys/unix/nethack.sh"
1858 (("^ *cd .*$") ""))
1859 (substitute* "sys/unix/Makefile.utl"
1860 (("^YACC *=.*$") "YACC = bison -y\n")
1861 (("^LEX *=.*$") "LEX = flex\n")
1862 (("^# CC = gcc") "CC = gcc"))
1863 (substitute* "sys/unix/hints/linux"
1864 (("/bin/gzip") (string-append
1865 (assoc-ref %build-inputs "gzip")
1866 "/bin/gzip"))
1867 (("^WINTTYLIB=.*") "WINTTYLIB=-lncurses"))
1868 (substitute* "include/config.h"
1869 (("^.*define CHDIR.*$") "")
1870 (("^/\\* *#*define *REPRODUCIBLE_BUILD *\\*/")
1871 ;; Honor SOURCE_DATE_EPOCH.
1872 "#define REPRODUCIBLE_BUILD"))
1873
1874 ;; Note: 'makedefs' rejects and ignores dates that are too old
1875 ;; or too new, so we must choose something reasonable here.
1876 (setenv "SOURCE_DATE_EPOCH" "1531865062")
1877
1878 (substitute* "sys/unix/Makefile.src"
1879 (("^# CC = gcc") "CC = gcc"))
1880 #t))
1881 (replace 'configure
1882 (lambda _
1883 (let ((bash (string-append
1884 (assoc-ref %build-inputs "bash")
1885 "/bin/bash")))
1886 (with-directory-excursion "sys/unix"
1887 (substitute* "setup.sh" (("/bin/sh") bash))
1888 (invoke bash "setup.sh" "hints/linux"))
1889 #t)))
1890 (add-after 'install 'fixup-paths
1891 (lambda _
1892 (let* ((output (assoc-ref %outputs "out"))
1893 (nethack-script (string-append output "/bin/nethack")))
1894 (mkdir-p (string-append output "/games/lib/nethackuserdir"))
1895 (for-each
1896 (lambda (file)
1897 (rename-file
1898 (string-append output "/games/lib/nethackdir/" file)
1899 (string-append output "/games/lib/nethackuserdir/"
1900 file)))
1901 '("xlogfile" "logfile" "perm" "record" "save"))
1902 (mkdir-p (string-append output "/bin"))
1903 (call-with-output-file nethack-script
1904 (lambda (port)
1905 (format port "#!~a/bin/sh
1906 PATH=~a:$PATH
1907 if [ ! -d ~~/.config/nethack ]; then
1908 mkdir -p ~~/.config/nethack
1909 cp -r ~a/games/lib/nethackuserdir/* ~~/.config/nethack
1910 chmod -R +w ~~/.config/nethack
1911 fi
1912
1913 RUNDIR=$(mktemp -d)
1914
1915 cleanup() {
1916 rm -rf $RUNDIR
1917 }
1918 trap cleanup EXIT
1919
1920 cd $RUNDIR
1921 for i in ~~/.config/nethack/*; do
1922 ln -s $i $(basename $i)
1923 done
1924 for i in ~a/games/lib/nethackdir/*; do
1925 ln -s $i $(basename $i)
1926 done
1927 ~a/games/nethack"
1928 (assoc-ref %build-inputs "bash")
1929 (list->search-path-as-string
1930 (list
1931 (string-append
1932 (assoc-ref %build-inputs "coreutils") "/bin")
1933 (string-append
1934 (assoc-ref %build-inputs "less") "/bin"))
1935 ":")
1936 output
1937 output
1938 output)))
1939 (chmod nethack-script #o555)
1940 #t)))
1941 (delete 'check))))
1942 (home-page "https://nethack.org")
1943 (synopsis "Classic dungeon crawl game")
1944 (description "NetHack is a single player dungeon exploration game that runs
1945 on a wide variety of computer systems, with a variety of graphical and text
1946 interfaces all using the same game engine. Unlike many other Dungeons &
1947 Dragons-inspired games, the emphasis in NetHack is on discovering the detail of
1948 the dungeon and not simply killing everything in sight - in fact, killing
1949 everything in sight is a good way to die quickly. Each game presents a
1950 different landscape - the random number generator provides an essentially
1951 unlimited number of variations of the dungeon and its denizens to be discovered
1952 by the player in one of a number of characters: you can pick your race, your
1953 role, and your gender.")
1954 (license
1955 (license:fsdg-compatible
1956 "https://nethack.org/common/license.html"))))
1957
1958 (define-public pipewalker
1959 (package
1960 (name "pipewalker")
1961 (version "0.9.4")
1962 (source
1963 (origin
1964 (method url-fetch)
1965 (uri (string-append "mirror://sourceforge/pipewalker/pipewalker/"
1966 version "/pipewalker-" version ".tar.gz"))
1967 (sha256
1968 (base32 "1x46wgk0s55562pd96cxagxkn6wpgglq779f9b64ff1k3xzp3myn"))))
1969 (build-system gnu-build-system)
1970 (arguments
1971 `(#:configure-flags
1972 (list (string-append "--docdir=" (assoc-ref %outputs "out")
1973 "/share/doc/" ,name "-" ,version))
1974 #:phases
1975 (modify-phases %standard-phases
1976 (add-after 'configure 'patch-docdir
1977 ;; Makefile.in ignores configure's ‘--docdir=...’ option. Fix that.
1978 (lambda _
1979 (substitute* "Makefile"
1980 (("(pkgdocdatadir = ).*" _ assignment)
1981 (string-append assignment "$(docdir)\n")))
1982 #t)))))
1983 (inputs
1984 `(("libpng" ,libpng)
1985 ("mesa" ,mesa)
1986 ("sdl" ,sdl)))
1987 (home-page "http://pipewalker.sourceforge.net/")
1988 (synopsis "Logical tile puzzle")
1989 (description
1990 "PipeWalker is a simple puzzle game with many diffent themes: connect all
1991 computers to one network server, bring water from a source to the taps, etc.
1992 The underlying mechanism is always the same: you must turn each tile in the
1993 grid in the right direction to combine all components into a single circuit.
1994 Every puzzle has a complete solution, although there may be more than one.")
1995 (license license:gpl3+)))
1996
1997 (define-public prboom-plus
1998 (package
1999 (name "prboom-plus")
2000 (version "2.5.1.4")
2001 (source (origin
2002 (method url-fetch)
2003 (uri (string-append "mirror://sourceforge/prboom-plus/prboom-plus/"
2004 version "/prboom-plus-" version ".tar.gz"))
2005 (sha256
2006 (base32 "151v6nign86m1a2vqz27krsccpc9m4d1jax4y43v2fa82wfj9qp0"))
2007 (modules '((guix build utils)))
2008 (snippet
2009 '(begin
2010 (substitute* "src/version.c"
2011 (("__DATE__") "")
2012 (("__TIME__") ""))
2013 #t))))
2014 (build-system gnu-build-system)
2015 (arguments
2016 '(#:configure-flags '("--disable-cpu-opt")
2017 #:make-flags `(,(string-append "gamesdir="
2018 (assoc-ref %outputs "out") "/bin"))
2019 #:phases
2020 (modify-phases %standard-phases
2021 (add-after 'set-paths 'set-sdl'paths
2022 (lambda* (#:key inputs #:allow-other-keys)
2023 (setenv "CPATH"
2024 (string-append (assoc-ref inputs "sdl-union")
2025 "/include/SDL:"
2026 (or (getenv "CPATH") "")))
2027 #t)))))
2028 (inputs
2029 `(("fluidsynth" ,fluidsynth)
2030 ("glu" ,glu)
2031 ("libmad" ,libmad)
2032 ("libpng" ,libpng)
2033 ("libvorbis" ,libvorbis)
2034 ("pcre" ,pcre)
2035 ("portmidi" ,portmidi)
2036 ("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer sdl-net)))))
2037 (home-page "http://prboom-plus.sourceforge.net/")
2038 (synopsis "Version of the classic 3D shoot'em'up game Doom")
2039 (description
2040 "PrBoom+ is a Doom source port developed from the original PrBoom project.")
2041 (license license:gpl2+)))
2042
2043 (define-public retux
2044 (let ((release "1.4.1")
2045 (revision 1))
2046 (package
2047 (name "retux")
2048 (version (if (zero? revision)
2049 release
2050 (string-append release "-"
2051 (number->string revision))))
2052 (source (origin
2053 (method url-fetch)
2054 (uri (string-append "https://github.com/retux-game/retux/"
2055 "releases/download/v"
2056 version "/retux-"
2057 release "-src.tar.gz"))
2058 (sha256
2059 (base32
2060 "1vrldg2qh2gqfswj7vkpc589ldrrjd903j6cnfdik9zh0jhlq4h2"))))
2061 (build-system python-build-system)
2062 (arguments
2063 `(#:tests? #f ; no check target
2064 #:phases
2065 (modify-phases %standard-phases
2066 ;; no setup.py script
2067 (delete 'build)
2068 (replace 'install
2069 (lambda* (#:key outputs #:allow-other-keys)
2070 (let* ((out (assoc-ref outputs "out"))
2071 (bin (string-append out "/bin"))
2072 (data (string-append out "/share/retux")))
2073 (mkdir-p bin)
2074
2075 (substitute* "retux.py"
2076 ;; Use the correct data directory.
2077 (("os\\.path\\.join\\(os\\.path\\.dirname\\(__file__\\), \"data\"\\),")
2078 (string-append "\"" data "\",")))
2079
2080 (copy-file "retux.py" (string-append bin "/retux"))
2081 (copy-recursively "data" data)
2082 #t))))))
2083 (inputs
2084 `(("python-sge-pygame" ,python-sge-pygame)
2085 ("python-six" ,python-six)
2086 ("python-xsge" ,python-xsge)))
2087 (home-page "https://retux-game.github.io/")
2088 (synopsis "Action platformer game")
2089 (description
2090 "ReTux is an action platformer loosely inspired by the Mario games,
2091 utilizing the art assets from the @code{SuperTux} project.")
2092 ;; GPL version 3 or later is the license for the code and some art.
2093 ;; The rest of the licenses are for the art exclusively, as listed in
2094 ;; data/LICENSES.
2095 (license (list license:cc0
2096 license:cc-by3.0
2097 license:cc-by-sa3.0
2098 license:cc-by-sa4.0
2099 license:gpl2+
2100 license:gpl3+)))))
2101
2102 (define-public roguebox-adventures
2103 (package
2104 (name "roguebox-adventures")
2105 (version "3.0.1")
2106 (source
2107 (origin
2108 (method url-fetch)
2109 (uri (string-append
2110 "http://download.tuxfamily.org/rba/RogueBoxAdventures_v"
2111 (string-join (string-split version #\.) "_") "_Source.zip"))
2112 (file-name (string-append name "-" version ".zip"))
2113 (sha256
2114 (base32
2115 "05zd03s5w9kcpklfgcggbaa6rwf59nm0q9vcj6gh9v2lh402k067"))))
2116 (build-system python-build-system)
2117 (arguments
2118 `(#:tests? #f ; no check target
2119 #:phases
2120 (modify-phases %standard-phases
2121 (replace 'unpack
2122 (lambda* (#:key source #:allow-other-keys)
2123 (and (invoke "unzip" source)
2124 ;; The actual source is buried a few directories deep.
2125 (chdir (string-append "RogueBoxAdventures_v"
2126 (string-join
2127 (string-split ,version #\.) "_")
2128 "_Source")))))
2129 ;; no setup.py script
2130 (replace 'build
2131 (lambda* (#:key outputs #:allow-other-keys)
2132 (let* ((out (assoc-ref outputs "out"))
2133 (data (string-append
2134 out "/share/games/roguebox-adventures")))
2135 ;; Use the correct data directory.
2136 (substitute* '("main.py" "LIB/getch.py" "LIB/getch_gcwz.py")
2137 (("basic_path + os\\.sep + 'DATA'")
2138 (string-append "'" data "'"))
2139 (("^basic_path.*$")
2140 (string-append "basic_path ='" data "'\n")))
2141 (substitute* "LIB/dialog.py"
2142 (("d_path = os\\.path\\.dirname\\(.*\\)\\)")
2143 (string-append "d_path = '" data "'")))
2144 (substitute* "LIB/gra_files.py"
2145 (("basic_path = b_path\\.replace\\('/LIB',''\\)")
2146 (string-append "basic_path ='" data "'\n")))
2147
2148 ;; The game must save in the user's home directory because
2149 ;; the store is read-only.
2150 (substitute* "main.py"
2151 (("home_save = False") "home_save = True")
2152 (("'icon_small.png'")
2153 (string-append "'" data "/icon_small.png'"))))
2154 #t))
2155 (replace 'install
2156 (lambda* (#:key outputs #:allow-other-keys)
2157 (let* ((out (assoc-ref outputs "out"))
2158 (bin (string-append out "/bin"))
2159 (roguebox-adventures
2160 (string-append bin "/roguebox-adventures"))
2161 (data (string-append
2162 out "/share/games/roguebox-adventures"))
2163 (lib (string-append data "/LIB"))
2164 (doc (string-append
2165 out "/share/doc/roguebox-adventures")))
2166 (mkdir-p bin)
2167 (mkdir-p doc)
2168
2169 (for-each (lambda (file)
2170 (copy-recursively file
2171 (string-append data "/" file)))
2172 '("AUDIO" "FONT" "GRAPHIC" "LIB" "LICENSE"
2173 "icon_big.png" "icon_small.png"))
2174 (for-each (lambda (file)
2175 (chmod file #o555)
2176 (install-file file lib))
2177 '("main.py" "run.py"))
2178
2179 (copy-recursively "DOC" doc)
2180
2181 (call-with-output-file
2182 roguebox-adventures
2183 (lambda (p)
2184 (format p "\
2185 #!~a
2186 export PYTHONPATH=~a/LIB:~a
2187 exec -a \"~a\" ~a \"$@\"\n"
2188 (which "bash") data (getenv "PYTHONPATH")
2189 (which "python3")
2190 (string-append lib "/main.py"))))
2191 (chmod roguebox-adventures #o555))
2192 #t)))))
2193 (native-inputs
2194 `(("unzip" ,unzip)))
2195 (inputs
2196 `(("python-pygame" ,python-pygame)
2197 ("python-tmx" ,python-tmx)))
2198 (home-page "https://rogueboxadventures.tuxfamily.org")
2199 (synopsis "A classical roguelike/sandbox game")
2200 (description
2201 "RogueBox Adventures is a graphical roguelike with strong influences
2202 from sandbox games like Minecraft or Terraria. The main idea of RogueBox
2203 Adventures is to offer the player a kind of roguelike toy-world. This world
2204 can be explored and changed freely.")
2205 ;; The GPL3+ is for code, the rest are for art.
2206 (license (list license:cc0
2207 license:cc-by3.0
2208 license:gpl3+
2209 license:silofl1.1))))
2210
2211 (define-public seahorse-adventures
2212 (package
2213 (name "seahorse-adventures")
2214 (version "1.3")
2215 (source
2216 (origin
2217 (method git-fetch)
2218 (uri (git-reference
2219 (url "https://github.com/dulsi/seahorse-adventures")
2220 (commit (string-append "release-" version))))
2221 (file-name (git-file-name name version))
2222 (sha256
2223 (base32 "0m53jh2gchzr7rs35hml6lbvc5kb5hp229wlfqa09098b7hhl15a"))
2224 (modules '((guix build utils)
2225 (ice-9 ftw)
2226 (srfi srfi-1)))
2227 ;; Remove non-free (non-commercial) font.
2228 (snippet
2229 `(begin
2230 (for-each delete-file (find-files "data/fonts" "."))
2231 #t))))
2232 (build-system python-build-system)
2233 (arguments
2234 `(#:tests? #f ;no test
2235 #:phases
2236 (modify-phases %standard-phases
2237 (delete 'build) ;pure Python
2238 (replace 'install ;no install script
2239 (lambda* (#:key outputs #:allow-other-keys)
2240 (let* ((out (assoc-ref outputs "out"))
2241 (bin (string-append out "/bin"))
2242 (share (string-append out "/share"))
2243 (applications (string-append share "/applications"))
2244 (data (string-append share "/seahorse-adventures")))
2245 ;; Install data.
2246 (for-each (lambda (f)
2247 (chmod f #o555)
2248 (install-file f data))
2249 '("leveledit.py" "run_game.py" "tileedit.py"))
2250 (for-each (lambda (dir)
2251 (let ((target (string-append data "/" dir)))
2252 (mkdir-p target)
2253 (copy-recursively dir target)))
2254 '("data" "lib"))
2255 ;; Create executable.
2256 (mkdir-p bin)
2257 (let ((executable (string-append bin "/seahorse-adventures")))
2258 (call-with-output-file executable
2259 (lambda (p)
2260 (format p
2261 "#!~a~@
2262 export PYTHONPATH=~a:~a~@
2263 exec -a \"~a\" ~a \"$@\"~%"
2264 (which "bash") data (getenv "PYTHONPATH")
2265 (which "python3")
2266 (string-append data "/run_game.py"))))
2267 (chmod executable #o555))
2268 ;; Add desktop file.
2269 (mkdir-p applications)
2270 (make-desktop-entry-file
2271 (string-append applications "/seahorse-adventures.desktop")
2272 #:name "Seahorse Adventures"
2273 #:comment
2274 '((#f "Help Barbie the seahorse float on bubbles to the moon"))
2275 #:exec ,name
2276 #:icon ,name
2277 #:categories '("Game" "ActionGame")
2278 #:keywords '("game" "retro" "platform"))
2279 ;; Add icons.
2280 (for-each
2281 (lambda (size)
2282 (let ((dir (string-append share "/icons/hicolor/"
2283 size "x" size "/apps")))
2284 (mkdir-p dir)
2285 (copy-file
2286 (string-append "icon" size ".png")
2287 (string-append dir "/searhorse-adventures.png"))))
2288 '("32" "64" "128")))
2289 #t))
2290 (add-after 'install 'unbundle-fonts
2291 ;; Unbundle Bitstream Vera font and replace deleted one.
2292 (lambda* (#:key outputs inputs #:allow-other-keys)
2293 (let* ((out (assoc-ref outputs "out"))
2294 (data (string-append out "/share/seahorse-adventures"))
2295 (vera (string-append (assoc-ref inputs "font-bitstream-vera")
2296 "/share/fonts/truetype/Vera.ttf")))
2297 (let ((themes-dir (string-append data "/data/themes/")))
2298 (for-each
2299 (lambda (theme)
2300 (let ((target (string-append themes-dir theme "/Vera.ttf")))
2301 (delete-file target)
2302 (symlink vera target)))
2303 '("default" "gray")))
2304 (symlink vera (string-append data "/data/fonts/04B_20__.TTF"))
2305 (substitute* (string-append data "/lib/main.py")
2306 (("f_scale = 0.35") "f_scale = 0.47")))
2307 #t)))))
2308 (inputs
2309 `(("font-bitstream-vera" ,font-bitstream-vera)
2310 ("python-pygame" ,python-pygame)))
2311 (home-page "http://www.imitationpickles.org/barbie/")
2312 (synopsis "Help Barbie the seahorse float on bubbles to the moon")
2313 (description
2314 "Barbie Seahorse Adventures is a retro style platform arcade game.
2315 You are Barbie the seahorse who travels through the jungle, up to the
2316 volcano until you float on bubbles to the moon. On the way to your
2317 final destination you will encounter various enemies, servants of the
2318 evil overlord who has stolen the galaxy crystal. Avoid getting hit
2319 and defeat them with your bubbles!")
2320 ;; GPL2+ is for code, CC0 is for art.
2321 (license (list license:gpl2+ license:cc0))))
2322
2323 (define-public solarus
2324 (package
2325 (name "solarus")
2326 ;; XXX: When updating this package, please also update hash in
2327 ;; `solarus-quest-editor' below.
2328 (version "1.6.5")
2329 (source
2330 (origin
2331 (method git-fetch)
2332 (uri (git-reference
2333 (url "https://gitlab.com/solarus-games/solarus")
2334 (commit (string-append "v" version))))
2335 (file-name (git-file-name name version))
2336 (sha256
2337 (base32 "0ny9dgqphjv2l39rff2621hnrzpf8qin8vmnv7jdz20azjk4m8id"))))
2338 (build-system cmake-build-system)
2339 (arguments
2340 `(#:phases
2341 (modify-phases %standard-phases
2342 (add-after 'unpack 'disable-failing-tests
2343 ;; The following tests fail reporting a missing "/dev/dri"
2344 ;; file.
2345 (lambda _
2346 (substitute* "tests/cmake/AddTestMaps.cmake"
2347 ((".*1200_create_shader_from_source.*" all)
2348 (string-append "#" all))
2349 ((".*1210_shader_scaling_factor.*" all)
2350 (string-append "#" all)))
2351 #t))
2352 (add-before 'check 'set-home
2353 ;; Tests fail without setting the following environment
2354 ;; variables.
2355 (lambda _
2356 (setenv "HOME" (getcwd))
2357 (setenv "XDG_RUNTIME_DIR" (getcwd))
2358 #t)))))
2359 (native-inputs
2360 `(("pkg-config" ,pkg-config)
2361 ("qttools" ,qttools)))
2362 (inputs
2363 `(("glm" ,glm)
2364 ("libmodplug" ,libmodplug)
2365 ("libogg" ,libogg)
2366 ("libvorbis" ,libvorbis)
2367 ("luajit" ,luajit)
2368 ("openal" ,openal)
2369 ("physfs" ,physfs)
2370 ("qtbase" ,qtbase)
2371 ("sdl2" ,(sdl-union (list sdl2 sdl2-image sdl2-ttf)))))
2372 (home-page "https://www.solarus-games.org/")
2373 (synopsis "Lightweight game engine for Action-RPGs")
2374 (description
2375 "Solarus is a 2D game engine written in C++, that can run games
2376 scripted in Lua. It has been designed with 16-bit classic Action-RPGs
2377 in mind.")
2378 ;; The source code is licensed under the terms of GPL-3.0.
2379 ;; Resources are licensed under the terms of CC-BY-SA-3.0 and
2380 ;; CC-BY-SA 4.0.
2381 (license (list license:gpl3 license:cc-by-sa3.0 license:cc-by-sa4.0))))
2382
2383 (define-public solarus-quest-editor
2384 (package
2385 (inherit solarus)
2386 (name "solarus-quest-editor")
2387 (version (package-version solarus))
2388 (source
2389 (origin
2390 (method git-fetch)
2391 (uri (git-reference
2392 (url "https://gitlab.com/solarus-games/solarus-quest-editor")
2393 (commit (string-append "v" version))))
2394 (file-name (git-file-name name version))
2395 (sha256
2396 (base32 "1pvjgd4faxii5sskw1h55lw90hlbazhwni8nxyywzrmkjbq7irm0"))))
2397 (arguments
2398 `(#:tests? #false)) ; no test suite
2399 (inputs
2400 `(("solarus" ,solarus)
2401 ,@(package-inputs solarus)))
2402 (synopsis "Create and modify quests for the Solarus engine")
2403 (description
2404 "Solarus Quest Editor is a graphical user interface to create and
2405 modify quests for the Solarus engine.")))
2406
2407 (define-public superstarfighter
2408 (package
2409 (name "superstarfighter")
2410 (version "0.6.4")
2411 (source
2412 (origin
2413 (method git-fetch)
2414 (uri (git-reference
2415 (url "https://github.com/notapixelstudio/superstarfighter")
2416 (commit (string-append "v" version))))
2417 (file-name (git-file-name name version))
2418 (sha256
2419 (base32 "1fly63yf5ls1xwm15if4lxwy67wi84k4gvjllljpykrl18vw2y0y"))))
2420 (build-system gnu-build-system)
2421 (arguments
2422 `(#:tests? #f ;there are no tests
2423 #:phases
2424 (modify-phases %standard-phases
2425 (replace 'configure
2426 (lambda _
2427 (chdir "godot")
2428 (setenv "HOME" (getcwd))
2429 (with-output-to-file "export_presets.cfg"
2430 (lambda ()
2431 (display
2432 "[preset.0]
2433 name=\"Guix\"
2434 platform=\"Linux/X11\"
2435 runnable=true
2436 [preset.0.options]")))
2437 #t))
2438 (replace 'build
2439 (lambda _
2440 (let ((godot (assoc-ref %build-inputs "godot-headless")))
2441 (invoke (string-append godot "/bin/godot_server")
2442 "--export-pack" "Guix"
2443 "superstarfighter.pck" "project.godot"))
2444 #t))
2445 (replace 'install
2446 (lambda* (#:key inputs outputs #:allow-other-keys)
2447 (let* ((out (assoc-ref outputs "out"))
2448 (bin (string-append out "/bin"))
2449 (share (string-append out "/share"))
2450 (data (string-append share "/superstarfighter"))
2451 (icons (string-append share "/icons/hicolor/256x256/apps")))
2452 (install-file "superstarfighter.pck" data)
2453 (mkdir-p bin)
2454 (call-with-output-file (string-append bin "/superstarfighter")
2455 (lambda (port)
2456 (format port
2457 "#!/bin/sh~@
2458 exec ~a/bin/godot --main-pack ~a/superstarfighter.pck~%"
2459 (assoc-ref inputs "godot")
2460 data)
2461 (chmod port #o755)))
2462 (mkdir-p icons)
2463 (copy-file "icon.png" (string-append icons "/" ,name ".png"))
2464 (make-desktop-entry-file
2465 (string-append share "/applications/" ,name ".desktop")
2466 #:name "SuperStarfighter"
2467 #:comment "Fast-paced arcade combat game"
2468 #:exec ,name
2469 #:icon ,name
2470 #:categories '("Game" "ArcadeGame")))
2471 #t)))))
2472 (native-inputs
2473 `(("godot-headless" ,godot "headless")))
2474 (inputs
2475 `(("godot" ,godot)))
2476 (home-page "https://notapixel.itch.io/superstarfighter")
2477 (synopsis "Fast-paced local multiplayer arcade game")
2478 (description "In SuperStarfighter, up to four local players compete in a
2479 2D arena with fast-moving ships and missiles. Different game types are
2480 available, as well as a single-player mode with AI-controlled ships.")
2481 (license (list license:expat ; game
2482 license:silofl1.1)))) ; fonts
2483
2484 (define %ufoai-commit "a542a87a891f96b1ab2c44d35b2f6f16859a5019")
2485 (define %ufoai-revision "0")
2486 (define %ufoai-version (git-version "2.6.0_dev" %ufoai-revision %ufoai-commit))
2487 (define ufoai-source
2488 (origin
2489 (method git-fetch)
2490 (uri (git-reference
2491 (url "git://git.code.sf.net/p/ufoai/code") ;HTTPS fails mid-clone
2492 (commit %ufoai-commit)))
2493 (file-name (string-append "ufoai-" %ufoai-version "-checkout"))
2494 (sha256
2495 (base32
2496 "024s7b9rcg7iw8i2p72gwnvabk23ljlq0nldws0y4b6hpwzyn1wz"))
2497 (modules '((guix build utils)
2498 (srfi srfi-1)
2499 (ice-9 ftw)))
2500 (snippet
2501 '(begin
2502 ;; Delete ~32MiB of bundled dependencies.
2503 (with-directory-excursion "src/libs"
2504 (for-each delete-file-recursively
2505 (lset-difference equal? (scandir ".")
2506 '("." ".." "gtest" "mumble"))))
2507
2508 ;; Use relative path to Lua headers.
2509 (substitute* "src/common/scripts_lua.h"
2510 (("\\.\\./libs/lua/") ""))
2511
2512 ;; Adjust Makefile targets to not depend on 'ufo2map', since we build
2513 ;; it as a separate package. This way we don't need to make the same
2514 ;; adjustments for 'ufoai-data' and 'ufoai' below.
2515 (substitute* "build/maps.mk"
2516 (("\\./ufo2map") "ufo2map")
2517 (("maps: ufo2map") "maps:"))
2518 (substitute* "build/modules/testall.mk"
2519 (("testall: ufo2map") "testall:"))
2520
2521 ;; If no cURL headers are found, the build system will try to include
2522 ;; the bundled version, even when not required. Prevent that.
2523 (substitute* "build/default.mk"
2524 (("^include src/libs/curl/lib/Makefile\\.inc")
2525 ""))
2526
2527 ;; While here, improve reproducibility by adding the '-X' flag to the
2528 ;; zip command used to create the map files, in order to prevent time
2529 ;; stamps from making it into the generated archives.
2530 (substitute* "build/data.mk"
2531 (("\\$\\(call ZIP\\)")
2532 "$(call ZIP) -X"))
2533 #t))))
2534
2535 (define-public trigger-rally
2536 (package
2537 (name "trigger-rally")
2538 (version "0.6.6.1")
2539 (source
2540 (origin
2541 (method url-fetch)
2542 (uri (string-append "mirror://sourceforge/trigger-rally/"
2543 "trigger-" version "/"
2544 "trigger-rally-" version ".tar.gz"))
2545 (sha256
2546 (base32
2547 "016bc2hczqscfmngacim870hjcsmwl8r3aq8x03vpf22s49nw23z"))))
2548 (build-system gnu-build-system)
2549 (inputs
2550 `(("freealut" ,freealut)
2551 ("glew" ,glew)
2552 ("glu" ,glu)
2553 ("mesa" ,mesa)
2554 ("openal" ,openal)
2555 ("physfs" ,physfs)
2556 ("sdl" ,(sdl-union (list sdl2 sdl2-image)))
2557 ("tinyxml2" ,tinyxml2)))
2558 (arguments
2559 `(#:make-flags (list (string-append "prefix=" %output)
2560 "bindir=$(prefix)/bin"
2561 "datadir=$(datarootdir)"
2562 "OPTIMS=-Ofast")
2563 #:tests? #f ; No tests present
2564 #:phases
2565 (modify-phases %standard-phases
2566 (delete 'configure)
2567 (add-before 'build 'cd-src
2568 (lambda _ (chdir "src")))
2569 (add-before 'build 'remove-timestamps
2570 (lambda _
2571 (substitute* (list "Trigger/menu.cpp"
2572 "PEngine/app.cpp")
2573 ((".*__DATE__.*") ""))))
2574 (add-before 'build 'make-verbose
2575 (lambda _
2576 (substitute* "GNUmakefile"
2577 (("@\\$\\(CXX\\)") "$(CXX)"))))
2578 (add-after 'build 'set-data-path
2579 (lambda* (#:key outputs #:allow-other-keys)
2580 (let ((out (assoc-ref outputs "out")))
2581 (substitute* "../bin/trigger-rally.config.defs"
2582 (("<data path=\"C:[^\"]*\"")
2583 (string-append "<data path=\"" out "/share/trigger-rally\""))))))
2584 (add-after 'install 'create-desktop-entry
2585 (lambda* (#:key outputs #:allow-other-keys)
2586 (let* ((out (assoc-ref outputs "out"))
2587 (apps (string-append out "/share/applications")))
2588 (mkdir-p apps)
2589 (with-output-to-file
2590 (string-append apps "/trigger-rally.desktop")
2591 (lambda ()
2592 (format #t ; Borrowed from Debian package
2593 "[Desktop Entry]~@
2594 Name=Trigger Rally~@
2595 Icon=trigger-rally~@
2596 Comment=3D rally racing car game~@
2597 Comment[de]=3D Rally-Autorennen~@
2598 Comment[fr_FR]=un jeu de rally en 3D~@
2599 Comment[ro_RO]=Un joc în 3D cu curse de raliu~@
2600 Exec=~a/bin/trigger-rally~@
2601 Terminal=false~@
2602 StartupNotify=false~@
2603 Type=Application~@
2604 TryExec=~:*~a/bin/trigger-rally~@
2605 Categories=Game;ArcadeGame;~@
2606 Keywords=racing;tracks;~@
2607 Keywords[de]=Rennstrecke;~%"
2608 out)))))))))
2609 (home-page "http://trigger-rally.sourceforge.net")
2610 (synopsis "Fast-paced single-player racing game")
2611 (description "Trigger-rally is a 3D rally simulation with great physics
2612 for drifting on over 200 maps. Different terrain materials like dirt,
2613 asphalt, sand, ice, etc. and various weather, light, and fog conditions give
2614 this rally simulation the edge over many other games. You need to make it
2615 through the maps in often tight time limits and can further improve by beating
2616 the recorded high scores. All attached single races must be finished in time
2617 in order to win an event, unlocking additional events and cars. Most maps are
2618 equipped with spoken co-driver notes and co-driver icons.")
2619 (license (list license:cc0 ;textures and audio in data.zip
2620 license:gpl2+))))
2621
2622 (define-public ufo2map
2623 (package
2624 (name "ufo2map")
2625 (version %ufoai-version)
2626 (home-page "https://ufoai.org/")
2627 (source ufoai-source)
2628 (build-system gnu-build-system)
2629 (arguments
2630 '(#:configure-flags '("CC=gcc" "CXX=g++"
2631 "--enable-release"
2632 "--enable-ufo2map"
2633 "--disable-uforadiant"
2634 "--disable-cgame-campaign"
2635 "--disable-cgame-multiplayer"
2636 "--disable-cgame-skirmish"
2637 "--disable-game"
2638 "--disable-memory"
2639 "--disable-testall"
2640 "--disable-ufoded"
2641 "--disable-ufo"
2642 "--disable-ufomodel"
2643 "--disable-ufoslicer")
2644 #:tests? #f ;no tests
2645 #:phases (modify-phases %standard-phases
2646 (replace 'configure
2647 (lambda* (#:key (configure-flags '()) #:allow-other-keys)
2648 ;; The home-made configure script does not understand
2649 ;; some of the default flags of gnu-build-system.
2650 (apply invoke "./configure" configure-flags)))
2651 (replace 'install
2652 (lambda* (#:key outputs #:allow-other-keys)
2653 (let ((out (assoc-ref outputs "out")))
2654 (install-file "ufo2map" (string-append out "/bin"))
2655 (install-file "debian/ufo2map.6"
2656 (string-append out "/share/man/man6"))
2657 #t))))))
2658 (native-inputs
2659 `(("pkg-config" ,pkg-config)))
2660 (inputs
2661 `(("libjpeg" ,libjpeg-turbo)
2662 ("libpng" ,libpng)
2663 ("lua" ,lua-5.1)
2664 ("sdl-union" ,(sdl-union (list sdl2 sdl2-mixer sdl2-ttf)))))
2665 (synopsis "UFO: AI map generator")
2666 (description
2667 "This package provides @command{ufo2map}, a program used to generate
2668 maps for the UFO: Alien Invasion strategy game.")
2669 (license license:gpl2+)))
2670
2671 (define ufoai-data
2672 (package
2673 (name "ufoai-data")
2674 (version %ufoai-version)
2675 (home-page "https://ufoai.org/")
2676 (source ufoai-source)
2677 (build-system gnu-build-system)
2678 (arguments
2679 '(#:tests? #f
2680 #:configure-flags '("CC=gcc" "CXX=g++")
2681 #:phases (modify-phases %standard-phases
2682 (replace 'configure
2683 (lambda* (#:key outputs (configure-flags '()) #:allow-other-keys)
2684 (apply invoke "./configure" configure-flags)))
2685 (replace 'build
2686 (lambda* (#:key (parallel-build? #t) #:allow-other-keys)
2687 (invoke "make"
2688 "-j" (if parallel-build?
2689 (number->string (parallel-job-count))
2690 "1")
2691 "maps")))
2692 (add-after 'build 'pack
2693 (lambda _
2694 (invoke "make" "pk3")))
2695 (replace 'install
2696 (lambda* (#:key outputs #:allow-other-keys)
2697 (let ((out (assoc-ref outputs "out")))
2698 (for-each (lambda (file)
2699 (install-file file out))
2700 (find-files "base" "\\.pk3$"))
2701 #t))))))
2702 (native-inputs
2703 `(("python" ,python-2)
2704 ("ufo2map" ,ufo2map)
2705 ("which" ,which)
2706 ("zip" ,zip)))
2707 (synopsis "UFO: AI data files")
2708 (description
2709 "This package contains maps and other assets for UFO: Alien Invasion.")
2710 ;; Most assets are available under either GPL2 or GPL2+. Some use other
2711 ;; licenses, see LICENSES for details.
2712 (license (list license:gpl2+ license:gpl2 license:cc-by3.0
2713 license:cc-by-sa3.0 license:public-domain))))
2714
2715 (define-public ufoai
2716 (package
2717 (name "ufoai")
2718 (version %ufoai-version)
2719 (home-page "https://ufoai.org/")
2720 (source ufoai-source)
2721 (build-system gnu-build-system)
2722 (arguments
2723 `(#:configure-flags
2724 (list (string-append "--prefix=" (assoc-ref %outputs "out"))
2725 (string-append "--datadir=" (assoc-ref %outputs "out")
2726 "/share/games/ufo")
2727 "CC=gcc" "CXX=g++"
2728 "--enable-release"
2729 "--enable-game"
2730 "--disable-ufo2map"
2731 "--disable-dependency-tracking"
2732
2733 ;; Disable hard links to prevent huge NARs.
2734 "--disable-hardlinkedgame"
2735 "--disable-hardlinkedcgame")
2736 #:phases (modify-phases %standard-phases
2737 (add-after 'unpack 'symlink-data-files
2738 (lambda* (#:key inputs #:allow-other-keys)
2739 (let ((data (assoc-ref inputs "ufoai-data")))
2740 ;; Symlink the data files to where the build system
2741 ;; expects to find them. Ultimately these files are
2742 ;; copied to $out/share/games/ufoai/base, losing the
2743 ;; symlinks; we could fix that after install, but it
2744 ;; does not make a big difference in practice due to
2745 ;; deduplication.
2746 (with-directory-excursion "base"
2747 (for-each (lambda (file)
2748 (symlink file (basename file)))
2749 (find-files data "\\.pk3$")))
2750 #t)))
2751 (add-before 'configure 'create-language-files
2752 (lambda _
2753 (invoke "make" "lang")))
2754 (replace 'configure
2755 (lambda* (#:key outputs (configure-flags '()) #:allow-other-keys)
2756 (apply invoke "./configure" configure-flags)))
2757 (replace 'check
2758 (lambda* (#:key tests? #:allow-other-keys)
2759 (if tests?
2760 (invoke "./testall")
2761 (format #t "test suite not run~%"))
2762 #t))
2763 (add-after 'install 'install-man-pages
2764 (lambda* (#:key outputs #:allow-other-keys)
2765 (let* ((out (assoc-ref outputs "out"))
2766 (man6 (string-append out "/share/man/man6")))
2767 (install-file "debian/ufo.6" man6)
2768 (install-file "debian/ufoded.6" man6)
2769 #t))))
2770
2771 ;; TODO: Some map tests occasionally fail because of randomness issues,
2772 ;; e.g. not enough generated aliens. The test runner also fails early
2773 ;; in the build container with 'failed to shutdown server'?
2774 #:tests? #f))
2775 (native-inputs
2776 `(("gettext" ,gettext-minimal)
2777 ("pkg-config" ,pkg-config)
2778 ("python" ,python-2)
2779 ("ufo2map" ,ufo2map)
2780 ("ufoai-data" ,ufoai-data)))
2781 (inputs
2782 `(("curl" ,curl)
2783 ("libjpeg" ,libjpeg-turbo)
2784 ("libogg" ,libogg)
2785 ("libpng" ,libpng)
2786 ("libtheora" ,libtheora)
2787 ("libvorbis" ,libvorbis)
2788 ("libxml2" ,libxml2)
2789 ("lua" ,lua-5.1)
2790 ("mesa" ,mesa)
2791 ("minixml" ,minixml)
2792 ("sdl-union" ,(sdl-union (list sdl2 sdl2-mixer sdl2-ttf)))
2793 ("zlib" ,zlib)))
2794 (synopsis "Turn-based tactical strategy game")
2795 (description
2796 "UFO: Alien Invasion is a tactical strategy game set in the year 2084.
2797 You control a secret organisation charged with defending Earth from a brutal
2798 alien enemy. Build up your bases, prepare your team, and dive head-first into
2799 the fast and flowing turn-based combat.
2800
2801 Over the long term you will need to conduct research into the alien threat to
2802 figure out their mysterious goals and use their powerful weapons for your own
2803 ends. You will produce unique items and use them in combat against your
2804 enemies.
2805
2806 You can also use them against your friends with the multiplayer functionality.
2807
2808 Warning: This is a pre-release version of UFO: AI! Some things may not work
2809 properly.")
2810
2811 ;; The game code and most assets are GPL2+, but we use GPL2 only here
2812 ;; because some assets do not use the "or later" clause. Many individual
2813 ;; assets use Creative Commons or Public Domain; see the LICENSE file.
2814 (license (delete license:gpl2+ (package-license ufoai-data)))))
2815
2816 (define-public xshogi
2817 (package
2818 (name "xshogi")
2819 (version "1.4.2")
2820 (source
2821 (origin
2822 (method url-fetch)
2823 (uri (string-append "mirror://gnu/gnushogi/xshogi-"
2824 version ".tar.gz"))
2825 (sha256
2826 (base32
2827 "1dns0nhymak44by18sv48m4xb2skiwbi2i3nb9hl6w9iwd2i2brf"))))
2828 (build-system gnu-build-system)
2829 (inputs
2830 `(("libxaw" ,libxaw)
2831 ("libxt" ,libxt)))
2832 (home-page "https://www.gnu.org/software/gnushogi/")
2833 (synopsis "User interface for gnushogi")
2834 (description "A graphical user interface for the package @code{gnushogi}.")
2835 ;; Contains a copy of GPLv3 but the licence notices simply
2836 ;; state "GNU General Public Licence" without specifying a version.
2837 (license license:gpl1+)))
2838
2839 (define-public abbaye
2840 (package
2841 (name "abbaye")
2842 (version "2.0.1")
2843 (source
2844 (origin
2845 (method git-fetch)
2846 (uri (git-reference
2847 (url "https://github.com/nevat/abbayedesmorts-gpl")
2848 (commit (string-append "v" version))))
2849 (file-name (git-file-name name version))
2850 (sha256
2851 (base32 "1pwqf7r9bqb2p3xrw9i7y8pgr1401fy3mnnqpb1qkhmdl3gqi9hb"))
2852 (modules '((guix build utils)))
2853 (snippet
2854 ;; Unbundle fonts.
2855 '(begin
2856 (delete-file-recursively "fonts")
2857 #t))))
2858 (build-system gnu-build-system)
2859 (arguments
2860 '(#:make-flags '("CC=gcc")
2861 #:phases (modify-phases %standard-phases
2862 (add-after 'set-paths 'set-sdl-paths
2863 (lambda* (#:key inputs #:allow-other-keys)
2864 (setenv "CPATH"
2865 (string-append (assoc-ref inputs "sdl-union")
2866 "/include/SDL:"
2867 (or (getenv "CPATH") "")))))
2868 (add-after 'patch-source-shebangs 'patch-makefile
2869 (lambda* (#:key outputs #:allow-other-keys)
2870 ;; Replace /usr with package output directory.
2871 (substitute* "Makefile"
2872 (("/usr") (assoc-ref outputs "out")))))
2873 (add-before 'install 'make-install-dirs
2874 (lambda* (#:key outputs #:allow-other-keys)
2875 (let ((prefix (assoc-ref outputs "out")))
2876 ;; Create directories that the makefile assumes exist.
2877 (mkdir-p (string-append prefix "/bin"))
2878 (mkdir-p (string-append prefix "/share/applications"))
2879 (mkdir-p (string-append prefix "/share/pixmaps")))))
2880 ;; No configure script.
2881 (delete 'configure))
2882 #:tests? #f)) ;; No check target.
2883 (native-inputs `(("pkg-config" ,pkg-config)))
2884 (inputs `(("sdl-union" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer)))))
2885 (home-page "https://github.com/nevat/abbayedesmorts-gpl")
2886 (synopsis "GNU/Linux port of the indie game \"l'Abbaye des Morts\"")
2887 (description "L'Abbaye des Morts is a 2D platform game set in 13th century
2888 France. The Cathars, who preach about good Christian beliefs, were being
2889 expelled by the Catholic Church out of the Languedoc region in France. One of
2890 them, called Jean Raymond, found an old church in which to hide, not knowing
2891 that beneath its ruins lay buried an ancient evil.")
2892 (license license:gpl3)))
2893
2894 (define-public angband
2895 (package
2896 (name "angband")
2897 (version "4.2.1")
2898 (source
2899 (origin
2900 (method url-fetch)
2901 (uri (string-append "https://rephial.org/downloads/"
2902 (version-major+minor version)
2903 "/angband-" version ".tar.gz"))
2904 (sha256
2905 (base32 "03qdavkj2ik02mqjxmlm5bn17ba3yxb1rirp8ghnxy3bsk4kbmxc"))
2906 (modules '((guix build utils)))
2907 (snippet
2908 ;; So, some of the sounds/graphics/tilesets are under different
2909 ;; licenses... some of them even nonfree! This is a console-only
2910 ;; version of this package so we just remove them.
2911 ;; In the future, if someone tries to make a graphical variant of
2912 ;; this package, they can deal with that mess themselves. :)
2913 '(begin
2914 (for-each (lambda (subdir)
2915 (let ((lib-subdir (string-append "lib/" subdir)))
2916 (delete-file-recursively lib-subdir)))
2917 '("fonts" "icons" "sounds" "tiles"))
2918 (substitute* "lib/Makefile"
2919 ;; And don't try to invoke makefiles in the directories we removed.
2920 (("gamedata customize help screens fonts tiles sounds icons user")
2921 "gamedata customize help screens user"))
2922 #t))))
2923 (build-system gnu-build-system)
2924 (arguments
2925 `(#:tests? #f ; no check target
2926 #:configure-flags (list (string-append "--bindir=" %output "/bin"))
2927 #:phases
2928 (modify-phases %standard-phases
2929 (replace 'bootstrap
2930 (lambda _
2931 (substitute* "acinclude.m4"
2932 (("ncursesw5-config") "ncursesw6-config"))
2933 (invoke "sh" "autogen.sh"))))))
2934 (native-inputs
2935 `(("autoconf" ,autoconf)
2936 ("automake" ,automake)))
2937 (inputs `(("ncurses" ,ncurses)))
2938 (home-page "https://rephial.org/")
2939 (synopsis "Dungeon exploration roguelike")
2940 (description "Angband is a Classic dungeon exploration roguelike. Explore
2941 the depths below Angband, seeking riches, fighting monsters, and preparing to
2942 fight Morgoth, the Lord of Darkness.")
2943 (license license:gpl2)))
2944
2945 (define-public pingus
2946 (package
2947 (name "pingus")
2948 (version "0.7.6")
2949 (source
2950 (origin
2951 (method git-fetch)
2952 (uri (git-reference
2953 (url "https://gitlab.com/pingus/pingus.git")
2954 (commit (string-append "v" version))))
2955 (file-name (git-file-name name version))
2956 (sha256
2957 (base32
2958 "0wp06kcmknsnxz7bjnsndb8x062z7r23fb3yrnbfnj68qhz18y74"))
2959 (patches (search-patches "pingus-boost-headers.patch"
2960 "pingus-sdl-libs-config.patch"))
2961 (modules '((guix build utils)))
2962 (snippet
2963 '(begin
2964 (substitute* "src/pingus/screens/demo_session.cpp"
2965 (("#include <iostream>")
2966 ;; std::function moved to <functional> with C++ 11.
2967 ;; Remove this for versions newer than 0.7.6.
2968 "#include <iostream>\n#include <functional>"))
2969 #t))))
2970 (build-system gnu-build-system)
2971 (native-inputs `(("pkg-config" ,pkg-config)
2972 ("scons-python2" ,scons-python2)))
2973 (inputs `(("sdl" ,sdl)
2974 ("sdl-image" ,sdl-image)
2975 ("sdl-mixer" ,sdl-mixer)
2976 ("mesa" ,mesa)
2977 ("glu" ,glu)
2978 ("libpng" ,libpng)
2979 ("boost" ,boost)))
2980 (arguments
2981 '(#:make-flags (list (string-append "PREFIX=" %output))
2982 #:tests? #f ; no check target
2983 #:phases
2984 (modify-phases %standard-phases
2985 (delete 'configure)))) ; no configure script
2986 (home-page "https://pingus.seul.org/")
2987 (synopsis "Lemmings clone")
2988 (description
2989 "Pingus is a free Lemmings-like puzzle game in which the player takes
2990 command of a bunch of small animals and has to guide them through levels.
2991 Since the animals walk on their own, the player can only influence them by
2992 giving them commands, like build a bridge, dig a hole, or redirect all animals
2993 in the other direction. Multiple such commands are necessary to reach the
2994 level's exit. The game is presented in a 2D side view.")
2995 ;; Some source files are under bsd-3 and gpl2+ licenses.
2996 (license license:gpl3+)))
2997
2998 (define-public talkfilters
2999 (package
3000 (name "talkfilters")
3001 (version "2.3.8")
3002 (source
3003 (origin
3004 (method url-fetch)
3005 (uri (string-append "http://www.hyperrealm.com/talkfilters/"
3006 "talkfilters-" version ".tar.gz"))
3007 (sha256
3008 (base32 "19nc5vq4bnkjvhk8srqddzhcs93jyvpm9r6lzjzwc1mgf08yg0a6"))))
3009 (build-system gnu-build-system)
3010 (home-page "https://www.gnu.org/software/talkfilters/")
3011 (synopsis "Convert English text to humorous dialects")
3012 (description "The GNU Talk Filters are programs that convert English text
3013 into stereotyped or otherwise humorous dialects. The filters are provided as
3014 a C library, so they can easily be integrated into other programs.")
3015 (license license:gpl2+)))
3016
3017 (define-public taisei
3018 (package
3019 (name "taisei")
3020 (version "1.3.1")
3021 (source
3022 (origin
3023 (method url-fetch)
3024 (uri (string-append "https://github.com/taisei-project/"
3025 "taisei/releases/download/v" version
3026 "/taisei-v" version ".tar.xz"))
3027 (sha256
3028 (base32 "11f9mlqmzy1lszwcc1nsbar9q1hs4ml6pbm52hqfd4q0f4x3ln46"))))
3029 (build-system meson-build-system)
3030 (arguments
3031 `(#:build-type "release" ;comment out for bug-reporting (and cheats)
3032 #:configure-flags
3033 (list "-Dr_default=gles30"
3034 "-Dr_gles20=true"
3035 "-Dr_gles30=true"
3036 "-Dshader_transpiler=true")))
3037 (native-inputs
3038 `(("pkg-config" ,pkg-config)
3039 ("python" ,python)
3040 ("python-docutils" ,python-docutils)
3041 ("python-pygments" ,python-pygments)))
3042 (inputs
3043 `(("freetype" ,freetype)
3044 ("libpng" ,libpng)
3045 ("libwebp" ,libwebp)
3046 ("libzip" ,libzip)
3047 ("mesa" ,mesa)
3048 ("openssl" ,openssl)
3049 ("opusfile" ,opusfile)
3050 ("sdl2" ,sdl2)
3051 ("sdl2-mixer" ,sdl2-mixer)
3052 ("shaderc" ,shaderc)
3053 ("spirv-cross" ,spirv-cross)
3054 ("zlib" ,zlib)))
3055 (home-page "https://taisei-project.org/")
3056 (synopsis "Shoot'em up fangame and libre clone of Touhou Project")
3057 (description
3058 "The player controls a character (one of three: Good, Bad, and Dead),
3059 dodges the missiles (lots of it cover the screen, but the character's hitbox
3060 is very small), and shoot at the adversaries that keep appear on the screen.")
3061 (license (list ;;game
3062 license:expat
3063 ;;resources/00-taisei.pkgdir/bgm/
3064 ;;atlas/portraits/
3065 license:cc-by4.0
3066 ;;miscellaneous
3067 license:cc0
3068 license:public-domain))))
3069
3070 (define-public cmatrix
3071 (package
3072 (name "cmatrix")
3073 (version "2.0")
3074 (source
3075 (origin
3076 (method git-fetch)
3077 (uri (git-reference
3078 (url "https://github.com/abishekvashok/cmatrix")
3079 (commit (string-append "v" version))))
3080 (file-name (git-file-name name version))
3081 (sha256
3082 (base32
3083 "1h9jz4m4s5l8c3figaq46ja0km1gimrkfxm4dg7mf4s84icmasbm"))))
3084 (build-system gnu-build-system)
3085 (native-inputs
3086 `(("autoconf" ,autoconf)
3087 ("automake" ,automake)))
3088 (arguments
3089 '(#:phases
3090 (modify-phases %standard-phases
3091 (replace 'configure
3092 (lambda* (#:key outputs #:allow-other-keys)
3093 ;; This old ‘configure’ script doesn't support
3094 ;; variables passed as arguments.
3095 (let ((out (assoc-ref outputs "out")))
3096 (setenv "CONFIG_SHELL" (which "bash"))
3097 (invoke "./configure"
3098 (string-append "--prefix=" out))))))))
3099 (inputs `(("ncurses" ,ncurses)))
3100 (home-page "http://www.asty.org/cmatrix")
3101 (synopsis "Simulate the display from \"The Matrix\"")
3102 (description "CMatrix simulates the display from \"The Matrix\" and is
3103 based on the screensaver from the movie's website. It works with terminal
3104 settings up to 132x300 and can scroll lines all at the same rate or
3105 asynchronously and at a user-defined speed.")
3106 (license license:gpl2+)))
3107
3108 (define-public chess
3109 (package
3110 (name "chess")
3111 (version "6.2.7")
3112 (source
3113 (origin
3114 (method url-fetch)
3115 (uri (string-append "mirror://gnu/chess/gnuchess-" version
3116 ".tar.gz"))
3117 (sha256
3118 (base32
3119 "0ilq4bfl0lwyzf11q7n2skydjhalfn3bgxhrp5hjxs5bc5d6fdp5"))))
3120 (build-system gnu-build-system)
3121 (home-page "https://www.gnu.org/software/chess/")
3122 (synopsis "Full chess implementation")
3123 (description "GNU Chess is a chess engine. It allows you to compete
3124 against the computer in a game of chess, either through the default terminal
3125 interface or via an external visual interface such as GNU XBoard.")
3126 (properties '((upstream-name . "gnuchess")
3127 (ftp-directory . "/chess")))
3128 (license license:gpl3+)))
3129
3130 (define-public freedink-engine
3131 (package
3132 (name "freedink-engine")
3133 (version "109.6")
3134 (source (origin
3135 (method url-fetch)
3136 (uri (string-append "mirror://gnu/freedink/freedink-" version
3137 ".tar.gz"))
3138 (patches (search-patches "freedink-engine-fix-sdl-hints.patch"))
3139 (sha256
3140 (base32
3141 "00hhk1bjdrc1np2qz44sa5n1mb62qzwxbvsnws3vpms6iyn3a2sy"))))
3142 (build-system gnu-build-system)
3143 (arguments
3144 `(#:configure-flags '("--disable-embedded-resources")
3145 #:phases
3146 (modify-phases %standard-phases
3147 (add-after 'unpack 'disable-graphical-tests
3148 (lambda _
3149 ;; These tests require a graphical interface.
3150 (substitute* "src/Makefile.am"
3151 (("test_gfx_fonts TestIOGfxDisplay") ""))
3152 #t))
3153 (add-before 'bootstrap 'autoreconf
3154 (lambda _
3155 ;; automake is out of date in the source
3156 ;; autoreconf updates the automake scripts
3157 (invoke "autoreconf")
3158 ;; Build fails when autom4te.cache exists.
3159 (delete-file-recursively "autom4te.cache")
3160 #t))
3161 (add-after 'install 'delete-freedinkedit-desktop
3162 (lambda* (#:key outputs #:allow-other-keys)
3163 (let ((out (assoc-ref outputs "out")))
3164 ;; freedinkedit does not know where to find freedink data
3165 ;; freedink data is read-only, so it cannot be edited anyway.
3166 ;; TODO: fix freedink.desktop
3167 (delete-file-recursively (string-append
3168 out "/share/applications"))
3169 #t))))))
3170 (native-inputs `(("autoconf" ,autoconf)
3171 ("automake" ,automake)
3172 ("cxxtest" ,cxxtest)
3173 ("gettext" ,gettext-minimal)
3174 ("help2man" ,help2man)
3175 ("pkg-config" ,pkg-config)))
3176 (inputs `(("sdl-union" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer
3177 sdl2-ttf sdl2-gfx)))
3178 ("fontconfig" ,fontconfig)
3179 ("glm" ,glm)))
3180 (properties '((ftp-directory . "/freedink")
3181 (upstream-name . "freedink")))
3182 (home-page "https://www.gnu.org/software/freedink/")
3183 (synopsis "Twisted adventures of young pig farmer Dink Smallwood")
3184 (description
3185 "GNU FreeDink is a free and portable re-implementation of the engine
3186 for the role-playing game Dink Smallwood. It supports not only the original
3187 game data files but it also supports user-produced game mods or \"D-Mods\".
3188 To that extent, it also includes a front-end for managing all of your D-Mods.")
3189 (license license:gpl3+)))
3190
3191 (define-public freedink-data
3192 (package
3193 (name "freedink-data")
3194 (version "1.08.20190120")
3195 (source (origin
3196 (method url-fetch)
3197 (uri (string-append "mirror://gnu/freedink/freedink-data-"
3198 version ".tar.gz"))
3199 (sha256
3200 (base32
3201 "17gvryadlxk172mblbsil7hina1z5wahwaxnr6g3mdq57dvl8pvi"))))
3202 (build-system gnu-build-system)
3203 (arguments
3204 `(#:phases
3205 (modify-phases %standard-phases
3206 (delete 'configure) ; no configure script
3207 (delete 'check)) ; no tests
3208 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))))
3209 (properties '((ftp-directory . "/freedink")))
3210 (home-page "https://www.gnu.org/software/freedink/")
3211 (synopsis "Game data for GNU Freedink")
3212 (description
3213 "This package contains the game data of GNU Freedink.")
3214 (license license:gpl3+)))
3215
3216 (define-public freedink-dfarc
3217 (package
3218 (name "freedink-dfarc")
3219 (version "3.14")
3220 (source (origin
3221 (method url-fetch)
3222 (uri (string-append "mirror://gnu/freedink/dfarc-"
3223 version ".tar.gz"))
3224 (sha256
3225 (base32
3226 "1yp8n3w426xnlp10xk06vfi2y3k9xrcfyck7s7qs1v0ys7n284d5"))))
3227 (build-system gnu-build-system)
3228 (native-inputs
3229 `(("intltool" ,intltool)))
3230 (inputs
3231 `(("bzip2" ,bzip2)
3232 ("wxwidgets" ,wxwidgets)))
3233 (properties '((ftp-directory . "/freedink")
3234 (upstream-name . "dfarc")))
3235 (home-page "https://www.gnu.org/software/freedink/")
3236 (synopsis "Front-end for managing and playing Dink Modules")
3237 (description "DFArc makes it easy to play and manage the GNU FreeDink game
3238 and its numerous D-Mods.")
3239 (license license:gpl3+)))
3240
3241 (define-public freedink
3242 ;; This is a wrapper that tells the engine where to find the data.
3243 (package (inherit freedink-engine)
3244 (name "freedink")
3245 (build-system trivial-build-system)
3246 (arguments
3247 '(#:builder (begin
3248 (use-modules (guix build utils))
3249
3250 (let* ((output (assoc-ref %outputs "out"))
3251 (bin (string-append output "/bin"))
3252 (executable (string-append bin "/freedink")))
3253 (mkdir-p bin)
3254 (call-with-output-file executable
3255 (lambda (port)
3256 (format port "#!~a/bin/sh
3257 exec ~a/bin/freedink -refdir ~a/share/dink\n"
3258 (assoc-ref %build-inputs "bash")
3259 (assoc-ref %build-inputs "engine")
3260 (assoc-ref %build-inputs "data"))
3261 (chmod port #o777)))
3262 #t))
3263 #:modules ((guix build utils))))
3264 (inputs `(("engine" ,freedink-engine)
3265 ("data" ,freedink-data)
3266 ("bash" ,bash)))
3267 (native-inputs '())))
3268
3269 (define-public xboard
3270 (package
3271 (name "xboard")
3272 (version "4.9.1")
3273 (source
3274 (origin
3275 (method url-fetch)
3276 (uri (string-append "mirror://gnu/xboard/xboard-" version
3277 ".tar.gz"))
3278 (sha256
3279 (base32
3280 "1mkh36xnnacnz9r00b5f9ld9309k32jv6mcavklbdnca8bl56bib"))))
3281 (build-system gnu-build-system)
3282 (inputs
3283 `(("gtk+" ,gtk+-2)
3284 ("librsvg" ,librsvg)))
3285 (native-inputs
3286 `(("texinfo" ,texinfo)
3287 ("pkg-config" ,pkg-config)))
3288 (home-page "https://www.gnu.org/software/xboard/")
3289 (synopsis "Graphical user interface for chess programs")
3290 (description "GNU XBoard is a graphical board for all varieties of chess,
3291 including international chess, xiangqi (Chinese chess), shogi (Japanese chess)
3292 and Makruk. Several lesser-known variants are also supported. It presents a
3293 fully interactive graphical interface and it can load and save games in the
3294 Portable Game Notation.")
3295 (license license:gpl3+)))
3296
3297 (define-public gtypist
3298 (package
3299 (name "gtypist")
3300 (version "2.9.5")
3301 (source (origin
3302 (method url-fetch)
3303 (uri (string-append "mirror://gnu/gtypist/gtypist-"
3304 version ".tar.xz"))
3305 (sha256
3306 (base32
3307 "0xzrkkmj0b1dw3yr0m9hml2y634cc4h61im6zwcq57s7285z8fn1"))
3308 (modules '((guix build utils)))
3309 (snippet
3310 ;; We do not provide `ncurses.h' within an `ncursesw'
3311 ;; sub-directory, so patch the source accordingly. See
3312 ;; <http://bugs.gnu.org/19018>.
3313 '(begin
3314 (for-each (lambda (file)
3315 (substitute* file
3316 (("ncursesw/ncurses.h")
3317 "ncurses.h")))
3318 (find-files "." "configure$|\\.c$"))
3319 #t))))
3320 (build-system gnu-build-system)
3321 (inputs `(("ncurses" ,ncurses)
3322 ("perl" ,perl)))
3323 (home-page "https://www.gnu.org/software/gtypist/")
3324 (synopsis "Typing tutor")
3325 (description
3326 "GNU Typist is a universal typing tutor. It can be used to learn and
3327 practice touch-typing. Several tutorials are included; in addition to
3328 tutorials for the standard QWERTY layout, there are also tutorials for the
3329 alternative layouts Dvorak and Colemak, as well as for the numpad. Tutorials
3330 are primarily in English, however some in other languages are provided.")
3331 (license license:gpl3+)))
3332
3333 (define-public irrlicht
3334 (package
3335 (name "irrlicht")
3336 (version "1.8.4")
3337 (source (origin
3338 (method url-fetch)
3339 (uri (string-append
3340 "mirror://sourceforge/irrlicht/Irrlicht%20SDK/"
3341 (version-major+minor version)
3342 "/" version "/irrlicht-" version ".zip"))
3343 (sha256
3344 (base32
3345 "0cz4z4dwrv5ypl19ll67wl6jjpy5k6ly4vr042w4br88qq5jhazl"))
3346 (patches (search-patches "irrlicht-use-system-libs.patch"))
3347 (modules '((guix build utils)))
3348 (snippet
3349 '(begin
3350 (for-each delete-file-recursively
3351 '("bin" ; bundled compiled Windows binaries"
3352 "source/Irrlicht/MacOSX"
3353 "source/Irrlicht/bzip2"
3354 "source/Irrlicht/jpeglib"
3355 "source/Irrlicht/libpng"
3356 "source/Irrlicht/lzma"
3357 "source/Irrlicht/zlib"))
3358 (delete-file "source/Irrlicht/glext.h")
3359 (delete-file "source/Irrlicht/glxext.h")
3360 (delete-file "source/Irrlicht/wglext.h")
3361 #t))))
3362 (build-system gnu-build-system)
3363 (arguments
3364 `(#:phases
3365 (modify-phases %standard-phases
3366 (add-after 'unpack 'chdir-to-source
3367 (lambda _
3368 ;; The actual source is buried a few directories deep.
3369 (chdir "source/Irrlicht/")
3370 #t))
3371 (add-after 'chdir-to-source 'fix-build-env
3372 (lambda* (#:key outputs #:allow-other-keys)
3373 (let ((out (assoc-ref outputs "out")))
3374 (substitute* "Makefile"
3375 (("INSTALL_DIR = /usr/local/lib")
3376 (string-append "INSTALL_DIR = " out "/lib"))
3377 ;; Add '-fpermissive' to the CXXFLAGS
3378 (("-Wall") "-Wall -fpermissive")) ; CImageLoaderJPG.cpp
3379 ;; The Makefile assumes these directories exist.
3380 (mkdir-p (string-append out "/lib"))
3381 (mkdir-p (string-append out "/include")))))
3382 (delete 'configure)) ; no configure script
3383 #:tests? #f ; no check target
3384 #:make-flags '("CC=gcc" "sharedlib")))
3385 (inputs
3386 `(("bzip2" ,bzip2)
3387 ("libjpeg" ,libjpeg-turbo)
3388 ("libpng" ,libpng)
3389 ("libx11" ,libx11)
3390 ("libxxf86vm" ,libxxf86vm)
3391 ("mesa" ,mesa)))
3392 (synopsis "3D game engine written in C++")
3393 (description
3394 "The Irrlicht Engine is a high performance realtime 3D engine written in
3395 C++. Features include an OpenGL renderer, extensible materials, scene graph
3396 management, character animation, particle and other special effects, support
3397 for common mesh file formats, and collision detection.")
3398 (home-page "http://irrlicht.sourceforge.net/")
3399 (license license:zlib)))
3400
3401 (define-public mars
3402 ;; The latest release on SourceForge relies on an unreleased version of SFML
3403 ;; with a different API, so we take the latest version from the official
3404 ;; repository on Github.
3405 (let ((commit "c855d044094a1d92317e38935d81ba938946132e")
3406 (revision "1"))
3407 (package
3408 (name "mars")
3409 (version (string-append "0.7.5." revision "." (string-take commit 7) ))
3410 (source (origin
3411 (method git-fetch)
3412 (uri (git-reference
3413 (url "https://github.com/thelaui/M.A.R.S.")
3414 (commit commit)))
3415 (file-name (git-file-name name version))
3416 (sha256
3417 (base32
3418 "1r4c5gap1z2zsv4yjd34qriqkxaq4lb4rykapyzkkdf4g36lc3nh"))
3419 (patches (search-patches "mars-sfml-2.3.patch"
3420 "mars-install.patch"))))
3421 (build-system cmake-build-system)
3422 (arguments
3423 `(#:tests? #f ; There are no tests
3424 #:phases
3425 (modify-phases %standard-phases
3426 (add-after 'unpack 'fix-install-path
3427 (lambda _
3428 (substitute* "src/CMakeLists.txt"
3429 (("\\$\\{CMAKE_INSTALL_PREFIX\\}/games")
3430 "${CMAKE_INSTALL_PREFIX}/bin"))
3431 #t))
3432 (add-after 'unpack 'fix-data-path
3433 (lambda* (#:key outputs #:allow-other-keys)
3434 (substitute* "src/System/settings.cpp"
3435 (("C_dataPath = \"./data/\";")
3436 (string-append "C_dataPath = \""
3437 (assoc-ref outputs "out")
3438 "/share/games/marsshooter/\";")))
3439 #t)))))
3440 (inputs
3441 `(("mesa" ,mesa)
3442 ("fribidi" ,fribidi)
3443 ("taglib" ,taglib)
3444 ("sfml" ,sfml)))
3445 (home-page "http://mars-game.sourceforge.net/")
3446 (synopsis "2D space shooter")
3447 (description
3448 "M.A.R.S. is a 2D space shooter with pretty visual effects and
3449 attractive physics. Players can battle each other or computer controlled
3450 enemies in different game modes such as space ball, death match, team death
3451 match, cannon keep, and grave-itation pit.")
3452 (license license:gpl3+))))
3453
3454 (define-public minetest
3455 (package
3456 (name "minetest")
3457 (version "5.4.0")
3458 (source (origin
3459 (method git-fetch)
3460 (uri (git-reference
3461 (url "https://github.com/minetest/minetest")
3462 (commit version)))
3463 (file-name (git-file-name name version))
3464 (sha256
3465 (base32
3466 "1a17g6cmxrscnqwpwrd4w2ck3dgvplyfq4kzyimilfpqar1q69j9"))
3467 (modules '((guix build utils)))
3468 (snippet
3469 '(begin
3470 ;; Delete bundled libraries.
3471 (delete-file-recursively "lib")
3472 #t))))
3473 (build-system cmake-build-system)
3474 (arguments
3475 `(#:configure-flags
3476 (list "-DRUN_IN_PLACE=0"
3477 "-DENABLE_FREETYPE=1"
3478 "-DENABLE_GETTEXT=1"
3479 "-DENABLE_SYSTEM_JSONCPP=TRUE"
3480 (string-append "-DIRRLICHT_INCLUDE_DIR="
3481 (assoc-ref %build-inputs "irrlicht")
3482 "/include/irrlicht")
3483 (string-append "-DCURL_INCLUDE_DIR="
3484 (assoc-ref %build-inputs "curl")
3485 "/include/curl"))
3486 #:phases
3487 (modify-phases %standard-phases
3488 (add-after 'unpack 'patch-sources
3489 (lambda _
3490 (substitute* "src/CMakeLists.txt"
3491 (("set\\(EXECUTABLE_OUTPUT_PATH .*\\)") ""))
3492 (substitute* "src/unittest/test_servermodmanager.cpp"
3493 ;; do no override MINETEST_SUBGAME_PATH
3494 (("(un)?setenv\\(\"MINETEST_SUBGAME_PATH\".*\\);")
3495 "(void)0;"))
3496 (setenv "MINETEST_SUBGAME_PATH"
3497 (string-append (getcwd) "/games")) ; for check
3498 #t))
3499 (replace 'check
3500 (lambda _
3501 ;; Thanks to our substitutions, the tests should also run
3502 ;; when invoked on the target outside of `guix build'.
3503 (unless ,(%current-target-system)
3504 (setenv "HOME" "/tmp")
3505 (invoke "src/minetest" "--run-unittests"))
3506 #t)))))
3507 (native-search-paths
3508 (list (search-path-specification
3509 (variable "MINETEST_SUBGAME_PATH")
3510 (files '("share/minetest/games")))))
3511 (native-inputs
3512 `(("pkg-config" ,pkg-config)))
3513 (inputs
3514 `(("curl" ,curl)
3515 ("freetype" ,freetype)
3516 ("gettext" ,gettext-minimal)
3517 ("gmp" ,gmp)
3518 ("irrlicht" ,irrlicht)
3519 ("jsoncpp" ,jsoncpp)
3520 ("libjpeg" ,libjpeg-turbo)
3521 ("libpng" ,libpng)
3522 ("libogg" ,libogg)
3523 ("libvorbis" ,libvorbis)
3524 ("libxxf86vm" ,libxxf86vm)
3525 ("luajit" ,luajit)
3526 ("mesa" ,mesa)
3527 ("ncurses" ,ncurses)
3528 ("openal" ,openal)
3529 ("sqlite" ,sqlite)))
3530 (propagated-inputs
3531 `(("minetest-data" ,minetest-data)))
3532 (synopsis "Infinite-world block sandbox game")
3533 (description
3534 "Minetest is a sandbox construction game. Players can create and destroy
3535 various types of blocks in a three-dimensional open world. This allows
3536 forming structures in every possible creation, on multiplayer servers or as a
3537 single player. Mods and texture packs allow players to personalize the game
3538 in different ways.")
3539 (home-page "https://www.minetest.net/")
3540 (license license:lgpl2.1+)))
3541
3542 (define minetest-data
3543 (package
3544 (name "minetest-data")
3545 (version (package-version minetest))
3546 (source (origin
3547 (method git-fetch)
3548 (uri (git-reference
3549 (url "https://github.com/minetest/minetest_game")
3550 (commit version)))
3551 (file-name (git-file-name name version))
3552 (sha256
3553 (base32
3554 "11dz36z0pj2r7i8xm8v5lskzws81ckj6sc0avlmvdl8qdc9x83w5"))))
3555 (build-system trivial-build-system)
3556 (native-inputs
3557 `(("source" ,source)))
3558 (arguments
3559 `(#:modules ((guix build utils))
3560 #:builder (begin
3561 (use-modules (guix build utils))
3562 (let ((install-dir (string-append
3563 %output
3564 "/share/minetest/games/minetest_game")))
3565 (mkdir-p install-dir)
3566 (copy-recursively
3567 (assoc-ref %build-inputs "source")
3568 install-dir)
3569 #t))))
3570 (synopsis "Main game data for the Minetest game engine")
3571 (description
3572 "Game data for the Minetest infinite-world block sandbox game.")
3573 (home-page "https://www.minetest.net/")
3574 (license license:lgpl2.1+)))
3575
3576 (define-public minetest-mineclone
3577 (package
3578 (name "minetest-mineclone")
3579 (version "0.71.0")
3580 (source (origin
3581 (method git-fetch)
3582 (uri (git-reference
3583 (url "https://git.minetest.land/Wuzzy/MineClone2")
3584 (commit version)))
3585 (file-name (git-file-name name version))
3586 (sha256
3587 (base32
3588 "0qm809dqvxc7pa1cr9skmglq9vrbq5hhm4c4m5yi46ldh1v96dgf"))))
3589 (build-system copy-build-system)
3590 (arguments
3591 `(#:install-plan
3592 '(("." "share/minetest/games/mineclone"))))
3593 (synopsis "Minecraft clone based on Minetest engine")
3594 (description
3595 "MineClone is a Minetest subgame, that aims to recreate Minecraft as
3596 closely as the engine allows.")
3597 (home-page "https://content.minetest.net/packages/Wuzzy/mineclone2/")
3598 (license license:gpl3+)))
3599
3600 (define glkterm
3601 (package
3602 (name "glkterm")
3603 (version "1.0.4")
3604 (source
3605 (origin
3606 (method url-fetch)
3607 (uri (string-append "http://www.ifarchive.org/if-archive/programming/"
3608 "glk/implementations/glkterm-104.tar.gz"))
3609 (sha256
3610 (base32
3611 "0zlj9nlnkdlvgbiliczinirqygiq8ikg5hzh5vgcmnpg9pvnwga7"))))
3612 (build-system gnu-build-system)
3613 (propagated-inputs `(("ncurses" ,ncurses))) ; required by Make.glkterm
3614 (arguments
3615 '(#:tests? #f ; no check target
3616 #:phases
3617 (modify-phases %standard-phases
3618 (replace 'install
3619 (lambda* (#:key outputs #:allow-other-keys)
3620 (let* ((out (assoc-ref outputs "out"))
3621 (inc (string-append out "/include"))
3622 (lib (string-append out "/lib")))
3623 (for-each
3624 (lambda (file)
3625 (install-file file inc))
3626 '("glk.h" "glkstart.h" "gi_blorb.h" "gi_dispa.h" "Make.glkterm"))
3627 (install-file "libglkterm.a" lib))
3628 #t))
3629 (delete 'configure)))) ; no configure script
3630 (home-page "http://www.eblong.com/zarf/glk/")
3631 (synopsis "Curses Implementation of the Glk API")
3632 (description
3633 "Glk defines a portable API for applications with text UIs. It was
3634 primarily designed for interactive fiction, but it should be suitable for many
3635 interactive text utilities, particularly those based on a command line.
3636 This is an implementation of the Glk library which runs in a terminal window,
3637 using the @code{curses.h} library for screen control.")
3638 (license (license:fsf-free "file://README"))))
3639
3640 (define-public glulxe
3641 (package
3642 (name "glulxe")
3643 (version "0.5.4")
3644 (source
3645 (origin
3646 (method url-fetch)
3647 (uri (string-append "http://www.ifarchive.org/if-archive/programming/"
3648 "glulx/interpreters/glulxe/glulxe-054.tar.gz"))
3649 (sha256
3650 (base32
3651 "0vipydg6ra90yf9b3ipgppwxyb2xdhcxwvirgjy0v20wlf56zhhz"))))
3652 (build-system gnu-build-system)
3653 (inputs `(("glk" ,glkterm)))
3654 (arguments
3655 '(#:tests? #f ; no check target
3656 #:make-flags
3657 (let* ((glk (assoc-ref %build-inputs "glk")))
3658 (list (string-append "GLKINCLUDEDIR=" glk "/include")
3659 (string-append "GLKLIBDIR=" glk "/lib")
3660 (string-append "GLKMAKEFILE=" "Make.glkterm")))
3661 #:phases
3662 (modify-phases %standard-phases
3663 (replace 'install
3664 (lambda* (#:key outputs #:allow-other-keys)
3665 (let* ((out (assoc-ref outputs "out"))
3666 (bin (string-append out "/bin")))
3667 (install-file "glulxe" bin))
3668 #t))
3669 (delete 'configure)))) ; no configure script
3670 (home-page "https://www.eblong.com/zarf/glulx/")
3671 (synopsis "Interpreter for Glulx VM")
3672 (description
3673 "Glulx is a 32-bit portable virtual machine intended for writing and
3674 playing interactive fiction. It was designed by Andrew Plotkin to relieve
3675 some of the restrictions in the venerable Z-machine format. This is the
3676 reference interpreter, using the Glk API.")
3677 (license license:expat)))
3678
3679 (define-public fifechan
3680 (package
3681 (name "fifechan")
3682 (version "0.1.5")
3683 (source (origin
3684 (method url-fetch)
3685 (uri (string-append "https://codeload.github.com/fifengine/"
3686 "fifechan/tar.gz/" version))
3687 (file-name (string-append name "-" version ".tar.gz"))
3688 (sha256
3689 (base32
3690 "0wxs9vz5x9y8chghd8vp7vfk089lfb0qnzggi17zrqkrngs5zgi9"))))
3691 (build-system cmake-build-system)
3692 (inputs
3693 `(("sdl2" ,sdl2)
3694 ("sdl2-image" ,sdl2-image)
3695 ("mesa" ,mesa)))
3696 (arguments
3697 '(#:tests? #f)) ; No included tests
3698 (home-page "https://fifengine.github.io/fifechan/")
3699 (synopsis "Cross platform GUI library specifically for games")
3700 (description
3701 "Fifechan is a lightweight cross platform GUI library written in C++
3702 specifically designed for games. It has a built in set of extendable GUI
3703 Widgets, and allows users to create more.")
3704 (license license:lgpl2.1+)))
3705
3706 (define-public fifengine
3707 (package
3708 (name "fifengine")
3709 (version "0.4.2")
3710 (source (origin
3711 (method url-fetch)
3712 (uri (string-append "https://codeload.github.com/fifengine/"
3713 "fifengine/tar.gz/" version))
3714 (file-name (string-append name "-" version ".tar.gz"))
3715 (patches (search-patches "fifengine-swig-compat.patch"))
3716 (sha256
3717 (base32
3718 "1y4grw25cq5iqlg05rnbyxw1njl11ypidnlsm3qy4sm3xxdvb0p8"))))
3719 (build-system cmake-build-system)
3720 (arguments
3721 `(#:tests? #f ; TODO The test running fails to run some tests.
3722 #:modules ((srfi srfi-1)
3723 (guix build cmake-build-system)
3724 (guix build utils))
3725 #:configure-flags
3726 (list
3727 (string-append "-DOPENALSOFT_INCLUDE_DIR="
3728 (assoc-ref %build-inputs "openal")
3729 "/include/AL")
3730 (string-append "-DPYTHON_SITE_PACKAGES="
3731 (assoc-ref %outputs "out")
3732 "/lib/python"
3733 ,(version-major+minor (package-version python))
3734 "/site-packages"))
3735 #:phases
3736 (modify-phases %standard-phases
3737 (add-after 'unpack 'patch-run_tests.py
3738 (lambda _
3739 ;; Patch the test runner to exit with a status of 1 if any test
3740 ;; fails, to allow detecting failures.
3741 (substitute* "run_tests.py"
3742 (("ERROR\\. One or more tests failed!'\\)")
3743 "ERROR. One or more tests failed!')
3744 \t\texit(1)"))
3745 #t))
3746 ;; Run tests after installation so that we can make use of the built
3747 ;; python modules.
3748 (delete 'check)
3749 (add-after 'install 'check
3750 (lambda* (#:key inputs outputs tests? #:allow-other-keys)
3751 (define python-version
3752 (let* ((version (last (string-split
3753 (assoc-ref inputs "python")
3754 #\-)))
3755 (components (string-split version #\.))
3756 (major+minor (take components 2)))
3757 (string-join major+minor ".")))
3758
3759 (when tests?
3760 ;; Set PYTHONPATH so that python finds the installed modules.
3761 (setenv "PYTHONPATH"
3762 (string-append (getenv "PYTHONPATH") ":"
3763 (assoc-ref outputs "out")
3764 "/lib/python"
3765 python-version
3766 "/site-packages"))
3767 ;; The tests require an X server.
3768 (system "Xvfb :1 &")
3769 (setenv "DISPLAY" ":1")
3770 (setenv "XDG_RUNTIME_DIR" "/tmp")
3771 ;; Run tests
3772 (chdir ,(string-append "../" name "-" version))
3773 (invoke "python3" "run_tests.py" "-a"))
3774 #t)))))
3775 (inputs
3776 `(("sdl2" ,sdl2)
3777 ("sdl2-image" ,sdl2-image)
3778 ("sdl2-ttf" ,sdl2-ttf)
3779 ("tinyxml" ,tinyxml)
3780 ("openal" ,openal)
3781 ("libogg" ,libogg)
3782 ("glew" ,glew)
3783 ("libvorbis" ,libvorbis)
3784 ("boost" ,boost)
3785 ("fifechan" ,fifechan)
3786 ("swig" ,swig)
3787 ("python" ,python)))
3788 (native-inputs
3789 `(("python" ,python)
3790 ("swig" ,swig)
3791 ("xvfb" ,xorg-server)))
3792 (propagated-inputs
3793 `(("python-future" ,python-future)))
3794 (home-page "https://www.fifengine.net/")
3795 (synopsis "FIFE is a multi-platform isometric game engine written in C++")
3796 (description
3797 "@acronym{FIFE, Flexible Isometric Free Engine} is a multi-platform
3798 isometric game engine. Python bindings are included allowing users to create
3799 games using Python as well as C++.")
3800 (license license:lgpl2.1+)))
3801
3802 (define-public fizmo
3803 (package
3804 (name "fizmo")
3805 (version "0.8.5")
3806 (source (origin
3807 (method url-fetch)
3808 (uri (string-append "https://fizmo.spellbreaker.org/source/"
3809 "fizmo-" version ".tar.gz"))
3810 (sha256
3811 (base32
3812 "1amyc4n41jf08kxmdgkk30bzzx54miaxa97w28f417qwn8lrl98w"))))
3813 (build-system gnu-build-system)
3814 (arguments
3815 '(#:configure-flags
3816 (let ((libjpeg (assoc-ref %build-inputs "libjpeg"))
3817 (ncurses (assoc-ref %build-inputs "ncurses")))
3818 (list (string-append "--with-jpeg-includedir=" libjpeg "/include")))))
3819 (native-inputs
3820 `(("pkg-config" ,pkg-config)))
3821 (inputs
3822 `(("freetype" ,freetype)
3823 ("libjpeg" ,libjpeg-turbo)
3824 ("libpng" ,libpng)
3825 ("libsndfile" ,libsndfile)
3826 ("libxml2" ,libxml2)
3827 ("ncurses" ,ncurses)
3828 ("sdl2" ,sdl2)))
3829 (home-page "https://fizmo.spellbreaker.org/")
3830 (synopsis "Z-machine interpreter")
3831 (description
3832 "Fizmo is a console-based Z-machine interpreter. It is used to play
3833 interactive fiction, also known as text adventures, which were implemented
3834 either by Infocom or created using the Inform compiler.")
3835 (license license:bsd-3)))
3836
3837 (define-public gnugo
3838 (package
3839 (name "gnugo")
3840 (version "3.8")
3841 (source (origin
3842 (method url-fetch)
3843 (uri (string-append "mirror://gnu/gnugo/gnugo-" version
3844 ".tar.gz"))
3845 (sha256
3846 (base32
3847 "0wkahvqpzq6lzl5r49a4sd4p52frdmphnqsfdv7gdp24bykdfs6s"))))
3848 (build-system gnu-build-system)
3849 (inputs `(("readline" ,readline)))
3850 (synopsis "Play the game of Go")
3851 (description
3852 "GNU Go is a program that plays the game of Go, in which players
3853 place stones on a grid to form territory or capture other stones. While
3854 it can be played directly from the terminal, rendered in ASCII characters,
3855 it is also possible to play GNU Go with 3rd party graphical interfaces or
3856 even in Emacs. It supports the standard game storage format (SGF, Smart
3857 Game Format) and inter-process communication format (GMP, Go Modem
3858 Protocol).")
3859 (home-page "https://www.gnu.org/software/gnugo/")
3860 (license license:gpl3+)))
3861
3862 (define-public extremetuxracer
3863 (package
3864 (name "extremetuxracer")
3865 (version "0.8.0")
3866 (source (origin
3867 (method url-fetch)
3868 (uri (string-append
3869 "mirror://sourceforge/extremetuxracer/releases/"
3870 version "/etr-" version ".tar.xz"))
3871 (sha256
3872 (base32
3873 "05ysaxvsgps9fxc421kdifsxmc1sn6n79cjaa0k0i3fs9qqrja2b"))))
3874 (build-system gnu-build-system)
3875 (native-inputs
3876 `(("pkg-config" ,pkg-config)))
3877 (inputs
3878 `(("glu" ,glu)
3879 ("sfml" ,sfml)))
3880 (synopsis "High-speed arctic racing game based on Tux Racer")
3881 ;; Snarfed straight from Debian.
3882 (description "Extreme Tux Racer, or etracer as it is called for short, is
3883 a simple OpenGL racing game featuring Tux, the Linux mascot. The goal of the
3884 game is to slide down a snow- and ice-covered mountain as quickly as possible,
3885 avoiding the trees and rocks that will slow you down.
3886
3887 Collect herrings and other goodies while sliding down the hill, but avoid fish
3888 bones.
3889
3890 This game is based on the GPL version of the famous game TuxRacer.")
3891 (home-page "https://sourceforge.net/projects/extremetuxracer/")
3892 (license license:gpl2+)))
3893
3894 (define-public supertuxkart
3895 (package
3896 (name "supertuxkart")
3897 (version "1.2")
3898 (source
3899 (origin
3900 (method url-fetch)
3901 (uri (string-append "mirror://sourceforge/supertuxkart/SuperTuxKart/"
3902 version "/SuperTuxKart-" version "-src.tar.xz"))
3903 (sha256
3904 (base32
3905 "0dvx56hmy6wdhl7m9dw8zc1n3jqfp05gnxl6zs1rbfdyzl5dybh5"))
3906 (modules '((guix build utils)))
3907 (snippet
3908 ;; Delete bundled library sources
3909 '(begin
3910 ;; Supertuxkart uses modified versions of the Irrlicht engine
3911 ;; and the bullet library. The developers gave an explanation
3912 ;; here: http://forum.freegamedev.net/viewtopic.php?f=17&t=3906
3913 ;; FIXME: try to unbundle angelscript, libmcpp and libraqm
3914 (for-each delete-file-recursively
3915 '("lib/glew"
3916 "lib/wiiuse"
3917 "lib/enet"))
3918 #t))))
3919 (build-system cmake-build-system)
3920 (arguments
3921 `(#:tests? #f ; no check target
3922 #:configure-flags
3923 (list "-DUSE_WIIUSE=0"
3924 "-DUSE_SYSTEM_GLEW=TRUE"
3925 "-DUSE_SYSTEM_ENET=TRUE"
3926 ;; In order to use the system ENet library, IPv6 support (added in
3927 ;; SuperTuxKart version 1.1) must be disabled.
3928 "-DUSE_IPV6=FALSE"
3929 ;; FIXME: needs libopenglrecorder
3930 "-DBUILD_RECORDER=0")))
3931 (inputs
3932 `(("curl" ,curl)
3933 ("freetype" ,freetype)
3934 ("fribidi" ,fribidi)
3935 ("glew" ,glew)
3936 ("harfbuzz" ,harfbuzz)
3937 ("libvorbis" ,libvorbis)
3938 ("libx11" ,libx11)
3939 ("libxrandr" ,libxrandr)
3940 ("mesa" ,mesa)
3941 ("openal" ,openal)
3942 ("sdl2" ,sdl2)
3943 ("zlib" ,zlib)
3944 ;; The following input is needed to build the bundled and modified
3945 ;; version of irrlicht.
3946 ("enet" ,enet)
3947 ("libjpeg" ,libjpeg-turbo)
3948 ("openssl" ,openssl)))
3949 (native-inputs
3950 `(("pkg-config" ,pkg-config)))
3951 (home-page "https://supertuxkart.net/Main_Page")
3952 (synopsis "3D kart racing game")
3953 (description "SuperTuxKart is a 3D kart racing game, with a focus on
3954 having fun over realism. You can play with up to 4 friends on one PC, racing
3955 against each other or just trying to beat the computer; single-player mode is
3956 also available.")
3957 (license license:gpl3+)))
3958
3959 (define-public unknown-horizons
3960 (package
3961 (name "unknown-horizons")
3962 (version "2019.1")
3963 (source (origin
3964 (method url-fetch)
3965 (uri (string-append "https://codeload.github.com/unknown-horizons/"
3966 "unknown-horizons/tar.gz/" version))
3967 (file-name (string-append name "-" version ".tar.gz"))
3968 (sha256
3969 (base32
3970 "1n747p7h0qp48szgp262swg0xh8kxy1bw8ag1qczs4i26hyzs5x4"))
3971 (patches (search-patches "unknown-horizons-python-3.8-distro.patch"))))
3972 (build-system python-build-system)
3973 (arguments
3974 '(#:phases
3975 (modify-phases %standard-phases
3976 (add-before 'build 'set-HOME
3977 (lambda _
3978 (setenv "HOME" "/tmp")
3979 #t))
3980 (add-after 'build 'build-extra
3981 (lambda _
3982 (invoke "python3" "./setup.py" "build_i18n")
3983 (invoke "python3" "horizons/engine/generate_atlases.py" "2048")
3984 #t))
3985 (add-after 'install 'patch
3986 (lambda* (#:key outputs #:allow-other-keys)
3987 (let ((out (assoc-ref outputs "out")))
3988 (substitute* (string-append out "/bin/unknown-horizons")
3989 (("os\\.chdir\\(get\\_content\\_dir\\_parent_path\\(\\)\\)")
3990 (string-append "os.chdir(\""
3991 (assoc-ref outputs "out")
3992 "/share/unknown-horizons\")"))))
3993 #t))
3994 (add-before 'check 'fix-tests-with-pytest>=4
3995 (lambda _
3996 (substitute* "tests/conftest.py"
3997 (("pytest_namespace")
3998 "pytest_configure")
3999 (("get_marker")
4000 "get_closest_marker"))
4001 #t))
4002 ;; TODO: Run GUI tests as well
4003 (replace 'check
4004 (lambda _
4005 (substitute* "horizons/constants.py"
4006 (("IS_DEV_VERSION = False")
4007 "IS_DEV_VERSION = True"))
4008 (invoke "pytest" "tests")
4009 (substitute* "horizons/constants.py"
4010 (("IS_DEV_VERSION = True")
4011 "IS_DEV_VERSION = False"))
4012 #t)))))
4013 (inputs
4014 `(("fifengine" ,fifengine)
4015 ("python:tk" ,python "tk")
4016 ("python-pillow" ,python-pillow)
4017 ("python-pyyaml" ,python-pyyaml)))
4018 (native-inputs
4019 `(("intltool" ,intltool)
4020 ("python-distro" ,python-distro)
4021
4022 ;; Required for tests
4023 ("python-greenlet" ,python-greenlet)
4024 ("python-polib" ,python-polib)
4025 ("python-pytest" ,python-pytest)
4026 ("python-pytest-mock" ,python-pytest-mock)))
4027 (home-page "https://unknown-horizons.org/")
4028 (synopsis "Isometric realtime strategy, economy and city building simulation")
4029 (description
4030 "Unknown Horizons is a 2D realtime strategy simulation with an emphasis
4031 on economy and city building. Expand your small settlement to a strong and
4032 wealthy colony, collect taxes and supply your inhabitants with valuable
4033 goods. Increase your power with a well balanced economy and with strategic
4034 trade and diplomacy.")
4035 (license (list
4036 license:gpl2+ ; Covers code
4037 license:expat ; tests/dummy.py, ext/polib.py
4038 license:cc-by-sa3.0 ; Covers some media content
4039 license:cc-by3.0 ; Covers some media content
4040 license:bsd-3)))) ; horizons/ext/speaklater.py
4041
4042 (define-public gnujump
4043 (package
4044 (name "gnujump")
4045 (version "1.0.8")
4046 (source (origin
4047 (method url-fetch)
4048 (uri (string-append "mirror://gnu/gnujump/gnujump-"
4049 version ".tar.gz"))
4050 (sha256
4051 (base32
4052 "05syy9mzbyqcfnm0hrswlmhwlwx54f0l6zhcaq8c1c0f8dgzxhqk"))))
4053 (build-system gnu-build-system)
4054 (arguments
4055 '(#:phases
4056 (modify-phases %standard-phases
4057 (add-before
4058 'configure 'link-libm
4059 (lambda _ (setenv "LIBS" "-lm")))
4060 (add-after 'install 'create-desktop-entry
4061 (lambda* (#:key outputs #:allow-other-keys)
4062 (let* ((out (assoc-ref outputs "out"))
4063 (apps (string-append out "/share/applications")))
4064 (mkdir-p apps)
4065 (with-output-to-file
4066 (string-append apps "/gnujump.desktop")
4067 (lambda _
4068 (format #t
4069 "[Desktop Entry]~@
4070 Name=GNUjump~@
4071 Comment=Jump up the tower to survive~@
4072 Exec=~a/bin/gnujump~@
4073 Terminal=false~@
4074 Type=Application~@
4075 Categories=Game;ArcadeGame~%"
4076 out)))))))))
4077 (inputs
4078 `(("glu" ,glu)
4079 ("mesa" ,mesa)
4080 ("sdl" ,sdl)
4081 ("sdl-image" ,sdl-image)
4082 ("sdl-mixer" ,sdl-mixer)))
4083 (home-page "http://gnujump.es.gnu.org/")
4084 (synopsis
4085 "Game of jumping to the next floor, trying not to fall")
4086 (description
4087 "GNUjump is a simple, yet addictive game in which you must jump from
4088 platform to platform to avoid falling, while the platforms drop at faster rates
4089 the higher you go. The game features multiplayer, unlimited FPS, smooth floor
4090 falling, themeable graphics and sounds, and replays.")
4091 (license license:gpl3+)))
4092
4093 (define-public wesnoth
4094 (package
4095 (name "wesnoth")
4096 (version "1.14.16")
4097 (source (origin
4098 (method url-fetch)
4099 (uri (string-append "mirror://sourceforge/wesnoth/wesnoth-"
4100 (version-major+minor version)
4101 "/wesnoth-" version "/"
4102 "wesnoth-" version ".tar.bz2"))
4103 (sha256
4104 (base32
4105 "1d9hq3dcx0sgs2v4400rg2nw98v46m7bwiqqjv8z8n7vw8kx8lhg"))))
4106 (build-system cmake-build-system)
4107 (arguments
4108 `(#:tests? #f)) ;no check target
4109 (native-inputs
4110 `(("gettext" ,gettext-minimal)
4111 ("pkg-config" ,pkg-config)))
4112 (inputs
4113 `(("boost" ,boost)
4114 ("dbus" ,dbus)
4115 ("fribidi" ,fribidi)
4116 ("libvorbis" ,libvorbis)
4117 ("openssl" ,openssl)
4118 ("pango" ,pango)
4119 ("sdl-union" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer sdl2-ttf)))))
4120 (home-page "https://www.wesnoth.org/")
4121 (synopsis "Turn-based strategy game")
4122 (description
4123 "The Battle for Wesnoth is a fantasy, turn based tactical strategy game,
4124 with several single player campaigns, and multiplayer games (both networked and
4125 local).
4126
4127 Battle for control on a range of maps, using variety of units which have
4128 advantages and disadvantages against different types of attacks. Units gain
4129 experience and advance levels, and are carried over from one scenario to the
4130 next campaign.")
4131 (license license:gpl2+)))
4132
4133 (define-public wesnoth-server
4134 (package
4135 (inherit wesnoth)
4136 (name "wesnoth-server")
4137 (inputs
4138 `(("boost" ,boost)
4139 ("icu4c" ,icu4c)
4140 ("openssl" ,openssl)
4141 ("sdl2" ,sdl2)))
4142 (arguments
4143 `(#:configure-flags '("-DENABLE_GAME=OFF")
4144 ,@(package-arguments wesnoth)))
4145 (synopsis "Dedicated @emph{Battle for Wesnoth} server")
4146 (description "This package contains a dedicated server for @emph{The
4147 Battle for Wesnoth}.")))
4148
4149 (define-public gamine
4150 (package
4151 (name "gamine")
4152 (version "1.6")
4153 (source (origin
4154 (method url-fetch)
4155 (uri (string-append "mirror://sourceforge/gamine-game/"
4156 "gamine-" version ".tar.gz"))
4157 (sha256
4158 (base32
4159 "1sc6f4445ciigd6yw0ri92746k4hk6ps0bvj9fm1gbp3c3fslk5n"))))
4160 (build-system gnu-build-system)
4161 (native-inputs
4162 `(("pkg-config" ,pkg-config)
4163 ("intltool" ,intltool)))
4164 (inputs
4165 `(("gstreamer" ,gstreamer)
4166 ("gst-plugins-base" ,gst-plugins-base) ; playbin plugin
4167 ("gst-plugins-good" ,gst-plugins-good) ; for wav playback
4168 ("gtk+" ,gtk+)))
4169 (arguments
4170 `(#:tests? #f
4171 #:make-flags
4172 (let ((out (assoc-ref %outputs "out")))
4173 (list (string-append "PREFIX=" out)
4174 (string-append "SYSCONFDIR=" out "/etc")))
4175 #:phases
4176 (modify-phases %standard-phases
4177 (delete 'configure)
4178 (add-after
4179 'install 'wrap-gamine
4180 (lambda* (#:key outputs #:allow-other-keys)
4181 (let ((out (assoc-ref outputs "out"))
4182 (gst-plugin-path (getenv "GST_PLUGIN_SYSTEM_PATH")))
4183 (wrap-program (string-append out "/bin/gamine")
4184 `("GST_PLUGIN_SYSTEM_PATH" ":" prefix (,gst-plugin-path))))
4185 #t)))))
4186 (home-page "http://gamine-game.sourceforge.net/")
4187 (synopsis "Mouse and keyboard discovery for children")
4188 (description
4189 "Gamine is a game designed for young children who are learning to use the
4190 mouse and keyboard. The child uses the mouse to draw colored dots and lines
4191 on the screen and keyboard to display letters.")
4192 ;; Most files under gpl2+ or gpl3+, but eat.wav under gpl3
4193 (license license:gpl3)))
4194
4195 (define-public manaplus
4196 (package
4197 (name "manaplus")
4198 (version "1.9.3.23")
4199 (source (origin
4200 (method url-fetch)
4201 (uri (string-append
4202 "https://repo.manaplus.org/manaplus/download/"
4203 version "/manaplus-" version ".tar.xz"))
4204 (sha256
4205 (base32
4206 "1ky182p4svwdqm6cf7jbns85hidkhkhq4s17cs2p381f0klapfjz"))))
4207 (build-system gnu-build-system)
4208 (arguments
4209 '(#:configure-flags
4210 (list (string-append "CPPFLAGS=-I"
4211 (assoc-ref %build-inputs "sdl-union")
4212 "/include/SDL"))))
4213 (native-inputs
4214 `(("pkg-config" ,pkg-config)))
4215 (inputs
4216 `(("glu" ,glu)
4217 ("curl" ,curl)
4218 ("libxml2" ,libxml2)
4219 ("mesa" ,mesa)
4220 ("sdl-union" ,(sdl-union))))
4221 (home-page "https://manaplus.org")
4222 (synopsis "Client for 'The Mana World' and similar games")
4223 (description
4224 "ManaPlus is a 2D MMORPG client for game servers. It is the only
4225 fully supported client for @uref{http://www.themanaworld.org, The mana
4226 world}, @uref{http://evolonline.org, Evol Online} and
4227 @uref{http://landoffire.org, Land of fire}.")
4228 ;; "src/debug/*" and "src/sdl2gfx/*" are under Zlib.
4229 ;; "data/themes/{golden-delicious,jewelry}/*" are under CC-BY-SA.
4230 ;; The rest is under GPL2+.
4231 (license (list license:gpl2+ license:zlib license:cc-by-sa4.0))))
4232
4233 (define openttd-engine
4234 (package
4235 (name "openttd-engine")
4236 (version "1.10.3")
4237 (source
4238 (origin (method url-fetch)
4239 (uri (string-append "https://cdn.openttd.org/openttd-releases/"
4240 version "/openttd-" version "-source.tar.xz"))
4241 (sha256
4242 (base32
4243 "0fxmfz1mm95a2x0rnzfff9wb8q57w0cvsdd0z7agdcbyakph25n1"))))
4244 (build-system gnu-build-system)
4245 (arguments
4246 `(#:tests? #f ; no "check" target
4247 #:phases
4248 (modify-phases %standard-phases
4249 ;; The build process fails if the configure script is passed the
4250 ;; option "--enable-fast-install".
4251 (replace 'configure
4252 (lambda* (#:key inputs outputs (configure-flags '())
4253 #:allow-other-keys)
4254 (let ((out (assoc-ref outputs "out"))
4255 (lzo (assoc-ref inputs "lzo")))
4256 (apply invoke "./configure"
4257 (string-append "--prefix=" out)
4258 ;; Provide the "lzo" path.
4259 (string-append "--with-liblzo2="
4260 lzo "/lib/liblzo2.a")
4261 ;; Put the binary in 'bin' instead of 'games'.
4262 "--binary-dir=bin"
4263 configure-flags)))))))
4264 (native-inputs `(("pkg-config" ,pkg-config)))
4265 (inputs
4266 `(("allegro" ,allegro)
4267 ("fontconfig" ,fontconfig)
4268 ("freetype" ,freetype)
4269 ("icu4c" ,icu4c)
4270 ("libpng" ,libpng)
4271 ("lzo" ,lzo)
4272 ("sdl" ,sdl)
4273 ("xz" ,xz)
4274 ("zlib" ,zlib)))
4275 (synopsis "Transportation economics simulator game")
4276 (description "OpenTTD is a game in which you transport goods and
4277 passengers by land, water and air. It is a re-implementation of Transport
4278 Tycoon Deluxe with many enhancements including multiplayer mode,
4279 internationalization support, conditional orders and the ability to clone,
4280 autoreplace and autoupdate vehicles. This package only includes the game
4281 engine. When you start it you will be prompted to download a graphics set.")
4282 (home-page "https://www.openttd.org/")
4283 ;; This package is GPLv2, except for a few files located in
4284 ;; "src/3rdparty/" which are under the 3-clause BSD, LGPLv2.1+ and Zlib
4285 ;; licenses. In addition, this software contains an in-game downloader
4286 ;; from which the user may find non-functional data licensed under
4287 ;; different terms.
4288 (license (list license:bsd-3 license:gpl2 license:lgpl2.1+ license:zlib))))
4289
4290 (define openttd-opengfx
4291 (package
4292 (name "openttd-opengfx")
4293 (version "0.6.0")
4294 (source
4295 (origin
4296 (method url-fetch)
4297 (uri (string-append "https://cdn.openttd.org/opengfx-releases/"
4298 version "/opengfx-" version "-source.tar.xz"))
4299 (sha256
4300 (base32
4301 "0qxc6gl2gxcrn1np88dnjgbaaakkkx96b13rcmy1spryc8c09hyr"))))
4302 (build-system gnu-build-system)
4303 (arguments
4304 '(#:make-flags (list "CC=gcc"
4305 (string-append "INSTALL_DIR="
4306 (assoc-ref %outputs "out")
4307 "/share/games/openttd/baseset/opengfx"))
4308 #:phases
4309 (modify-phases %standard-phases
4310 (replace 'configure
4311 (lambda _
4312 ;; Make sure HOME is writable for GIMP.
4313 (setenv "HOME" (getcwd))
4314
4315 ;; Redirect stdout, not stderr, to /dev/null. This prevents
4316 ;; dos2unix from receiving its version information as a flag.
4317 (substitute* "Makefile"
4318 (("\\$\\(UNIX2DOS\\) -q --version 2>/dev/null")
4319 "$(UNIX2DOS) -q --version 1>/dev/null")))))
4320 ;; The check phase for this package only checks the md5sums of the built
4321 ;; GRF files against the md5sums of the release versions. Because we use
4322 ;; different software versions than upstream does, some of the md5sums
4323 ;; are different. However, the package is still reproducible, it's safe
4324 ;; to disable this test.
4325 #:tests? #f
4326 #:parallel-build? #f))
4327 (native-inputs `(("dos2unix" ,dos2unix)
4328 ("gimp" ,gimp)
4329 ("grfcodec" ,grfcodec)
4330 ("nml" ,nml)
4331 ("which" ,which)
4332 ("python" ,python-2)))
4333 (home-page "http://dev.openttdcoop.org/projects/opengfx")
4334 (synopsis "Base graphics set for OpenTTD")
4335 (description
4336 "The OpenGFX project is an implementation of the OpenTTD base graphics
4337 set that aims to ensure the best possible out-of-the-box experience.
4338
4339 OpenGFX provides you with...
4340 @enumerate
4341 @item All graphics you need to enjoy OpenTTD.
4342 @item Uniquely drawn rail vehicles for every climate.
4343 @item Completely snow-aware rivers.
4344 @item Different river and sea water.
4345 @item Snow-aware buoys.
4346 @end enumerate")
4347 (license license:gpl2)))
4348
4349 (define openttd-opensfx
4350 (package
4351 (name "openttd-opensfx")
4352 (version "0.2.3")
4353 (source
4354 (origin
4355 (method url-fetch)
4356 (uri (string-append
4357 "https://binaries.openttd.org/extra/opensfx/"
4358 version "/opensfx-" version "-source.tar.gz"))
4359 (sha256
4360 (base32
4361 "03jxgp02ks31hmsdh4xh0xcpkb70ds8jakc9pfc1y9vdrdavh4p5"))))
4362 (build-system gnu-build-system)
4363 (native-inputs
4364 `(("catcodec" ,catcodec)
4365 ("python" ,python-2)))
4366 (arguments
4367 `(#:make-flags
4368 (list (string-append "INSTALL_DIR=" %output
4369 "/share/games/openttd/baseset/opensfx"))
4370 #:phases
4371 (modify-phases %standard-phases
4372 (add-after 'unpack 'make-reproducible
4373 (lambda _
4374 ;; Remove the time dependency of the installed tarball by setting
4375 ;; the modification times if its members to 0.
4376 (substitute* "scripts/Makefile.def"
4377 (("-cf") " --mtime=@0 -cf"))
4378 #t))
4379 (delete 'configure))))
4380 (home-page "http://dev.openttdcoop.org/projects/opensfx")
4381 (synopsis "Base sounds for OpenTTD")
4382 (description "OpenSFX is a set of free base sounds for OpenTTD which make
4383 it possible to play OpenTTD without requiring the proprietary sound files from
4384 the original Transport Tycoon Deluxe.")
4385 (license license:cc-sampling-plus-1.0)))
4386
4387 (define openttd-openmsx
4388 (package
4389 (name "openttd-openmsx")
4390 (version "0.3.1")
4391 (source
4392 (origin
4393 (method url-fetch)
4394 (uri (string-append
4395 "https://binaries.openttd.org/extra/openmsx/"
4396 version "/openmsx-" version "-source.tar.gz"))
4397 (sha256
4398 (base32
4399 "0nskq97a6fsv1v6d62zf3yb8whzhqnlh3lap3va3nzvj7csjgf7c"))))
4400 (build-system gnu-build-system)
4401 (native-inputs
4402 `(("python" ,python-2)))
4403 (arguments
4404 `(#:make-flags
4405 (list (string-append "INSTALL_DIR=" %output
4406 "/share/games/openttd/baseset"))
4407 #:phases
4408 (modify-phases %standard-phases
4409 (delete 'configure)
4410 (add-after 'install 'post-install
4411 ;; Rename openmsx-version to openmsx
4412 (lambda* (#:key outputs #:allow-other-keys)
4413 (let ((install-directory (string-append (assoc-ref outputs "out")
4414 "/share/games/openttd/baseset")))
4415 (rename-file (string-append install-directory "/openmsx-" ,version)
4416 (string-append install-directory "/openmsx"))
4417 #t))))))
4418 (home-page "http://dev.openttdcoop.org/projects/openmsx")
4419 (synopsis "Music set for OpenTTD")
4420 (description "OpenMSX is a music set for OpenTTD which makes it possible
4421 to play OpenTTD without requiring the proprietary music from the original
4422 Transport Tycoon Deluxe.")
4423 (license license:gpl2)))
4424
4425 (define-public openttd
4426 (package
4427 (inherit openttd-engine)
4428 (name "openttd")
4429 (arguments
4430 `(#:configure-flags
4431 (list (string-append "--with-midi=" (assoc-ref %build-inputs "timidity++")
4432 "/bin/timidity"))
4433 ,@(substitute-keyword-arguments (package-arguments openttd-engine)
4434 ((#:phases phases)
4435 `(modify-phases ,phases
4436 (add-after 'install 'install-data
4437 (lambda* (#:key inputs outputs #:allow-other-keys)
4438 (for-each
4439 (lambda (input)
4440 (copy-recursively (assoc-ref inputs input)
4441 (assoc-ref outputs "out")))
4442 (list "opengfx" "openmsx" "opensfx"))
4443 #t)))))))
4444 (inputs
4445 `(("timidity++" ,timidity++)
4446 ,@(package-inputs openttd-engine)))
4447 (native-inputs
4448 `(("opengfx" ,openttd-opengfx)
4449 ("openmsx" ,openttd-openmsx)
4450 ("opensfx" ,openttd-opensfx)
4451 ,@(package-native-inputs openttd-engine)))))
4452
4453 (define openrct2-title-sequences
4454 (package
4455 (name "openrct2-title-sequences")
4456 (version "0.1.2")
4457 (source
4458 (origin
4459 (method url-fetch)
4460 (uri (string-append "https://github.com/OpenRCT2/title-sequences/releases/download/v"
4461 version "/title-sequence-v" version ".zip"))
4462 (file-name (string-append name "-" version ".zip"))
4463 (sha256
4464 (base32
4465 "0qbyxrsw8hlgaq0r5d7lx7an3idy4qbfv7yiw9byhldk763n9cfw"))))
4466 (build-system trivial-build-system)
4467 (native-inputs
4468 `(("bash" ,bash)
4469 ("coreutils" ,coreutils)
4470 ("unzip" ,unzip)))
4471 (arguments
4472 `(#:modules ((guix build utils))
4473 #:builder
4474 (begin
4475 (use-modules (guix build utils))
4476 (let* ((out (assoc-ref %outputs "out"))
4477 (openrct2-title-sequences (string-append out
4478 "/share/openrct2/title-sequences"))
4479 (source (assoc-ref %build-inputs "source"))
4480 (unzip (string-append (assoc-ref %build-inputs "unzip") "/bin/unzip")))
4481 (copy-file source (string-append ,name "-" ,version ".zip"))
4482 (invoke unzip (string-append ,name "-" ,version ".zip"))
4483 (delete-file (string-append ,name "-" ,version ".zip"))
4484 (mkdir-p openrct2-title-sequences)
4485 (copy-recursively "."
4486 openrct2-title-sequences)
4487 #t))))
4488 (home-page "https://github.com/OpenRCT2/OpenRCT2")
4489 (synopsis "Title sequences for OpenRCT2")
4490 (description
4491 "openrct2-title-sequences is a set of title sequences for OpenRCT2.")
4492 (license license:gpl3+)))
4493
4494 (define openrct2-objects
4495 (package
4496 (name "openrct2-objects")
4497 (version "1.0.20")
4498 (source
4499 (origin
4500 (method url-fetch)
4501 (uri (string-append "https://github.com/OpenRCT2/objects/releases/download/v"
4502 version "/objects.zip"))
4503 (file-name (string-append name "-" version ".zip"))
4504 (sha256
4505 (base32 "1q7a38kcwrfijav6app1gf253yfv8b0rljbkah8040y6i7snw9mw"))))
4506 (build-system trivial-build-system)
4507 (native-inputs
4508 `(("bash" ,bash)
4509 ("coreutils" ,coreutils)
4510 ("unzip" ,unzip)))
4511 (arguments
4512 `(#:modules ((guix build utils))
4513 #:builder
4514 (begin
4515 (use-modules (guix build utils))
4516 (let* ((out (assoc-ref %outputs "out"))
4517 (openrct2-objects (string-append out
4518 "/share/openrct2/objects"))
4519 (source (assoc-ref %build-inputs "source"))
4520 (unzip (string-append (assoc-ref %build-inputs "unzip") "/bin/unzip")))
4521 (copy-file source (string-append ,name "-" ,version ".zip"))
4522 (invoke unzip (string-append ,name "-" ,version ".zip"))
4523 (delete-file (string-append ,name "-" ,version ".zip"))
4524 (mkdir-p openrct2-objects)
4525 (copy-recursively "."
4526 openrct2-objects)
4527 #t))))
4528 (home-page "https://github.com/OpenRCT2/OpenRCT2")
4529 (synopsis "Objects for OpenRCT2")
4530 (description
4531 "openrct2-objects is a set of objects for OpenRCT2.")
4532 (license license:gpl3+)))
4533
4534 (define-public openrct2
4535 (package
4536 (name "openrct2")
4537 (version "0.3.2")
4538 (source
4539 (origin
4540 (method git-fetch)
4541 (uri (git-reference
4542 (url "https://github.com/OpenRCT2/OpenRCT2")
4543 (commit (string-append "v" version))))
4544 (file-name (git-file-name name version))
4545 (sha256
4546 (base32 "1fd32wniiy6qz2046ppqfj2sb3rf2qf086rf9v1bdhyj254d0b1z"))))
4547 (build-system cmake-build-system)
4548 (arguments
4549 `(#:configure-flags (list "-DDOWNLOAD_OBJECTS=OFF"
4550 "-DDOWNLOAD_TITLE_SEQUENCES=OFF")
4551 #:tests? #f ; tests require network access
4552 #:phases
4553 (modify-phases %standard-phases
4554 (add-after 'unpack 'fix-usr-share-paths&add-data
4555 (lambda* (#:key inputs outputs #:allow-other-keys)
4556 (let ((titles (assoc-ref inputs "openrct2-title-sequences"))
4557 (objects (assoc-ref inputs "openrct2-objects")))
4558 ;; Fix some references to /usr/share.
4559 (substitute* "src/openrct2/platform/Platform.Linux.cpp"
4560 (("/usr/share")
4561 (string-append (assoc-ref %outputs "out") "/share")))
4562 (copy-recursively
4563 (string-append titles "/share/openrct2/title-sequences")
4564 "data/title")
4565 (copy-recursively
4566 (string-append objects "/share/openrct2/objects")
4567 "data/object"))))
4568 (add-before 'configure 'get-rid-of-errors
4569 (lambda _
4570 ;; Don't treat warnings as errors.
4571 (substitute* "CMakeLists.txt"
4572 (("-Werror") ""))
4573 #t)))))
4574 (inputs `(("curl" ,curl)
4575 ("duktape" ,duktape)
4576 ("fontconfig" ,fontconfig)
4577 ("freetype" ,freetype)
4578 ("icu4c" ,icu4c)
4579 ("jansson" ,jansson)
4580 ("libpng" ,libpng)
4581 ("libzip" ,libzip)
4582 ("mesa" ,mesa)
4583 ("nlohmann-json-cpp" ,nlohmann-json-cpp)
4584 ("openrct2-objects" ,openrct2-objects)
4585 ("openrct2-title-sequences" ,openrct2-title-sequences)
4586 ("openssl" ,openssl)
4587 ("sdl2" ,sdl2)
4588 ("speexdsp" ,speexdsp)
4589 ("zlib" ,zlib)))
4590 (native-inputs
4591 `(("pkg-config" ,pkg-config)))
4592 (home-page "https://github.com/OpenRCT2/OpenRCT2")
4593 (synopsis "Free software re-implementation of RollerCoaster Tycoon 2")
4594 (description "OpenRCT2 is a free software re-implementation of
4595 RollerCoaster Tycoon 2 (RCT2). The gameplay revolves around building and
4596 maintaining an amusement park containing attractions, shops and facilities.
4597
4598 Note that this package does @emph{not} provide the game assets (sounds,
4599 images, etc.)")
4600 ;; See <https://github.com/OpenRCT2/OpenRCT2/wiki/Required-RCT2-files>
4601 ;; regarding assets.
4602 (license license:gpl3+)))
4603
4604 (define-public pinball
4605 (package
4606 (name "pinball")
4607 (version "0.3.1")
4608 (source
4609 (origin (method url-fetch)
4610 (uri (string-append "mirror://sourceforge/pinball/pinball/"
4611 "pinball-" version "/"
4612 "pinball-" version ".tar.gz"))
4613 (sha256
4614 (base32
4615 "1f2whlrfidwfh8lvr8cspcyirc6840r5d1ajm7x99qmngygrhixs"))
4616 (patches (search-patches "pinball-const-fix.patch"
4617 "pinball-cstddef.patch"
4618 "pinball-missing-separators.patch"
4619 "pinball-src-deps.patch"
4620 "pinball-system-ltdl.patch"))))
4621 (build-system gnu-build-system)
4622 (inputs
4623 `(("glu" ,glu)
4624 ("mesa" ,mesa)
4625 ("sdl" ,sdl)
4626 ("sdl-image" ,sdl-image)
4627 ("sdl-mixer" ,sdl-mixer)))
4628 (arguments
4629 '(#:configure-flags
4630 (list (string-append "CPPFLAGS=-I"
4631 (assoc-ref %build-inputs "sdl-image")
4632 "/include/SDL -I"
4633 (assoc-ref %build-inputs "sdl-mixer")
4634 "/include/SDL"))))
4635 (home-page "http://pinball.sourceforge.net")
4636 (synopsis "Pinball simulator")
4637 (description "The Emilia Pinball Project is a pinball simulator. There
4638 are only two levels to play with, but they are very addictive.")
4639 (license license:gpl2)))
4640
4641 (define-public pioneers
4642 (package
4643 (name "pioneers")
4644 (version "15.6")
4645 (source (origin
4646 (method url-fetch)
4647 (uri (string-append "https://downloads.sourceforge.net/pio/"
4648 "pioneers-" version ".tar.gz"))
4649 (sha256
4650 (base32
4651 "07b3xdd81n8ybsb4fzc5lx0813y9crzp1hj69khncf4faj48sdcs"))))
4652 (build-system gnu-build-system)
4653 (inputs `(("avahi" ,avahi)
4654 ("gtk+" ,gtk+)
4655 ("librsvg" ,librsvg)))
4656 (native-inputs `(("intltool" ,intltool)
4657 ("itstool" ,itstool)
4658 ("libxml2" ,libxml2)
4659 ("pkg-config" ,pkg-config)))
4660 (synopsis "Board game inspired by The Settlers of Catan")
4661 (description "Pioneers is an emulation of the board game The Settlers of
4662 Catan. It can be played on a local network, on the internet, and with AI
4663 players.")
4664 (home-page "http://pio.sourceforge.net/")
4665 (license license:gpl2+)))
4666
4667 (define-public einstein
4668 (package
4669 (name "einstein")
4670 (version "2.0")
4671 (source (origin
4672 (method url-fetch)
4673 (uri (string-append "mirror://debian/pool/main/e/"
4674 "einstein/einstein_2.0.dfsg.2.orig.tar.gz"))
4675 (sha256
4676 (base32
4677 "1hxrlv6n8py48j487i6wbb4n4vd55w0na69r7ccmmr9vmrsw5mlk"))
4678 (patches (search-patches "einstein-build.patch"))))
4679 (build-system gnu-build-system)
4680 (inputs
4681 `(("freetype" ,freetype)
4682 ("sdl" ,(sdl-union (list sdl sdl-mixer sdl-ttf)))
4683 ("zlib" ,zlib)))
4684 (native-inputs
4685 `(("font-dejavu" ,font-dejavu)))
4686 (arguments
4687 `(#:tests? #f ; no check target
4688 #:phases
4689 (modify-phases %standard-phases
4690 (replace 'configure
4691 (lambda* (#:key outputs inputs #:allow-other-keys)
4692 (let ((out (assoc-ref outputs "out"))
4693 (dejavu (string-append (assoc-ref inputs "font-dejavu")
4694 "/share/fonts/truetype/DejaVuSans.ttf")))
4695 (substitute* "Makefile"
4696 (("PREFIX=/usr/local") (string-append "PREFIX=" out)))
4697 ;; The patch above registers a free font for use by the binary,
4698 ;; but the font is copied during the compile phase into a
4699 ;; resources file, so we need to make the ttf file available.
4700 (symlink dejavu "res/DejaVuSans.ttf")
4701 #t))))))
4702 (synopsis "Logic puzzle game")
4703 (description "The goal of this logic game is to open all cards in a 6x6
4704 grid, using a number of hints as to their relative position. The game idea
4705 is attributed to Albert Einstein.")
4706 ;; The original home page has disappeared.
4707 (home-page (string-append "http://web.archive.org/web/20120521062745/"
4708 "http://games.flowix.com/en/index.html"))
4709 ;; License according to
4710 ;; http://web.archive.org/web/20150222180355/http://www.babichev.info/en/projects/index.html
4711 ;; The source code is a DFSG-sanitized tarball and does not contain any
4712 ;; license information.
4713 (license license:gpl3+)))
4714
4715 (define-public powwow
4716 (package
4717 (name "powwow")
4718 (version "1.2.22")
4719 (source (origin
4720 (method url-fetch)
4721 (uri (string-append
4722 "https://www.hoopajoo.net/static/projects/powwow-"
4723 version ".tar.gz"))
4724 (sha256
4725 (base32
4726 "12i11b8zxg8vdb9d6ims8qy2lmwwr42rcqbwq3vsa1x94s51bcbp"))))
4727 (inputs
4728 `(("ncurses" ,ncurses)))
4729 (build-system gnu-build-system)
4730 (home-page "https://www.hoopajoo.net/projects/powwow.html")
4731 (synopsis "MUD and telnet client")
4732 (description
4733 "POWWOW is a client software which can be used for telnet as well as for
4734 @dfn{Multi-User Dungeon} (MUD). Additionally it can serve as a nice client for
4735 the chat server psyced with the specific config located at
4736 http://lavachat.symlynx.com/unix/")
4737 (license license:gpl2+)))
4738
4739 (define-public red-eclipse
4740 (let ((release "2.0.0")
4741 (revision 0))
4742 (package
4743 (name "red-eclipse")
4744 (version (if (zero? revision)
4745 release
4746 (string-append release "-"
4747 (number->string revision))))
4748 (source
4749 (origin
4750 (method git-fetch)
4751 (uri (git-reference
4752 (url "https://github.com/redeclipse/base")
4753 (commit (string-append "v" release))
4754 (recursive? #t))) ; for game data
4755 (file-name (git-file-name name version))
4756 (sha256
4757 (base32 "0sz0mqhwx8r9n4mk3qrxw420nlsm3y0n48gd0lazgd64lfqjh3ab"))
4758 (modules '((guix build utils)))
4759 (snippet
4760 ;; Remove proprietary libraries and other pre-compiled binaries.
4761 '(begin
4762 (delete-file-recursively "bin")
4763 #t))))
4764 (build-system gnu-build-system)
4765 (arguments
4766 `(#:tests? #f ; no check target
4767 #:make-flags (list "CC=gcc" "-Csrc"
4768 (string-append "INSTDIR="
4769 (assoc-ref %outputs "out") "/bin")
4770 (string-append "prefix="
4771 (assoc-ref %outputs "out")))
4772 #:phases
4773 (modify-phases %standard-phases
4774 (add-after 'unpack 'add-store-data-package-path-as-default
4775 (lambda* (#:key outputs #:allow-other-keys)
4776 (substitute* "src/engine/server.cpp"
4777 (("data = \"data\"")
4778 (string-append "data = \""
4779 (assoc-ref outputs "out")
4780 "/share/redeclipse/data\"")))
4781 #t))
4782 (delete 'configure) ; no configure script
4783 (add-after 'set-paths 'set-sdl-paths
4784 (lambda* (#:key inputs #:allow-other-keys)
4785 (setenv "CPATH"
4786 (string-append (assoc-ref inputs "sdl-union")
4787 "/include/SDL2:"
4788 (or (getenv "CPATH") "")))
4789 #t))
4790 (add-after 'install 'copy-data
4791 (lambda* (#:key outputs #:allow-other-keys)
4792 (let ((out (assoc-ref outputs "out")))
4793 (copy-recursively "config"
4794 (string-append out "/config"))
4795 (copy-file "doc/examples/servinit.cfg"
4796 (string-append out "/config/servinit.cfg"))
4797 (copy-recursively "data"
4798 (string-append out "/share/redeclipse/data"))
4799 (mkdir-p (string-append out "/lib/redeclipse"))
4800 (symlink (string-append out "/share/redeclipse/data")
4801 (string-append out "/lib/redeclipse/data")))
4802 #t))
4803 (add-after 'copy-data 'wrap-program
4804 (lambda* (#:key inputs outputs #:allow-other-keys)
4805 (let* ((out (assoc-ref outputs "out"))
4806 (bin (string-append out "/bin")))
4807 (with-directory-excursion bin
4808 (rename-file "redeclipse_linux"
4809 ".redeclipse_linux-real")
4810 (rename-file "redeclipse_server_linux"
4811 ".redeclipse_server_linux-real")
4812 (call-with-output-file "redeclipse_linux"
4813 (lambda (port)
4814 (format port "#!~a/bin/sh
4815 # Run the thing from its home, otherwise it just bails out.
4816 cd \"~a\"
4817 exec -a \"$0\" ~a/.redeclipse_linux-real~%"
4818 (assoc-ref inputs "bash") ;implicit input
4819 (string-append out)
4820 (string-append bin))))
4821 (call-with-output-file "redeclipse_server_linux"
4822 (lambda (port)
4823 (format port "#!~a/bin/sh
4824 # Run the thing from its home, otherwise it just bails out.
4825 cd \"~a\"
4826 exec -a \"$0\" ~a/.redeclipse_server_linux-real~%"
4827 (assoc-ref inputs "bash") ;implicit input
4828 (string-append out)
4829 (string-append bin))))
4830 (chmod "redeclipse_linux" #o555)
4831 (chmod "redeclipse_server_linux" #o555)))
4832 #t)))))
4833 (native-inputs
4834 `(("pkg-config" ,pkg-config)))
4835 (inputs
4836 `(("curl" ,curl)
4837 ("freetype" ,freetype)
4838 ("glu" ,glu)
4839 ("sdl-union" ,(sdl-union (list sdl2
4840 sdl2-image
4841 sdl2-mixer)))))
4842 (home-page "https://redeclipse.net/")
4843 (synopsis "Arena shooter derived from the Cube 2 engine")
4844 (description
4845 "Red Eclipse is an arena shooter, created from the Cube2 engine.
4846 Offering an innovative parkour system and distinct but all potent weapons,
4847 Red Eclipse provides fast paced and accessible gameplay.")
4848 ;; The engine is under Zlib; data files are covered by the other
4849 ;; licenses. More details at file:///doc/all-licenses.txt.
4850 (license (list license:expat
4851 license:zlib
4852 license:cc-by-sa4.0
4853 license:cc-by-sa3.0
4854 license:cc-by3.0
4855 license:cc0
4856 license:public-domain
4857 license:silofl1.1)))))
4858
4859 (define-public grue-hunter
4860 (package
4861 (name "grue-hunter")
4862 (version "1.0")
4863 (source (origin
4864 (method url-fetch)
4865 (uri (string-append "https://jxself.org/grue-hunter.tar.gz"))
4866 (sha256
4867 (base32
4868 "1hjcpy5439qs3v2zykis7hsi0i17zjs62gks3zd8mnfw9ni4i2h3"))))
4869 (build-system trivial-build-system) ; no Makefile.PL
4870 (arguments `(#:modules ((guix build utils))
4871 #:builder
4872 (begin
4873 (use-modules (guix build utils))
4874 (use-modules (srfi srfi-1))
4875
4876 (let* ((tarball (assoc-ref %build-inputs "tarball"))
4877 (perl (string-append (assoc-ref %build-inputs
4878 "perl")
4879 "/bin"))
4880 (gzip (string-append (assoc-ref %build-inputs
4881 "gzip")
4882 "/bin/gzip"))
4883 (tar (string-append (assoc-ref %build-inputs
4884 "tar")
4885 "/bin/tar"))
4886 (out (assoc-ref %outputs "out"))
4887 (bin (string-append out "/bin"))
4888 (doc (string-append out
4889 "/share/doc/grue-hunter")))
4890 (copy-file tarball "grue-hunter.tar.gz")
4891 (invoke gzip "-d" "grue-hunter.tar.gz")
4892 (invoke tar "xvf" "grue-hunter.tar")
4893
4894 (mkdir-p bin)
4895 (copy-file "grue-hunter/gh.pl"
4896 (string-append bin "/grue-hunter"))
4897 (patch-shebang (string-append bin "/grue-hunter")
4898 (list perl))
4899
4900 (install-file "grue-hunter/AGPLv3.txt" doc)
4901
4902 #t))))
4903 (inputs `(("perl" ,perl)
4904 ("tar" ,tar)
4905 ("gzip" ,gzip)
4906 ("tarball" ,source)))
4907 (home-page "https://jxself.org/grue-hunter.shtml")
4908 (synopsis "Text adventure game")
4909 (description
4910 "Grue Hunter is a text adventure game written in Perl. You must make
4911 your way through an underground cave system in search of the Grue. Can you
4912 capture it and get out alive?")
4913 (license license:agpl3+)))
4914
4915 (define-public lierolibre
4916 (package
4917 (name "lierolibre")
4918 (version "0.5")
4919 (source (origin
4920 (method url-fetch)
4921 (uri (string-append "https://launchpad.net/lierolibre/trunk/"
4922 version "/+download/lierolibre-"
4923 version ".tar.xz"))
4924 (sha256
4925 (base32
4926 "1cf1gvsn4qq190lrf9k5bpjnqwlcfw7pajvdnh7z5r4jqw0rsbl9"))
4927 (patches
4928 (search-patches "lierolibre-check-unaligned-access.patch"
4929 "lierolibre-try-building-other-arch.patch"
4930 "lierolibre-remove-arch-warning.patch"
4931 "lierolibre-newer-libconfig.patch"
4932 "lierolibre-is-free-software.patch"))
4933 (modules '((guix build utils)))
4934 (snippet
4935 '(begin
4936 ;; Delete pre-compiled files.
4937 (delete-file "data/LIERO.CHR")
4938 (delete-file "data/LIERO.SND")
4939 #t))))
4940 (build-system gnu-build-system)
4941 (native-inputs
4942 `(("imagemagick" ,imagemagick)
4943 ("pkg-config" ,pkg-config)
4944 ("util-linux" ,util-linux)
4945 ("sox" ,sox)))
4946 (inputs
4947 `(("boost" ,boost)
4948 ("libconfig" ,libconfig)
4949 ("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer)))
4950 ("zlib" ,zlib)))
4951 (home-page "https://gitlab.com/lierolibre/lierolibre")
4952 (synopsis "Old-school earthworm action game")
4953 (description
4954 "lierolibre is an earthworm action game where you fight another player
4955 (or the computer) underground using a wide array of weapons.
4956
4957 Features:
4958 @itemize
4959 @item 2 worms, 40 weapons, great playability, two game modes: Kill'em All
4960 and Game of Tag, plus AI-players without true intelligence!
4961 @item Dat nostalgia.
4962 @item Extensions via a hidden F1 menu:
4963 @itemize
4964 @item Replays
4965 @item Game controller support
4966 @item Powerlevel palettes
4967 @end itemize
4968 @item Ability to write game variables to plain text files.
4969 @item Ability to load game variables from both EXE and plain text files.
4970 @item Scripts to extract and repack graphics, sounds and levels.
4971 @end itemize
4972
4973 To switch between different window sizes, use F6, F7 and F8, to switch to
4974 fullscreen, use F5 or Alt+Enter.")
4975 ;; Code mainly BSD-2, some parts under Boost 1.0. All assets are WTFPL2.
4976 (license (list license:bsd-2 license:boost1.0 license:wtfpl2))))
4977
4978 (define-public tennix
4979 (package
4980 (name "tennix")
4981 (version "1.3.1")
4982 (source
4983 (origin
4984 (method git-fetch)
4985 (uri (git-reference
4986 (url "https://repo.or.cz/tennix.git")
4987 (commit (string-append "tennix-" version))))
4988 (file-name (git-file-name name version))
4989 (sha256
4990 (base32 "02cj4lrdrisal5s9pnbf2smx7qz9czczjzndfkhfx0qy67b957sk"))
4991 ;; Remove non-free images.
4992 (modules '((guix build utils)))
4993 (snippet
4994 '(begin
4995 (for-each delete-file
4996 '("data/loc_training_camp.png"
4997 "data/loc_austrian_open.png"
4998 "data/loc_olympic_green_tennis.png"))
4999 #t))))
5000 (build-system gnu-build-system)
5001 (arguments
5002 `(#:tests? #f ;no test
5003 #:phases
5004 (modify-phases %standard-phases
5005 (add-after 'unpack 'fix-include
5006 (lambda _
5007 (substitute* '("src/graphics.h" "src/sound.h")
5008 (("#include \"(SDL_(image|ttf|mixer)\\.h)\"" _ header)
5009 (string-append "#include \"SDL/" header "\"")))
5010 (substitute* '("src/tennix.h" "src/network.h" "src/SDL_rotozoom.h")
5011 (("#include <SDL.h>") "#include <SDL/SDL.h>")
5012 (("#include <SDL_net.h>") "#include <SDL/SDL_net.h>"))
5013 #t))
5014 (add-after 'unpack 'locate-install
5015 ;; Build process cannot expand "$(INSTALL)" in Makefile.
5016 (lambda _
5017 (substitute* "makefile"
5018 (("^CONFIGURE_OUTPUT :=.*" all)
5019 (string-append "INSTALL := install -c\n" all)))
5020 #t))
5021 (replace 'configure
5022 ;; The "configure" script is picky about the arguments it
5023 ;; gets. Call it ourselves.
5024 (lambda _
5025 (invoke "./configure" "--prefix" (assoc-ref %outputs "out")))))))
5026 (native-inputs
5027 `(("which" ,which)))
5028 (inputs
5029 `(("python" ,python-wrapper)
5030 ("sdl" ,(sdl-union (list sdl sdl-image sdl-mixer sdl-ttf sdl-net)))))
5031 (home-page "http://icculus.org/tennix/")
5032 (synopsis "Play tennis against the computer or a friend")
5033 (description "Tennix is a 2D tennis game. You can play against the
5034 computer or against another player using the keyboard. The game runs
5035 in-window at 640x480 resolution or fullscreen.")
5036 ;; Project is licensed under GPL2+ terms. It includes images
5037 ;; released under Public Domain terms, and SDL_rotozoom, released
5038 ;; under LGPL2.1 terms.
5039 (license (list license:gpl2+ license:public-domain license:lgpl2.1))))
5040
5041 (define-public warzone2100
5042 (package
5043 (name "warzone2100")
5044 (version "3.4.1")
5045 (source
5046 (origin
5047 (method url-fetch)
5048 (uri (string-append "mirror://sourceforge/warzone2100/releases/"
5049 version
5050 "/warzone2100_src.tar.xz"))
5051 (sha256
5052 (base32 "0savalmw1kp1sf8vg5aqrl5hc77p4jacxy5y9qj8k2hi2vqdfb7a"))
5053 (modules '((guix build utils)))
5054 (snippet
5055 '(begin
5056 (with-directory-excursion "3rdparty"
5057 (for-each
5058 delete-file-recursively
5059 '("discord-rpc"
5060 "miniupnp"
5061 "utfcpp")))
5062 #t))))
5063 (build-system cmake-build-system)
5064 (arguments
5065 `(#:configure-flags '("-DWZ_DISTRIBUTOR=Guix"
5066 "-DENABLE_DISCORD=off")
5067 #:tests? #f ; TODO: Tests seem to be broken, configure.ac is missing.
5068 #:phases
5069 (modify-phases %standard-phases
5070 (add-after 'unpack 'fix-utfcpp-include
5071 (lambda _
5072 (substitute* "lib/framework/wzstring.cpp"
5073 (("<utfcpp/source/utf8.h>") "<utf8.h>"))
5074 #t))
5075 (add-after 'unpack 'link-tests-with-qt
5076 (lambda _
5077 (substitute* "tests/Makefile.am"
5078 (("(framework_linktest_LDADD|maptest_LDADD) = " prefix)
5079 (string-append prefix "$(QT5_LIBS) ")))
5080 #t))
5081 (add-after 'unpack 'fix-ivis-linktest
5082 (lambda _
5083 (substitute* "tests/ivis_linktest.cpp"
5084 (("iV_DrawTextRotated.*;")
5085 (string-append "iV_DrawTextRotated(\"Press ESC to exit.\", "
5086 "100, 100, 0.0f, font_regular);")))
5087 #t)))))
5088 (native-inputs `(("asciidoc" ,asciidoc)
5089 ("asciidoctor" ,ruby-asciidoctor)
5090 ("gettext" ,gettext-minimal)
5091 ("pkg-config" ,pkg-config)
5092 ("unzip" ,unzip)
5093 ;; 7z is used to create .zip archive, not `zip' as in version 3.2.*.
5094 ("p7zip" ,p7zip)))
5095 (inputs `(("curl" ,curl)
5096 ("fontconfig" ,fontconfig)
5097 ("freetype" ,freetype)
5098 ("glew" ,glew)
5099 ("harfbuzz" ,harfbuzz)
5100 ("libtheora" ,libtheora)
5101 ("libvorbis" ,libvorbis)
5102 ("libxrandr" ,libxrandr)
5103 ("libsodium" ,libsodium)
5104 ("miniupnpc" ,miniupnpc)
5105 ("openal" ,openal)
5106 ("physfs" ,physfs)
5107 ("qtbase" ,qtbase)
5108 ("qtscript" ,qtscript)
5109 ("openssl" ,openssl)
5110 ("sdl2" ,sdl2)
5111 ("utfcpp" ,utfcpp)))
5112 (home-page "https://wz2100.net")
5113 (synopsis "3D Real-time strategy and real-time tactics game")
5114 (description
5115 "Warzone 2100 offers campaign, multi-player, and single-player skirmish
5116 modes. An extensive tech tree with over 400 different technologies, combined
5117 with the unit design system, allows for a wide variety of possible units and
5118 tactics.")
5119 ;; Everything is GPLv2+ unless otherwise specified in COPYING.NONGPL
5120 (license (list license:bsd-3
5121 license:cc0
5122 license:cc-by-sa3.0
5123 license:expat
5124 license:gpl2+
5125 license:lgpl2.1+))))
5126
5127 (define-public widelands
5128 (package
5129 (name "widelands")
5130 (version "21")
5131 (source
5132 (origin
5133 (method url-fetch)
5134 (uri (string-append "https://launchpad.net/widelands/"
5135 "build" version "/build" version "/+download/"
5136 "widelands-build" version "-source.tar.gz"))
5137 (sha256
5138 (base32 "0mz3jily0w1zxxqbnkqrp6hl88xhrwzbil9crq7gpcwidx60w7k0"))
5139 (modules '((guix build utils)))
5140 (snippet
5141 '(begin
5142 (delete-file-recursively "src/third_party/minizip")
5143 #t))
5144 (patches
5145 ;; Use system Minizip. Patch is provided by Debian, and discussed
5146 ;; upstream at <https://github.com/widelands/widelands/issues/399>.
5147 (search-patches "widelands-system-wide_minizip.patch"))))
5148 (build-system cmake-build-system)
5149 (arguments
5150 `(#:configure-flags
5151 (let* ((out (assoc-ref %outputs "out"))
5152 (share (string-append out "/share")))
5153 (list (string-append "-DCMAKE_INSTALL_PREFIX=" out "/bin")
5154 (string-append "-DWL_INSTALL_BASEDIR=" share "/widelands")
5155 (string-append "-DWL_INSTALL_DATADIR=" share "/widelands")
5156 "-DOPTION_BUILD_WEBSITE_TOOLS=OFF"
5157 ;; CMakeLists.txt does not handle properly RelWithDebInfo build
5158 ;; type. When used, no game data is installed!
5159 "-DCMAKE_BUILD_TYPE=Release"))
5160 #:phases
5161 (modify-phases %standard-phases
5162 (add-after 'unpack 'unbundle-fonts
5163 ;; Unbundle fonts already packaged in Guix. XXX: missing fonts are
5164 ;; amiri, Culmus, mmrCensus, Nakula, and Sinhala.
5165 (lambda* (#:key inputs #:allow-other-keys)
5166 (with-directory-excursion "data/i18n/fonts"
5167 (for-each (lambda (font)
5168 (delete-file-recursively font)
5169 (symlink (string-append (assoc-ref inputs font)
5170 "/share/fonts/truetype")
5171 font))
5172 '("DejaVu" "MicroHei")))
5173 #t)))))
5174 (native-inputs
5175 `(("gettext" ,gettext-minimal)
5176 ("python" ,python-wrapper)))
5177 (inputs
5178 `(("boost" ,boost)
5179 ("glew" ,glew)
5180 ("icu4c" ,icu4c)
5181 ("libpng" ,libpng)
5182 ("minizip" ,minizip)
5183 ("sdl" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer sdl2-ttf)))
5184 ("zlib" ,zlib)
5185 ;; Fonts for the ‘unbundle-fonts’ phase. Case matters in name!
5186 ("DejaVu" ,font-dejavu)
5187 ("MicroHei" ,font-wqy-microhei)))
5188 (home-page "https://www.widelands.org/")
5189 (synopsis "Fantasy real-time strategy game")
5190 (description
5191 "In Widelands, you are the regent of a small clan. You start out with
5192 nothing but your headquarters, where all your resources are stored.
5193
5194 In the course of the game, you will build an ever growing settlement. Every
5195 member of your clan will do his or her part to produce more resources---wood,
5196 food, iron, gold and more---to further this growth. The economic network is
5197 complex and different in the four tribes (Barbarians, Empire, Atlanteans, and
5198 Frisians).
5199
5200 As you are not alone in the world, you will meet other clans sooner or later.
5201 Some of them may be friendly and you may eventually trade with them. However,
5202 if you want to rule the world, you will have to train soldiers and fight.
5203
5204 Widelands offers single-player mode with different campaigns; the campaigns
5205 all tell stories of tribes and their struggle in the Widelands universe!
5206 However, settling really starts when you unite with friends over the Internet
5207 or LAN to build up new empires together---or to crush each other in the dusts
5208 of war. Widelands also offers an Artificial Intelligence to challenge you.")
5209 ;; Game is released as GPL2+. Some parts, e.g., art, are released under
5210 ;; different licenses.
5211 (license (list license:gpl2+
5212 license:expat ;src/third_party/eris
5213 license:silofl1.1 ;Widelands.ttf
5214 license:cc-by-sa3.0)))) ;some music files
5215
5216 (define-public starfighter
5217 (package
5218 (name "starfighter")
5219 (version "2.4")
5220 (source (origin
5221 (method url-fetch)
5222 (uri (string-append
5223 "https://github.com/pr-starfighter/starfighter/releases"
5224 "/download/v" version "/starfighter-"
5225 version "-src.tar.gz"))
5226 (sha256
5227 (base32
5228 "0ips79j3sdy8wa64jqka0skbbqkzqiln9bbiiilh4z717q7vz9r5"))))
5229 (build-system gnu-build-system)
5230 (native-inputs
5231 `(("pkg-config" ,pkg-config)))
5232 (inputs
5233 `(("pango" ,pango)
5234 ("sdl2" ,sdl2)
5235 ("sdl2-image" ,sdl2-image)
5236 ("sdl2-mixer" ,sdl2-mixer)
5237 ("sdl2-ttf" ,sdl2-ttf)))
5238 (home-page "https://pr-starfighter.github.io/")
5239 (synopsis "2D scrolling shooter game")
5240 (description
5241 "In the year 2579, the intergalactic weapons corporation, WEAPCO, has
5242 dominated the galaxy. Guide Chris Bainfield and his friend Sid Wilson on
5243 their quest to liberate the galaxy from the clutches of WEAPCO. Along the
5244 way, you will encounter new foes, make new allies, and assist local rebels
5245 in strikes against the evil corporation.")
5246 ;; gfx and music are under CC-BY 3.0, CC-BY-SA 3.0, CC0 or Public Domain.
5247 (license (list license:gpl3+
5248 license:cc-by3.0
5249 license:cc-by-sa3.0
5250 license:cc0
5251 license:public-domain))))
5252
5253 (define-public chromium-bsu
5254 (package
5255 (name "chromium-bsu")
5256 (version "0.9.16.1")
5257 (source (origin
5258 (method url-fetch)
5259 (uri (string-append "mirror://sourceforge/chromium-bsu"
5260 "/Chromium B.S.U. source code/"
5261 "chromium-bsu-" version ".tar.gz"))
5262 (sha256
5263 (base32
5264 "0jk2w5b6s6nkzri585bbz16cif2fhqcnl5l1mq3rd98r9nil3hd1"))))
5265 (build-system gnu-build-system)
5266 (native-inputs `(("pkg-config" ,pkg-config)))
5267 (inputs `(("gettext" ,gettext-minimal)
5268 ("glu" ,glu)
5269 ("quesoglc" ,quesoglc)
5270 ("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer)))))
5271 (home-page "http://chromium-bsu.sourceforge.net/")
5272 (synopsis "Fast-paced, arcade-style, top-scrolling space shooter")
5273 (description
5274 "In this game you are the captain of the cargo ship Chromium B.S.U. and
5275 are responsible for delivering supplies to the troops on the front line. Your
5276 ship has a small fleet of robotic fighters which you control from the relative
5277 safety of the Chromium vessel.")
5278 ;; Clarified Artistic License for everything but sound, which is covered
5279 ;; by the Expat License.
5280 (license (list license:clarified-artistic license:expat))))
5281
5282 (define-public tuxpaint
5283 (package
5284 (name "tuxpaint")
5285 (version "0.9.23") ;keep VER_DATE below in sync
5286 (source
5287 (origin
5288 (method url-fetch)
5289 (uri (string-append "mirror://sourceforge/tuxpaint/tuxpaint/"
5290 version "/tuxpaint-" version ".tar.gz"))
5291 (sha256
5292 (base32
5293 "09k9pxi88r3dx6dyjwf9h85d4qpva4i29qz63dc558hg9v21k69l"))
5294 (modules '((guix build utils)))
5295 (snippet
5296 '(begin
5297 ;; Remove win32 directory which contains binary dll's and the
5298 ;; deprecated visualc directory.
5299 (for-each delete-file-recursively '("win32" "visualc"))
5300 (substitute* "Makefile"
5301 ;; Do not rely on $(GPERF) being an absolute file name
5302 (("\\[ -x \\$\\(GPERF\\) \\]")
5303 "$(GPERF) --version >/dev/null 2>&1"))
5304 #t))
5305 (patches (search-patches "tuxpaint-stamps-path.patch"))))
5306 (build-system gnu-build-system)
5307 (native-inputs
5308 `(("gperf" ,gperf)
5309 ("pkg-config" ,pkg-config)))
5310 (inputs
5311 `(("cairo" ,cairo)
5312 ("fribidi" ,fribidi)
5313 ("gettext" ,gettext-minimal)
5314 ("libpng" ,libpng)
5315 ("librsvg" ,librsvg)
5316 ("libpaper" ,libpaper)
5317 ("netpbm" ,netpbm)
5318 ("sdl" ,(sdl-union (list sdl sdl-mixer sdl-ttf sdl-image)))))
5319 ;; TODO: Use system fonts rather than those in data/fonts
5320 (arguments
5321 `(#:make-flags `("VER_DATE=2018-09-02"
5322 "GPERF=gperf" "CC=gcc"
5323 "SDL_PCNAME=sdl SDL_image SDL_mixer SDL_ttf"
5324 ,(string-append "PREFIX=" %output)
5325 "KDE_PREFIX=$(PREFIX)/share/applications"
5326 "KDE_ICON_PREFIX=$(PREFIX)/share/icons/"
5327 "COMPLETIONDIR=$(PREFIX)/etc/bash_completion.d")
5328 #:parallel-build? #f ;fails on some systems
5329 #:tests? #f ;No tests
5330 #:phases (modify-phases %standard-phases
5331 (delete 'configure) ;no configure phase
5332 (add-before 'install 'no-sys-cache
5333 (lambda _ ;do not rebuild system conf cache
5334 (substitute* "Makefile"
5335 (("kbuildsycoca4") ""))
5336 #t))
5337 (add-after 'install 'fix-import
5338 (lambda* (#:key inputs outputs #:allow-other-keys)
5339 (let* ((out (assoc-ref outputs "out"))
5340 (net (assoc-ref inputs "netpbm"))
5341 (tpi (string-append out "/bin/tuxpaint-import")))
5342 (substitute* tpi
5343 ;; Point to installation prefix so that the default
5344 ;; configure file is found.
5345 (("/usr/local") out))
5346 ;; tuxpaint-import uses a bunch of programs from
5347 ;; netpbm, so make sure it knows where those are
5348 (wrap-program tpi
5349 `("PATH" ":" prefix
5350 (,(string-append net "/bin"))))))))))
5351 (native-search-paths
5352 (list (search-path-specification
5353 (variable "TUXPAINT_STAMPS_PATH")
5354 (files '("share/tuxpaint/stamps")))))
5355 (home-page "http://www.tuxpaint.org")
5356 (synopsis "Drawing software for children")
5357 (description
5358 "Tux Paint is a free drawing program designed for young children (kids
5359 ages 3 and up). It has a simple, easy-to-use interface; fun sound effects;
5360 and an encouraging cartoon mascot who helps guide children as they use the
5361 program. It provides a blank canvas and a variety of drawing tools to help
5362 your child be creative.")
5363 (license license:gpl2+)))
5364
5365 (define-public tuxpaint-stamps
5366 (package
5367 (name "tuxpaint-stamps")
5368 (version "2018.09.01")
5369 (source
5370 (origin
5371 (method url-fetch)
5372 (uri (string-append "mirror://sourceforge/tuxpaint/tuxpaint-stamps/"
5373 (string-map (λ (x) (if (eq? x #\.) #\- x)) version)
5374 "/tuxpaint-stamps-" version ".tar.gz"))
5375 (sha256
5376 (base32
5377 "1skr23k27yj3vgwfazpzxp90lb2a278gxrkr3bxw7az6zpkmb3yp"))))
5378 (build-system trivial-build-system)
5379 (native-inputs
5380 `(("tar" ,tar)
5381 ("gzip" ,gzip)))
5382 (arguments
5383 `(#:modules ((guix build utils))
5384 #:builder (begin
5385 (use-modules (guix build utils))
5386 (setenv "PATH"
5387 (string-append
5388 (assoc-ref %build-inputs "tar") "/bin" ":"
5389 (assoc-ref %build-inputs "gzip") "/bin"))
5390 (invoke "tar" "xvf" (assoc-ref %build-inputs "source"))
5391 (chdir (string-append ,name "-" ,version))
5392 (let ((dir (string-append %output "/share/tuxpaint/stamps")))
5393 (mkdir-p dir)
5394 (copy-recursively "stamps" dir))
5395 #t)))
5396 (home-page (package-home-page tuxpaint))
5397 (synopsis "Stamp images for Tux Paint")
5398 (description
5399 "This package contains a set of \"Rubber Stamp\" images which can be used
5400 with the \"Stamp\" tool within Tux Paint.")
5401 (license license:gpl2+)))
5402
5403 (define-public tuxpaint-config
5404 (package
5405 (name "tuxpaint-config")
5406 (version "0.0.14") ;keep VER_DATE below in sync
5407 (source
5408 (origin
5409 (method url-fetch)
5410 (uri (string-append "mirror://sourceforge/tuxpaint/tuxpaint-config/"
5411 version "/tuxpaint-config-" version ".tar.gz"))
5412 (sha256
5413 (base32
5414 "0zkgxk436nqcp43zghkfmh397c7dvh5bwn2as7gwvv208bzyij6g"))))
5415 (build-system gnu-build-system)
5416 (native-inputs
5417 `(("gettext" ,gettext-minimal)))
5418 (inputs
5419 `(("fltk" ,fltk)
5420 ("libpaper" ,libpaper)
5421 ;; TODO: Should the following be propagated by fltk?
5422 ("libx11" ,libx11)
5423 ("libxft" ,libxft)
5424 ("mesa" ,mesa)))
5425 (arguments
5426 `(#:make-flags `("VER_DATE=2018-09-01"
5427 "CONFDIR=/etc/tuxpaint" ;don't write to store
5428 ,(string-append "PREFIX=" %output)
5429 "GNOME_PREFIX=$(PREFIX)")
5430 #:parallel-build? #f ;race conditions
5431 #:tests? #f ;no tests
5432 #:phases (modify-phases %standard-phases
5433 (delete 'configure) ;no configure phase
5434 (add-before 'install 'gzip-no-name
5435 (lambda* _
5436 (substitute* "Makefile"
5437 ;; tuxpaint-config compresses its own documentation;
5438 ;; make sure it uses flags for reproducibility.
5439 (("gzip") "gzip --no-name"))))
5440 (add-before 'install 'make-install-dirs
5441 (lambda* (#:key outputs #:allow-other-keys)
5442 (let ((out (assoc-ref outputs "out")))
5443 (mkdir-p (string-append out "/bin"))
5444 #t))))))
5445 (home-page (package-home-page tuxpaint))
5446 (synopsis "Configure Tux Paint")
5447 (description
5448 "Tux Paint Config is a graphical configuration editor for Tux Paint.")
5449 (license license:gpl2))) ;no "or later" present
5450
5451 (define-public supertux
5452 (package
5453 (name "supertux")
5454 (version "0.6.2")
5455 (source (origin
5456 (method url-fetch)
5457 (uri (string-append "https://github.com/SuperTux/supertux/"
5458 "releases/download/v" version "/SuperTux-v"
5459 version "-Source.tar.gz"))
5460 (file-name (string-append name "-" version ".tar.gz"))
5461 (sha256
5462 (base32
5463 "167m3z4m8n76dvbv42m1fnvabpbpsxvr28zk9641916jl9pfba96"))
5464 (patches
5465 (search-patches "supertux-unbundle-squirrel.patch"))))
5466 (arguments
5467 '(#:tests? #f
5468 #:configure-flags '("-DINSTALL_SUBDIR_BIN=bin"
5469 "-DUSE_SYSTEM_PHYSFS=ON")
5470 #:phases
5471 (modify-phases %standard-phases
5472 (add-after 'unpack 'patch-squirrel-path
5473 (lambda* (#:key inputs #:allow-other-keys)
5474 (let ((squirrel (assoc-ref inputs "squirrel")))
5475 (substitute* "CMakeLists.txt"
5476 (("set\\(SQUIRREL_PREFIX.*")
5477 (string-append "set(SQUIRREL_PREFIX " squirrel ")"))
5478 (("add_dependencies\\(supertux2_lib squirrel\\)") "")
5479 (("\\$\\{SQUIRREL_PREFIX\\}/include")
5480 (string-append "${SQUIRREL_PREFIX}/include/squirrel"))))
5481 #t)))))
5482 (build-system cmake-build-system)
5483 (inputs `(("sdl2" ,sdl2)
5484 ("sdl2-image" ,sdl2-image)
5485 ("sdl2-mixer" ,sdl2-mixer)
5486 ("openal" ,openal)
5487 ("mesa" ,mesa)
5488 ("glew" ,glew)
5489 ("libvorbis" ,libvorbis)
5490 ("libogg" ,libogg)
5491 ("physfs" ,physfs)
5492 ("curl" ,curl)
5493 ("boost" ,boost)
5494 ("freetype" ,freetype)
5495 ("squirrel" ,squirrel)))
5496 (native-inputs
5497 `(("pkg-config" ,pkg-config)))
5498 (synopsis "2D platformer game")
5499 (description "SuperTux is a classic 2D jump'n run sidescroller game in
5500 a style similar to the original Super Mario games.")
5501 (home-page "https://supertux.org/")
5502 (license license:gpl3+)))
5503
5504 (define-public tintin++
5505 (package
5506 (name "tintin++")
5507 (version "2.02.05")
5508 (source
5509 (origin
5510 (method url-fetch)
5511 (uri (string-append "mirror://sourceforge/tintin/TinTin++ Source Code/"
5512 (string-drop-right version 1)
5513 "/tintin-" version ".tar.gz"))
5514 (sha256
5515 (base32 "18fm9ga08mxqmblahmnlzwnl387i8mbkj4n0gffxc91d299019v3"))))
5516 (inputs
5517 `(("gnutls" ,gnutls)
5518 ("pcre" ,pcre)
5519 ("readline" ,readline)
5520 ("zlib" ,zlib)))
5521 (arguments
5522 '(#:tests? #f ; no test suite
5523 #:phases
5524 (modify-phases %standard-phases
5525 ;; The source is in tt/src.
5526 (add-before 'configure 'chdir
5527 (lambda _
5528 (chdir "src")
5529 #t)))))
5530 (build-system gnu-build-system)
5531 (home-page "https://tintin.mudhalla.net/")
5532 (synopsis "MUD client")
5533 (description
5534 "TinTin++ is a MUD client which supports MCCP (Mud Client Compression
5535 Protocol), MMCP (Mud Master Chat Protocol), xterm 256 colors, most TELNET
5536 options used by MUDs, as well as those required to login via telnet on
5537 Linux / Mac OS X servers, and an auto mapper with a VT100 map display.")
5538 (license license:gpl3+)))
5539
5540 (define-public laby
5541 (package
5542 (name "laby")
5543 (version "0.7.0")
5544 (source
5545 (origin (method git-fetch)
5546 (uri (git-reference
5547 (url "https://github.com/sgimenez/laby")
5548 (commit (string-append name "-" version))))
5549 (file-name (git-file-name name version))
5550 (sha256
5551 (base32
5552 "1y6nfxcjhqg9bb81hs0wijg7kcwk5kff81rgd8bsv5ps7ia9nj6b"))
5553 (patches (search-patches "laby-make-install.patch"))))
5554 (build-system gnu-build-system)
5555 (inputs
5556 `(("lablgtk" ,lablgtk)
5557 ("ocaml" ,ocaml)
5558 ("ocaml-findlib" ,ocaml-findlib)
5559 ("ocamlbuild" ,ocamlbuild)))
5560 (arguments
5561 '(#:phases
5562 (modify-phases %standard-phases
5563 (delete 'configure)
5564 (add-before 'build 'allow-unsafe-strings
5565 ;; Fix a build failure with ocaml >=4.06.0.
5566 ;; See <https://github.com/sgimenez/laby/issues/53>.
5567 (lambda _
5568 (setenv "OCAMLPARAM" "safe-string=0,_")
5569 #t))
5570 (add-before 'build 'set-library-path
5571 (lambda* (#:key inputs #:allow-other-keys)
5572 (let ((lablgtk (assoc-ref inputs "lablgtk")))
5573 (setenv "LD_LIBRARY_PATH"
5574 (string-append lablgtk "/lib/ocaml/stublibs"))))))
5575 #:tests? #f ; no 'check' target
5576 #:make-flags
5577 (list (string-append "PREFIX=" (assoc-ref %outputs "out")) "all")))
5578 (home-page "https://sgimenez.github.io/laby/")
5579 (synopsis "Programming game")
5580 (description "Learn programming, playing with ants and spider webs ;-)
5581 Your robot ant can be programmed in many languages: OCaml, Python, C, C++,
5582 Java, Ruby, Lua, JavaScript, Pascal, Perl, Scheme, Vala, Prolog. Experienced
5583 programmers may also add their own favorite language.")
5584 (license license:gpl3+)))
5585
5586 (define-public bambam
5587 (package
5588 (name "bambam")
5589 (version "1.0.0")
5590 (source
5591 (origin
5592 (method git-fetch)
5593 (uri (git-reference
5594 (url "https://github.com/porridge/bambam")
5595 (commit (string-append "v" version))))
5596 (file-name (git-file-name name version))
5597 (sha256
5598 (base32 "18cwd1wpyyx8y61cags9bkdhx9x858xicc4y1c9c2s0xjmgzhl3i"))))
5599 (build-system python-build-system)
5600 (arguments
5601 `(#:tests? #f ; no tests
5602 #:phases
5603 (modify-phases %standard-phases
5604 (delete 'build) ; nothing to build
5605 (replace 'install
5606 (lambda* (#:key outputs #:allow-other-keys)
5607 (let* ((out (assoc-ref outputs "out"))
5608 (bin (string-append out "/bin"))
5609 (share (string-append out "/share")))
5610 (mkdir-p bin)
5611 (copy-file "bambam.py" (string-append bin "/bambam"))
5612 (install-file "bambam.6" (string-append share "/man/man6"))
5613 (copy-recursively "data" (string-append share "/bambam/data")))
5614 #t)))))
5615 (inputs
5616 `(("python-pygame" ,python-pygame)))
5617 (home-page "https://github.com/porridge/bambam")
5618 (synopsis "Keyboard mashing and doodling game for babies")
5619 (description "Bambam is a simple baby keyboard (and gamepad) masher
5620 application that locks the keyboard and mouse and instead displays bright
5621 colors, pictures, and sounds.")
5622 (license license:gpl3+)))
5623
5624 (define-public mrrescue
5625 (package
5626 (name "mrrescue")
5627 (version "1.02e")
5628 (source (origin
5629 (method url-fetch)
5630 (uri (string-append
5631 "https://github.com/SimonLarsen/mrrescue/releases/"
5632 "download/" version "/mrrescue" version ".love"))
5633 (file-name (string-append name "-" version ".love"))
5634 (sha256
5635 (base32
5636 "0jwzbwkgp1l5ia6c7s760gmdirbsncp6nfqp7vqdqsfb63la9gl2"))))
5637 (build-system trivial-build-system)
5638 (arguments
5639 `(#:modules ((guix build utils))
5640 #:builder
5641 (begin
5642 (use-modules (guix build utils))
5643 (let* ((out (assoc-ref %outputs "out"))
5644 (script (string-append out "/bin/" ,name))
5645 (data (string-append out "/share/" ,name))
5646 (source (assoc-ref %build-inputs "source"))
5647 (unzip (string-append (assoc-ref %build-inputs "unzip")
5648 "/bin/unzip"))
5649 (patch (string-append (assoc-ref %build-inputs "patch")
5650 "/bin/patch"))
5651 (bash (string-append (assoc-ref %build-inputs "bash")
5652 "/bin/bash"))
5653 (love (string-append (assoc-ref %build-inputs "love")
5654 "/bin/love")))
5655
5656 (mkdir-p (dirname script))
5657 (with-output-to-file script
5658 (lambda ()
5659 (format #t "#!~a~%" bash)
5660 (format #t "exec -a ~a \"~a\" \"~a\"~%" ,name love data)))
5661 (chmod script #o755)
5662
5663 ;; The better way to package this game would be to install *only* the
5664 ;; script above, pointing to the unextracted .love file in the store.
5665 ;; However, mrrescue 1.02e needs to be patched to work with Love 11.
5666 ;; Instead of extracting the .love file, patching it, and re-zipping
5667 ;; it to the store, simply point the script to the extracted patched
5668 ;; data directory directly.
5669 (mkdir-p data)
5670 (with-directory-excursion data
5671 (invoke unzip source)
5672 (invoke patch "-p1" "-i"
5673 (assoc-ref %build-inputs "love-11.patch")))
5674 #t))))
5675 (native-inputs
5676 `(("unzip" ,unzip)
5677 ("patch" ,patch)
5678 ("love-11.patch" ,(search-patch "mrrescue-support-love-11.patch"))))
5679 (inputs
5680 `(("bash" ,bash)
5681 ("love" ,love)))
5682 (home-page "https://tangramgames.dk/games/mrrescue")
5683 (synopsis "Arcade-style fire fighting game")
5684 (description
5685 "Mr. Rescue is an arcade styled 2d action game centered around evacuating
5686 civilians from burning buildings. The game features fast-paced fire
5687 extinguishing action, intense boss battles, a catchy soundtrack, and lots of
5688 throwing people around in pseudo-randomly generated buildings.")
5689 (license (list license:zlib ; for source code
5690 license:cc-by-sa3.0)))) ; for graphics and music assets
5691
5692 (define-public hyperrogue
5693 (package
5694 (name "hyperrogue")
5695 (version "11.3a")
5696 ;; When updating this package, be sure to update the "hyperrogue-data"
5697 ;; origin in native-inputs.
5698 (source (origin
5699 (method url-fetch)
5700 (uri (string-append
5701 "https://www.roguetemple.com/z/hyper/hyperrogue"
5702 (string-join (string-split version #\.) "")
5703 "-src.tgz"))
5704 (sha256
5705 (base32
5706 "1yxabbswq02fc5frigvs43f83m5vlxybc7n5mynkwzj2c70lfp2k"))))
5707 (build-system gnu-build-system)
5708 (arguments
5709 `(#:tests? #f ; no check target
5710 #:make-flags '("HYPERROGUE_USE_GLEW=1"
5711 "HYPERROGUE_USE_PNG=1")
5712 #:phases
5713 (modify-phases %standard-phases
5714 (add-after 'set-paths 'set-sdl-paths
5715 (lambda* (#:key inputs #:allow-other-keys)
5716 (setenv "CPATH"
5717 (string-append (or (getenv "CPATH") "") ":"
5718 (assoc-ref inputs "sdl-union")
5719 "/include/SDL"))))
5720 (replace 'configure
5721 (lambda* (#:key inputs outputs #:allow-other-keys)
5722 (let* ((out (assoc-ref outputs "out"))
5723 (share-dir (string-append out "/share/hyperrogue"))
5724 (dejavu-dir (string-append
5725 (assoc-ref inputs "font-dejavu")
5726 "/share/fonts/truetype"))
5727 (dejavu-font "DejaVuSans-Bold.ttf")
5728 (music-file "hyperrogue-music.txt"))
5729 ;; Fix font and music paths.
5730 (substitute* "basegraph.cpp"
5731 ((dejavu-font)
5732 (string-append dejavu-dir "/" dejavu-font)))
5733 (substitute* music-file
5734 (("\\*/")
5735 (string-append share-dir "/sounds/")))
5736 (substitute* "sound.cpp"
5737 (("musicfile = \"\"")
5738 (string-append "musicfile = \""
5739 share-dir "/" music-file "\"")))
5740 ;; Disable build machine CPU optimizations and warnings treated
5741 ;; as errors.
5742 (substitute* "Makefile"
5743 (("-march=native") "")
5744 (("-Werror") "")))
5745 #t))
5746 (replace 'install
5747 (lambda* (#:key inputs outputs #:allow-other-keys)
5748 (let* ((out (assoc-ref outputs "out"))
5749 (bin (string-append out "/bin"))
5750 (share-dir (string-append out "/share/hyperrogue")))
5751 (mkdir-p bin)
5752 (install-file "hyperrogue" bin)
5753 (install-file "hyperrogue-music.txt" share-dir))
5754 #t))
5755 (add-after 'install 'install-data
5756 (lambda* (#:key inputs outputs #:allow-other-keys)
5757 (let* ((data (assoc-ref inputs "hyperrogue-data"))
5758 (out (assoc-ref outputs "out"))
5759 (sounds (string-append out "/share/hyperrogue/sounds"))
5760 (unzip (string-append (assoc-ref inputs "unzip") "/bin/unzip")))
5761 ;; Extract media license information into sounds directory.
5762 (invoke unzip "-j" data
5763 (string-append
5764 "hyperrogue"
5765 (string-join (string-split ,version #\.) "")
5766 "/sounds/credits.txt") "-d" sounds)
5767 ;; Extract sounds and music into sounds directory.
5768 (invoke "unzip" "-j" data
5769 (string-append
5770 "hyperrogue"
5771 (string-join (string-split ,version #\.) "")
5772 "/*.ogg") "-d" sounds)))))))
5773 (native-inputs
5774 `(("hyperrogue-data"
5775 ,(origin
5776 (method url-fetch)
5777 (uri
5778 (string-append
5779 "https://www.roguetemple.com/z/hyper/hyperrogue"
5780 (string-join (string-split version #\.) "")
5781 "-win.zip"))
5782 (sha256
5783 (base32
5784 "11yhbia45f1w9z0j67h9nynwjqmvakr9l6rnrmdrdkzin6lvzzj4"))))
5785 ("unzip" ,unzip)))
5786 (inputs
5787 `(("font-dejavu" ,font-dejavu)
5788 ("glew" ,glew)
5789 ("libpng" ,libpng)
5790 ("sdl-union" ,(sdl-union (list sdl
5791 sdl-gfx
5792 sdl-mixer
5793 sdl-ttf)))))
5794 (home-page "https://www.roguetemple.com/z/hyper/")
5795 (synopsis "Non-euclidean graphical rogue-like game")
5796 (description
5797 "HyperRogue is a game in which the player collects treasures and fights
5798 monsters -- rogue-like but for the fact that it is played on the hyperbolic
5799 plane and not in euclidean space.
5800
5801 In HyperRogue, the player can move through different parts of the world, which
5802 are home to particular creatures and may be subject to their own rules of
5803 \"physics\".
5804
5805 While the game can use ASCII characters to display the the classical rogue
5806 symbols, it still needs graphics to render the non-euclidean world.")
5807 (license (list license:bsd-3 ; glew.c, mtrand.*
5808 license:cc-by-sa3.0 ; music
5809 license:cc-by-sa4.0 ; sounds
5810 license:cc0
5811 license:public-domain ; direntx.*, some sounds
5812 license:zlib ; savepng.*
5813 license:gpl2+)))) ; remaining files
5814
5815 (define-public kobodeluxe
5816 (package
5817 (name "kobodeluxe")
5818 (version "0.5.1")
5819 (source (origin
5820 (method url-fetch)
5821 (uri (string-append "http://olofson.net/kobodl/download/KoboDeluxe-"
5822 version ".tar.bz2"))
5823 (sha256
5824 (base32
5825 "0b2wvdpnmaibsy419c16dfwj5kvd3pccby2aaqvm964x74592yqg"))
5826 (patches (search-patches
5827 "kobodeluxe-const-charp-conversion.patch"
5828 "kobodeluxe-enemies-pipe-decl.patch"
5829 "kobodeluxe-graphics-window-signed-char.patch"
5830 "kobodeluxe-manpage-minus-not-hyphen.patch"
5831 "kobodeluxe-midicon-segmentation-fault.patch"
5832 "kobodeluxe-paths.patch"))))
5833 (build-system gnu-build-system)
5834 (arguments
5835 '(#:configure-flags
5836 (list (string-append "CPPFLAGS=-I"
5837 (assoc-ref %build-inputs "sdl-union")
5838 "/include/SDL"))))
5839 (inputs
5840 `(("glu" ,glu)
5841 ("sdl-union" ,(sdl-union (list sdl sdl-image)))))
5842 (synopsis "Shooter with space station destruction")
5843 (description
5844 "Kobo Deluxe is an enhanced version of Akira Higuchi's XKobo graphical game
5845 for Un*x systems with X11.")
5846 (home-page "http://olofson.net/kobodl/")
5847 (license license:gpl2+)))
5848
5849 (define-public freeciv
5850 (package
5851 (name "freeciv")
5852 (version "2.6.3")
5853 (source
5854 (origin
5855 (method url-fetch)
5856 (uri (list (string-append
5857 "http://files.freeciv.org/stable/freeciv-"
5858 version ".tar.bz2")
5859 (string-append
5860 "mirror://sourceforge/freeciv/Freeciv%20"
5861 (version-major+minor version) "/" version
5862 "/freeciv-" version ".tar.bz2")))
5863 (sha256
5864 (base32 "1lgq7wcbhwpy2yqdw4biwfmp5q8fh7lhlwxcgm0fpaapfl12whvp"))))
5865 (build-system gnu-build-system)
5866 (inputs
5867 `(("curl" ,curl)
5868 ("cyrus-sasl" ,cyrus-sasl)
5869 ("gtk+" ,gtk+)
5870 ("sdl-mixer" ,sdl-mixer)
5871 ("zlib" ,zlib)))
5872 (native-inputs
5873 `(("pkg-config" ,pkg-config)))
5874 (home-page "http://www.freeciv.org/")
5875 (synopsis "Turn-based empire building strategy game")
5876 (description "Freeciv is a turn-based empire building strategy game
5877 inspired by the history of human civilization. The game commences in
5878 prehistory and your mission is to lead your tribe from the Stone Age
5879 into the Space Age.")
5880 (license license:gpl2+)))
5881
5882 (define-public no-more-secrets
5883 (package
5884 (name "no-more-secrets")
5885 (version "0.3.3")
5886 (source
5887 (origin
5888 (method git-fetch)
5889 (uri (git-reference
5890 (url "https://github.com/bartobri/no-more-secrets")
5891 (commit (string-append "v" version))))
5892 (file-name (git-file-name name version))
5893 (sha256
5894 (base32 "1zfv4qabikf8w9winsr4brxrdvs3f0d7xvydksyx8bydadsm2v2h"))))
5895 (build-system gnu-build-system)
5896 (arguments
5897 `(#:tests? #f
5898 #:make-flags (list "CC=gcc" "all-ncurses"
5899 (string-append "prefix="
5900 (assoc-ref %outputs "out")))
5901 #:phases
5902 (modify-phases %standard-phases
5903 (delete 'configure))))
5904 (inputs
5905 `(("ncurses" ,ncurses)))
5906 (home-page "https://github.com/bartobri/no-more-secrets")
5907 (synopsis "Recreation of data decryption effect in \"Sneakers\"")
5908 (description
5909 "@code{No More Secrets} provides a command line tool called \"nms\"
5910 that recreates the famous data decryption effect seen on screen in the 1992
5911 movie \"Sneakers\".
5912
5913 This command works on piped data. Pipe any ASCII or UTF-8 text to nms, and
5914 it will apply the hollywood effect, initially showing encrypted data, then
5915 starting a decryption sequence to reveal the original plaintext characters.")
5916 (license license:expat)))
5917
5918 (define-public megaglest-data
5919 (package
5920 (name "megaglest-data")
5921 (version "3.13.0")
5922 (source
5923 (origin
5924 (method url-fetch)
5925 (uri (string-append
5926 "https://github.com/MegaGlest/megaglest-data"
5927 "/releases/download/" version "/megaglest-data-"
5928 version ".tar.xz"))
5929 (sha256
5930 (base32
5931 "0ipgza33z89fw3si32iafm981f3fvm0zldvbxj29whghd2k3rpj3"))))
5932 (build-system cmake-build-system)
5933 (arguments
5934 `(#:tests? #f))
5935 (home-page "https://megaglest.org/")
5936 (synopsis "Data files for MegaGlest")
5937 (description "This package contains the data files required for MegaGlest.")
5938 (license license:cc-by-sa3.0)))
5939
5940 (define-public megaglest
5941 (package
5942 (name "megaglest")
5943 (version "3.13.0")
5944 (source
5945 (origin
5946 (method url-fetch)
5947 (uri (string-append
5948 "https://github.com/MegaGlest/megaglest-source"
5949 "/releases/download/" version "/megaglest-source-"
5950 version ".tar.xz"))
5951 (sha256
5952 (base32
5953 "1ffck3ii1wp5k3nn5p0ga06jgp7pzk4zw0xln3xim2w7qrxzdzh9"))))
5954 (build-system cmake-build-system)
5955 (inputs
5956 `(("curl" ,curl)
5957 ("fontconfig" ,fontconfig)
5958 ("ftgl" ,ftgl)
5959 ("glew" ,glew)
5960 ("libjpeg-turbo" ,libjpeg-turbo)
5961 ("megaglest-data" ,megaglest-data)
5962 ("mesa" ,mesa)
5963 ("miniupnpc" ,miniupnpc)
5964 ("openal" ,openal)
5965 ("libircclient" ,libircclient)
5966 ("libpng" ,libpng)
5967 ("libvorbis" ,libvorbis)
5968 ("lua" ,lua)
5969 ("sdl2" ,sdl2)
5970 ("wxwidgets" ,wxwidgets)))
5971 (native-inputs
5972 `(("cppunit" ,cppunit)
5973 ("pkg-config" ,pkg-config)))
5974 (arguments
5975 `(#:configure-flags
5976 (list (string-append "-DCUSTOM_DATA_INSTALL_PATH="
5977 (assoc-ref %build-inputs "megaglest-data")
5978 "/share/megaglest")
5979 "-DBUILD_MEGAGLEST_TESTS=ON")
5980 #:phases
5981 (modify-phases %standard-phases
5982 (add-after 'unpack 'fix-ini-search-path
5983 (lambda* (#:key outputs #:allow-other-keys)
5984 (substitute* "source/glest_game/global/config.cpp"
5985 (("/usr/share/megaglest/")
5986 (string-append (assoc-ref outputs "out")
5987 "/share/megaglest/"))))))
5988 #:test-target "megaglest_tests"))
5989 (home-page "https://megaglest.org/")
5990 (synopsis "3D real-time strategy (RTS) game")
5991 (description "MegaGlest is a cross-platform 3D real-time strategy (RTS)
5992 game, where you control the armies of one of seven different factions: Tech,
5993 Magic, Egypt, Indians, Norsemen, Persian or Romans.")
5994 (license license:gpl2+)))
5995
5996 (define-public freegish
5997 (let ((commit "8795cd7adc95957883f2d3465eb9036a774667a7")
5998 (revision "1"))
5999 (package
6000 (name "freegish")
6001 (version (string-append "0-" revision "." (string-take commit 9)))
6002 (source (origin
6003 (method git-fetch)
6004 (uri (git-reference
6005 (url "https://github.com/freegish/freegish")
6006 (commit commit)))
6007 (file-name (git-file-name name version))
6008 (sha256
6009 (base32
6010 "1p1zf5qqagmcpi1db2bs02cnalpy3qiymp6yzan7k1bhmv859gsx"))
6011 (modules '((guix build utils)))
6012 ;; The audio files in the "music" directory are licensed under
6013 ;; CC-BY-NC, so we delete them.
6014 (snippet
6015 '(begin
6016 (delete-file-recursively "music")
6017 #t))))
6018 (build-system cmake-build-system)
6019 (arguments
6020 `(#:tests? #f ; no tests included
6021 #:configure-flags
6022 (list "-DCMAKE_INSTALL_FHS=ON")
6023 #:phases
6024 (modify-phases %standard-phases
6025 (add-after 'unpack 'set-DATAPATH
6026 (lambda* (#:key outputs #:allow-other-keys)
6027 (substitute* "CMakeLists.txt"
6028 (("^option\\(INSTALL_FHS" line)
6029 (string-append "add_definitions(-DDATAPATH=\""
6030 (assoc-ref outputs "out") "/share/freegish\")\n"
6031 line)))
6032 #t)))))
6033 (inputs
6034 `(("sdl-union" ,(sdl-union (list sdl sdl-mixer)))
6035 ("openal" ,openal)
6036 ("libvorbis" ,libvorbis)
6037 ("libogg" ,libogg)
6038 ("mesa" ,mesa)
6039 ("libpng" ,libpng)
6040 ("zlib" ,zlib)))
6041 (home-page "https://github.com/freegish/freegish")
6042 (synopsis "Side-scrolling physics platformer with a ball of tar")
6043 (description "In FreeGish you control Gish, a ball of tar who lives
6044 happily with his girlfriend Brea, until one day a mysterious dark creature
6045 emerges from a sewer hole and pulls her below ground.")
6046 ;; The textures are available under the Expat license. All other assets
6047 ;; (including levels) are covered under CC-BY-SA or public domain. The
6048 ;; source code is under GPLv2+.
6049 (license (list license:gpl2+
6050 license:expat
6051 license:public-domain
6052 license:cc-by-sa3.0)))))
6053
6054 (define-public cdogs-sdl
6055 (package
6056 (name "cdogs-sdl")
6057 (version "0.8.0")
6058 (source
6059 (origin
6060 (method git-fetch)
6061 (uri (git-reference
6062 (url "https://github.com/cxong/cdogs-sdl")
6063 (commit version)))
6064 (file-name (git-file-name name version))
6065 (sha256
6066 (base32 "0vx37zb2iw7sfw5a2bs97ydlmb301nvy485ybdm8g46c5hn9s13c"))))
6067 (build-system cmake-build-system)
6068 (arguments
6069 `(#:configure-flags
6070 (list (string-append "-DCDOGS_DATA_DIR="
6071 (assoc-ref %outputs "out")
6072 "/share/cdogs-sdl/"))))
6073 (native-inputs
6074 `(("pkg-config" ,pkg-config)))
6075 (inputs
6076 `(("gtk+" ,gtk+)
6077 ("mesa" ,mesa)
6078 ("sdl2" ,sdl2)
6079 ("sdl2-image" ,sdl2-image)
6080 ("sdl2-mixer" ,sdl2-mixer)))
6081 (home-page "https://cxong.github.io/cdogs-sdl/")
6082 (synopsis "Classic overhead run-and-gun game")
6083 (description "C-Dogs SDL is a classic overhead run-and-gun game,
6084 supporting up to 4 players in co-op and deathmatch modes. Customize your
6085 player, choose from many weapons, and blast, slide and slash your way through
6086 over 100 user-created campaigns.")
6087 ;; GPLv2+ for code (includes files under BSD-2 and BSD-3),
6088 ;; CC0/CC-BY/CC-BY-SA for assets.
6089 (license (list license:gpl2+
6090 license:bsd-2
6091 license:bsd-3
6092 license:cc0
6093 license:cc-by3.0
6094 license:cc-by-sa3.0))))
6095
6096 (define-public kiki
6097 (package
6098 (name "kiki")
6099 (version "1.0.2")
6100 (source (origin
6101 (method url-fetch)
6102 (uri (string-append "mirror://sourceforge/kiki/kiki-src/"
6103 version "/kiki-" version "-src.tgz"))
6104 (sha256
6105 (base32
6106 "0ihjdsxbn8z3cz0gpcprafiipcqaiskgdnh1rhmw4qff8dszalbn"))
6107 (modules '((guix build utils)))
6108 (snippet
6109 '(begin
6110 (for-each delete-file (find-files "." "\\.dll$"))
6111 #t))
6112 (patches
6113 (search-patches "kiki-level-selection-crash.patch"
6114 "kiki-makefile.patch"
6115 "kiki-missing-includes.patch"
6116 "kiki-portability-64bit.patch"))))
6117 (build-system gnu-build-system)
6118 (arguments
6119 `(#:tests? #f ; there are no tests
6120 #:make-flags '("CXX=g++")
6121 #:phases
6122 (modify-phases %standard-phases
6123 (replace 'configure
6124 (lambda* (#:key inputs outputs #:allow-other-keys)
6125 (setenv "CPLUS_INCLUDE_PATH"
6126 (string-append (assoc-ref inputs "sdl-union")
6127 "/include/SDL:"
6128 (assoc-ref inputs "python")
6129 "/include/python2.7:"
6130 (or (getenv "CPLUS_INCLUDE_PATH") "")))
6131 (substitute* "src/main/main.cpp"
6132 (("#include <SDL.h>" line)
6133 (string-append line "
6134 #define K_INCLUDE_GLUT
6135 #include \"KIncludeTools.h\""))
6136 (("// initialize SDL" line)
6137 (string-append "glutInit(&argc,argv);\n" line)))
6138 (substitute* "src/main/KikiController.cpp"
6139 (("getenv\\(\"KIKI_HOME\"\\)")
6140 (string-append "\"" (assoc-ref outputs "out") "/share/kiki/\"")))
6141 (substitute* "linux/Makefile"
6142 (("CXXOPTS =" line)
6143 (string-append line " -fpermissive"))
6144 (("PYTHON_VERSION=.*") "PYTHON_VERSION=2.7")
6145 (("PYTHONHOME =.*")
6146 (string-append "PYTHONHOME = "
6147 (assoc-ref inputs "python")
6148 "/lib/python2.7/"))
6149 (("\\$\\(GLLIBS\\)" line)
6150 (string-append line " -lm -lpython2.7")))
6151 (substitute* "src/main/KikiPythonWidget.h"
6152 (("#define __KikiPythonWidget" line)
6153 (string-append line "\n#include \"KikiPython.h\"")))
6154 #t))
6155 (add-before 'build 'build-kodilib
6156 (lambda* (#:key make-flags #:allow-other-keys)
6157 (with-directory-excursion "kodilib/linux"
6158 (apply invoke "make" make-flags))))
6159 (add-after 'build-kodilib 'chdir
6160 (lambda _ (chdir "linux") #t))
6161 (replace 'install
6162 (lambda* (#:key outputs #:allow-other-keys)
6163 (let* ((out (assoc-ref outputs "out"))
6164 (bin (string-append out "/bin"))
6165 (share (string-append out "/share/kiki")))
6166 (mkdir-p bin)
6167 (mkdir-p share)
6168 (install-file "kiki" bin)
6169 (copy-recursively "../py" (string-append share "/py"))
6170 (copy-recursively "../sound" (string-append share "/sound"))
6171 #t))))))
6172 (inputs
6173 `(("glu" ,glu)
6174 ;; Kiki builds fine with freeglut 3.0.0 but segfaults on start.
6175 ("freeglut" ,freeglut-2.8)
6176 ("sdl-union" ,(sdl-union (list sdl
6177 sdl-mixer
6178 sdl-image)))
6179 ("python" ,python-2)))
6180 (native-inputs
6181 `(("swig" ,swig)))
6182 (home-page "http://kiki.sourceforge.net/")
6183 (synopsis "3D puzzle game")
6184 (description "Kiki the nano bot is a 3D puzzle game. It is basically a
6185 mixture of the games Sokoban and Kula-World. Your task is to help Kiki, a
6186 small robot living in the nano world, repair its maker.")
6187 ;; See <http://metadata.ftp-master.debian.org/changelogs/main/k/
6188 ;; kiki-the-nano-bot/kiki-the-nano-bot_1.0.2+dfsg1-4_copyright>
6189 ;; for a statement from the author.
6190 (license license:public-domain)))
6191
6192 (define-public teeworlds
6193 (package
6194 (name "teeworlds")
6195 (version "0.7.5")
6196 (source (origin
6197 (method git-fetch)
6198 (uri (git-reference
6199 (url "https://github.com/teeworlds/teeworlds")
6200 (commit version)
6201 ;; There are two submodules in datasrc/{languages,maps}
6202 (recursive? #t)))
6203 (file-name (git-file-name name version))
6204 (sha256
6205 (base32
6206 "1l19ksmimg6b8zzjy0skyhh7z11ql7n5gvilkv7ay5x2b9ndbqwz"))
6207 (modules '((guix build utils)
6208 (ice-9 ftw)
6209 (ice-9 regex)
6210 (srfi srfi-1)
6211 (srfi srfi-26)))
6212 (snippet ; remove bundled libraries except md5
6213 '(let ((base-dir "src/engine/external/"))
6214 (for-each (compose (cut delete-file-recursively <>)
6215 (cut string-append base-dir <>))
6216 (remove (cut string-match "(^.)|(^md5$)" <>)
6217 (scandir base-dir)))
6218 #t))))
6219 (build-system cmake-build-system)
6220 (arguments
6221 `(#:tests? #f ; no tests included
6222 #:phases
6223 (modify-phases %standard-phases
6224 (add-after 'unpack 'patch-paths
6225 (lambda* (#:key outputs #:allow-other-keys)
6226 ;; Embed path to assets.
6227 (substitute* "src/engine/shared/storage.cpp"
6228 (("#define DATA_DIR.*")
6229 (string-append "#define DATA_DIR \""
6230 (assoc-ref outputs "out")
6231 "/share/teeworlds/data"
6232 "\"")))
6233 #t)))))
6234 (inputs
6235 `(("freetype" ,freetype)
6236 ("glu" ,glu)
6237 ("json-parser" ,json-parser)
6238 ("mesa" ,mesa)
6239 ("pnglite" ,pnglite)
6240 ("sdl2" ,sdl2)
6241 ("sdl2-image" ,sdl2-image)
6242 ("sdl2-mixer" ,sdl2-mixer)
6243 ("wavpack" ,wavpack)
6244 ("openssl" ,openssl)
6245 ("zlib" ,zlib)))
6246 (native-inputs
6247 `(("python" ,python-wrapper)
6248 ("pkg-config" ,pkg-config)))
6249 (home-page "https://www.teeworlds.com")
6250 (synopsis "2D retro multiplayer shooter game")
6251 (description "Teeworlds is an online multiplayer game. Battle with up to
6252 16 players in a variety of game modes, including Team Deathmatch and Capture
6253 The Flag. You can even design your own maps!")
6254 (license (list license:bsd-3 license:cc-by-sa3.0)))) ; game+maps&languages
6255
6256 (define-public enigma
6257 (package
6258 (name "enigma")
6259 (version "1.21")
6260 (source (origin
6261 (method url-fetch)
6262 (uri (string-append "mirror://sourceforge/enigma-game/"
6263 "Release%20" version "/enigma-"
6264 version ".tar.gz"))
6265 (sha256
6266 (base32
6267 "00ffh9pypj1948pg3q9sjp1nmiabh52p5c8wpg9n1dcfgl3cywnq"))))
6268 (build-system gnu-build-system)
6269 (arguments
6270 `(#:configure-flags
6271 (list "--with-system-enet")
6272 #:phases
6273 (modify-phases %standard-phases
6274 (add-after 'unpack 'fix-build-with-new-gcc
6275 (lambda _
6276 ;; Fix build with GCC6 and later by avoiding comparing ifstream
6277 ;; to NULL. Can be removed for versions > 1.21.
6278 (substitute* "src/lev/Proxy.cc"
6279 (("ifs != NULL")
6280 "ifs"))
6281 #t))
6282 (add-after 'unpack 'find-sdl
6283 (lambda _
6284 (substitute* "configure"
6285 (("SDL_ttf.h") "SDL/SDL_ttf.h"))
6286 (substitute* '("tools/ttf2bmf.cc"
6287 "lib-src/enigma-core/ecl_font.cc"
6288 "lib-src/enigma-core/ecl_video.cc"
6289 "lib-src/enigma-core/ecl_buffer.hh"
6290 "src/SoundEngine.cc"
6291 "src/SoundEngine.hh"
6292 "src/MusicManager.cc"
6293 "src/MusicManager.hh"
6294 "src/d_models.cc"
6295 "src/main.cc"
6296 "src/network.cc")
6297 (("#include \"SDL_(image|ttf|mixer|types|syswm|mutex).h\"" line header)
6298 (string-append "#include \"SDL/SDL_" header ".h\"")))
6299 (substitute* "src/main.cc"
6300 (("#include <SDL_(image|ttf|mixer).h>" line header)
6301 (string-append "#include \"SDL/SDL_" header ".h\"")))
6302 #t)))))
6303 (inputs
6304 `(("xerces-c" ,xerces-c)
6305 ("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer sdl-ttf)))
6306 ("curl" ,curl)
6307 ("enet" ,enet)))
6308 (native-inputs
6309 `(("pkg-config" ,pkg-config)
6310 ("imagemagick" ,imagemagick)))
6311 (home-page "https://www.nongnu.org/enigma")
6312 (synopsis "Puzzle game with a dexterity component")
6313 (description "Enigma is a puzzle game with 550 unique levels. The object
6314 of the game is to find and uncover pairs of identically colored ‘Oxyd’ stones.
6315 Simple? Yes. Easy? Certainly not! Hidden traps, vast mazes, laser beams,
6316 and most of all, countless hairy puzzles usually block your direct way to the
6317 Oxyd stones. Enigma’s game objects (and there are hundreds of them, lest you
6318 get bored) interact in many unexpected ways, and since many of them follow the
6319 laws of physics (Enigma’s special laws of physics, that is), controlling them
6320 with the mouse isn’t always trivial.")
6321 (license license:gpl2+)))
6322
6323 (define-public chroma
6324 (package
6325 (name "chroma")
6326 (version "1.18")
6327 (source (origin
6328 (method url-fetch)
6329 (uri (string-append "http://level7.org.uk/chroma/download/chroma-"
6330 version ".tar.bz2"))
6331 (sha256
6332 (base32
6333 "12bjisf5nlqinw8n4r223vld52p0p2mw3fca92vi175c46bycbzn"))))
6334 (build-system gnu-build-system)
6335 (arguments
6336 `(#:tests? #f ; no tests included
6337 #:configure-flags '("CFLAGS=-fgnu89-inline"))) ; fix inlines
6338 (inputs
6339 `(("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer sdl-ttf)))
6340 ("freetype" ,freetype)
6341 ("ncurses" ,ncurses)
6342 ("fontconfig" ,fontconfig)
6343 ("libxft" ,libxft)))
6344 (native-inputs
6345 `(("pkg-config" ,pkg-config)))
6346 (home-page "http://level7.org.uk/chroma/")
6347 (synopsis "Abstract puzzle game")
6348 (description "Chroma is an abstract puzzle game. A variety of colourful
6349 shapes are arranged in a series of increasingly complex patterns, forming
6350 fiendish traps that must be disarmed and mysterious puzzles that must be
6351 manipulated in order to give up their subtle secrets. Initially so
6352 straightforward that anyone can pick it up and begin to play, yet gradually
6353 becoming difficult enough to tax even the brightest of minds.")
6354 (license license:gpl2+)))
6355
6356 (define-public fillets-ng
6357 (package
6358 (name "fillets-ng")
6359 (version "1.0.1")
6360 (source (origin
6361 (method url-fetch)
6362 (uri (string-append "mirror://sourceforge/fillets/"
6363 "Fish%20Fillets%20-%20Next%20Generation/"
6364 version "/fillets-ng-" version ".tar.gz"))
6365 (sha256
6366 (base32
6367 "1nljp75aqqb35qq3x7abhs2kp69vjcj0h1vxcpdyn2yn2nalv6ij"))))
6368 (build-system gnu-build-system)
6369 (arguments
6370 `(#:configure-flags
6371 (list (string-append "--with-lua="
6372 (assoc-ref %build-inputs "lua")))
6373 #:make-flags
6374 (list (string-append "CFLAGS=-I"
6375 (assoc-ref %build-inputs "sdl-union")
6376 "/include/SDL")
6377 (string-append "CXXFLAGS=-I"
6378 (assoc-ref %build-inputs "sdl-union")
6379 "/include/SDL"))
6380 #:phases
6381 (modify-phases %standard-phases
6382 ;; Lua 5.1 does not provide it.
6383 (add-after 'unpack 'do-not-link-with-lualib
6384 (lambda _
6385 (substitute* "configure"
6386 (("-llualib") ""))
6387 #t))
6388 (add-after 'install 'install-data
6389 (lambda* (#:key inputs outputs #:allow-other-keys)
6390 (let ((data (string-append (assoc-ref outputs "out")
6391 "/share/games/fillets-ng")))
6392 (mkdir-p data)
6393 (invoke "tar" "-xvf"
6394 (assoc-ref inputs "fillets-ng-data")
6395 "--strip-components=1"
6396 "-C" data)))))))
6397 (inputs
6398 `(("sdl-union" ,(sdl-union (list sdl
6399 sdl-mixer
6400 sdl-image
6401 sdl-ttf)))
6402 ("fribidi" ,fribidi)
6403 ("libx11" ,libx11)
6404 ("lua" ,lua-5.1)))
6405 (native-inputs
6406 `(("pkg-config" ,pkg-config)
6407 ("fillets-ng-data"
6408 ,(origin
6409 (method url-fetch)
6410 (uri (string-append "mirror://sourceforge/fillets/"
6411 "Fish%20Fillets%20-%20Next%20Generation/"
6412 version "/fillets-ng-data-" version ".tar.gz"))
6413 (sha256
6414 (base32
6415 "169p0yqh2gxvhdilvjc2ld8aap7lv2nhkhkg4i1hlmgc6pxpkjgh"))))))
6416 (home-page "http://fillets.sourceforge.net/")
6417 (synopsis "Puzzle game")
6418 (description "Fish Fillets NG is strictly a puzzle game. The goal in
6419 every of the seventy levels is always the same: find a safe way out. The fish
6420 utter witty remarks about their surroundings, the various inhabitants of their
6421 underwater realm quarrel among themselves or comment on the efforts of your
6422 fish. The whole game is accompanied by quiet, comforting music.")
6423 (license license:gpl2+)))
6424
6425 (define-public crawl
6426 (package
6427 (name "crawl")
6428 (version "0.26.1")
6429 (source
6430 (origin
6431 (method url-fetch)
6432 (uri (string-append "https://github.com/crawl/crawl/releases/download/"
6433 version "/stone_soup-" version "-nodeps.tar.xz"))
6434 (sha256
6435 (base32 "1d8p2np2q5951wqphq2f4dyvv976m2lh82b0qp7w9pp1h8zzi1ff"))
6436 (patches (search-patches "crawl-upgrade-saves.patch"))))
6437 (build-system gnu-build-system)
6438 (inputs
6439 `(("lua51" ,lua-5.1)
6440 ("ncurses" ,ncurses)
6441 ("sqlite" ,sqlite)
6442 ("zlib" ,zlib)))
6443 (native-inputs
6444 `(("bison" ,bison)
6445 ("flex" ,flex)
6446 ("perl" ,perl)
6447 ("python" ,python-wrapper)
6448 ("python-pyyaml" ,python-pyyaml)
6449 ("pkg-config" ,pkg-config)))
6450 (arguments
6451 `(#:make-flags
6452 (let* ((sqlite (assoc-ref %build-inputs "sqlite"))
6453 (out (assoc-ref %outputs "out")))
6454 (list (string-append "SQLITE_INCLUDE_DIR=" sqlite "/include")
6455 (string-append "prefix=" out)
6456 "SAVEDIR=~/.crawl"
6457 ;; Don't compile with SSE on systems which don't have it.
6458 ,@(match (%current-system)
6459 ((or "i686-linux" "x86_64-linux")
6460 '())
6461 (_ '("NOSSE=TRUE")))
6462 ;; don't build any bundled dependencies
6463 "BUILD_LUA="
6464 "BUILD_SQLITE="
6465 "BUILD_ZLIB="
6466 "-Csource"))
6467 #:phases
6468 (modify-phases %standard-phases
6469 (add-after 'unpack 'find-SDL-image
6470 (lambda _
6471 (substitute* "source/windowmanager-sdl.cc"
6472 (("SDL_image.h") "SDL2/SDL_image.h"))
6473 #t))
6474 (delete 'configure)
6475 (replace 'check
6476 (lambda* (#:key inputs outputs make-flags #:allow-other-keys)
6477 (setenv "HOME" (getcwd))
6478 ;; Fake a terminal for the test cases.
6479 (setenv "TERM" "xterm-256color")
6480 ;; Run the tests that don't require a debug build.
6481 (apply invoke "make" "nondebugtest"
6482 (format #f "-j~d" (parallel-job-count))
6483 ;; Force command line build for test cases.
6484 (append make-flags '("GAME=crawl" "TILES="))))))))
6485 (synopsis "Roguelike dungeon crawler game")
6486 (description "Dungeon Crawl Stone Soup (also known as \"Crawl\" or DCSS
6487 for short) is a roguelike adventure through dungeons filled with dangerous
6488 monsters in a quest to find the mystifyingly fabulous Orb of Zot.")
6489 (home-page "https://crawl.develz.org")
6490 (license (list license:gpl2+
6491 license:bsd-2
6492 license:bsd-3
6493 license:cc0
6494 license:expat
6495 license:zlib
6496 license:asl2.0))))
6497
6498 ;; The linter here claims that patch file names should start with the package
6499 ;; name. But, in this case, the patches are inherited from crawl with the
6500 ;; "crawl-" prefix instead of "crawl-tiles-".
6501 (define-public crawl-tiles
6502 (package
6503 (inherit crawl)
6504 (name "crawl-tiles")
6505 (arguments
6506 (substitute-keyword-arguments
6507 (package-arguments crawl)
6508 ((#:make-flags flags)
6509 `(let ((dejavu (assoc-ref %build-inputs "font-dejavu")))
6510 (cons*
6511 (string-append "PROPORTIONAL_FONT=" dejavu
6512 "/share/fonts/truetype/DejaVuSans.ttf")
6513 (string-append "MONOSPACED_FONT=" dejavu
6514 "/share/fonts/truetype/DejaVuSansMono.ttf")
6515 "TILES=y"
6516 ;; Rename the executable to allow parallel installation with crawl.
6517 "GAME=crawl-tiles"
6518 ,flags)))))
6519 (inputs
6520 `(,@(package-inputs crawl)
6521 ("font-dejavu" ,font-dejavu)
6522 ("freetype6" ,freetype)
6523 ("glu" ,glu)
6524 ("libpng" ,libpng)
6525 ("sdl2" ,sdl2)
6526 ("sdl2-image" ,sdl2-image)
6527 ("sdl2-mixer" ,sdl2-mixer)))
6528 (native-inputs
6529 `(,@(package-native-inputs crawl)
6530 ("pngcrush" ,pngcrush)
6531 ("which" ,which)))
6532 (synopsis "Graphical roguelike dungeon crawler game")))
6533
6534 (define-public lugaru
6535 (package
6536 (name "lugaru")
6537 (version "1.2")
6538 (source (origin
6539 (method url-fetch)
6540 (uri (string-append "https://bitbucket.org/osslugaru/lugaru/downloads/"
6541 "lugaru-" version ".tar.xz"))
6542 (sha256
6543 (base32
6544 "15zgcshy22q51rm72zi6y9z7qlgnz5iw3gczjdlir4bqmxy4gspk"))))
6545 (build-system cmake-build-system)
6546 (arguments
6547 `(#:configure-flags
6548 (list "-DSYSTEM_INSTALL=ON")
6549 ;; no test target
6550 #:tests? #f))
6551 (native-inputs
6552 `(("pkg-config" ,pkg-config)))
6553 (inputs
6554 `(("sdl2" ,sdl2)
6555 ("glu" ,glu)
6556 ("libjpeg" ,libjpeg-turbo)
6557 ("libpng" ,libpng)
6558 ("openal" ,openal)
6559 ("vorbis" ,libvorbis)
6560 ("zlib" ,zlib)))
6561 (home-page "https://osslugaru.gitlab.io")
6562 (synopsis "Cross-platform third-person action game")
6563 (description "Lugaru is a third-person action game. The main character,
6564 Turner, is an anthropomorphic rebel bunny rabbit with impressive combat skills.
6565 In his quest to find those responsible for slaughtering his village, he uncovers
6566 a far-reaching conspiracy involving the corrupt leaders of the rabbit republic
6567 and the starving wolves from a nearby den. Turner takes it upon himself to
6568 fight against their plot and save his fellow rabbits from slavery.")
6569 (license (list license:gpl2+ ; code
6570 ;; assets:
6571 license:cc-by-sa3.0
6572 license:cc-by-sa4.0))))
6573
6574 (define-public 0ad-data
6575 (package
6576 (name "0ad-data")
6577 (version "0.0.23b-alpha")
6578 (source
6579 (origin
6580 (method url-fetch)
6581 (uri (string-append "https://releases.wildfiregames.com/0ad-"
6582 version "-unix-data.tar.xz"))
6583 (file-name (string-append name "-" version ".tar.xz"))
6584 (sha256
6585 (base32
6586 "04x7729hk6zw1xj3n4s4lvaviijsnbjf5rhzvjxlr5fygvg4l6z1"))
6587 (modules '((guix build utils)))
6588 (snippet
6589 #~(begin
6590 (for-each (lambda (name)
6591 (let* ((dir (string-append "binaries/data/mods/" name))
6592 (file (string-append dir "/" name ".zip"))
6593 (unzip #$(file-append unzip "/bin/unzip")))
6594 (invoke unzip "-d" dir file)
6595 (delete-file file)))
6596 '("mod" "public"))
6597 #t))))
6598 (build-system trivial-build-system)
6599 (native-inputs `(("tar" ,tar)
6600 ("xz" ,xz)))
6601 (arguments
6602 `(#:modules ((guix build utils))
6603 #:builder
6604 (begin
6605 (use-modules (guix build utils))
6606 (let ((out (assoc-ref %outputs "out"))
6607 (source (assoc-ref %build-inputs "source"))
6608 (tar (string-append (assoc-ref %build-inputs "tar") "/bin/tar"))
6609 (xz-path (string-append (assoc-ref %build-inputs "xz") "/bin")))
6610 (setenv "PATH" xz-path)
6611 (mkdir out)
6612 (invoke tar "xvf" source "-C" out "--strip=3")))))
6613 (synopsis "Data files for 0ad")
6614 (description "0ad-data provides the data files required by the game 0ad.")
6615 (home-page "https://play0ad.com")
6616 (license (list (license:fsdg-compatible
6617 "http://tavmjong.free.fr/FONTS/ArevCopyright.txt"
6618 "Similar to the license of the Bitstream Vera fonts.")
6619 (license:fsdg-compatible
6620 "https://www.gnome.org/fonts/#Final_Bitstream_Vera_Fonts")
6621 license:cc-by-sa3.0
6622 license:expat
6623 license:gfl1.0
6624 license:gpl2+
6625 license:gpl3+))))
6626
6627 (define-public 0ad
6628 (package
6629 (name "0ad")
6630 (version "0.0.23b-alpha")
6631 (source
6632 (origin
6633 (method url-fetch)
6634 (uri (string-append "https://releases.wildfiregames.com/0ad-"
6635 version "-unix-build.tar.xz"))
6636 (file-name (string-append name "-" version ".tar.xz"))
6637 (sha256
6638 (base32
6639 "0draa53xg69i5qhqym85658m45xhwkbiimaldj4sr3703rjgggq1"))))
6640 ;; A snippet here would cause a build failure because of timestamps
6641 ;; reset. See https://bugs.gnu.org/26734.
6642 (inputs
6643 `(("0ad-data" ,0ad-data)
6644 ("curl" ,curl)
6645 ("enet" ,enet)
6646 ("gloox" ,gloox)
6647 ("icu4c" ,icu4c)
6648 ("libpng" ,libpng)
6649 ("libsodium" ,libsodium)
6650 ("libvorbis" ,libvorbis)
6651 ("libxcursor" ,libxcursor)
6652 ("libxml2" ,libxml2)
6653 ("miniupnpc" ,miniupnpc)
6654 ("mozjs-38" ,mozjs-38)
6655 ("openal" ,openal)
6656 ("sdl2" ,sdl2)
6657 ("wxwidgets" ,wxwidgets)
6658 ("zlib" ,zlib)))
6659 (native-inputs
6660 `(("boost" ,boost)
6661 ("cmake" ,cmake-minimal)
6662 ("mesa" ,mesa)
6663 ("pkg-config" ,pkg-config)
6664 ("python-2" ,python-2)))
6665 (build-system gnu-build-system)
6666 (arguments
6667 `(#:make-flags '("config=release" "verbose=1" "-C" "build/workspaces/gcc")
6668 #:phases
6669 (modify-phases %standard-phases
6670 (add-after 'unpack 'delete-bundles
6671 (lambda _
6672 (delete-file-recursively "libraries/source/spidermonkey")
6673 #t))
6674 (add-after 'unpack 'fix-x11-includes
6675 (lambda _
6676 (substitute* "source/lib/sysdep/os/unix/x/x.cpp"
6677 (("<Xlib.h>") "<X11/Xlib.h>"))
6678 (substitute* "source/lib/sysdep/os/unix/x/x.cpp"
6679 (("<Xatom.h>") "<X11/Xatom.h>"))
6680 (substitute* "source/lib/sysdep/os/unix/x/x.cpp"
6681 (("<Xcursor/Xcursor.h>") "<X11/Xcursor/Xcursor.h>"))
6682 #t))
6683 (replace 'configure
6684 (lambda* (#:key inputs outputs #:allow-other-keys)
6685 (let* ((jobs (number->string (parallel-job-count)))
6686 (out (assoc-ref outputs "out"))
6687 (lib (string-append out "/lib"))
6688 (data (string-append out "/share/0ad")))
6689 (setenv "JOBS" (string-append "-j" jobs))
6690 (setenv "CC" "gcc")
6691 (with-directory-excursion "build/workspaces"
6692 (invoke "./update-workspaces.sh"
6693 (string-append "--libdir=" lib)
6694 (string-append "--datadir=" data)
6695 ;; TODO: "--with-system-nvtt"
6696 "--with-system-mozjs38")))))
6697 (delete 'check)
6698 (replace 'install
6699 (lambda* (#:key inputs outputs #:allow-other-keys)
6700 (chdir "binaries")
6701 (let* ((out (assoc-ref outputs "out"))
6702 (bin (string-append out "/bin"))
6703 (lib (string-append out "/lib"))
6704 (data (string-append out "/share/0ad"))
6705 (applications (string-append out "/share/applications"))
6706 (pixmaps (string-append out "/share/pixmaps"))
6707 (0ad-data (assoc-ref inputs "0ad-data")))
6708 ;; data
6709 (copy-recursively "data" data)
6710 (for-each (lambda (file)
6711 (symlink (string-append 0ad-data "/" file)
6712 (string-append data "/" file)))
6713 '("config" "mods/mod" "mods/public" "tools"))
6714 ;; libraries
6715 (for-each (lambda (file)
6716 (install-file file lib))
6717 (find-files "system" "\\.so$"))
6718 ;; binaries
6719 (install-file "system/pyrogenesis" bin)
6720 (with-directory-excursion bin
6721 (symlink "pyrogenesis" "0ad"))
6722 ;; resources
6723 (with-directory-excursion "../build/resources"
6724 (install-file "0ad.desktop" applications)
6725 (install-file "0ad.png" pixmaps))
6726 #t)))
6727 (add-after 'install 'check
6728 (lambda _
6729 (with-directory-excursion "system"
6730 (invoke "./test")))))))
6731 (home-page "https://play0ad.com")
6732 (synopsis "3D real-time strategy game of ancient warfare")
6733 (description "0 A.D. is a real-time strategy (RTS) game of ancient
6734 warfare. It's a historically-based war/economy game that allows players to
6735 relive or rewrite the history of twelve ancient civilizations, each depicted
6736 at their peak of economic growth and military prowess.
6737
6738 0ad needs a window manager that supports 'Extended Window Manager Hints'.")
6739 (license (list license:bsd-2
6740 license:bsd-3
6741 license:expat
6742 license:gpl2+
6743 license:ibmpl1.0
6744 license:isc
6745 license:lgpl2.1
6746 license:lgpl3
6747 license:mpl2.0
6748 license:zlib))))
6749
6750 (define-public open-adventure
6751 (package
6752 (name "open-adventure")
6753 (version "1.9")
6754 (source
6755 (origin
6756 (method git-fetch)
6757 (uri (git-reference
6758 (url "https://gitlab.com/esr/open-adventure")
6759 (commit version)))
6760 (file-name (git-file-name name version))
6761 (sha256
6762 (base32 "123svzy7xczdklx6plbafp22yv9bcvwfibjk0jv2c9i22dfsr07f"))))
6763 (build-system gnu-build-system)
6764 (arguments
6765 `(#:make-flags (list "CC=gcc")
6766 #:phases
6767 (modify-phases %standard-phases
6768 (delete 'configure) ;no configure script
6769 (add-before 'build 'use-echo
6770 (lambda _
6771 (substitute* "tests/Makefile"
6772 (("/bin/echo") (which "echo")))
6773 #t))
6774 (add-after 'build 'build-manpage
6775 (lambda _
6776 ;; This target is missing a dependency
6777 (substitute* "Makefile"
6778 ((".adoc.6:" line)
6779 (string-append line " advent.adoc")))
6780 (invoke "make" ".adoc.6")))
6781 ;; There is no install target.
6782 (replace 'install
6783 (lambda* (#:key outputs #:allow-other-keys)
6784 (let* ((out (assoc-ref outputs "out"))
6785 (bin (string-append out "/bin"))
6786 (man (string-append out "/share/man/man6")))
6787 (install-file "advent" bin)
6788 (install-file "advent.6" man))
6789 #t)))))
6790 (native-inputs
6791 `(("asciidoc" ,asciidoc)
6792 ("libedit" ,libedit)
6793 ("pkg-config" ,pkg-config)
6794 ("python" ,python-wrapper)
6795 ("python-pyyaml" ,python-pyyaml)))
6796 (home-page "https://gitlab.com/esr/open-adventure")
6797 (synopsis "Colossal Cave Adventure")
6798 (description
6799 "The original Colossal Cave Adventure from 1976 was the origin of all
6800 text adventures, dungeon-crawl (computer) games, and computer-hosted
6801 roleplaying games. This is a forward port of the last version released by
6802 Crowther & Woods, its original authors, in 1995. It has been known as
6803 ``adventure 2.5'' and ``430-point adventure''.")
6804 (license license:bsd-2)))
6805
6806 (define-public open-adventure-2.5
6807 (package
6808 (inherit open-adventure)
6809 (version "2.5")
6810 (properties `((superseded . ,open-adventure)))))
6811
6812 (define-public tome4
6813 (package
6814 (name "tome4")
6815 (version "1.7.2")
6816 (synopsis "Single-player, RPG roguelike game set in the world of Eyal")
6817 (source
6818 (origin
6819 (method url-fetch)
6820 (uri (string-append "https://te4.org/dl/t-engine/t-engine4-src-"
6821 version ".tar.bz2"))
6822 (sha256
6823 (base32 "1xa0pdn9pggwf7hnqb87ya2qxqhjahkdjwf8cr2y01gixgrkj9lv"))
6824 (modules '((guix build utils)))
6825 (snippet
6826 '(begin
6827 (substitute* '("src/music.h" "src/tSDL.h")
6828 (("#elif defined(__FreeBSD__)" line)
6829 (string-append
6830 line " || defined(__GNUC__)")))
6831 (substitute* '("src/tgl.h")
6832 (("#include <GL/glext.h>") ""))
6833 #t))))
6834 (build-system gnu-build-system)
6835 (native-inputs
6836 `(("unzip" ,unzip)))
6837 (inputs
6838 `(("sdl-union" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer sdl2-ttf)))
6839 ("glu" ,glu)
6840 ("premake4" ,premake4)
6841 ("openal" ,openal)
6842 ("vorbis" ,libvorbis)
6843 ("luajit" ,luajit)))
6844 (arguments
6845 `(#:make-flags
6846 (list (string-append "CC=" ,(cc-for-target))
6847 "config=release")
6848 ;; XXX: Building in parallel occasionally causes this build failure:
6849 ;; ../src/luajit2/src/host/buildvm.c:73:10: fatal error: buildvm_arch.h:
6850 ;; No such file or directory
6851 #:parallel-build? #f
6852 #:phases (modify-phases %standard-phases
6853 (delete 'bootstrap)
6854 (replace 'configure
6855 (lambda _
6856 (invoke "premake4" "gmake")
6857 #t))
6858 (add-after 'set-paths 'set-sdl-paths
6859 (lambda* (#:key inputs #:allow-other-keys)
6860 (setenv "CPATH"
6861 (string-append (assoc-ref inputs "sdl-union")
6862 "/include/SDL2:"
6863 (or (getenv "CPATH") "")))
6864 #t))
6865 (delete 'check)
6866 ;; premake doesn't provide install target
6867 (replace 'install
6868 (lambda* (#:key inputs outputs #:allow-other-keys)
6869 (let* ((out (assoc-ref outputs "out"))
6870 (usr (string-append out "/usr"))
6871 (bin (string-append out "/bin"))
6872 (licenses (string-append out "/share/licenses"))
6873 (documents (string-append out "/share/doc"))
6874 (pixmaps (string-append out "/share/pixmaps"))
6875 (icon "te4-icon.png")
6876 (data (string-append out "/share/" ,name))
6877 (applications (string-append
6878 out "/share/applications"))
6879 (unzip (string-append
6880 (assoc-ref inputs "unzip") "/bin/unzip"))
6881 (wrapper (string-append bin "/" ,name)))
6882 ;; icon
6883 (mkdir-p pixmaps)
6884 (invoke unzip "-j"
6885 (string-append
6886 "game/engines/te4-" ,version ".teae")
6887 (string-append
6888 "data/gfx/" icon) "-d" pixmaps)
6889 ;; game executable
6890 (install-file "t-engine" data)
6891 (mkdir-p bin)
6892 (with-output-to-file wrapper
6893 (lambda ()
6894 (display
6895 (string-append
6896 "#!/bin/sh\n"
6897 ;; No bootstrap code found,
6898 ;; defaulting to working directory
6899 ;; for engine code!
6900 "cd " data "\n"
6901 "exec -a tome4 ./t-engine \"$@\"\n"))))
6902 (chmod wrapper #o555)
6903 ;; licenses
6904 (for-each (lambda (file)
6905 (install-file file licenses))
6906 '("COPYING" "COPYING-MEDIA"))
6907 ;; documents
6908 (for-each (lambda (file)
6909 (install-file file documents))
6910 '("CONTRIBUTING" "CREDITS"))
6911 ;; data
6912 (copy-recursively "bootstrap" (string-append
6913 data "/bootstrap"))
6914 (copy-recursively "game" (string-append data "/game"))
6915 ;; launcher
6916 (mkdir-p applications)
6917 (make-desktop-entry-file
6918 (string-append applications "/" ,name ".desktop")
6919 #:name "ToME4"
6920 #:comment ,synopsis
6921 #:exec ,name
6922 #:icon icon
6923 #:categories '("Game" "RolePlaying")))
6924 #t)))))
6925 (home-page "https://te4.org")
6926 (description "Tales of Maj’Eyal (ToME) RPG, featuring tactical turn-based
6927 combat and advanced character building. Play as one of many unique races and
6928 classes in the lore-filled world of Eyal, exploring random dungeons, facing
6929 challenging battles, and developing characters with your own tailored mix of
6930 abilities and powers. With a modern graphical and customisable interface,
6931 intuitive mouse control, streamlined mechanics and deep, challenging combat,
6932 Tales of Maj’Eyal offers engaging roguelike gameplay for the 21st century.")
6933 (license license:gpl3+)))
6934
6935 (define-public quakespasm
6936 (package
6937 (name "quakespasm")
6938 (version "0.93.2")
6939 (source
6940 (origin
6941 (method url-fetch)
6942 (uri (string-append "mirror://sourceforge/quakespasm/Source/quakespasm-"
6943 version ".tgz"))
6944 (sha256
6945 (base32 "0qm0j5drybvvq8xadfyppkpk3rxqsxbywzm6iwsjwdf0iia3gss5"))))
6946 (arguments
6947 `(#:tests? #f
6948 #:make-flags '("CC=gcc"
6949 "MP3LIB=mpg123"
6950 "USE_CODEC_FLAC=1"
6951 "USE_CODEC_MIKMOD=1"
6952 "USE_SDL2=1"
6953 "-CQuake")
6954 #:phases (modify-phases %standard-phases
6955 (delete 'configure)
6956 (add-after 'unpack 'fix-makefile-paths
6957 (lambda* (#:key outputs #:allow-other-keys)
6958 (let ((out (assoc-ref outputs "out")))
6959 (mkdir-p (string-append out "/bin"))
6960 (substitute* "Quake/Makefile"
6961 (("/usr/local/games")
6962 (string-append out "/bin")))
6963 #t))))))
6964 (build-system gnu-build-system)
6965 (inputs `(("libmikmod" ,libmikmod)
6966 ("libvorbis" ,libvorbis)
6967 ("flac" ,flac)
6968 ("mesa" ,mesa)
6969 ("mpg123" ,mpg123)
6970 ("sdl2" ,sdl2)))
6971 (synopsis "First person shooter engine for Quake 1")
6972 (description "Quakespasm is a modern engine for id software's Quake 1.
6973 It includes support for 64 bit CPUs, custom music playback, a new sound driver,
6974 some graphical niceities, and numerous bug-fixes and other improvements.")
6975 (home-page "http://quakespasm.sourceforge.net/")
6976 (license license:gpl2+)))
6977
6978 (define-public vkquake
6979 (package
6980 (inherit quakespasm)
6981 (name "vkquake")
6982 (version "1.01.0")
6983 (source
6984 (origin
6985 (method git-fetch)
6986 (uri (git-reference
6987 (url "https://github.com/Novum/vkQuake")
6988 (commit version)))
6989 (file-name (git-file-name name version))
6990 (sha256
6991 (base32 "1iwin8j5kbyrknbkhjgpy8nmm7pxqzr0daa9gn7p38qhg2mh0a39"))))
6992 (arguments
6993 `(#:make-flags
6994 (let ((vulkanlib (string-append (assoc-ref %build-inputs
6995 "vulkan-loader") "/lib")))
6996 (list "CC=gcc"
6997 "MP3LIB=mpg123"
6998 "USE_CODEC_FLAC=1"
6999 "USE_CODEC_MIKMOD=1"
7000 "USE_SDL2=1"
7001 (string-append "LDFLAGS=-Wl,-rpath=" vulkanlib)
7002 "-CQuake"))
7003 #:phases (modify-phases %standard-phases
7004 (add-after 'unpack 'patch-for-new-vulkan
7005 (lambda _
7006 ;; Mimic upstream commit a869a22d9b51c68e for
7007 ;; compatibility with newer vulkan-headers.
7008 (substitute* "Quake/gl_rmisc.c"
7009 (("VK_DYNAMIC_STATE_RANGE_SIZE")
7010 "3"))
7011 #t))
7012 (delete 'configure)
7013 (add-after 'unpack 'fix-makefile-paths
7014 (lambda* (#:key outputs #:allow-other-keys)
7015 (let ((vulkan (assoc-ref %build-inputs
7016 "vulkan-loader"))
7017 (out (assoc-ref outputs "out")))
7018 (mkdir-p (string-append out "/bin"))
7019 (substitute* "Quake/Makefile" ((" /usr")
7020 (string-append " " out)))
7021 (substitute* "Quake/Makefile" (("/games")
7022 (string-append "/bin")))
7023 (substitute* "Quake/Makefile" (("..VULKAN_SDK.") vulkan))
7024 #t))))
7025 ,@(strip-keyword-arguments '(#:make-flags #:phases)
7026 (package-arguments quakespasm))))
7027 (inputs `(("vulkan-headers" ,vulkan-headers)
7028 ("vulkan-loader" ,vulkan-loader)
7029 ,@(package-inputs quakespasm)))
7030 (description "vkquake is a modern engine for id software's Quake 1.
7031 It includes support for 64 bit CPUs, custom music playback, a new sound driver,
7032 some graphical niceities, and numerous bug-fixes and other improvements.")
7033 (home-page "https://github.com/Novum/vkQuake")))
7034
7035 (define-public yamagi-quake2
7036 (package
7037 (name "yamagi-quake2")
7038 (version "7.45")
7039 (source
7040 (origin
7041 (method url-fetch)
7042 (uri (string-append "https://deponie.yamagi.org/quake2/quake2-"
7043 version ".tar.xz"))
7044 (sha256
7045 (base32 "0rgz8x7lzd0zb0xqd0gvnf2641nr9xpfm6v14mgh99hspxklaln7"))))
7046 (build-system gnu-build-system)
7047 (arguments
7048 `(#:tests? #f
7049 #:make-flags
7050 (list "CC=gcc"
7051 ;; link openAL instead of using dlopen at runtime
7052 "DLOPEN_OPENAL=\"no\""
7053 ;; an optional directory where it will look for quake2 data files
7054 ;; in addition to the current working directory
7055 "WITH_SYSTEMWIDE=yes"
7056 "WITH_SYSTEMDIR=\"/opt/quake2\"")
7057 #:phases
7058 (modify-phases %standard-phases
7059 (delete 'configure)
7060 (replace 'install
7061 (lambda* (#:key outputs #:allow-other-keys)
7062 (let ((out (assoc-ref outputs "out")))
7063 (mkdir-p (string-append out "/lib"))
7064 (mkdir-p (string-append out "/bin"))
7065 ;; The yamagi-quake2 binary must be in the same directory
7066 ;; as it's engine libraries, but symlinking it to /bin is okay
7067 ;; https://github.com/yquake2/yquake2/blob/master/stuff/packaging.md
7068 (copy-recursively "release"
7069 (string-append out "/lib/yamagi-quake2"))
7070 (symlink (string-append out "/lib/yamagi-quake2/quake2")
7071 (string-append out "/bin/yamagi-quake2"))
7072 (symlink (string-append out "/lib/yamagi-quake2/q2ded")
7073 (string-append out "/bin/yamagi-q2ded"))))))))
7074 (native-inputs
7075 `(("pkg-config" ,pkg-config)))
7076 (inputs
7077 `(("curl" ,curl-minimal)
7078 ("libvorbis" ,libvorbis)
7079 ("mesa" ,mesa)
7080 ("openal" ,openal)
7081 ("sdl2" ,sdl2)
7082 ("zlib" ,zlib)))
7083 (synopsis "First person shooter engine based on quake2")
7084 (description "Yamagi Quake II is an enhanced client for id Software's Quake II.
7085 The main focus is an unchanged single player experience like back in 1997,
7086 thus the gameplay and the graphics are unaltered. However the user may use one
7087 of the unofficial retexturing packs. In comparison with the official client,
7088 over 1000 bugs were fixed and an extensive code audit done,
7089 making Yamagi Quake II one of the most solid Quake II implementations available.")
7090 (home-page "https://www.yamagi.org/quake2/")
7091 (license (list license:gpl2+ ; game and server
7092 (license:non-copyleft ; info-zip
7093 "file://LICENSE"
7094 "See Info-Zip section.")
7095 license:public-domain)))) ; stb
7096
7097 (define-public nudoku
7098 (package
7099 (name "nudoku")
7100 (version "2.1.0")
7101 (source
7102 (origin
7103 (method git-fetch)
7104 (uri (git-reference
7105 (url "https://github.com/jubalh/nudoku")
7106 (commit version)))
7107 (file-name (git-file-name name version))
7108 (sha256
7109 (base32 "12v00z3p0ymi8f3w4b4bgl4c76irawn3kmd147r0ap6s9ssx2q6m"))))
7110 (build-system gnu-build-system)
7111 (native-inputs
7112 `(("autoconf" ,autoconf)
7113 ("automake" ,automake)
7114 ("gettext" ,gettext-minimal)
7115 ("pkg-config" ,pkg-config)))
7116 (inputs
7117 `(("ncurses" ,ncurses)))
7118 (home-page "https://jubalh.github.io/nudoku/")
7119 (synopsis "Sudoku for your terminal")
7120 (description "Nudoku is a ncurses-based Sudoku game for your terminal.")
7121 (license license:gpl3+)))
7122
7123 (define-public the-butterfly-effect
7124 (package
7125 (name "the-butterfly-effect")
7126 (version "0.9.3.1")
7127 (source
7128 (origin
7129 (method git-fetch)
7130 (uri (git-reference
7131 (url "https://github.com/the-butterfly-effect/tbe")
7132 (commit (string-append "v" version))))
7133 (file-name (git-file-name name version))
7134 (sha256
7135 (base32
7136 "1ag2cp346f9bz9qy6za6q54id44d2ypvkyhvnjha14qzzapwaysj"))))
7137 (build-system gnu-build-system)
7138 (arguments
7139 `(#:phases
7140 (modify-phases %standard-phases
7141 (delete 'configure)
7142 ;; There is no "install" phase. By default, tbe is installed
7143 ;; in the build directory. Provide our own installation.
7144 (replace 'install
7145 (lambda* (#:key outputs #:allow-other-keys)
7146 (let* ((out (assoc-ref outputs "out"))
7147 (bin (string-append out "/bin"))
7148 (share (string-append out "/share")))
7149 (install-file "usr/games/tbe" bin)
7150 (mkdir-p share)
7151 (copy-recursively "usr/share" share)
7152 #t))))
7153 ;; Test suite requires a running Xorg server. Even when
7154 ;; provided, it fails with "D-Bus library appears to be
7155 ;; incorrectly set up; failed to read machine uuid: Failed to
7156 ;; open "/etc/machine-id": No such file or directory" along
7157 ;; with multiple "QPainter:: ... Painter not active" warnings.
7158 #:tests? #f))
7159 (inputs
7160 `(("qtbase" ,qtbase)
7161 ("qtsvg" ,qtsvg)))
7162 (native-inputs
7163 `(("cmake" ,cmake-minimal)
7164 ("gettext-minimal" ,gettext-minimal)
7165 ("qttools" ,qttools)))
7166 (synopsis "Realistic physics puzzle game")
7167 (description "The Butterfly Effect (tbe) is a game that uses
7168 realistic physics simulations to combine lots of simple mechanical
7169 elements to achieve a simple goal in the most complex way possible.")
7170 (home-page "http://the-butterfly-effect.org/")
7171 ;; Main license is GPL2-only. However, artwork is distributed
7172 ;; under various licenses, listed here.
7173 (license (list license:gpl2 license:public-domain license:expat
7174 license:cc-by-sa3.0 license:gpl3+ license:wtfpl2))))
7175
7176 (define-public pioneer
7177 (package
7178 (name "pioneer")
7179 (version "20210203")
7180 (source (origin
7181 (method git-fetch)
7182 (uri (git-reference
7183 (url "https://github.com/pioneerspacesim/pioneer")
7184 (commit version)))
7185 (file-name (git-file-name name version))
7186 (sha256
7187 (base32
7188 "1zyi1xyghj99hz8fa6dywpscj6flp04fspnlgxbivf3rgmnxflg7"))))
7189 (build-system cmake-build-system)
7190 (native-inputs
7191 `(("pkg-config" ,pkg-config)))
7192 (inputs
7193 `(("assimp" ,assimp)
7194 ("curl" ,curl)
7195 ("freetype" ,freetype)
7196 ("glew" ,glew)
7197 ("glu" ,glu)
7198 ("libpng" ,libpng)
7199 ("libsigc++" ,libsigc++)
7200 ("libvorbis" ,libvorbis)
7201 ("lua" ,lua-5.2) ;not compatible with 5.3
7202 ("mesa" ,mesa)
7203 ("sdl" ,(sdl-union (list sdl2 sdl2-image)))))
7204 (arguments
7205 `(#:tests? #f ;tests are broken
7206 #:configure-flags (list "-DUSE_SYSTEM_LIBLUA:BOOL=YES"
7207 (string-append "-DPIONEER_DATA_DIR="
7208 %output "/share/games/pioneer"))))
7209 (home-page "https://pioneerspacesim.net")
7210 (synopsis "Game of lonely space adventure")
7211 (description
7212 "Pioneer is a space adventure game set in our galaxy at the turn of the
7213 31st century. The game is open-ended, and you are free to eke out whatever
7214 kind of space-faring existence you can think of. Look for fame or fortune by
7215 exploring the millions of star systems. Turn to a life of crime as a pirate,
7216 smuggler or bounty hunter. Forge and break alliances with the various
7217 factions fighting for power, freedom or self-determination. The universe is
7218 whatever you make of it.")
7219 (license license:gpl3)))
7220
7221 (define-public badass
7222 (let ((commit "3c3cd669b4fc8f73a102e3702788f7b28dc47dbb")
7223 (revision "0"))
7224 (package
7225 (name "badass")
7226 (version (git-version "0.0" revision commit))
7227 (source (origin
7228 (method git-fetch)
7229 (uri (git-reference
7230 (url "https://github.com/umayr/badass")
7231 (commit commit)))
7232 (file-name (git-file-name name version))
7233 (sha256
7234 (base32
7235 "05c9vdcb5ym3z0n5ll3v39mw4yl9jcjnlydmn0yl89ai9pv71zb6"))))
7236 (build-system go-build-system)
7237 (arguments
7238 '(#:import-path "github.com/umayr/badass"))
7239 (synopsis "Hacking contribution graphs in git")
7240 (description
7241 "Badass generates false commits for a range of dates, essentially
7242 hacking the gamification of contribution graphs on platforms such as
7243 Github or Gitlab.")
7244 (home-page "https://github.com/umayr/badass")
7245 (license license:expat))))
7246
7247 (define-public colobot
7248 (package
7249 (name "colobot")
7250 (version "0.1.12-alpha")
7251 (source
7252 (origin
7253 (method git-fetch)
7254 (uri (git-reference
7255 (url "https://github.com/colobot/colobot")
7256 (commit (string-append "colobot-gold-" version))
7257 (recursive? #t))) ;for "data/" subdir
7258 (file-name (git-file-name name version))
7259 (sha256
7260 (base32
7261 "1c181cclkrnspgs07lvndg2c81cjq3smkv7qim8c470cj88rcrp2"))))
7262 (build-system cmake-build-system)
7263 (arguments
7264 `(#:tests? #f ;no test
7265 #:phases
7266 (modify-phases %standard-phases
7267 (add-after 'unpack 'make-git-checkout-writable
7268 (lambda _
7269 (for-each make-file-writable (find-files "."))
7270 #t))
7271 (add-after 'unpack 'fix-directories
7272 (lambda _
7273 (substitute* "CMakeLists.txt"
7274 (("(\\$\\{CMAKE_INSTALL_PREFIX\\})/games" _ prefix)
7275 (string-append prefix "/bin"))
7276 (("(\\$\\{CMAKE_INSTALL_PREFIX\\}/share)/games/colobot" _ prefix)
7277 (string-append prefix "/colobot")))
7278 #t))
7279 (add-after 'fix-directories 'install-music
7280 ;; Retrieve and install music files.
7281 (lambda* (#:key inputs #:allow-other-keys)
7282 ;; Installation process tries to download music files using
7283 ;; "wget" if not already present. Since we are going another
7284 ;; route, skip "wget" command check.
7285 (substitute* "data/music/CMakeLists.txt"
7286 (("find_program\\(WGET wget\\)") ""))
7287 ;; Populate "music/" directory.
7288 (let ((data (assoc-ref inputs "colobot-music")))
7289 (invoke "tar" "-xvf" data "-Cdata/music"))
7290 #t)))))
7291 (native-inputs
7292 `(("colobot-music"
7293 ,(origin
7294 (method url-fetch)
7295 (uri (string-append "https://colobot.info/files/music/"
7296 "colobot-music_ogg_" version ".tar.gz"))
7297 (sha256
7298 (base32
7299 "1s86cd36rwkff329mb1ay1wi5qqyi35564ppgr3f4qqz9wj9vs2m"))))
7300 ("gettext" ,gettext-minimal)
7301 ("librsvg" ,librsvg)
7302 ("po4a" ,po4a)
7303 ("python" ,python-wrapper)))
7304 (inputs
7305 `(("boost" ,boost)
7306 ("glew" ,glew)
7307 ("libogg" ,libogg)
7308 ("libpng" ,libpng)
7309 ("libsndfile" ,libsndfile)
7310 ("libvorbis" ,libvorbis)
7311 ("openal" ,openal)
7312 ("physfs" ,physfs)
7313 ("sdl" ,(sdl-union (list sdl2 sdl2-image sdl2-ttf)))))
7314 (synopsis "Educational programming strategy game")
7315 (description "Colobot: Gold Edition is a real-time strategy game, where
7316 you can program your units (bots) in a language called CBOT, which is similar
7317 to C++ and Java. Your mission is to find a new planet to live and survive.
7318 You can save humanity and get programming skills!")
7319 (home-page "https://colobot.info")
7320 (license license:gpl3+)))
7321
7322 (define-public gzdoom
7323 (package
7324 (name "gzdoom")
7325 (version "4.3.2")
7326 (source
7327 (origin
7328 (method git-fetch)
7329 (uri (git-reference
7330 (url "https://github.com/coelckers/gzdoom")
7331 (commit (string-append "g" version))))
7332 (file-name (git-file-name name version))
7333 (sha256
7334 (base32 "0i4hyg72z84fc6ca2ic9q82q5cbgrbd7bynl3kpkypxvyasq08wz"))
7335 (patches (search-patches "gzdoom-search-in-installed-share.patch"
7336 "gzdoom-find-system-libgme.patch"))
7337 (modules '((guix build utils)))
7338 (snippet
7339 '(begin
7340 ;; Remove some bundled libraries. XXX There are more, but removing
7341 ;; them would require, at least, patching the build system.
7342 (with-directory-excursion "libraries"
7343 (delete-file-recursively "bzip2")
7344 (delete-file-recursively "game-music-emu")
7345 (delete-file-recursively "jpeg")
7346 (delete-file-recursively "zlib"))
7347 #t))))
7348 (arguments
7349 '(#:tests? #f
7350 #:configure-flags
7351 (let ((out (assoc-ref %outputs "out")))
7352 (list
7353 (string-append
7354 "-DCMAKE_CXX_FLAGS:="
7355 "-DSHARE_DIR=\\\"" out "/share/\\\" "
7356 "-DGUIX_OUT_PK3=\\\"" out "/share/games/doom\\\"")
7357
7358 ;; The build requires some extra convincing not to use the bundled
7359 ;; libgme previously deleted in the soure snippet.
7360 "-DFORCE_INTERNAL_GME=OFF"
7361
7362 ;; Link libraries at build time instead of loading them at run time.
7363 "-DDYN_OPENAL=OFF"
7364 "-DDYN_FLUIDSYNTH=OFF"
7365 "-DDYN_GTK=OFF"
7366 "-DDYN_MPG123=OFF"
7367 "-DDYN_SNDFILE=OFF"))
7368 #:phases
7369 (modify-phases %standard-phases
7370 (add-before 'configure 'fix-referenced-paths
7371 (lambda* (#:key inputs outputs #:allow-other-keys)
7372 (let ((fluid-3 (assoc-ref inputs "fluid-3"))
7373 (timidity++ (assoc-ref inputs "timidity++"))
7374 (out (assoc-ref outputs "out")))
7375
7376 (substitute*
7377 "src/CMakeLists.txt"
7378 (("COMMAND /bin/sh")
7379 (string-append "COMMAND " (which "sh"))))
7380
7381 (substitute*
7382 "libraries/zmusic/mididevices/music_fluidsynth_mididevice.cpp"
7383 (("/usr/share/sounds/sf2/FluidR3_GM.sf2")
7384 (string-append fluid-3 "/share/soundfonts/FluidR3Mono_GM.sf3")))
7385
7386 (substitute*
7387 "libraries/zmusic/mididevices/music_timiditypp_mididevice.cpp"
7388 (("exename = \"timidity\"")
7389 (string-append "exename = \"" timidity++ "/bin/timidity\"")))
7390 #t))))))
7391 (build-system cmake-build-system)
7392 (inputs `(("bzip2" ,bzip2)
7393 ("fluid-3" ,fluid-3)
7394 ("fluidsynth" ,fluidsynth)
7395 ("gtk+3" ,gtk+)
7396 ("libgme" ,libgme)
7397 ("libjpeg" ,libjpeg-turbo)
7398 ("libsndfile" ,libsndfile)
7399 ("mesa" ,mesa)
7400 ("mpg123" ,mpg123)
7401 ("openal" ,openal)
7402 ("sdl2" ,sdl2)
7403 ("timidity++" ,timidity++)
7404 ("zlib" ,zlib)))
7405 (native-inputs `(("pkg-config" ,pkg-config)
7406 ("unzip" ,unzip)))
7407 (synopsis "Modern Doom 2 source port")
7408 (description "GZdoom is a port of the Doom 2 game engine, with a modern
7409 renderer. It improves modding support with ZDoom's advanced mapping features
7410 and the new ZScript language. In addition to Doom, it supports Heretic, Hexen,
7411 Strife, Chex Quest, and fan-created games like Harmony, Hacx and Freedoom.")
7412 (home-page "https://zdoom.org/index")
7413 ;; The source uses x86 assembly
7414 (supported-systems '("x86_64-linux" "i686-linux"))
7415 (license (list license:gpl3+ ; gzdoom game
7416 license:lgpl3+ ; gzdoom renderer
7417 license:expat ; gdtoa
7418 (license:non-copyleft ; modified dumb
7419 "file://dumb/licence.txt"
7420 "Dumb license, explicitly GPL compatible.")))))
7421
7422 (define-public odamex
7423 (package
7424 (name "odamex")
7425 (version "0.8.3")
7426 (source
7427 (origin
7428 (method url-fetch)
7429 (uri (string-append
7430 "mirror://sourceforge/odamex/Odamex/" version "/"
7431 "odamex-src-" version ".tar.gz"))
7432 (sha256
7433 (base32 "0f887g87bmcq4dpcga7xc2mpxs947dkbc934ir9xs55gz6z13q96"))))
7434 (build-system cmake-build-system)
7435 (arguments `(#:tests? #f)) ; no tests
7436 (inputs
7437 `(("sdl" ,sdl)
7438 ("sdl-mixer" ,sdl-mixer)
7439 ("zlib" ,zlib)
7440 ("libpng" ,libpng)
7441 ("alsa-lib" ,alsa-lib)))
7442 (home-page "https://odamex.net/")
7443 (synopsis "Multiplayer Doom port")
7444 (description "Odamex is a modification of the Doom engine that
7445 allows players to easily join servers dedicated to playing Doom
7446 online.")
7447 (license license:gpl2+)))
7448
7449 (define-public chocolate-doom
7450 (package
7451 (name "chocolate-doom")
7452 (version "3.0.1")
7453 (source (origin
7454 (method url-fetch)
7455 (uri (string-append "https://www.chocolate-doom.org/downloads/"
7456 version
7457 "/chocolate-doom-"
7458 version
7459 ".tar.gz"))
7460 (sha256
7461 (base32
7462 "1iy8rx7kjvi1zjiw4zh77szzmd1sgpqajvbhprh1sj93fhbxcdfl"))))
7463 (build-system gnu-build-system)
7464 (inputs `(("sdl2-net" ,sdl2-net)
7465 ("sdl2-mixer" , sdl2-mixer)
7466 ("sdl2" ,sdl2)))
7467 (native-inputs
7468 `(("pkg-config" ,pkg-config)))
7469 (synopsis "Doom source port preserving the look, feel, and bugs of vanilla
7470 Doom")
7471 (description
7472 "Chocolate Doom takes a different approach to other source ports. Its
7473 aim is to accurately reproduce the experience of playing Vanilla Doom. It is
7474 a conservative, historically accurate Doom source port, which is compatible
7475 with the thousands of mods and levels that were made before the Doom source
7476 code was released. Rather than flashy new graphics, Chocolate Doom's main
7477 features are its accurate reproduction of the game as it was played in the
7478 1990s. The project is developed around a carefully-considered philosophy that
7479 intentionally restricts which features may be added (and rejects any that
7480 affect gameplay).")
7481 (home-page "https://www.chocolate-doom.org/wiki/index.php/Chocolate_Doom")
7482 (license license:gpl2)))
7483
7484 (define-public crispy-doom
7485 (package
7486 (inherit chocolate-doom)
7487 (name "crispy-doom")
7488 (version "5.8.0")
7489 (source (origin
7490 (method git-fetch)
7491 (uri (git-reference
7492 (url "https://github.com/fabiangreffrath/crispy-doom")
7493 (commit (string-append "crispy-doom-" version))))
7494 (file-name (git-file-name name version))
7495 (sha256
7496 (base32 "1b6gn0dysv631jynh769whww9xcss1gms78sz3nrn855q1dsvcb4"))))
7497 (native-inputs
7498 (append
7499 (package-native-inputs chocolate-doom)
7500 `(("automake" ,automake)
7501 ("autoreconf" ,autoconf))))
7502 (arguments
7503 `(#:phases
7504 (modify-phases %standard-phases
7505 (replace 'bootstrap
7506 ;; The bundled autogen.sh script unconditionally runs ./configure.
7507 (lambda _ (invoke "autoreconf" "-vif"))))))
7508 (synopsis "Limit-removing enhanced-resolution Doom source port based on
7509 Chocolate Doom")
7510 (description
7511 "Crispy Doom is a friendly fork of Chocolate Doom that provides a higher
7512 display resolution, removes the static limits of the Doom engine and offers
7513 further optional visual, tactical and physical enhancements while remaining
7514 entirely config file, savegame, netplay and demo compatible with the
7515 original.")
7516 (home-page "https://www.chocolate-doom.org/wiki/index.php/Crispy_Doom")))
7517
7518 (define shlomif-cmake-modules
7519 (origin
7520 (method url-fetch)
7521 (uri (string-append "https://bitbucket.org/shlomif/shlomif-cmake-modules/"
7522 "raw/c505713d7a7cda608f97f01577e5868a711b883e/"
7523 "shlomif-cmake-modules/Shlomif_Common.cmake"))
7524 (sha256
7525 (base32 "0kx9s1qqhhzprp1w3b67xmsns0n0v506bg5hgrshxaxpy6lqiwb2"))))
7526
7527 (define-public rinutils
7528 (package
7529 (name "rinutils")
7530 (version "0.2.0")
7531 (source (origin
7532 (method git-fetch)
7533 (uri (git-reference
7534 (url "https://github.com/shlomif/rinutils")
7535 (commit version)))
7536 (file-name (git-file-name name version))
7537 (sha256
7538 (base32
7539 "1fpxyg86ggv0h7j8aarjjxrvwlj7jycd3bw066c0dwkq2fszxsf2"))))
7540 (native-inputs
7541 `(("perl" ,perl)
7542 ;; The following is only needed for tests.
7543 ("perl-file-find-object" ,perl-file-find-object)
7544 ("perl-test-differences" ,perl-test-differences)
7545 ("perl-class-xsaccessor" ,perl-class-xsaccessor)
7546 ("perl-io-all" ,perl-io-all)
7547 ("perl-test-runvalgrind" ,perl-test-runvalgrind)
7548 ("cmake-rules" ,shlomif-cmake-modules)
7549 ("pkg-config" ,pkg-config)))
7550 (inputs
7551 `(("cmocka" ,cmocka)
7552 ("perl-env-path" ,perl-env-path)
7553 ("perl-inline" ,perl-inline)
7554 ("perl-inline-c" ,perl-inline-c)
7555 ("perl-string-shellquote" ,perl-string-shellquote)
7556 ("perl-test-trailingspace" ,perl-test-trailingspace)
7557 ("perl-file-find-object-rule" ,perl-file-find-object-rule)
7558 ("perl-text-glob" ,perl-text-glob)
7559 ("perl-number-compare" ,perl-number-compare)
7560 ("perl-moo" ,perl-moo)))
7561 (arguments
7562 `(#:phases
7563 (modify-phases %standard-phases
7564 (add-after 'unpack 'fix-build-env
7565 (lambda* (#:key inputs #:allow-other-keys)
7566 (use-modules (guix build utils))
7567 (let* ((cmake-rules (assoc-ref inputs "cmake-rules")))
7568 (copy-file cmake-rules
7569 (string-append "cmake/"
7570 (strip-store-file-name cmake-rules)))
7571 #t)))
7572 (replace 'check
7573 (lambda _
7574 (with-directory-excursion "../source"
7575 (setenv "FCS_TEST_BUILD" "1")
7576 (setenv "RINUTILS_TEST_BUILD" "1")
7577 ;; TODO: Run tests after setting RINUTILS_TEST_TIDY to `1',
7578 ;; which requires tidy-all.
7579 ;; (setenv "RINUTILS_TEST_TIDY" "1")
7580 (invoke "perl" "CI-testing/continuous-integration-testing.pl")))))))
7581 (build-system cmake-build-system)
7582 (home-page "https://www.shlomifish.org/open-source/projects/")
7583 (synopsis "C11 / gnu11 utilities C library")
7584 (description "This package provides C11 / gnu11 utilities C library")
7585 (license license:expat)))
7586
7587 (define-public fortune-mod
7588 (package
7589 (name "fortune-mod")
7590 (version "2.28.0")
7591 (source
7592 (origin
7593 (method git-fetch)
7594 (uri (git-reference
7595 (url "https://github.com/shlomif/fortune-mod")
7596 (commit (string-append "fortune-mod-" version))))
7597 (file-name (git-file-name name version))
7598 (sha256
7599 (base32 "1ppzgnffgdcmq6fq4gmdq2ig10ip2bnfgklkb3i8nc6bdxm7pb89"))))
7600 (build-system cmake-build-system)
7601 (arguments
7602 `(#:test-target "check"
7603 #:phases
7604 (modify-phases %standard-phases
7605 (add-after 'unpack 'fix-build-env
7606 (lambda* (#:key inputs #:allow-other-keys)
7607 (use-modules (guix build utils))
7608 (let* ((cmake-rules (assoc-ref inputs "cmake-rules")))
7609 (copy-file cmake-rules
7610 (string-append "fortune-mod/cmake/"
7611 (strip-store-file-name cmake-rules)))
7612 (chdir "fortune-mod")
7613 ;; TODO: Valgrind tests fail for some reason.
7614 ;; Similar issue: https://github.com/shlomif/fortune-mod/issues/21 (?)
7615 (delete-file "tests/t/valgrind.t")
7616 #t)))
7617 (add-after 'install 'fix-install-directory
7618 (lambda* (#:key outputs #:allow-other-keys)
7619 ;; Move binary from "games/" to "bin/" and remove the latter. This
7620 ;; is easier than patching CMakeLists.txt since the tests hard-code
7621 ;; the location as well.
7622 (let* ((out (assoc-ref outputs "out"))
7623 (bin (string-append out "/bin"))
7624 (games (string-append out "/games")))
7625 (rename-file (string-append games "/fortune")
7626 (string-append bin "/fortune"))
7627 (rmdir games)
7628 #t))))))
7629 (inputs `(("recode" ,recode)))
7630 (native-inputs
7631 `(("perl" ,perl)
7632 ;; The following is only needed for tests.
7633 ("perl-file-find-object" ,perl-file-find-object)
7634 ("perl-test-differences" ,perl-test-differences)
7635 ("perl-class-xsaccessor" ,perl-class-xsaccessor)
7636 ("perl-io-all" ,perl-io-all)
7637 ("perl-test-runvalgrind" ,perl-test-runvalgrind)
7638 ("cmake-rules" ,shlomif-cmake-modules)
7639 ("rinutils" ,rinutils)))
7640 (home-page "https://www.shlomifish.org/open-source/projects/fortune-mod/")
7641 (synopsis "The Fortune Cookie program from BSD games")
7642 (description "Fortune is a command-line utility which displays a random
7643 quotation from a collection of quotes.")
7644 (license license:bsd-4)))
7645
7646 (define xonotic-data
7647 (package
7648 (name "xonotic-data")
7649 (version "0.8.2")
7650 (source
7651 (origin
7652 (method url-fetch)
7653 (uri (string-append "http://dl.xonotic.org/xonotic-"
7654 version ".zip"))
7655 (file-name (string-append name "-" version ".zip"))
7656 (sha256
7657 (base32
7658 "1mcs6l4clvn7ibfq3q69k2p0z6ww75rxvnngamdq5ic6yhq74bx2"))))
7659 (build-system trivial-build-system)
7660 (native-inputs
7661 `(("unzip" ,unzip)))
7662 (arguments
7663 `(#:modules ((guix build utils))
7664 #:builder
7665 (begin
7666 (use-modules (guix build utils))
7667 (let* ((out (assoc-ref %outputs "out"))
7668 (xonotic (string-append out "/share/xonotic"))
7669 (source (assoc-ref %build-inputs "source"))
7670 (unzip (string-append (assoc-ref %build-inputs "unzip") "/bin/unzip")))
7671 (copy-file source (string-append ,name "-" ,version ".zip"))
7672 (invoke unzip (string-append ,name "-" ,version ".zip"))
7673 (mkdir-p out)
7674 (mkdir-p xonotic)
7675 (chdir "Xonotic")
7676 (copy-recursively "data"
7677 (string-append xonotic "/data"))
7678 (copy-recursively "server"
7679 (string-append xonotic "/server"))
7680 (install-file "key_0.d0pk" xonotic)))))
7681 (home-page "http://xonotic.org")
7682 (synopsis "Data files for Xonotic")
7683 (description
7684 "Xonotic-data provides the data files required by the game Xonotic.")
7685 (license (list license:gpl2+
7686 (license:x11-style "file://server/rcon.pl")))))
7687
7688 (define-public xonotic
7689 (package
7690 (name "xonotic")
7691 (version "0.8.2")
7692 (source
7693 (origin
7694 (method url-fetch)
7695 (uri (string-append "http://dl.xonotic.org/xonotic-"
7696 version "-source.zip"))
7697 (file-name (string-append name "-" version ".zip"))
7698 (sha256
7699 (base32
7700 "0axxw04fyz6jlfqd0kp7hdrqa0li31sx1pbipf2j5qp9wvqicsay"))))
7701 (build-system gnu-build-system)
7702 (arguments
7703 `(#:configure-flags (list (string-append "--prefix="
7704 (assoc-ref %outputs "out"))
7705 "--disable-rijndael")
7706 #:phases
7707 (modify-phases %standard-phases
7708 (add-before 'configure 'make-darkplaces
7709 (lambda* (#:key outputs #:allow-other-keys)
7710 (let* ((out (assoc-ref outputs "out"))
7711 (sharedir (string-append out "/share/xonotic/")))
7712 (invoke "make" "-C" "source/darkplaces"
7713 (string-append "DP_FS_BASEDIR="
7714 sharedir)
7715 "DP_LINK_TO_LIBJPEG=1"
7716 "DP_SOUND_API=ALSA"
7717 "CC=gcc"
7718 "-f" "makefile"
7719 "cl-release")
7720 (invoke "make" "-C" "source/darkplaces"
7721 (string-append "DP_FS_BASEDIR="
7722 sharedir)
7723 "DP_LINK_TO_LIBJPEG=1"
7724 "DP_SOUND_API=ALSA"
7725 "CC=gcc"
7726 "-f" "makefile"
7727 "sdl-release")
7728 (invoke "make" "-C" "source/darkplaces"
7729 (string-append "DP_FS_BASEDIR="
7730 sharedir)
7731 "DP_LINK_TO_LIBJPEG=1"
7732 "DP_SOUND_API=ALSA"
7733 "CC=gcc"
7734 "-f" "makefile"
7735 "sv-release"))))
7736 (add-before 'configure 'bootstrap
7737 (lambda _
7738 (chdir "source/d0_blind_id")
7739 (invoke "sh" "autogen.sh")))
7740 (add-after 'build 'install-desktop-entry
7741 (lambda* (#:key outputs #:allow-other-keys)
7742 ;; Add .desktop files for the 2 variants and the symlink
7743 (let* ((output (assoc-ref outputs "out"))
7744 (apps (string-append output "/share/applications")))
7745 (mkdir-p apps)
7746 (with-output-to-file
7747 (string-append apps "/xonotic-glx.desktop")
7748 (lambda _
7749 (format #t
7750 "[Desktop Entry]~@
7751 Name=xonotic-glx~@
7752 Comment=Xonotic glx~@
7753 Exec=~a/bin/xonotic-glx~@
7754 TryExec=~@*~a/bin/xonotic-glx~@
7755 Icon=xonotic~@
7756 Categories=Game~@
7757 Type=Application~%"
7758 output)))
7759 (with-output-to-file
7760 (string-append apps "/xonotic-sdl.desktop")
7761 (lambda _
7762 (format #t
7763 "[Desktop Entry]~@
7764 Name=xonotic-sdl~@
7765 Comment=Xonotic sdl~@
7766 Exec=~a/bin/xonotic-sdl~@
7767 TryExec=~@*~a/bin/xonotic-sdl~@
7768 Icon=xonotic~@
7769 Categories=Game~@
7770 Type=Application~%"
7771 output)))
7772 (with-output-to-file
7773 (string-append apps "/xonotic.desktop")
7774 (lambda _
7775 (format #t
7776 "[Desktop Entry]~@
7777 Name=xonotic~@
7778 Comment=Xonotic~@
7779 Exec=~a/bin/xonotic-glx~@
7780 TryExec=~@*~a/bin/xonotic~@
7781 Icon=xonotic~@
7782 Categories=Game~@
7783 Type=Application~%"
7784 output)))
7785 #t)))
7786 (add-after 'install-desktop-entry 'install-icons
7787 (lambda* (#:key outputs #:allow-other-keys)
7788 (let ((out (assoc-ref outputs "out")))
7789 (with-directory-excursion "../../misc/logos/icons_png/"
7790 (for-each
7791 (lambda (file)
7792 (let* ((size (string-filter char-numeric? file))
7793 (icons (string-append out "/share/icons/hicolor/"
7794 size "x" size "/apps")))
7795 (mkdir-p icons)
7796 (copy-file file (string-append icons "/xonotic.png"))))
7797 '("xonotic_16.png" "xonotic_22.png" "xonotic_24.png"
7798 "xonotic_32.png" "xonotic_48.png" "xonotic_64.png"
7799 "xonotic_128.png" "xonotic_256.png" "xonotic_512.png"))))))
7800 (add-after 'install-icons 'install-binaries
7801 (lambda* (#:key outputs #:allow-other-keys)
7802 (let ((out (assoc-ref outputs "out")))
7803 (define (install src dst)
7804 (let ((dst (string-append out dst)))
7805 (mkdir-p (dirname dst))
7806 (copy-file src dst)))
7807 (mkdir-p (string-append out "/bin"))
7808 (install "../darkplaces/darkplaces-dedicated"
7809 "/bin/xonotic-dedicated")
7810 (install "../darkplaces/darkplaces-glx"
7811 "/bin/xonotic-glx")
7812 (install "../darkplaces/darkplaces-sdl"
7813 "/bin/xonotic-sdl")
7814 ;; Provide a default xonotic executable, defaulting to SDL.
7815 (symlink (string-append out "/bin/xonotic-sdl")
7816 (string-append out "/bin/xonotic"))
7817 #t)))
7818 (add-after 'install-binaries 'install-data
7819 (lambda* (#:key outputs inputs #:allow-other-keys)
7820 (let* ((out (assoc-ref outputs "out"))
7821 (data (assoc-ref inputs "xonotic-data")))
7822 (symlink (string-append data "/share/xonotic")
7823 (string-append out "/share/xonotic"))
7824 #t)))
7825 (add-after 'install-binaries 'wrap-binaries
7826 (lambda* (#:key outputs inputs #:allow-other-keys)
7827 ;; Curl and libvorbis need to be wrapped so that we get
7828 ;; sound and networking.
7829 (let* ((out (assoc-ref outputs "out"))
7830 (bin (string-append out "/bin/xonotic"))
7831 (bin-sdl (string-append out "/bin/xonotic-sdl"))
7832 (bin-glx (string-append out "/bin/xonotic-glx"))
7833 (bin-dedicated (string-append out "/bin/xonotic-dedicated"))
7834 (curl (assoc-ref inputs "curl"))
7835 (vorbis (assoc-ref inputs "libvorbis")))
7836 (wrap-program bin
7837 `("LD_LIBRARY_PATH" ":" prefix
7838 (,(string-append curl "/lib:" vorbis "/lib"))))
7839 (wrap-program bin-sdl
7840 `("LD_LIBRARY_PATH" ":" prefix
7841 (,(string-append curl "/lib:" vorbis "/lib"))))
7842 (wrap-program bin-glx
7843 `("LD_LIBRARY_PATH" ":" prefix
7844 (,(string-append curl "/lib:" vorbis "/lib"))))
7845 (wrap-program bin-dedicated
7846 `("LD_LIBRARY_PATH" ":" prefix
7847 (,(string-append curl "/lib:" vorbis "/lib"))))
7848 #t))))))
7849 (inputs
7850 `(("xonotic-data" ,xonotic-data)
7851 ("alsa-lib" ,alsa-lib)
7852 ("curl" ,curl)
7853 ("libjpeg" ,libjpeg-turbo)
7854 ("libmodplug" ,libmodplug)
7855 ("libvorbis" ,libvorbis)
7856 ("libogg" ,libogg)
7857 ("libxpm" ,libxpm)
7858 ("libxxf86dga" ,libxxf86dga)
7859 ("libxxf86vm" ,libxxf86vm)
7860 ("libx11" ,libx11)
7861 ("libxext" ,libxext)
7862 ("libxau" ,libxau)
7863 ("libxdmcp" ,libxdmcp)
7864 ("mesa" ,mesa)
7865 ("glu" ,glu)
7866 ("freetype" ,freetype)
7867 ("sdl2" ,sdl2)
7868 ("libpng" ,libpng)
7869 ("hicolor-icon-theme" ,hicolor-icon-theme)))
7870 (native-inputs
7871 `(("unzip" ,unzip)
7872 ("autoconf" ,autoconf)
7873 ("automake" ,automake)
7874 ("pkg-config" ,pkg-config)
7875 ("libtool" ,libtool)
7876 ("gmp" ,gmp)))
7877 (home-page "https://xonotic.org")
7878 (synopsis "Fast-paced first-person shooter game")
7879 (description
7880 "Xonotic is a free, fast-paced first-person shooter.
7881 The project is geared towards providing addictive arena shooter
7882 gameplay which is all spawned and driven by the community itself.
7883 Xonotic is a direct successor of the Nexuiz project with years of
7884 development between them, and it aims to become the best possible
7885 open-source FPS of its kind.")
7886 (license (list license:gpl2+
7887 license:bsd-3 ; /source/d0_blind_id folder and others
7888 (license:x11-style "" "See file rcon.pl.")))))
7889
7890 (define-public frotz
7891 (package
7892 (name "frotz")
7893 (version "2.44")
7894 (source (origin
7895 (method url-fetch)
7896 (uri (list (string-append
7897 "http://www.ifarchive.org/if-archive/infocom/interpreters/"
7898 "frotz/frotz-" version ".tar.gz")
7899 (string-append
7900 "ftp://ftp.ifarchive.org/if-archive/infocom/interpreters/"
7901 "frotz/frotz-" version ".tar.gz")))
7902 (sha256
7903 (base32
7904 "1v735xr3blznac8fnwa27s1vhllx4jpz7kw7qdw1bsfj6kq21v3k"))))
7905 (build-system gnu-build-system)
7906 (arguments
7907 `(#:tests? #f ; there are no tests
7908 #:phases
7909 (modify-phases %standard-phases
7910 (delete 'configure)
7911 (add-before 'build 'curses
7912 (lambda _
7913 (substitute* "Makefile"
7914 (("lcurses") "lncurses"))
7915 #t))
7916 (replace 'install
7917 (lambda* (#:key outputs #:allow-other-keys)
7918 (let* ((out (assoc-ref outputs "out"))
7919 (bin (string-append out "/bin"))
7920 (man (string-append out "/share/man/man6")))
7921 (install-file "frotz" bin)
7922 (mkdir-p man)
7923 (install-file "doc/frotz.6" man)
7924 #t))))))
7925 (inputs `(("libmodplug" ,libmodplug)
7926 ("libsamplerate" ,libsamplerate)
7927 ("libsndfile" ,libsndfile)
7928 ("libvorbis" ,libvorbis)
7929 ("ncurses" ,ncurses)))
7930 (synopsis "Portable Z-machine interpreter (ncurses version) for text adventure games")
7931 (description "Frotz is an interpreter for Infocom games and other Z-machine
7932 games in the text adventure/interactive fiction genre. This version of Frotz
7933 complies with standard 1.0 of Graham Nelson's specification. It plays all
7934 Z-code games V1-V8, including V6, with sound support through libao, and uses
7935 ncurses for text display.")
7936 (home-page "http://frotz.sourceforge.net")
7937 (license license:gpl2+)))
7938
7939 (define-public frotz-dumb-terminal
7940 (package
7941 (name "frotz-dumb-terminal")
7942 (version "2.44")
7943 (source (origin
7944 (method url-fetch)
7945 (uri (list (string-append
7946 "http://www.ifarchive.org/if-archive/infocom/interpreters/"
7947 "frotz/frotz-" version ".tar.gz")
7948 (string-append
7949 "ftp://ftp.ifarchive.org/if-archive/infocom/interpreters/"
7950 "frotz/frotz-" version ".tar.gz")))
7951 (sha256
7952 (base32
7953 "1v735xr3blznac8fnwa27s1vhllx4jpz7kw7qdw1bsfj6kq21v3k"))))
7954 (build-system gnu-build-system)
7955 (arguments
7956 `(#:tests? #f ; there are no tests
7957 #:phases
7958 (modify-phases %standard-phases
7959 (delete 'configure)
7960 (replace 'build
7961 (lambda _
7962 (invoke "make" "dumb")))
7963 (replace 'install
7964 (lambda* (#:key outputs #:allow-other-keys)
7965 (let* ((out (assoc-ref outputs "out"))
7966 (bin (string-append out "/bin"))
7967 (man (string-append out "/share/man/man6")))
7968 (install-file "dfrotz" bin)
7969 (mkdir-p man)
7970 (install-file "doc/dfrotz.6" man)
7971 #t))))))
7972 (synopsis "Portable Z-machine dumb interpreter for text adventure games")
7973 (description "Frotz is an interpreter for Infocom games and
7974 other Z-machine games in the text adventure/interactive fiction genre.
7975 dfrotz is the dumb interface version. You get no screen control; everything
7976 is just printed to the terminal line by line. The terminal handles all the
7977 scrolling. Maybe you'd like to experience what it's like to play Adventure on
7978 a teletype. A much cooler use for compiling Frotz with the dumb interface is
7979 that it can be wrapped in CGI scripting, PHP, and the like to allow people
7980 to play games on webpages. It can also be made into a chat bot.")
7981 (home-page "http://frotz.sourceforge.net")
7982 (license license:gpl2+)))
7983
7984 (define-public frotz-sdl
7985 (let* ((commit "4de8c34f2116fff554af6216c30ec9d41bf50b24"))
7986 (package
7987 (name "frotz-sdl")
7988 (version "2.45pre")
7989 (source (origin
7990 (method git-fetch)
7991 (uri (git-reference
7992 (url "https://gitlab.com/DavidGriffith/frotz")
7993 (commit commit)))
7994 (sha256
7995 (base32
7996 "18ms21pcrl7ipcnyqnf8janamkryzx78frsgd9kfk67jvbj0z2k8"))
7997 (file-name (git-file-name name version))))
7998 (build-system gnu-build-system)
7999 (arguments
8000 `(#:tests? #f ; there are no tests
8001 #:phases
8002 (modify-phases %standard-phases
8003 (delete 'configure)
8004 (add-before 'build 'patch-makefile
8005 (lambda _
8006 (substitute* "Makefile"
8007 (("lcurses") "lncurses")
8008 (("^BUILD_DATE_TIME =.*$")
8009 "BUILD_DATE_TIME = \"2.45pre-20180907.00000\"\n"))
8010 #t))
8011 (replace 'build
8012 (lambda _
8013 (invoke "make" "sdl")))
8014 (replace 'install
8015 (lambda* (#:key outputs #:allow-other-keys)
8016 (let* ((out (assoc-ref outputs "out"))
8017 (bin (string-append out "/bin"))
8018 (man (string-append out "/share/man/man6")))
8019 (install-file "sfrotz" bin)
8020 (mkdir-p man)
8021 (install-file "doc/sfrotz.6" man)
8022 #t))))))
8023 (native-inputs
8024 `(("pkg-config" ,pkg-config)
8025 ("which" ,which)
8026 ("perl" ,perl)))
8027 (inputs `(("sdl2" ,sdl2)
8028 ("sdl2-mixer" ,sdl2-mixer)
8029 ("libmodplug" ,libmodplug)
8030 ("libsamplerate" ,libsamplerate)
8031 ("libsndfile" ,libsndfile)
8032 ("libvorbis" ,libvorbis)
8033 ("ncurses" ,ncurses)
8034 ("freetype" ,freetype)
8035 ("libjpeg-turbo" ,libjpeg-turbo)))
8036 (synopsis "Portable Z-machine interpreter (SDL port) for text adventure games")
8037 (description "Frotz is an interpreter for Infocom games and other Z-machine
8038 games in the text adventure/interactive fiction genre. This version of Frotz
8039 using SDL fully supports all these versions of the Z-Machine including the
8040 graphical version 6. Graphics and sound are created through the use of the SDL
8041 libraries. AIFF sound effects and music in MOD and OGG formats are supported
8042 when packaged in Blorb container files or optionally from individual files.")
8043 (home-page "http://frotz.sourceforge.net")
8044 (license license:gpl2+))))
8045
8046 (define-public frozen-bubble
8047 ;; Last official release is very outdated (2010). Use latest commit (2017).
8048 (let ((commit "d6a029110ad6ab9e4960052e175addc98807fb7e")
8049 (revision "1"))
8050 (package
8051 (name "frozen-bubble")
8052 (version (git-version "2.2.1" revision commit))
8053 (source
8054 (origin
8055 (method git-fetch)
8056 (uri (git-reference
8057 (url "https://github.com/kthakore/frozen-bubble")
8058 (commit commit)))
8059 (file-name (git-file-name name version))
8060 (sha256
8061 (base32 "1rfrcym5lf4qac2qdklikb1ywijyxypq298azzxahy461dadl6cx"))))
8062 (build-system perl-build-system)
8063 (arguments
8064 `(#:phases
8065 (modify-phases %standard-phases
8066 ;; Build process needs to create files in the "server"
8067 ;; directory.
8068 (add-after 'unpack 'fix-permissions
8069 (lambda _
8070 (for-each make-file-writable
8071 (find-files "server" "." #:directories? #t))))
8072 ;; By default, build stops at warnings.
8073 (add-after 'unpack 'prevent-build-error
8074 (lambda _
8075 (substitute* "inc/My/Builder.pm"
8076 (("-Werror") ""))
8077 #t))
8078 (add-after 'install 'install-desktop-file-and-icons
8079 (lambda* (#:key outputs #:allow-other-keys)
8080 (let* ((share (string-append (assoc-ref outputs "out") "/share"))
8081 (hicolor (string-append share "/icons/hicolor")))
8082 ;; Create desktop entry.
8083 (make-desktop-entry-file
8084 (string-append share "/applications/" ,name ".desktop")
8085 #:name "Frozen Bubble"
8086 #:comment "Frozen Bubble arcade game"
8087 #:exec ,name
8088 #:icon ,name
8089 #:categories '("Game" "ArcadeGame"))
8090 ;; Add icons.
8091 (with-directory-excursion "share/icons"
8092 (for-each
8093 (lambda (size)
8094 (let* ((dim (string-append size "x" size))
8095 (dir (string-append hicolor "/" dim "/apps")))
8096 (mkdir-p dir)
8097 (copy-file
8098 (string-append "frozen-bubble-icon-" dim ".png")
8099 (string-append dir "/frozen-bubble.png"))))
8100 '("16" "32" "48" "64"))))
8101 #t))
8102 (add-after 'install 'wrap-perl-libs
8103 (lambda* (#:key outputs #:allow-other-keys)
8104 (let ((out (assoc-ref outputs "out"))
8105 (perl5lib (getenv "PERL5LIB")))
8106 (for-each (lambda (prog)
8107 (wrap-program (string-append out "/" prog)
8108 `("PERL5LIB" ":" prefix
8109 (,(string-append perl5lib ":" out
8110 "/lib/perl5/site_perl")))))
8111 (find-files "bin" ".")))
8112 #t)))))
8113 (native-inputs
8114 `(("perl-alien-sdl" ,perl-alien-sdl)
8115 ("perl-capture-tiny" ,perl-capture-tiny)
8116 ("perl-locale-maketext-lexicon" ,perl-locale-maketext-lexicon)
8117 ("perl-module-build" ,perl-module-build)
8118 ("pkg-config" ,pkg-config)))
8119 (inputs
8120 `(("glib" ,glib)
8121 ("perl-compress-bzip2" ,perl-compress-bzip2)
8122 ("perl-file-sharedir" ,perl-file-sharedir)
8123 ("perl-file-slurp" ,perl-file-slurp)
8124 ("perl-file-which" ,perl-file-which)
8125 ("perl-ipc-system-simple" ,perl-ipc-system-simple)
8126 ("perl-sdl" ,perl-sdl)
8127 ("sdl" ,(sdl-union (list sdl sdl-image sdl-mixer sdl-pango sdl-ttf)))))
8128 (home-page "http://frozen-bubble.org/")
8129 (synopsis "Puzzle with bubbles")
8130 (description
8131 "Frozen-Bubble is a clone of the popular Puzzle Bobble game, in which
8132 you attempt to shoot bubbles into groups of the same color to cause them to
8133 pop.
8134
8135 Players compete as penguins and must use the arrow keys to aim a colored
8136 bubble at groups of bubbles. The objective is to clear all the bubbles off
8137 the screen before a bubble passes below a line at the bottom.
8138
8139 It features 100 single-player levels, a two-player mode, music and striking
8140 graphics. A level editor is also included to allow players to create and play
8141 their own levels.")
8142 (license license:gpl2))))
8143
8144 (define-public libmanette
8145 (package
8146 (name "libmanette")
8147 (version "0.2.6")
8148 (source (origin
8149 (method url-fetch)
8150 (uri (string-append "mirror://gnome/sources/libmanette/"
8151 (version-major+minor version) "/"
8152 "libmanette-" version ".tar.xz"))
8153 (sha256
8154 (base32
8155 "1b3bcdkk5xd5asq797cch9id8692grsjxrc1ss87vv11m1ck4rb3"))))
8156 (build-system meson-build-system)
8157 (native-inputs
8158 `(("glib" ,glib "bin") ; for glib-compile-resources
8159 ("gobject-introspection" ,gobject-introspection)
8160 ("pkg-config" ,pkg-config)
8161 ("vala" ,vala)))
8162 (inputs
8163 `(("libevdev" ,libevdev)
8164 ("libgudev" ,libgudev)))
8165 (home-page "https://wiki.gnome.org/Apps/Games")
8166 (synopsis "Game controller library")
8167 (description "Libmanette is a small GObject library giving you simple
8168 access to game controllers. It supports the de-facto standard gamepads as
8169 defined by the W3C standard Gamepad specification or as implemented by the SDL
8170 GameController.")
8171 (license license:lgpl2.1+)))
8172
8173 (define-public quadrapassel
8174 (package
8175 (name "quadrapassel")
8176 (version "3.36.05")
8177 (source (origin
8178 (method url-fetch)
8179 (uri (string-append "mirror://gnome/sources/quadrapassel/"
8180 (version-major+minor version) "/"
8181 "quadrapassel-" version ".tar.xz"))
8182 (sha256
8183 (base32
8184 "04abxmimh5npw8rhz1sfi6wxilgc6i1wka9mlnfwp8v1p1cb00cv"))))
8185 (build-system meson-build-system)
8186 (arguments
8187 '(#:glib-or-gtk? #t
8188 #:phases
8189 (modify-phases %standard-phases
8190 (add-after 'unpack 'skip-gtk-update-icon-cache
8191 ;; Don't create 'icon-theme.cache'.
8192 (lambda _
8193 (substitute* "build-aux/meson_post_install.py"
8194 (("gtk-update-icon-cache") (which "true")))
8195 #t)))))
8196 (native-inputs
8197 `(("desktop-file-utils" ,desktop-file-utils) ;for desktop-file-validate
8198 ("gettext" ,gettext-minimal)
8199 ("glib" ,glib "bin") ;for glib-compile-resources
8200 ("itstool" ,itstool)
8201 ("libxml2" ,libxml2) ;for xmllint
8202 ("pkg-config" ,pkg-config)
8203 ("vala" ,vala)))
8204 (inputs
8205 `(("clutter" ,clutter)
8206 ("clutter-gtk" ,clutter-gtk)
8207 ("gsound" ,gsound)
8208 ("gtk+" ,gtk+)
8209 ("libcanberra" ,libcanberra)
8210 ("libmanette" ,libmanette)
8211 ("librsvg" ,librsvg)))
8212 (home-page "https://wiki.gnome.org/Apps/Quadrapassel")
8213 (synopsis "GNOME version of Tetris")
8214 (description "Quadrapassel comes from the classic falling-block game,
8215 Tetris. The goal of the game is to create complete horizontal lines of
8216 blocks, which will disappear. The blocks come in seven different shapes made
8217 from four blocks each: one straight, two L-shaped, one square, and two
8218 S-shaped. The blocks fall from the top center of the screen in a random
8219 order. You rotate the blocks and move them across the screen to drop them in
8220 complete lines. You score by dropping blocks fast and completing lines. As
8221 your score gets higher, you level up and the blocks fall faster.")
8222 (license license:gpl2+)))
8223
8224 (define-public endless-sky
8225 (package
8226 (name "endless-sky")
8227 (version "0.9.12")
8228 (source
8229 (origin
8230 (method git-fetch)
8231 (uri (git-reference
8232 (url "https://github.com/endless-sky/endless-sky")
8233 (commit (string-append "v" version))))
8234 (file-name (git-file-name name version))
8235 (sha256
8236 (base32 "18nkl4s3r5sy3sd9lhbdg9160c7fggklklprx0d5azifc8g6k0wj"))))
8237 (build-system scons-build-system)
8238 (arguments
8239 `(#:scons ,scons-python2
8240 #:scons-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
8241 #:tests? #f ; no tests
8242 #:phases
8243 (modify-phases %standard-phases
8244 (add-after 'unpack 'patch-resource-locations
8245 (lambda* (#:key outputs #:allow-other-keys)
8246 (substitute* "source/Files.cpp"
8247 (("/usr/local/")
8248 (string-append (assoc-ref outputs "out") "/")))
8249 #t))
8250 (add-after 'unpack 'patch-scons
8251 (lambda _
8252 (substitute* "SConstruct"
8253 ;; Keep environmental variables
8254 (("Environment\\(\\)")
8255 "Environment(ENV = os.environ)")
8256 ;; Install into %out/bin
8257 (("games\"") "bin\""))
8258 #t)))))
8259 (inputs
8260 `(("glew" ,glew)
8261 ("libjpeg" ,libjpeg-turbo)
8262 ("libmad" ,libmad)
8263 ("libpng" ,libpng)
8264 ("openal" ,openal)
8265 ("sdl2" ,sdl2)))
8266 (home-page "https://endless-sky.github.io/")
8267 (synopsis "2D space trading and combat game")
8268 (description "Endless Sky is a 2D space trading and combat game. Explore
8269 other star systems. Earn money by trading, carrying passengers, or completing
8270 missions. Use your earnings to buy a better ship or to upgrade the weapons and
8271 engines on your current one. Blow up pirates. Take sides in a civil war. Or
8272 leave human space behind and hope to find friendly aliens whose culture is more
8273 civilized than your own.")
8274 (license (list license:gpl3+
8275 license:cc-by-sa3.0
8276 license:cc-by-sa4.0
8277 license:public-domain))))
8278
8279 (define-public stepmania
8280 (package
8281 (name "stepmania")
8282 (version "5.1.0-b2")
8283 (source
8284 (origin
8285 (method git-fetch)
8286 (uri (git-reference
8287 (url "https://github.com/stepmania/stepmania")
8288 (commit (string-append "v" version))))
8289 (file-name (git-file-name name version))
8290 (sha256
8291 (base32
8292 "0a7y9l7xm510vgnpmj1is7p9m6d6yd0fcaxrjcickz295k5w3rdn"))
8293 (modules '((guix build utils)))
8294 (snippet
8295 '(begin
8296 ;; Remove song files, which are licensed under a non-commercial
8297 ;; clause, and a course pointing to them.
8298 (for-each delete-file-recursively
8299 '("Songs/StepMania 5/Goin' Under"
8300 "Songs/StepMania 5/MechaTribe Assault"
8301 "Songs/StepMania 5/Springtime"))
8302 (for-each delete-file '("Courses/Default/Jupiter.crs"
8303 "Courses/Default/Jupiter.png"))
8304 ;; Unbundle libpng.
8305 (substitute* "extern/CMakeLists.txt"
8306 (("include\\(CMakeProject-png.cmake\\)") ""))
8307 (delete-file-recursively "extern/libpng")
8308 #t))))
8309 (build-system cmake-build-system)
8310 (arguments
8311 `(#:tests? #f ;FIXME: couldn't find how to run tests
8312 #:build-type "Release"
8313 #:out-of-source? #f ;for the 'install-desktop' phase
8314 #:configure-flags
8315 (list "-DWITH_SYSTEM_FFMPEG=1"
8316 ;; SSE instructions are available on Intel systems only.
8317 ,@(if (any (cute string-prefix? <> (or (%current-target-system)
8318 (%current-system)))
8319 '("x86_64" "i686"))
8320 '()
8321 '("-DWITH_SSE2=NO"))
8322 ;; Configuration cannot find GTK2 without the two following
8323 ;; flags.
8324 (string-append "-DGTK2_GDKCONFIG_INCLUDE_DIR="
8325 (assoc-ref %build-inputs "gtk+")
8326 "/lib/gtk-2.0/include")
8327 (string-append "-DGTK2_GLIBCONFIG_INCLUDE_DIR="
8328 (assoc-ref %build-inputs "glib")
8329 "/lib/glib-2.0/include"))
8330 #:phases
8331 (modify-phases %standard-phases
8332 (add-after 'unpack 'ensure-application-files-can-be-found
8333 (lambda* (#:key outputs #:allow-other-keys)
8334 (let ((out (assoc-ref outputs "out")))
8335 (substitute* "src/arch/LoadingWindow/LoadingWindow_Gtk.cpp"
8336 (("RageFileManagerUtil::sDirOfExecutable \\+ \"/\" \\+ \"GtkModule.so\"")
8337 (string-append "\"" out
8338 "/share/stepmania/GtkModule.so\"")))
8339 (substitute* "src/arch/ArchHooks/ArchHooks_Unix.cpp"
8340 (("Root = sDirOfExecutable")
8341 (string-append "Root = \"" out "/share/stepmania/\""))
8342 (("sDirOfExecutable \\+ \"/(Packages|Songs)\"" _ dir)
8343 (string-append "\"" out "/share/stepmania/" dir "\"")))
8344 (substitute* "src/RageFileManager.cpp"
8345 (("RageFileManagerUtil::sDirOfExecutable \\+ \"/\"")
8346 (string-append "\"" out "/share/stepmania/\""))))
8347 #t))
8348 (add-after 'unpack 'fix-install-subdir
8349 ;; Installation would be done in "%out/stepmania-X.Y", but we
8350 ;; prefer the more common layout "%out/share/stepmania".
8351 (lambda _
8352 (substitute* "src/CMakeLists.txt"
8353 (("\"stepmania-.*?\"") "\"share/stepmania\""))
8354 #t))
8355 (add-after 'unpack 'unbundle-libpng
8356 (lambda* (#:key inputs #:allow-other-keys)
8357 (substitute* "src/CMakeLists.txt"
8358 (("\\$\\{SM_EXTERN_DIR\\}/libpng/include")
8359 (string-append (assoc-ref inputs "libpng") "/include")))
8360 #t))
8361 (add-after 'install 'install-executable
8362 (lambda* (#:key outputs #:allow-other-keys)
8363 (let* ((out (assoc-ref outputs "out"))
8364 (bin (string-append out "/bin"))
8365 (exe (string-append out "/share/stepmania/stepmania")))
8366 (mkdir-p bin)
8367 (symlink exe (string-append bin "/stepmania"))
8368 #t)))
8369 (add-after 'install-executable 'install-desktop
8370 (lambda* (#:key outputs #:allow-other-keys)
8371 (let* ((out (assoc-ref outputs "out"))
8372 (share (string-append out "/share"))
8373 (applications (string-append share "/applications"))
8374 (icons (string-append share "/icons")))
8375 (install-file "stepmania.desktop" applications)
8376 (mkdir-p icons)
8377 (copy-recursively "icons" icons)
8378 #t)))
8379 ;; Move documentation in a more usual place, i.e.,
8380 ;; "%out/share/doc/stepmania/".
8381 (add-after 'install-desktop 'install-doc
8382 (lambda* (#:key outputs #:allow-other-keys)
8383 (let* ((out (assoc-ref outputs "out"))
8384 (share (string-append out "/share")))
8385 (with-directory-excursion share
8386 (mkdir-p "doc")
8387 (symlink "../stepmania/Docs" "doc/stepmania"))
8388 #t))))))
8389 (native-inputs
8390 `(("pkg-config" ,pkg-config)
8391 ("yasm" ,yasm)))
8392 (inputs
8393 `(("alsa-lib" ,alsa-lib)
8394 ;; Per upstream, StepMania is only guaranteed to work with a very
8395 ;; specific FFmpeg version, which is included in the repository as
8396 ;; a Git submodule. This particular version requirement usually
8397 ;; changes every few years.
8398 ("ffmpeg" ,ffmpeg-for-stepmania)
8399 ("glib" ,glib)
8400 ("glew" ,glew)
8401 ("gtk+" ,gtk+-2)
8402 ("jsoncpp" ,jsoncpp)
8403 ("libpng" ,libpng)
8404 ("libjpeg" ,libjpeg-turbo)
8405 ("libmad" ,libmad)
8406 ("libogg" ,libogg)
8407 ("libva" ,libva)
8408 ("libvorbis" ,libvorbis)
8409 ("libxinerama" ,libxinerama)
8410 ("libxrandr" ,libxrandr)
8411 ("mesa" ,mesa)
8412 ("pcre" ,pcre)
8413 ("pulseaudio" ,pulseaudio)
8414 ("sdl" ,sdl2)
8415 ("udev" ,eudev)
8416 ("zlib" ,zlib)))
8417 (synopsis "Advanced rhythm game designed for both home and arcade use")
8418 (description "StepMania is a dance and rhythm game. It features 3D
8419 graphics, keyboard and dance pad support, and an editor for creating your own
8420 steps.
8421
8422 This package provides the core application, but no song is shipped. You need
8423 to download and install them in @file{$HOME/.stepmania-X.Y/Songs} directory.")
8424 (home-page "https://www.stepmania.com")
8425 (license license:expat)))
8426
8427 (define-public oshu
8428 (package
8429 (name "oshu")
8430 (version "2.0.1")
8431 (source
8432 (origin
8433 (method git-fetch)
8434 (uri (git-reference
8435 (url "https://github.com/fmang/oshu")
8436 (commit version)))
8437 (file-name (git-file-name name version))
8438 (sha256
8439 (base32
8440 "1g598incc6zlls876slgwqblwiwiszkmqa4xpzw0z7mbjmmzsizz"))))
8441 (build-system cmake-build-system)
8442 (arguments
8443 `(#:phases
8444 (modify-phases %standard-phases
8445 (add-before 'check 'pre-check
8446 ;; `make test' doesn't actually build the test executable
8447 (lambda _ (invoke "make" "zerotokei"))))))
8448 (native-inputs
8449 `(("pkg-config" ,pkg-config)))
8450 (inputs
8451 `(("cairo" ,cairo)
8452 ("ffmpeg" ,ffmpeg)
8453 ("pango" ,pango)
8454 ("sdl2" ,sdl2)
8455 ("sdl2-image" ,sdl2-image)))
8456 (home-page "https://github.com/fmang/oshu/")
8457 (synopsis "Rhythm game in which you click on circles")
8458 (description "@i{oshu!} is a minimalist variant of the @i{osu!} rhythm game,
8459 which is played by pressing buttons and following along sliders as they appear
8460 on screen. Its aim is to be able to play any beatmap even on low-end hardware.
8461
8462 This package provides the core application, but no beatmaps. You need to
8463 download and unpack them separately.")
8464 (license license:gpl3+)))
8465
8466 (define-public btanks
8467 (package
8468 (name "btanks")
8469 (version "0.9.8083")
8470 (source
8471 (origin
8472 (method url-fetch)
8473 (uri (string-append "mirror://sourceforge/btanks/btanks-source/"
8474 "btanks-" version ".tar.bz2"))
8475 (sha256
8476 (base32
8477 "0ha35kxc8xlbg74wsrbapfgxvcrwy6psjkqi7c6adxs55dmcxliz"))))
8478 (build-system scons-build-system)
8479 (arguments
8480 `(#:tests? #f ; there are none
8481 #:scons ,scons-python2
8482 #:scons-flags (list (string-append "prefix=" (assoc-ref %outputs "out")))
8483 #:phases
8484 (modify-phases %standard-phases
8485 (add-after 'unpack 'replace-removed-scons-syntax
8486 (lambda _
8487 (substitute* "SConstruct"
8488 (("Options") "Variables")
8489 (("opts.Add\\(BoolOption.*") "opts.Add('gcc_visibility', 'gcc visibility', 'true')")
8490 (("opts.Add\\(EnumOption.*") "opts.Add('mode', 'build mode', 'release')"))
8491 #t))
8492 (add-after 'set-paths 'set-sdl-paths
8493 (lambda* (#:key inputs #:allow-other-keys)
8494 (setenv "CPATH"
8495 (string-append (assoc-ref inputs "sdl")
8496 "/include/SDL:"
8497 (or (getenv "CPATH") "")))
8498 #t))
8499 (add-after 'unpack 'fix-compilation-errors
8500 (lambda _
8501 (substitute* "mrt/base_file.h"
8502 (("#include <string>" m)
8503 (string-append m "\n#include <sys/types.h>")))
8504 (substitute* '("engine/sl08/sl08.h"
8505 "engine/sl08/sl08.py")
8506 (("signal = NULL") "signal = 0")
8507 (("object\\(NULL\\)") "object(0)")
8508 (("func\\(NULL\\)") "func(0)")
8509 ((" connect\\(signal_ref\\)")
8510 " this->connect(signal_ref)"))
8511 (substitute* "math/range_list.h"
8512 ((" lower_bound\\(value\\)")
8513 " this->lower_bound(value)")
8514 ((" erase\\(i\\)")
8515 " this->erase(i)"))
8516 (substitute* "clunk/source.cpp"
8517 (("using namespace clunk" m)
8518 (string-append "# define pow10f(x) exp10f(x)\n" m)))
8519 #t))
8520 (add-after 'unpack 'find-lua
8521 (lambda _
8522 (substitute* "engine/SConscript"
8523 (("lua5.1") "lua-5.1")
8524 (("bt_libs.append\\(lua\\)")
8525 "bt_libs.append(\"lua\")"))
8526 #t)))))
8527 (inputs
8528 `(("expat" ,expat)
8529 ("glu" ,glu)
8530 ("libsmpeg" ,libsmpeg-with-sdl1)
8531 ("libvorbis" ,libvorbis)
8532 ("lua51" ,lua-5.1)
8533 ("sdl" ,(sdl-union (list sdl
8534 sdl-mixer
8535 sdl-image
8536 sdl-ttf)))
8537 ("zlib" ,zlib)))
8538 (native-inputs
8539 `(("pkg-config" ,pkg-config)
8540 ("zip" ,zip)))
8541 (home-page "http://btanks.sourceforge.net")
8542 (synopsis "Multiplayer tank battle game")
8543 (description "Battle Tanks (also known as \"btanks\") is a funny battle
8544 game, where you can choose one of three vehicles and eliminate your enemy
8545 using the whole arsenal of weapons. It has original cartoon-like graphics and
8546 cool music, it’s fun and dynamic, it has several network modes for deathmatch
8547 and cooperative.")
8548 ;; Some parts (e.g. mrt/b64.cpp) are LGPLv2.1+, but the whole package is
8549 ;; released under GPLv2 or later. It comes with extra exceptions for the
8550 ;; developers.
8551 (license (list license:gpl2+ license:lgpl2.1+))))
8552
8553 (define-public slimevolley
8554 (package
8555 (name "slimevolley")
8556 (version "2.4.2")
8557 (source
8558 (origin
8559 (method url-fetch)
8560 (uri (string-append "https://download.tuxfamily.org/slime/"
8561 "slimevolley_" version ".tar.gz"))
8562 (sha256
8563 (base32 "1pi60zjpx95mfdkrbwf4cbzy5lv4v5qrljvgck46qca78i9g9g46"))))
8564 (build-system cmake-build-system)
8565 (arguments
8566 `(#:tests? #f ;no test
8567 ;; Work around build failure: "error adding symbols: DSO
8568 ;; missing from command line".
8569 #:configure-flags (list "-DCMAKE_EXE_LINKER_FLAGS=-lm")))
8570 (native-inputs
8571 `(("gettext" ,gettext-minimal)))
8572 (inputs
8573 `(("sdl" ,(sdl-union (list sdl sdl-image sdl-net sdl-ttf)))))
8574 (home-page "https://slime.tuxfamily.org/")
8575 (synopsis "Unrealistic 2D volleyball simulation")
8576 (description
8577 "Slime Volley is a 2D arcade-oriented volleyball simulation, in
8578 the spirit of some Java games of the same name.
8579
8580 Two teams, 1-3 players each, try to be the first to get 10 points.
8581 This happens when the one ball touches the floor on the other side of
8582 the net. There can be 1 to 8 balls in game. Once one ball touches
8583 the ground, the set ends and all balls are served again.")
8584 (license license:gpl3+)))
8585
8586 (define-public slingshot
8587 (package
8588 (name "slingshot")
8589 (version "0.9")
8590 (source
8591 (origin
8592 (method git-fetch)
8593 (uri (git-reference
8594 (url "https://github.com/ryanakca/slingshot")
8595 (commit version)))
8596 (file-name (git-file-name name version))
8597 (sha256
8598 (base32
8599 "19m8b6nsi786bc6gmkp185mwri3r5y249gjmqd5qsc23nnfhgrs1"))))
8600 (build-system python-build-system)
8601 (arguments
8602 `(#:python ,python-2))
8603 (inputs
8604 `(("python-pygame" ,python2-pygame)))
8605 (home-page "https://github.com/ryanakca/slingshot")
8606 (synopsis "Simple 2D shooting strategy game set in space")
8607 (description "Slingshot is a two-dimensional strategy game where two
8608 players attempt to shoot one another through a section of space populated by
8609 planets. The main feature of the game is that the shots, once fired, are
8610 affected by the gravity of the planets.")
8611 (license license:gpl2+)))
8612
8613 (define-public 4dtris
8614 (package
8615 (name "4dtris")
8616 (version "0.4.3")
8617 (source
8618 (origin
8619 (method url-fetch)
8620 (uri (string-append "https://launchpad.net/4dtris/"
8621 (version-major+minor version)
8622 "/" version "/+download/4dtris_"
8623 version ".orig.tar.gz"))
8624 (sha256
8625 (base32
8626 "1nfkhcm0l89jyw8yr65na97g4l385zhjf7whkyg47c3v5sdqq2g7"))))
8627 (build-system gnu-build-system)
8628 (arguments
8629 `(#:phases
8630 (modify-phases %standard-phases
8631 (add-after 'unpack 'fix-install-directories
8632 (lambda* (#:key outputs #:allow-other-keys)
8633 (let ((out (assoc-ref outputs "out")))
8634 (substitute* "Makefile.in"
8635 (("bindir = /usr/games")
8636 (string-append "bindir = " out "/bin"))
8637 (("/usr/share/applications")
8638 (string-append out "/share/applications"))
8639 (("/usr/share/games/4dtris")
8640 (string-append out "/share/4dtris"))))
8641 #t))
8642 (add-after 'set-paths 'set-sdl-paths
8643 (lambda* (#:key inputs #:allow-other-keys)
8644 (setenv "CPATH"
8645 (string-append (assoc-ref inputs "sdl")
8646 "/include/SDL:"
8647 (or (getenv "CPATH") "")))
8648 #t)))))
8649 (inputs
8650 `(("fontconfig" ,fontconfig)
8651 ("freeglut" ,freeglut)
8652 ("sdl" ,(sdl-union (list sdl sdl-ttf)))))
8653 (home-page "https://launchpad.net/4dtris/")
8654 (synopsis "4D Tetris")
8655 (description "4D-TRIS is an alteration of the well-known Tetris game. The
8656 game field is extended to 4D space, which has to filled up by the gamer with
8657 4D hyper cubes.")
8658 (license license:gpl3)))
8659
8660 (define-public arx-libertatis
8661 (package
8662 (name "arx-libertatis")
8663 (version "1.1.2")
8664 (source
8665 (origin
8666 (method url-fetch)
8667 (uri (string-append "http://arx-libertatis.org/files/arx-libertatis-"
8668 version ".tar.xz"))
8669 (sha256
8670 (base32
8671 "0hjfxlsmp8wwqr06snv2dlly2s79ra0d9aw49gkp6rn8m50b9bc2"))))
8672 (build-system cmake-build-system)
8673 (outputs '("out" "installer"))
8674 (arguments
8675 '(#:tests? #f ; No tests.
8676 #:phases
8677 (modify-phases %standard-phases
8678 (add-after 'unpack 'fix-install-helper-paths
8679 (lambda* (#:key inputs #:allow-other-keys)
8680 (let ((p7zip (assoc-ref inputs "p7zip"))
8681 (innoextract (assoc-ref inputs "innoextract"))
8682 (wget (assoc-ref inputs "wget"))
8683 (zenity (assoc-ref inputs "zenity")))
8684 (substitute* "scripts/arx-install-data"
8685 (("have innoextract")
8686 (string-append "have " innoextract "/bin/innoextract"))
8687 (("then innoextract")
8688 (string-append "then " innoextract "/bin/innoextract"))
8689 (("else innoextract")
8690 (string-append "else " innoextract "/bin/innoextract"))
8691 (("for _extract_zip_sz in 7za 7z")
8692 (string-append "for _extract_zip_sz in " p7zip "/bin/7za"))
8693 (("else if have 7z")
8694 (string-append "else if have " p7zip "/bin/7za"))
8695 (("7z x -tiso")
8696 (string-append p7zip "/bin/7z x -tiso"))
8697 (("if have wget")
8698 (string-append "if have " wget "/bin/wget"))
8699 (("wget -O")
8700 (string-append wget "/bin/wget -O"))
8701 (("for backend in \\$preferred zenity")
8702 (string-append "for backend in $preferred " zenity "/bin/zenity"))
8703 (("zenity +--title")
8704 (string-append zenity "/bin/zenity --title"))
8705 (("^zenity\\)")
8706 (string-append zenity "/bin/zenity)"))))
8707 #t))
8708 (add-after 'install 'move-installer
8709 (lambda* (#:key outputs #:allow-other-keys)
8710 (let ((out (assoc-ref outputs "out"))
8711 (installer (assoc-ref outputs "installer")))
8712 (mkdir-p (string-append installer "/bin"))
8713 (rename-file (string-append out "/bin/arx-install-data")
8714 (string-append installer "/bin/arx-install-data"))))))))
8715 (inputs
8716 `(("sdl" ,sdl) ; Switch to sdl2 in >1.1.2.
8717 ("mesa" ,mesa) ; Switch to libepoxy in >1.1.2.
8718 ("glew" ,glew)
8719 ("openal" ,openal)
8720 ("zlib" ,zlib)
8721 ("boost" ,boost)
8722 ("glm" ,glm)
8723 ("freetype" ,freetype)
8724 ;; The following are only needed by the arx-install-data script.
8725 ("p7zip" ,p7zip) ; Install-helper uses it to extract ISO and .cab archives.
8726 ("zenity" ,zenity) ; GUI for install-helper.
8727 ("wget" ,wget) ; Used by the install-helper to download the patch.
8728 ;; The install-helper needs it to extract the patch.
8729 ("innoextract" ,innoextract)))
8730 (home-page "https://arx-libertatis.org/")
8731 (synopsis "Port of Arx Fatalis, a first-person role-playing game")
8732 (description "Arx Libertatis is a cross-platform port of Arx Fatalis, a 2002
8733 first-person role-playing game / dungeon crawler developed by Arkane Studios.
8734 This port however does not include the game data, so you need to obtain a copy
8735 of the original Arx Fatalis or its demo to play Arx Libertatis. Arx Fatalis
8736 features crafting, melee and ranged combat, as well as a unique casting system
8737 where the player draws runes in real time to effect the desired spell.")
8738 (license license:gpl3+)))
8739
8740 (define-public edgar
8741 (package
8742 (name "edgar")
8743 (version "1.33")
8744 (source
8745 (origin
8746 (method url-fetch)
8747 (uri
8748 (string-append "https://github.com/riksweeney/edgar/releases/download/"
8749 version "/edgar-" version "-1.tar.gz"))
8750 (sha256
8751 (base32 "1mbx7dvizdca4g1blcv3bdh6yxd13k47rkya4rdzg0nvvz24m175"))))
8752 (build-system gnu-build-system)
8753 (arguments '(#:tests? #f ; there are no tests
8754 #:make-flags
8755 (list "CC=gcc"
8756 (string-append "PREFIX=" (assoc-ref %outputs "out"))
8757 (string-append "BIN_DIR=" (assoc-ref %outputs "out") "/bin/"))
8758 #:phases
8759 (modify-phases %standard-phases
8760 (delete 'configure)
8761 (add-before 'build 'fix-env
8762 (lambda* (#:key inputs #:allow-other-keys)
8763 (setenv "CPATH"
8764 (string-append (assoc-ref inputs "sdl2-union")
8765 "/include/SDL2:"
8766 (or (getenv "CPATH") "")))
8767 #t)))))
8768 (inputs
8769 `(("sdl2-union" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer sdl2-ttf)))
8770 ("zlib" ,zlib)))
8771 (native-inputs
8772 `(("pkg-config" ,pkg-config)
8773 ("autoconf" ,autoconf)
8774 ("automake" ,automake)
8775 ("gnu-gettext" ,gettext-minimal)
8776 ("libtool" ,libtool)
8777 ("which" ,which)))
8778 (synopsis "2d action platformer game")
8779 (description "The Legend of Edgar is a 2D platform game with a persistent world.
8780 When Edgar's father fails to return home after venturing out one dark and stormy night,
8781 Edgar fears the worst: he has been captured by the evil sorcerer who lives in
8782 a fortress beyond the forbidden swamp.")
8783 (home-page "https://www.parallelrealities.co.uk/games/edgar/")
8784 (license license:gpl2+)))
8785
8786 (define-public openclonk
8787 (package
8788 (name "openclonk")
8789 (version "8.1")
8790 (source (origin
8791 (method url-fetch)
8792 (uri (string-append
8793 "https://www.openclonk.org/builds/release/" version "/"
8794 "openclonk-" version "-src.tar.bz2"))
8795 (sha256
8796 (base32
8797 "0imkqjp8lww5p0cnqf4k4mb2v682mnsas63qmiz17rspakr7fxik"))))
8798 (build-system cmake-build-system)
8799 (arguments
8800 `(#:configure-flags '("-DAudio_TK=OpenAL")
8801 #:test-target "tests"
8802 #:phases
8803 (modify-phases %standard-phases
8804 (add-after 'unpack 'prepare-gmock
8805 (lambda* (#:key inputs #:allow-other-keys)
8806 (mkdir "gmock")
8807 (copy-recursively (assoc-ref inputs "googlemock") "gmock")
8808 (substitute* "tests/CMakeLists.txt"
8809 (("/usr/src/gmock")
8810 (string-append (getcwd) "/gmock/googlemock"))
8811 (("/usr/src/gtest")
8812 (string-append (getcwd) "/gmock/googletest"))
8813 (("PATH_SUFFIXES \"src\" \"gtest\"")
8814 "PATH_SUFFIXES \"src\""))
8815 #t))
8816 (add-after 'unpack 'adjust-backward-cpp-includes
8817 (lambda _
8818 ;; XXX: The bundled backward-cpp exports a CMake "interface"
8819 ;; that includes external libraries such as libdl from glibc.
8820 ;; By default, CMake interface includes are treated as "system
8821 ;; headers", and GCC behaves poorly when glibc is passed as a
8822 ;; system header (causing #include_next failures).
8823
8824 ;; Here we prevent targets that consume the Backward::Backward
8825 ;; interface from treating it as "system includes".
8826 (substitute* "CMakeLists.txt"
8827 (("target_link_libraries\\((.+) Backward::Backward\\)" all target)
8828 (string-append "set_property(TARGET " target " PROPERTY "
8829 "NO_SYSTEM_FROM_IMPORTED true)\n"
8830 all)))
8831 #t))
8832 (add-after 'unpack 'add-libiberty
8833 ;; Build fails upon linking executables without this.
8834 (lambda _
8835 (substitute* "thirdparty/backward-cpp/BackwardConfig.cmake"
8836 (("set\\(LIBBFD_LIBRARIES (.*?)\\)" _ libraries)
8837 (string-append "set(LIBBFD_LIBRARIES " libraries " iberty)")))
8838 #t))
8839 (add-after 'add-libiberty 'lax-freealut-requirement
8840 ;; TODO: We provide freealut 1.1.0, but pkg-config somehow detects
8841 ;; it as 1.0.1. Force minimal version.
8842 (lambda _
8843 (substitute* "cmake/FindAudio.cmake"
8844 (("freealut>=1.1.0") "freealut>=1.0.1"))
8845 #t))
8846 (add-after 'lax-freealut-requirement 'fix-directories
8847 ;; Prefer "$out/share/openclonk" over
8848 ;; "$out/share/games/openclonk". Also install "openclonk"
8849 ;; binary in "bin/", not "games/".
8850 (lambda _
8851 (substitute* "CMakeLists.txt"
8852 (("share/games/openclonk") "share/openclonk")
8853 (("TARGETS openclonk DESTINATION games")
8854 "TARGETS openclonk DESTINATION bin"))
8855 #t)))))
8856 (native-inputs
8857 `(("googlemock" ,(package-source googletest))
8858 ("googletest" ,googletest)
8859 ("pkg-config" ,pkg-config)))
8860 (inputs
8861 `(("freealut" ,freealut)
8862 ("freetype" ,freetype)
8863 ("glew" ,glew)
8864 ("libiberty" ,libiberty)
8865 ("libjpeg" ,libjpeg-turbo)
8866 ("libogg" ,libogg)
8867 ("libpng" ,libpng)
8868 ("libvorbis" ,libvorbis)
8869 ("libxrandr" ,libxrandr)
8870 ("mesa" ,mesa)
8871 ("miniupnpc" ,miniupnpc)
8872 ("openal" ,openal)
8873 ("qtbase" ,qtbase)
8874 ("readline" ,readline)
8875 ("sdl" ,sdl2)
8876 ("tinyxml" ,tinyxml)
8877 ("zlib" ,zlib)))
8878 (home-page "https://www.openclonk.org/")
8879 (synopsis
8880 "Multiplayer action game where you control small and nimble humanoids")
8881 (description "OpenClonk is a multiplayer action/tactics/skill game. It is
8882 often referred to as a mixture of The Settlers and Worms. In a simple 2D
8883 antfarm-style landscape, the player controls a crew of Clonks, small but
8884 robust humanoid beings. The game encourages free play but the normal goal is
8885 to either exploit valuable resources from the earth by building a mine or
8886 fight each other on an arena-like map.")
8887 ;; Software as a whole is licensed under ISC, artwork under CC-BY.
8888 (license (list license:isc license:cc-by3.0))))
8889
8890 (define-public flare-engine
8891 (package
8892 (name "flare-engine")
8893 (version "1.11")
8894 (source (origin
8895 (method git-fetch)
8896 (uri (git-reference
8897 (url "https://github.com/flareteam/flare-engine")
8898 (commit (string-append "v" version))))
8899 (file-name (git-file-name name version))
8900 (sha256
8901 (base32
8902 "1mqr1s72p5bdh4kq2a8hg72dk8lwnddicjnd2cdp1sbfa9lmjym8"))))
8903 (build-system cmake-build-system)
8904 (arguments
8905 `(#:tests? #f ;no test
8906 #:configure-flags '("-DBINDIR=bin" "-DDATADIR=share/flare")))
8907 (inputs
8908 `(("hicolor-icon-theme" ,hicolor-icon-theme)
8909 ("python" ,python-wrapper)
8910 ("sdl" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer sdl2-ttf)))))
8911 (home-page "http://www.flarerpg.org/")
8912 (synopsis "Action Roleplaying Engine")
8913 (description "Flare (Free Libre Action Roleplaying Engine) is a simple
8914 game engine built to handle a very specific kind of game: single-player 2D
8915 action RPGs.")
8916 (license license:gpl3+)))
8917
8918 (define-public flare-game
8919 (package
8920 (name "flare-game")
8921 (version "1.11")
8922 (source (origin
8923 (method git-fetch)
8924 (uri (git-reference
8925 (url "https://github.com/flareteam/flare-game")
8926 (commit (string-append "v" version))))
8927 (file-name (git-file-name name version))
8928 (sha256
8929 (base32
8930 "0bd5g7sd89a9176ilr408hdqzdfv4j7wj0idd685c1n6s01c3h6p"))))
8931 (build-system cmake-build-system)
8932 (arguments
8933 `(#:tests? #f ;no test
8934 #:configure-flags '("-DDATADIR=share/flare")
8935 #:phases
8936 (modify-phases %standard-phases
8937 ;; Flare expects the mods to be located in the same folder.
8938 ;; Yet, "default" mod is in the engine, whereas the others
8939 ;; are in the current package. Merge everything here with
8940 ;; a symlink.
8941 (add-after 'install 'add-default-mod
8942 (lambda* (#:key inputs outputs #:allow-other-keys)
8943 (let* ((out (assoc-ref outputs "out"))
8944 (mods (string-append out "/share/flare/mods")))
8945 (with-directory-excursion mods
8946 (symlink (string-append (assoc-ref inputs "flare-engine")
8947 "/share/flare/mods/default")
8948 "default")))
8949 #t))
8950 (add-after 'install 'install-executable
8951 ;; The package only provides assets for the game, the
8952 ;; executable coming from "flare-engine". Since more than
8953 ;; one game may use the engine, we create a new executable,
8954 ;; "flare-game", which launches the engine with appropriate
8955 ;; parameters.
8956 (lambda* (#:key inputs outputs #:allow-other-keys)
8957 (let* ((out (assoc-ref outputs "out"))
8958 (bash (string-append (assoc-ref inputs "bash")
8959 "/bin/bash"))
8960 (flare (string-append (assoc-ref inputs "flare-engine")
8961 "/bin/flare"))
8962 (script (string-append out "/bin/flare-game")))
8963 (mkdir-p (dirname script))
8964 (call-with-output-file script
8965 (lambda (port)
8966 (format port
8967 "#!~a
8968 exec ~a --data-path=~a/share/flare --mods=empyrean_campaign~%"
8969 bash
8970 flare
8971 out)))
8972 (chmod script #o755))
8973 #t)))))
8974 (inputs
8975 `(("flare-engine" ,flare-engine)))
8976 (home-page "http://www.flarerpg.org/")
8977 (synopsis "Fantasy action RPG using the FLARE engine")
8978 (description "Flare is a single-player 2D action RPG with
8979 fast-paced action and a dark fantasy style.")
8980 (license license:cc-by-sa3.0)))
8981
8982 (define-public meritous
8983 (package
8984 (name "meritous")
8985 (version "1.5")
8986 (source (origin
8987 (method git-fetch)
8988 (uri (git-reference
8989 (url "https://gitlab.com/meritous/meritous.git")
8990 (commit (string-append "v" version))))
8991 (file-name (git-file-name name version))
8992 (sha256
8993 (base32
8994 "0n5jm4g0arjllgqmd2crv8h02i6hs3hlh1zyc7ng7yfpg1mbd8p8"))))
8995 (build-system gnu-build-system)
8996 (arguments
8997 `(#:tests? #f ;no test
8998 #:make-flags
8999 (list "CC=gcc"
9000 (string-append "prefix=" (assoc-ref %outputs "out")))
9001 #:phases
9002 (modify-phases %standard-phases
9003 (delete 'configure)
9004 (add-after 'unpack 'fix-sdl-path
9005 ;; XXX: For some reason, `sdl-config' reports stand-alone SDL
9006 ;; directory, not SDL-union provided as an input to the package.
9007 ;; We force the latter with "--prefix=" option.
9008 (lambda* (#:key inputs #:allow-other-keys)
9009 (substitute* "Makefile"
9010 (("sdl-config" command)
9011 (string-append command " --prefix=" (assoc-ref inputs "sdl"))))
9012 #t))
9013 (add-after 'unpack 'fix-crash
9014 ;; XXX: Songs are not present in the repository, due to licensing
9015 ;; issues. Yet, the game tries to load them, and, since it cannot
9016 ;; find them, crashes. Users cannot add them back, the store being
9017 ;; read-only, so we turn off background music altogether.
9018 (lambda _
9019 (substitute* "src/audio.c"
9020 (("PlayBackgroundMusic\\(new_track\\);" all)
9021 (string-append "// " all)))
9022 #t)))))
9023 (native-inputs
9024 `(("intltool" ,intltool)))
9025 (inputs
9026 `(("sdl" ,(sdl-union (list sdl sdl-image sdl-mixer)))
9027 ("zlib" ,zlib)))
9028 (home-page "https://gitlab.com/meritous/meritous")
9029 (synopsis "Action-adventure dungeon crawl game")
9030 (description "Far below the surface of the planet is a place of limitless
9031 power. Those that seek to control such a utopia will soon bring an end to
9032 themselves. Seeking an end to the troubles that plague him, PSI user Merit
9033 journeys into the hallowed Orcus Dome in search of answers.
9034
9035 Meritous is a action-adventure game with simple controls but a challenge to
9036 find a balance of power versus recovery time during real-time battles. Set in
9037 a procedurally generated world, the player can explore thousands of rooms in
9038 search of powerful artifacts, tools to help them, and to eventually free the
9039 Orcus Dome from evil.")
9040 (license license:gpl3+)))
9041
9042 (define-public marble-marcher
9043 (let ((commit "e580460a0c3826f9b28ab404607942a8ecb625d7")
9044 (revision "1"))
9045 (package
9046 (name "marble-marcher")
9047 (version (git-version "0" revision commit))
9048 (source (origin
9049 (method git-fetch)
9050 (uri (git-reference
9051 (url "https://github.com/HackerPoet/MarbleMarcher")
9052 (commit commit)))
9053 (file-name (git-file-name name version))
9054 (sha256
9055 (base32
9056 "0jjv832hl1v170n6gryp2sr3lgqndi9ab841qvgqk68bks8701mx"))))
9057 (build-system cmake-build-system)
9058 (arguments
9059 `(#:tests? #f ; there are none
9060 #:phases
9061 (modify-phases %standard-phases
9062 (add-after 'unpack 'embed-asset-directory
9063 (lambda* (#:key outputs #:allow-other-keys)
9064 (let ((assets (string-append (assoc-ref outputs "out")
9065 "/share/marble-marcher/assets/")))
9066 ;; Some of the files we're patching are
9067 ;; ISO-8859-1-encoded, so choose it as the default
9068 ;; encoding so the byte encoding is preserved.
9069 (with-fluids ((%default-port-encoding #f))
9070 (substitute* "src/Resource.rc"
9071 (("../assets/icon.ico")
9072 (string-append assets "icon.ico")))
9073 (substitute* "src/Res.h"
9074 (("assets/") assets))))
9075 #t))
9076 (replace 'install
9077 (lambda* (#:key outputs #:allow-other-keys)
9078 (let* ((out (assoc-ref outputs "out"))
9079 (assets (string-append out "/share/marble-marcher/assets"))
9080 (bin (string-append out "/bin/")))
9081 (mkdir-p bin)
9082 (mkdir-p assets)
9083 (copy-recursively "../source/assets" assets)
9084 (install-file "MarbleMarcher" bin))
9085 #t)))))
9086 (inputs
9087 `(("eigen" ,eigen)
9088 ("mesa" ,mesa)
9089 ("sfml" ,sfml)))
9090 (native-inputs
9091 `(("pkg-config" ,pkg-config)))
9092 (home-page "https://codeparade.itch.io/marblemarcher")
9093 (synopsis "Guide a marble across fractal landscapes")
9094 (description "Marble Marcher is a video game that uses a fractal physics
9095 engine and fully procedural rendering to produce beautiful and unique
9096 gameplay. The game is played on the surface of evolving fractals. The goal
9097 of the game is to get your marble to the flag as quickly as possible. But be
9098 careful not to fall off the level or get crushed by the fractal! There are 24
9099 levels to unlock.")
9100 ;; Code is under GPLv2+, assets are under CC-BY-SA 3.0 and OFL 1.1.
9101 (license (list license:gpl2+
9102 license:silofl1.1
9103 license:cc-by-sa3.0)))))
9104
9105 ;; This must be updated together with flightgear.
9106 (define simgear
9107 (package
9108 (name "simgear")
9109 (version "2018.3.5")
9110 (source
9111 (origin
9112 (method url-fetch)
9113 (uri (string-append "mirror://sourceforge/flightgear/release-"
9114 (version-major+minor version) "/"
9115 "simgear-" version ".tar.bz2"))
9116 (sha256
9117 (base32 "1vkqm66r1205k3hdjmx5wmx5kvmsb0dgfzrs8n5gqnxj8szs42dl"))))
9118 (build-system cmake-build-system)
9119 (arguments
9120 `(#:phases
9121 (modify-phases %standard-phases
9122 (replace 'check
9123 (lambda _
9124 ;; Skip tests that require internet access.
9125 (invoke "ctest" "-E" "(http|dns)"))))))
9126 (inputs
9127 `(("boost" ,boost-for-mysql) ; fails with 1.69
9128 ("curl" ,curl)
9129 ("expat" ,expat)
9130 ("mesa" ,mesa)
9131 ("openal" ,openal)
9132 ("openscenegraph" ,openscenegraph-3.4)
9133 ("zlib" ,zlib)))
9134 (home-page "https://home.flightgear.org/")
9135 (synopsis "Libraries for 3D simulations and games")
9136 (description "SimGear is a set of libraries designed to be used as
9137 building blocks for quickly assembling 3D simulations, games, and
9138 visualization applications. SimGear is developed by the FlightGear project
9139 and also provides the base for the FlightGear Flight Simulator.")
9140 (license license:lgpl2.0+)))
9141
9142 (define-public flightgear
9143 (package
9144 (name "flightgear")
9145 (version (package-version simgear))
9146 (source
9147 (origin
9148 (method url-fetch)
9149 (uri (string-append "mirror://sourceforge/flightgear/release-"
9150 (version-major+minor version) "/"
9151 "flightgear-" version ".tar.bz2"))
9152 (sha256
9153 (base32 "0ya3vb539kwi1qrifqhsj5j3k4w6s06hrllp2vdzxf6id7cgf0hc"))
9154 (modules '((guix build utils)))
9155 (snippet
9156 '(begin
9157 ;; There are some bundled libraries.
9158 (for-each delete-file-recursively
9159 '("3rdparty/sqlite3/"))
9160 #t))))
9161 (build-system cmake-build-system)
9162 (arguments
9163 `(#:configure-flags
9164 (list "-DSYSTEM_SQLITE=ON"
9165 (string-append "-DFG_DATA_DIR="
9166 (assoc-ref %outputs "out")
9167 "/share/flightgear"))
9168 ;; TODO: test cannot be run because the "run_test_suite" executable
9169 ;; does not seem to be built.
9170 #:tests? #f
9171 #:phases
9172 (modify-phases %standard-phases
9173 (add-after 'install 'wrap-executable
9174 (lambda* (#:key inputs outputs #:allow-other-keys)
9175 (let ((out (assoc-ref outputs "out")))
9176 (wrap-program (string-append out "/bin/fgfs")
9177 `("QT_PLUGIN_PATH" ":" prefix
9178 ,(map (lambda (label)
9179 (string-append (assoc-ref inputs label)
9180 "/lib/qt5/plugins"))
9181 '("qtbase" "qtdeclarative" "qtsvg")))
9182 `("QML2_IMPORT_PATH" ":" prefix
9183 ,(map (lambda (label)
9184 (string-append (assoc-ref inputs label)
9185 "/lib/qt5/qml"))
9186 '("qtdeclarative" "qtsvg"))))
9187 #t)))
9188 (add-after 'install 'install-data
9189 (lambda* (#:key inputs outputs #:allow-other-keys)
9190 (let ((share (string-append (assoc-ref outputs "out") "/share/flightgear")))
9191 (mkdir-p share)
9192 (with-directory-excursion share
9193 (invoke "tar" "xf" (assoc-ref inputs "flightgear-data")
9194 "--strip-components=1")))
9195 #t)))))
9196 (inputs
9197 `(("boost" ,boost-for-mysql) ; same as simgear
9198 ("dbus" ,dbus)
9199 ("eudev" ,eudev)
9200 ("freeglut" ,freeglut)
9201 ("freetype" ,freetype)
9202 ("glew" ,glew)
9203 ("libpng" ,libpng)
9204 ("openal" ,openal)
9205 ("openscenegraph" ,openscenegraph-3.4)
9206 ("plib" ,plib)
9207 ("qtbase" ,qtbase)
9208 ("qtdeclarative" ,qtdeclarative)
9209 ("qtsvg" ,qtsvg)
9210 ("simgear" ,simgear)
9211 ("speexdsp" ,speexdsp)
9212 ("sqlite" ,sqlite)
9213 ("zlib" ,zlib)))
9214 (native-inputs
9215 `(("cppunit" ,cppunit)
9216 ("pkg-config" ,pkg-config)
9217 ("qttools" ,qttools)
9218 ("flightgear-data"
9219 ,(origin
9220 (method url-fetch)
9221 (uri (string-append "mirror://sourceforge/flightgear/release-"
9222 (version-major+minor version) "/"
9223 "FlightGear-" version "-data.tar.bz2"))
9224 (sha256
9225 (base32
9226 "04fv9za5zlyxlyfh6jx78y42l3jazvzl9dq2y6rzxqlcc9g5swhk"))))))
9227 (home-page "https://home.flightgear.org/")
9228 (synopsis "Flight simulator")
9229 (description "The goal of the FlightGear project is to create a
9230 sophisticated flight simulator framework for use in research or academic
9231 environments, pilot training, as an industry engineering tool, for DIY-ers to
9232 pursue their favorite interesting flight simulation idea, and last but
9233 certainly not least as a fun, realistic, and challenging desktop flight
9234 simulator.")
9235 (license license:gpl2+)))
9236
9237 (define-public jumpnbump
9238 (package
9239 (name "jumpnbump")
9240 (version "1.61")
9241 (source (origin
9242 (method git-fetch)
9243 (uri (git-reference
9244 (url "https://gitlab.com/LibreGames/jumpnbump.git")
9245 (commit version)))
9246 (file-name (git-file-name name version))
9247 (sha256
9248 (base32
9249 "12lwl5sl5n009nb83r8l4lakb9286csqdf1ynpmwwydy17giqsdp"))))
9250 (build-system gnu-build-system)
9251 (arguments
9252 `(#:make-flags
9253 (list "CC=gcc"
9254 (string-append "PREFIX=" (assoc-ref %outputs "out")))
9255 #:tests? #f ;no test
9256 #:phases
9257 (modify-phases %standard-phases
9258 (delete 'configure) ;no configure script
9259 (add-after 'unpack 'fix-sdl-path
9260 ;; XXX: For some reason, `sdl2-config' reports stand-alone SDL
9261 ;; directory, not SDL-union provided as an input to the package.
9262 ;; We force the latter with "--prefix=" option.
9263 (lambda* (#:key inputs #:allow-other-keys)
9264 (substitute* "Makefile"
9265 (("sdl2-config" command)
9266 (string-append command " --prefix=" (assoc-ref inputs "sdl"))))
9267 #t)))))
9268 (inputs
9269 `(("bzip2" ,bzip2)
9270 ("sdl" ,(sdl-union (list sdl2 sdl2-mixer sdl2-net)))
9271 ("zlib" ,zlib)))
9272 (native-inputs
9273 `(("gettext" ,gettext-minimal))) ;for msgfmt
9274 (home-page "https://gitlab.com/LibreGames/jumpnbump")
9275 (synopsis "Multiplayer platform game with bunnies")
9276 (description "You, as a bunny, have to jump on your opponents to make them
9277 explode. It is a true multiplayer game; you cannot play this alone. You can
9278 play with up to four players simultaneously. It has network support.")
9279 (license license:gpl2+)))
9280
9281 (define-public hedgewars
9282 (package
9283 (name "hedgewars")
9284 (version "1.0.0")
9285 (source (origin
9286 (method url-fetch)
9287 (uri (string-append "https://www.hedgewars.org/download/releases/"
9288 "hedgewars-src-" version ".tar.bz2"))
9289 (sha256
9290 (base32
9291 "0nqm9w02m0xkndlsj6ys3wr0ik8zc14zgilq7k6fwjrf3zk385i1"))))
9292 (build-system cmake-build-system)
9293 (arguments
9294 ;; XXX: Engine is built as Pascal source code, requiring Free Pascal
9295 ;; Compiler, which we haven't packaged yet. With the flag below, we use
9296 ;; a Pascal to C translator and Clang instead.
9297 `(#:configure-flags (list "-DBUILD_ENGINE_C=ON"
9298 "-Dhaskell_flags=-dynamic;-fPIC")
9299 #:phases
9300 (modify-phases %standard-phases
9301 (add-before 'configure 'fix-sources
9302 (lambda _
9303 ;; Fix a missing 'include'.
9304 (substitute* "QTfrontend/ui/page/pagegamestats.cpp"
9305 (("#include <QSizePolicy>")
9306 "#include <QSizePolicy>\n#include <QPainterPath>"))))
9307 (replace 'check
9308 (lambda _ (invoke "ctest")))
9309 (add-after 'install 'install-icon
9310 (lambda _
9311 ;; Install icon for the desktop file.
9312 (let* ((out (assoc-ref %outputs "out"))
9313 (icons (string-append out "/share/icons/hicolor/512x512/apps")))
9314 (with-directory-excursion (string-append "../hedgewars-src-" ,version)
9315 (install-file "misc/hedgewars.png" icons)))
9316 #t)))))
9317 (inputs
9318 `(("ffmpeg" ,ffmpeg)
9319 ("freeglut" ,freeglut)
9320 ("ghc-entropy" ,ghc-entropy)
9321 ("ghc-hslogger" ,ghc-hslogger)
9322 ("ghc-network" ,ghc-network)
9323 ("ghc-random" ,ghc-random)
9324 ("ghc-regex-tdfa" ,ghc-regex-tdfa)
9325 ("ghc-sandi" ,ghc-sandi)
9326 ("ghc-sha" ,ghc-sha)
9327 ("ghc-utf8-string" ,ghc-utf8-string)
9328 ("ghc-vector" ,ghc-vector)
9329 ("ghc-zlib" ,ghc-zlib)
9330 ("glew" ,glew)
9331 ("libpng" ,libpng)
9332 ("lua" ,lua-5.1)
9333 ("physfs" ,physfs)
9334 ("qtbase" ,qtbase)
9335 ("sdl" ,(sdl-union
9336 (list sdl2 sdl2-mixer sdl2-net sdl2-ttf sdl2-image)))))
9337 (native-inputs
9338 `(("clang" ,clang)
9339 ("ghc" ,ghc)
9340 ("pkg-config" ,pkg-config)
9341 ("qttools" ,qttools)))
9342 (home-page "https://hedgewars.org/")
9343 (synopsis "Turn-based artillery game featuring fighting hedgehogs")
9344 (description
9345 "Hedgewars is a turn based strategy, artillery, action and comedy game,
9346 featuring the antics of pink hedgehogs with attitude as they battle from the
9347 depths of hell to the depths of space.
9348
9349 As commander, it's your job to assemble your crack team of hedgehog soldiers
9350 and bring the war to your enemy.")
9351 ;; Software as a whole is licensed under GPL-2 terms. Artwork and
9352 ;; scripts are distributed under various terms.
9353 (license (list license:gpl2
9354 license:bsd-2 license:bsd-3 license:cc-by3.0 license:cc0
9355 license:expat license:fdl1.3+ license:public-domain
9356 license:zlib))))
9357
9358 (define-public harmonist
9359 (package
9360 (name "harmonist")
9361 (version "0.3.0")
9362 (source (origin
9363 (method git-fetch)
9364 (uri (git-reference
9365 (url "https://git.tuxfamily.org/harmonist/harmonist.git")
9366 (commit (string-append "v" version))))
9367 (file-name (git-file-name name version))
9368 (sha256
9369 (base32
9370 "146wiyanag0zqj6fhyll2sw6sydnnll8mgxhhqf9sjqsl2rx4s5r"))))
9371 (build-system go-build-system)
9372 (arguments
9373 '(#:import-path "git.tuxfamily.org/harmonist/harmonist"))
9374 (inputs
9375 `(("go-github.com-nsf-termbox-go" ,go-github.com-nsf-termbox-go)))
9376 (home-page "https://harmonist.tuxfamily.org/")
9377 (synopsis "Stealth coffee-break roguelike game")
9378 (description "Harmonist: Dayoriah Clan Infiltration is a stealth
9379 coffee-break roguelike game. The game has a heavy focus on tactical
9380 positioning, light and noise mechanisms, making use of various terrain types
9381 and cones of view for monsters. Aiming for a replayable streamlined experience,
9382 the game avoids complex inventory management and character building, relying
9383 on items and player adaptability for character progression.")
9384 (license license:isc)))
9385
9386 (define-public harmonist-tk
9387 (package
9388 (inherit harmonist)
9389 (name "harmonist-tk")
9390 (arguments
9391 (append
9392 (package-arguments harmonist)
9393 `(#:phases
9394 (modify-phases %standard-phases
9395 (replace 'build
9396 (lambda _
9397 (invoke "go" "install" "-v" "-x" "--tags" "tk"
9398 "git.tuxfamily.org/harmonist/harmonist")))
9399 (replace 'check
9400 (lambda _
9401 (invoke "go" "test" "--tags" "tk"
9402 "git.tuxfamily.org/harmonist/harmonist")))))))
9403 (inputs
9404 `(("go-github.com-nsf-gothic" ,go-github.com-nsf-gothic)))))
9405
9406 (define-public drascula
9407 (package
9408 (name "drascula")
9409 (version "1.0")
9410 (source (origin
9411 (method url-fetch)
9412 (uri (string-append "mirror://sourceforge/scummvm/extras/"
9413 "Drascula_%20The%20Vampire%20Strikes%20Back/"
9414 "drascula-" version ".zip"))
9415 (sha256
9416 (base32
9417 "1pj29rpb754sn6a56f8brfv6f2m1p5qgaqik7d68pfi2bb5zccdp"))))
9418 (build-system trivial-build-system)
9419 (arguments
9420 `(#:modules ((guix build utils))
9421 #:builder
9422 (begin
9423 (use-modules (guix build utils)
9424 (ice-9 match))
9425 (let* ((out (assoc-ref %outputs "out"))
9426 (share (string-append out "/share/drascula"))
9427 (scummvm (assoc-ref %build-inputs "scummvm")))
9428 ;; Install data.
9429 (let ((unzip (string-append (assoc-ref %build-inputs "unzip")
9430 "/bin/unzip"))
9431 (doc (string-append out "/share/doc/" ,name "-" ,version)))
9432 (for-each
9433 (lambda (input)
9434 (invoke unzip
9435 "-j"
9436 (assoc-ref %build-inputs input)
9437 "-x" "__MACOSX")
9438 ;; Every input provides "readme.txt", and we want to
9439 ;; preserve them all. Therefore we rename them first.
9440 (match input
9441 ("drascula-int"
9442 (rename-file "readme.txt" "readme-international.txt"))
9443 ("drascula-audio"
9444 (rename-file "readme.txt" "readme-audio.txt"))
9445 (_ #f))
9446 ;; Install documentation.
9447 (for-each (lambda (f) (install-file f doc))
9448 (find-files "." "\\.(txt|doc)$"))
9449 ;; Install data.
9450 (for-each (lambda (f) (install-file f share))
9451 (find-files "." "\\.(ogg|00[0-9])$")))
9452 '("drascula-audio" "drascula-int" "source")))
9453 ;; Create standalone executable.
9454 (let* ((bin (string-append out "/bin"))
9455 (executable (string-append bin "/drascula"))
9456 (bash (string-append (assoc-ref %build-inputs "bash")
9457 "/bin/bash")))
9458 (mkdir-p bin)
9459 (with-output-to-file executable
9460 (lambda ()
9461 (format #t "#!~a~%" bash)
9462 (format #t
9463 "exec ~a/bin/scummvm --path=~a drascula~%"
9464 scummvm share)))
9465 (chmod executable #o755))
9466 ;; Create desktop file. There is no dedicated icon for the
9467 ;; game, so we borrow SCUMMVM's.
9468 (let ((apps (string-append out "/share/applications")))
9469 (mkdir-p apps)
9470 (make-desktop-entry-file
9471 (string-append apps "/drascula.desktop")
9472 #:name "Drascula: The Vampire Strikes Back"
9473 #:generic-name "Drascula"
9474 #:exec (string-append out "/bin/drascula")
9475 #:icon (string-append scummvm "/share/icons/hicolor/scalable/apps/scummvm.svg")
9476 #:categories '("AdventureGame" "Game" "RolePlaying")
9477 #:keywords '("game" "adventure" "roleplaying" "2D" "fantasy")
9478 #:comment '((#f "Classic 2D point and click adventure game")
9479 ("de" "Klassisches 2D-Abenteuerspiel in Zeigen-und-Klicken-Manier")
9480 ("fr" "Jeu classique d'aventure pointer-et-cliquer en 2D")
9481 ("it" "Gioco classico di avventura punta e clicca 2D"))))
9482 #t))))
9483 (native-inputs
9484 `(("bash" ,bash)
9485 ("unzip" ,unzip)))
9486 (inputs
9487 `(("scummvm" ,scummvm)
9488 ("drascula-int"
9489 ,(let ((version "1.1"))
9490 (origin
9491 (method url-fetch)
9492 (uri (string-append "mirror://sourceforge/scummvm/extras/"
9493 "Drascula_%20The%20Vampire%20Strikes%20Back/"
9494 "drascula-int-" version ".zip"))
9495 (sha256
9496 (base32
9497 "12236i7blamal92p1i8dgp3nhp2yicics4whsl63v682bj999n14")))))
9498 ("drascula-audio"
9499 ,(let ((version "2.0"))
9500 (origin
9501 (method url-fetch)
9502 (uri (string-append "mirror://sourceforge/scummvm/extras/"
9503 "Drascula_%20The%20Vampire%20Strikes%20Back/"
9504 "drascula-audio-" version ".zip"))
9505 (sha256
9506 (base32
9507 "00g4izmsqzxb8ry1vhfx6jrygl58lvlij09nw01ds4zddsiznsky")))))))
9508 (home-page "https://www.scummvm.org")
9509 (synopsis "Classic 2D point and click adventure game")
9510 (description "Drascula: The Vampire Strikes Back is a classic humorous 2D
9511 point and click adventure game.
9512
9513 In Drascula you play the role of John Hacker, a British estate agent, that
9514 gets to meet a gorgeous blond girl who is kidnapped by the notorious vampire
9515 Count Drascula and embark on a fun yet dangerous quest to rescue her.
9516 Unfortunately, Hacker is not aware of Drascula's real ambitions: DOMINATING
9517 the World and demonstrating that he is even more evil than his brother Vlad.")
9518 ;; Drascula uses a BSD-like license.
9519 (license (license:non-copyleft "file:///readme.txt"))))
9520
9521 (define (make-lure-package name language hash)
9522 (package
9523 (name name)
9524 (version "1.1")
9525 (source
9526 (origin
9527 (method url-fetch)
9528 (uri (string-append
9529 "mirror://sourceforge/scummvm/extras/"
9530 "Lure%20of%20the%20Temptress/"
9531 name "-" version ".zip"))
9532 (sha256
9533 (base32 hash))))
9534 (build-system trivial-build-system)
9535 (arguments
9536 `(#:modules ((guix build utils))
9537 #:builder
9538 (begin
9539 (use-modules (guix build utils))
9540 (let* ((out (assoc-ref %outputs "out"))
9541 (share (string-append out "/share"))
9542 (data (string-append share "/" ,name "/" ,language))
9543 (apps (string-append share "/applications"))
9544 (bin (string-append out "/bin"))
9545 (executable (string-append bin "/" ,name))
9546 (scummvm (assoc-ref %build-inputs "scummvm")))
9547 (let ((unzip (string-append (assoc-ref %build-inputs "unzip")
9548 "/bin/unzip")))
9549 (invoke unzip "-j" (assoc-ref %build-inputs "source")))
9550 (let ((doc (string-append share "/doc/" ,name "-" ,version)))
9551 (for-each (lambda (f) (install-file f doc))
9552 (find-files "." "\\.(txt|PDF|pdf)$")))
9553 (for-each (lambda (f) (install-file f data))
9554 (find-files "." "\\.(vga|VGA)$"))
9555 ;; Build the executable.
9556 (mkdir-p bin)
9557 (let ((bash (assoc-ref %build-inputs "bash")))
9558 (with-output-to-file executable
9559 (lambda ()
9560 (format #t "#!~a/bin/bash~%" bash)
9561 (format #t "exec ~a/bin/scummvm -q ~a -p ~a lure~%"
9562 scummvm ,language data))))
9563 (chmod executable #o755)
9564 ;; Create desktop file. There is no dedicated
9565 ;; icon for the game, so we borrow SCUMMVM's.
9566 (mkdir-p apps)
9567 (with-output-to-file (string-append apps "/" ,name ".desktop")
9568 (lambda _
9569 (format #t
9570 "[Desktop Entry]~@
9571 Name=Lure of the Temptress~@
9572 GenericName=Lure~@
9573 Exec=~a~@
9574 Icon=~a/share/icons/hicolor/scalable/apps/scummvm.svg~@
9575 Categories=AdventureGame;Game;RolePlaying;~@
9576 Keywords=game;adventure;roleplaying;2D,fantasy;~@
9577 Comment=Classic 2D point and click adventure game~@
9578 Comment[de]=klassisches 2D-Abenteuerspiel in Zeigen-und-Klicken-Manier~@
9579 Comment[fr]=Jeu classique d'aventure pointer-et-cliquer en 2D~@
9580 Comment[it]=Gioco classico di avventura punta e clicca 2D~@
9581 Type=Application~%"
9582 executable scummvm)))
9583 #t))))
9584 (native-inputs
9585 `(("unzip" ,unzip)))
9586 (inputs
9587 `(("bash" ,bash)
9588 ("scummvm" ,scummvm)))
9589 (home-page "https://www.scummvm.org")
9590 (synopsis "2D point and click fantasy adventure game")
9591 (description
9592 "Lure of the Temptress is a classic 2D point and click adventure game.
9593
9594 You are Diermot, an unwilling hero who'd prefer a quiet life, and are, to all
9595 intents and purposes, a good man. After decades of unrest the King has united
9596 the warring factions in his kingdom and all his lands are at peace, except
9597 a remote region around a town called Turnvale. A revolt has recently taken
9598 place in Turnvale, a revolt orchestrated by an apprentice sorceress called
9599 Selena, the titular temptress. The king calls together his finest horsemen
9600 and heads off (with you in tow) to Turnvale just to witness how hellish
9601 mercenary monsters called Skorl are invading the town.
9602
9603 The king's men are defeated, the king is killed and you fall of your horse and
9604 bang your head heavily on the ground. You have been *unconscious for a while
9605 when you realize that you are in a dingy cell guarded by a not so friendly
9606 Skorl. Maybe it would be an idea to try and escape...")
9607 (license (license:non-copyleft "file:///README"))))
9608
9609 (define-public lure
9610 (make-lure-package
9611 "lure" "en" "0201i70qcs1m797kvxjx3ygkhg6kcl5yf49sihba2ga8l52q45zk"))
9612
9613 (define-public lure-de
9614 (make-lure-package
9615 "lure-de" "de" "0sqq7h5llml6rv85x0bfv4bgzwhs4c82p4w4zmfcaab6cjlad0sy"))
9616
9617 (define-public lure-es
9618 (make-lure-package
9619 "lure-es" "es" "1dvv5znvlsakw6w5r16calv9jkgw27aymgybsf4q22lcmpxbj1lk"))
9620
9621 (define-public lure-fr
9622 (make-lure-package
9623 "lure-fr" "fr" "1y51jjb7f8023832g44vd1jsb6ni85586pi2n5hjg9qjk6gi90r9"))
9624
9625 (define-public lure-it
9626 (make-lure-package
9627 "lure-it" "it" "1ks6n39r1cllisrrh6pcr39swsdv7ng3gx5c47vaw71zzfr70hjj"))
9628
9629 (define (make-queen-package name file-prefix release language hash)
9630 (package
9631 (name name)
9632 (version release)
9633 (source
9634 (origin
9635 (method url-fetch)
9636 (uri (string-append "mirror://sourceforge/scummvm/extras/"
9637 "Flight%20of%20the%20Amazon%20Queen/"
9638 file-prefix release ".zip"))
9639 (sha256
9640 (base32 hash))))
9641 (build-system trivial-build-system)
9642 (arguments
9643 `(#:modules ((guix build utils))
9644 #:builder
9645 (begin
9646 (use-modules (guix build utils))
9647 (let* ((out (assoc-ref %outputs "out"))
9648 (share (string-append out "/share"))
9649 (data (string-append share "/" ,name))
9650 (apps (string-append share "/applications"))
9651 (bin (string-append out "/bin"))
9652 (executable (string-append bin "/" ,name))
9653 (scummvm (assoc-ref %build-inputs "scummvm")))
9654 (let ((unzip (string-append (assoc-ref %build-inputs "unzip")
9655 "/bin/unzip")))
9656 (invoke unzip "-j" (assoc-ref %build-inputs "source")))
9657 (let ((doc (string-append share "/doc/" ,name "-" ,version)))
9658 (install-file "readme.txt" doc))
9659 (install-file "queen.1c" data)
9660 (mkdir-p bin)
9661 (let ((bash (assoc-ref %build-inputs "bash")))
9662 (with-output-to-file executable
9663 (lambda ()
9664 (format #t "#!~a/bin/bash~%" bash)
9665 (format #t "exec ~a/bin/scummvm -q fr -p ~a queen~%"
9666 scummvm data))))
9667 (chmod executable #o755)
9668 ;; Create desktop file. There is no dedicated
9669 ;; icon for the game, so we borrow SCUMMVM's.
9670 (mkdir-p apps)
9671 (with-output-to-file (string-append apps "/" ,name ".desktop")
9672 (lambda _
9673 (format #t
9674 "[Desktop Entry]~@
9675 Name=Flight of the Amazon Queen~@
9676 GenericName=Queen~@
9677 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~@
9678 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~@
9679 Type=Application~@
9680 Exec=~a~@
9681 Icon=~a/share/icons/hicolor/scalable/apps/scummvm.svg~@
9682 Categories=AdventureGame;Game;RolePlaying;~@
9683 Keywords=adventure;game;roleplaying;fantasy;~%"
9684 executable scummvm))))
9685 #t)))
9686 (native-inputs
9687 `(("unzip" ,unzip)))
9688 (inputs
9689 `(("bash" ,bash)
9690 ("scummvm" ,scummvm)))
9691 (home-page "https://www.scummvm.org/")
9692 (synopsis "Classic 2D point and click adventure game")
9693 (description "Flight of the Amazon Queen is a 2D point-and-click
9694 adventure game set in the 1940s.
9695
9696 You assume the role of Joe King, a pilot for hire who is given the job
9697 of flying Faye Russell (a famous movie star) into the Amazon jungle
9698 for a photo shoot. Of course, things never go according to plans.
9699 After an unfortunate turn of events they find themselves stranded in
9700 the heart of the Amazon jungle, where Joe will embark on a quest to
9701 rescue a kidnapped princess and in the process, discover the true
9702 sinister intentions of a suspiciously located Lederhosen company. In
9703 a rich 2D environment, Joe will cross paths with a variety of unlikely
9704 jungle inhabitants including, but not limited to, a tribe of Amazon
9705 women and 6-foot-tall pygmies.")
9706 (license (license:non-copyleft "file:///readme.txt"))))
9707
9708 (define-public queen
9709 (make-queen-package
9710 "queen" "FOTAQ_Talkie-" "1.1" "en"
9711 "1a6q71q1dl9vvw2qqsxk5h1sv0gaqy6236zr5905w2is01gdsp52"))
9712
9713 (define-public queen-de
9714 (make-queen-package
9715 "queen-de" "FOTAQ_Ger_talkie-" "1.0" "de"
9716 "13vn43x7214vyprlpqabvv71k890nff3d6fjscflr1ll7acjca3f"))
9717
9718 (define-public queen-fr
9719 (make-queen-package
9720 "queen-fr" "FOTAQ_Fr_Talkie_" "1.0" "fr"
9721 "0hq5g4qrkcwm2kn5i4kv4hijs9hi7bw9xl1vrwd1l69qqn30crwy"))
9722
9723 (define-public queen-it
9724 (make-queen-package
9725 "queen-it" "FOTAQ_It_Talkie_" "1.0" "it"
9726 "1h76y70lrpzfjkm53n4nr364nhyka54vbz9r7sadzyzl7c7ilv4d"))
9727
9728 (define-public sky
9729 (package
9730 (name "sky")
9731 (version "1.2") ;1.3 is floppy version
9732 (source
9733 (origin
9734 (method url-fetch)
9735 (uri (string-append "mirror://sourceforge/scummvm/extras/"
9736 "Beneath%20a%20Steel%20Sky/"
9737 "bass-cd-" version ".zip"))
9738 (sha256
9739 (base32 "14s5jz67kavm8l15gfm5xb7pbpn8azrv460mlxzzvdpa02a9n82k"))))
9740 (build-system trivial-build-system)
9741 (arguments
9742 `(#:modules ((guix build utils))
9743 #:builder
9744 (begin
9745 (use-modules (guix build utils))
9746 (let* ((out (assoc-ref %outputs "out"))
9747 (share (string-append out "/share"))
9748 (data (string-append share "/" ,name))
9749 (apps (string-append share "/applications"))
9750 (bin (string-append out "/bin"))
9751 (executable (string-append bin "/" ,name))
9752 (scummvm (assoc-ref %build-inputs "scummvm")))
9753 (let ((unzip (string-append (assoc-ref %build-inputs "unzip")
9754 "/bin/unzip")))
9755 (invoke unzip "-j" (assoc-ref %build-inputs "source")))
9756 (let ((doc (string-append share "/doc/bass-" ,version)))
9757 (install-file "readme.txt" doc))
9758 (for-each (lambda (f) (install-file f data))
9759 (find-files "." "^sky\\."))
9760 ;; Build the executable.
9761 (mkdir-p bin)
9762 (let ((bash (assoc-ref %build-inputs "bash")))
9763 (with-output-to-file executable
9764 (lambda ()
9765 (format #t "#!~a/bin/bash~%" bash)
9766 (format #t "exec ~a/bin/scummvm -p ~a sky~%" scummvm data))))
9767 (chmod executable #o755)
9768 ;; Create desktop file. There is no dedicated
9769 ;; icon for the game, so we borrow SCUMMVM's.
9770 (mkdir-p apps)
9771 (with-output-to-file (string-append apps "/" ,name ".desktop")
9772 (lambda _
9773 (format #t
9774 "[Desktop Entry]~@
9775 Name=Beneath a Steel Sky~@
9776 GenericName=Bass~@
9777 Exec=~a~@
9778 Icon=~a/share/icons/hicolor/scalable/apps/scummvm.svg~@
9779 Categories=AdventureGame;Game;RolePlaying;~@
9780 Keywords=adventure;game;roleplaying;cyberpunk;~@
9781 Comment=A science-fiction adventure game set in a bleak post-apocalyptic vision of the future~@
9782 Comment[de]=Ein Science-Fiction-Abenteuerspiel \
9783 angesiedelt in einer düsteren, postapokalyptischen Vision der Zukunft~@
9784 Type=Application~%"
9785 executable scummvm)))
9786 #t))))
9787 (native-inputs
9788 `(("unzip" ,unzip)))
9789 (inputs
9790 `(("bash" ,bash)
9791 ("scummvm" ,scummvm)))
9792 (home-page "https://www.scummvm.org/")
9793 (synopsis "Classic 2D point and click science-fiction adventure game")
9794 (description
9795 "Beneath a Steel Sky is a science-fiction thriller set in a bleak
9796 post-apocalyptic vision of the future. It revolves around Union City,
9797 where selfishness, rivalry, and corruption by its citizens seems to be
9798 all too common, those who can afford it live underground, away from
9799 the pollution and social problems which are plaguing the city.
9800
9801 You take on the role of Robert Foster, an outcast of sorts from the
9802 city since a boy who was raised in a remote environment outside of
9803 Union City simply termed ``the gap''. Robert's mother took him away
9804 from Union City as a child on their way to ``Hobart'' but the
9805 helicopter crashed on its way. Unfortunately, Robert's mother died,
9806 but he survived and was left to be raised by a local tribe from the
9807 gap.
9808
9809 Years later, Union City security drops by and abducts Robert, killing
9810 his tribe in the process; upon reaching the city the helicopter taking
9811 him there crashes with him escaping, high upon a tower block in the
9812 middle of the city. He sets out to discover the truth about his past,
9813 and to seek vengeance for the killing of his tribe.")
9814 (license (license:non-copyleft "file:///readme.txt"))))
9815
9816 (define-public gnurobots
9817 (package
9818 (name "gnurobots")
9819 (version "1.2.0")
9820 (source
9821 (origin
9822 (method url-fetch)
9823 (uri (string-append "mirror://gnu/gnurobots/gnurobots-"
9824 version ".tar.gz"))
9825 (sha256
9826 (base32
9827 "07gi3lsmbzzsjambgixj6xy79lh22km84z7bnzgwzxdy806lyvwb"))))
9828 (build-system gnu-build-system)
9829 (inputs
9830 `(("glib" ,glib)
9831 ("gtk+" ,gtk+-2)
9832 ("vte" ,vte/gtk+-2)
9833 ("readline" ,readline)
9834 ("guile" ,guile-1.8)))
9835 (native-inputs
9836 `(("pkg-config" ,pkg-config)))
9837 (arguments
9838 `(#:make-flags
9839 (list
9840 ;; Do not abort build on "deprecated-declarations" warnings.
9841 "CFLAGS=-Wno-error=deprecated-declarations"
9842 ;; Find readline headers in sub-directory.
9843 (string-append "READLINE_CFLAGS=-I"
9844 (assoc-ref %build-inputs "readline")
9845 "/include/readline/"))
9846 #:phases
9847 (modify-phases %standard-phases
9848 (add-after 'install 'install-doc
9849 (lambda* (#:key outputs #:allow-other-keys)
9850 (install-file "doc/Robots-HOWTO"
9851 (string-append (assoc-ref outputs "out")
9852 "/share/doc/gnurobots-"
9853 ,version))
9854 #t)))))
9855 (home-page "https://www.gnu.org/software/gnurobots/")
9856 (synopsis "Program a little robot and watch it explore a world")
9857 (description
9858 "GNU Robots is a game in which you program a robot to explore a world
9859 full of enemies that can hurt it, obstacles and food to be eaten. The goal of
9860 the game is to stay alive and collect prizes. The robot program conveniently
9861 may be written in a plain text file in the Scheme programming language.")
9862 (license license:gpl3+)))
9863
9864 (define-public ri-li
9865 (package
9866 (name "ri-li")
9867 (version "2.0.1")
9868 (source (origin
9869 (method url-fetch)
9870 (uri (string-append "mirror://sourceforge/ri-li/"
9871 "Ri-li%20Linux_Unix/Ri-li%20V" version "/"
9872 "Ri-li-" version ".tar.bz2"))
9873 (sha256
9874 (base32
9875 "1gcdsgnnbbn1mb1hkpwniv3fhkaj1nn8gq33v5c16q3wqchcq77p"))
9876 ;; Taken from
9877 ;; <https://github.com/NixOS/nixpkgs/blob/master/pkgs/games/rili/moderinze_cpp.patch>.
9878 ;; It doesn't build otherwise.
9879 (patches (search-patches "ri-li-modernize_cpp.patch"))))
9880 (build-system gnu-build-system)
9881 (arguments
9882 `(#:phases
9883 (modify-phases %standard-phases
9884 ;; Remove "gentoo" subdirectory from Makefile, as it is
9885 ;; missing a make file and generates a build failure.
9886 (add-after 'configure 'fix-build
9887 (lambda _
9888 (substitute* "Makefile"
9889 ((" gentoo") ""))
9890 #t))
9891 (add-after 'install 'install-desktop-file
9892 (lambda* (#:key outputs #:allow-other-keys)
9893 (let* ((out (assoc-ref outputs "out"))
9894 (apps (string-append out "/share/applications"))
9895 (pixmaps (string-append out "/share/pixmaps")))
9896 (for-each (lambda (f) (install-file f pixmaps))
9897 (find-files "data" "\\.(png|ico)$"))
9898 (mkdir-p apps)
9899 (with-output-to-file (string-append apps "/ri-li.desktop")
9900 (lambda _
9901 (format #t
9902 "[Desktop Entry]~@
9903 Name=Ri-li~@
9904 Exec=~a/bin/Ri_li~@
9905 Icon=~a/Ri-li-icon-32x32.png~@
9906 Categories=Game;ArcadeGame;~@
9907 Keywords=toy;train;wooden;snake-like;engine;~@
9908 Comment=a toy simulator game~@
9909 Comment[de]=Ein Spiel mit einem kleinen Zug~@
9910 Comment[fr]=un jeu de petit train~@
9911 Comment[ro_RO]=un joc cu un tren de jucărie~@
9912 Terminal=false~@
9913 Type=Application~%"
9914 out pixmaps))))
9915 #t))
9916 (add-after 'install-desktop-file 'remove-spurious-files
9917 ;; Delete redundant files already installed somewhere else.
9918 (lambda* (#:key outputs #:allow-other-keys)
9919 (let ((out (assoc-ref outputs "out")))
9920 (for-each delete-file
9921 (find-files (string-append out "/share/Ri-li")
9922 "\\.(png|ico)|COPYING"))
9923 #t))))))
9924 (inputs
9925 `(("sdl" ,(sdl-union (list sdl sdl-mixer)))))
9926 (home-page "http://www.ri-li.org")
9927 (synopsis "Toy train simulation game")
9928 (description "Ri-li is a game in which you drive a wooden toy
9929 steam locomotive across many levels and collect all the coaches to
9930 win.")
9931 ;; The project is dual-licensed GPL2+ and GPL3+.
9932 (license (list license:gpl2+ license:gpl3+))))
9933
9934 (define-public freeorion
9935 (package
9936 (name "freeorion")
9937 (version "0.4.10")
9938 (source
9939 (origin
9940 (method url-fetch)
9941 (uri (string-append "https://github.com/freeorion/freeorion/releases/"
9942 "download/v" version "/FreeOrion_v" version
9943 "_2020-07-10.f3d403e_Source.tar.gz"))
9944 (sha256
9945 (base32 "12xspixrkx6mmmsdqjha0hg02r4y73pk229l0wjq9s0yp8nb8ap7"))
9946 (modules '((guix build utils)))
9947 (snippet
9948 '(begin
9949 ;; There are some bundled fonts.
9950 (for-each delete-file-recursively '("default/data/fonts"))
9951 #t))))
9952 (build-system cmake-build-system)
9953 (arguments
9954 '(#:tests? #f ;no test
9955 #:phases
9956 (modify-phases %standard-phases
9957 (add-after 'unpack 'unbundle-fonts
9958 (lambda* (#:key inputs #:allow-other-keys)
9959 (let ((roboto-dir (string-append (assoc-ref inputs "font-roboto")
9960 "/share/fonts/truetype/")))
9961 (substitute* "UI/ClientUI.cpp"
9962 (("\\(GetRootDataDir.*?Roboto-(Bold|Regular)\\.ttf\"\\)\\.string\\(\\)\\);"
9963 all type)
9964 (string-append "\"" roboto-dir "Roboto-" type ".ttf\");")))
9965 #t))))))
9966 (inputs
9967 `(("boost" ,boost)
9968 ("boost_signals" ,boost-signals2)
9969 ("font-dejavu" ,font-dejavu)
9970 ("font-roboto" ,font-google-roboto)
9971 ("freetype2" ,freetype)
9972 ("glew" ,glew)
9973 ("glu" ,glu)
9974 ("libogg" ,libogg)
9975 ("libpng" ,libpng)
9976 ("libvorbis" ,libvorbis)
9977 ("openal" ,openal)
9978 ("python" ,python)
9979 ("sdl2" ,sdl2)
9980 ("zlib" ,zlib)))
9981 (home-page "https://www.freeorion.org/index.php/Main_Page")
9982 (synopsis "Turn-based space empire and galactic conquest computer game")
9983 (description
9984 "FreeOrion is a turn-based space empire and galactic conquest (4X)
9985 computer game being designed and built by the FreeOrion project. Control an
9986 empire with the goal of exploring the galaxy, expanding your territory,
9987 exploiting the resources, and exterminating rival alien empires. FreeOrion is
9988 inspired by the tradition of the Master of Orion games, but is not a clone or
9989 remake of that series or any other game.")
9990 ;; Source code is released under gpl2. Artwork, music and sounds, and
9991 ;; in-game text are released under cc-by-sa3.0. Game content scripts are
9992 ;; released under both gpl2 and cc-by-sa3.0. Bundled Gigi library is
9993 ;; released under lgpl2.1+.
9994 (license (list license:gpl2 license:cc-by-sa3.0 license:lgpl2.1+))))
9995
9996 (define-public leela-zero
9997 (package
9998 (name "leela-zero")
9999 (version "0.17")
10000 (source
10001 (origin
10002 (method git-fetch)
10003 (uri (git-reference
10004 (url "https://github.com/leela-zero/leela-zero")
10005 (commit (string-append "v" version))))
10006 (file-name (git-file-name name version))
10007 (sha256
10008 (base32
10009 "17px5iny8mql5c01bymcli7zfssswkzvb2i8gnsmjcck6i2n8srl"))
10010 (patches (search-patches "leela-zero-gtest.patch"))))
10011 (build-system cmake-build-system)
10012 (native-inputs
10013 `(("googletest" ,googletest)))
10014 (inputs
10015 `(("boost" ,boost)
10016 ("ocl-icd" ,ocl-icd)
10017 ("openblas" ,openblas)
10018 ("opencl-headers" ,opencl-headers)
10019 ("qtbase" ,qtbase)
10020 ("zlib" ,zlib)))
10021 (arguments
10022 '(#:configure-flags '("-DUSE_BLAS=YES")
10023 #:phases (modify-phases %standard-phases
10024 (add-before 'configure 'fix-tests
10025 (lambda* (#:key outputs #:allow-other-keys)
10026 (let ((home (getcwd)))
10027 (setenv "HOME" home)
10028 (substitute* "src/tests/gtests.cpp"
10029 (("\\.\\./src/tests/0k\\.txt")
10030 (string-append home "/src/tests/0k.txt"))
10031 (("cfg_gtp_mode = true;")
10032 "cfg_gtp_mode = true; cfg_cpu_only = true;")))
10033 #t))
10034 (replace 'check
10035 (lambda _
10036 (invoke "./tests"))))))
10037 (home-page "https://github.com/leela-zero/leela-zero")
10038 (synopsis "Program playing the game of Go")
10039 (description
10040 "Leela-zero is a Go engine with no human-provided knowledge, modeled after
10041 the AlphaGo Zero paper. The current best network weights file for the engine
10042 can be downloaded from @url{https://zero.sjeng.org/best-network}.")
10043 (license license:gpl3+)))
10044
10045 (define-public q5go
10046 (package
10047 (name "q5go")
10048 (version "1.0")
10049 (source (origin
10050 (method git-fetch)
10051 (uri (git-reference
10052 (url "https://github.com/bernds/q5Go")
10053 (commit (string-append "q5go-" version))))
10054 (file-name (git-file-name name version))
10055 (sha256
10056 (base32
10057 "1gdlfqcqkqv7vph3qwq78d0qz6dhmdsranxq9bmixiisbzkqby31"))))
10058 (build-system gnu-build-system)
10059 (native-inputs
10060 `(("pkg-config" ,pkg-config)))
10061 (inputs
10062 `(("qtbase" ,qtbase)
10063 ("qtmultimedia" ,qtmultimedia)
10064 ("qtsvg" ,qtsvg)))
10065 (arguments
10066 '(#:phases
10067 (modify-phases %standard-phases
10068 (add-after 'unpack 'fix-configure-script
10069 (lambda _
10070 ;; Bypass the unavailable qtchooser program.
10071 (substitute* "configure"
10072 (("test -z \"QTCHOOSER\"")
10073 "false")
10074 (("qtchooser -run-tool=(.*) -qt=qt5" _ command)
10075 command))
10076 #t))
10077 (add-after 'unpack 'fix-paths
10078 (lambda _
10079 (substitute* '("src/pics/Makefile.in"
10080 "src/translations/Makefile.in")
10081 (("\\$\\(datadir\\)/qGo/")
10082 "$(datadir)/q5go/"))
10083 #t))
10084 (add-after 'install 'install-desktop-file
10085 (lambda* (#:key outputs #:allow-other-keys)
10086 (let* ((out (assoc-ref outputs "out"))
10087 (apps (string-append out "/share/applications"))
10088 (pics (string-append out "/share/q5go/pics")))
10089 (delete-file-recursively (string-append out "/share/applnk"))
10090 (delete-file-recursively (string-append out "/share/mimelnk"))
10091 (install-file "../source/src/pics/Bowl.ico" pics)
10092 (mkdir-p apps)
10093 (with-output-to-file (string-append apps "/q5go.desktop")
10094 (lambda _
10095 (format #t
10096 "[Desktop Entry]~@
10097 Name=q5go~@
10098 Exec=~a/bin/q5go~@
10099 Icon=~a/Bowl.ico~@
10100 Categories=Game;~@
10101 Comment=Game of Go~@
10102 Comment[de]=Spiel des Go~@
10103 Comment[eo]=Goo~@
10104 Comment[es]=Juego de Go~@
10105 Comment[fr]=Jeu de Go~@
10106 Comment[ja]=囲碁~@
10107 Comment[ko]=바둑~@
10108 Comment[zh]=围棋~@
10109 Terminal=false~@
10110 Type=Application~%"
10111 out pics))))
10112 #t)))))
10113 (synopsis "Qt GUI to play the game of Go")
10114 (description
10115 "This a tool for Go players which performs the following functions:
10116 @itemize
10117 @item SGF editor,
10118 @item Analysis frontend for Leela Zero (or compatible engines),
10119 @item GTP interface (to play against an engine),
10120 @item IGS client (to play on the internet),
10121 @item Export games to a variety of formats.
10122 @end itemize")
10123 (home-page "https://github.com/bernds/q5Go")
10124 (license license:gpl2+)))
10125
10126 (define-public ktuberling
10127 (package
10128 (name "ktuberling")
10129 (version "20.12.0")
10130 (source
10131 (origin
10132 (method url-fetch)
10133 (uri (string-append "mirror://kde/stable/release-service/" version
10134 "/src/ktuberling-" version ".tar.xz"))
10135 (sha256
10136 (base32 "0mlv9qllg70p26dbrcsr820c70d3ib88hapc1z6wgjhdpmc12ni1"))))
10137 (build-system qt-build-system)
10138 (native-inputs
10139 `(("extra-cmake-modules" ,extra-cmake-modules)
10140 ("kdoctools" ,kdoctools)
10141 ("perl" ,perl)))
10142 (inputs
10143 `(("kcompletion" ,kcompletion)
10144 ("kconfigwidgets" ,kconfigwidgets)
10145 ("kcoreaddons" ,kcoreaddons)
10146 ("kcrash" ,kcrash)
10147 ("kdbusaddons" ,kdbusaddons)
10148 ("ki18n" ,ki18n)
10149 ("kio" ,kio)
10150 ("kwidgetsaddons" ,kwidgetsaddons)
10151 ("kxmlgui" ,kxmlgui)
10152 ("libkdegames" ,libkdegames)
10153 ("python" ,python-wrapper)
10154 ("qtbase" ,qtbase)
10155 ("qtmultimedia" ,qtmultimedia)
10156 ("qtdeclarative" ,qtdeclarative)
10157 ("qtsvg" ,qtsvg)))
10158 (home-page "https://games.kde.org/")
10159 (synopsis "Stamp drawing toy")
10160 (description "KTuberling is a drawing toy intended for small children and
10161 adults who remain young at heart. The game has no winner; the only purpose is
10162 to make the funniest faces you can. Several activities are possible, e.g.:
10163
10164 @itemize
10165 @item Give the potato a funny face, clothes, and other goodies
10166 @item Build a small town, complete with school, zoo, and fire department
10167 @item Create a fantastic moonscape with spaceships and aliens
10168 @item Top a pizza
10169 @end itemize
10170
10171 KTuberling can speak the name of each the object in several languages,
10172 to assist in learning basic vocabulary.
10173
10174 This package is part of the KDE games module.")
10175 (license (list license:gpl2+ license:fdl1.2+))))
10176
10177 (define-public picmi
10178 (package
10179 (name "picmi")
10180 (version "20.12.0")
10181 (source
10182 (origin
10183 (method url-fetch)
10184 (uri (string-append "mirror://kde/stable/release-service/" version
10185 "/src/picmi-" version ".tar.xz"))
10186 (sha256
10187 (base32 "1dfq9m4njh0czz8zws46rkz6xq2n6xra5w223m3s2f5civiw5msz"))))
10188 (build-system qt-build-system)
10189 (native-inputs
10190 `(("extra-cmake-modules" ,extra-cmake-modules)
10191 ("kdoctools" ,kdoctools)))
10192 (inputs
10193 `(("kcoreaddons" ,kcoreaddons)
10194 ("kcrash" ,kcrash)
10195 ("kdbusaddons" ,kdbusaddons)
10196 ("kdeclarative" ,kdeclarative)
10197 ("ki18n" ,ki18n)
10198 ("kio" ,kio)
10199 ("knewstuff" ,knewstuff)
10200 ("kxmlgui" ,kxmlgui)
10201 ("libkdegames" ,libkdegames)
10202 ("qtbase" ,qtbase)
10203 ("qtdeclarative" ,qtdeclarative)
10204 ("qtsvg" ,qtsvg)))
10205 (home-page "https://games.kde.org/")
10206 (synopsis "Number logic game")
10207 (description "Picmi is a number logic game in which cells in a grid have
10208 to be colored or left blank according to numbers given at the side of the
10209 grid. The aim is to reveal a hidden picture.
10210
10211 This package is part of the KDE games module.")
10212 (license (list license:gpl2+ license:fdl1.2+))))
10213
10214 (define-public kolf
10215 (package
10216 (name "kolf")
10217 (version "20.12.0")
10218 (source
10219 (origin
10220 (method url-fetch)
10221 (uri (string-append "mirror://kde/stable/release-service/" version
10222 "/src/kolf-" version ".tar.xz"))
10223 (sha256
10224 (base32 "1lpp6pzr5dgd4si4a8c7hcvgxgqy0bgyhkx9m6jqb0zhll6dxj10"))))
10225 (build-system qt-build-system)
10226 (native-inputs
10227 `(("extra-cmake-modules" ,extra-cmake-modules)
10228 ("kdoctools" ,kdoctools)))
10229 (inputs
10230 `(("kcompletion" ,kcompletion)
10231 ("kconfigwidgets" ,kconfigwidgets)
10232 ("kcoreaddons" ,kcoreaddons)
10233 ("kcrash" ,kcrash)
10234 ("kdbusaddons" ,kdbusaddons)
10235 ("ki18n" ,ki18n)
10236 ("kio" ,kio)
10237 ("kwidgetsaddons" ,kwidgetsaddons)
10238 ("kxmlgui" ,kxmlgui)
10239 ("ktextwidgets" ,ktextwidgets)
10240 ("libkdegames" ,libkdegames)
10241 ("qtbase" ,qtbase)
10242 ("qtdeclarative" ,qtdeclarative)))
10243 (home-page "https://games.kde.org/")
10244 (synopsis "Miniature golf game")
10245 (description "Kolf is a miniature golf game for one to ten players. The
10246 game is played from an overhead view, with a short bar representing the golf
10247 club. Kolf features many different types of objects, such as water hazards,
10248 slopes, sand traps, and black holes (warps), among others.
10249
10250 Features are:
10251 @itemize
10252 @item Single and Multi-player (up to ten players) modes
10253 @item High scores table
10254 @item Dynamic courses
10255 @item Third-party courses
10256 @item Course editor
10257 @end itemize
10258
10259 This package is part of the KDE games module.")
10260 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
10261
10262 (define-public libkmahjongg
10263 (package
10264 (name "libkmahjongg")
10265 (version "20.12.0")
10266 (source
10267 (origin
10268 (method url-fetch)
10269 (uri (string-append "mirror://kde/stable/release-service/"
10270 version "/src/libkmahjongg-" version ".tar.xz"))
10271 (sha256
10272 (base32 "10ljzbf7qki5flydankrbksaihhkqpfyljb8c71fbwqwmkr7rgfq"))))
10273 (build-system qt-build-system)
10274 (native-inputs
10275 `(("extra-cmake-modules" ,extra-cmake-modules)))
10276 (inputs
10277 `(("kauth" ,kauth)
10278 ("kcompletion" ,kcompletion)
10279 ;("kconfig" ,kconfig)
10280 ("kcodecs" ,kcodecs)
10281 ("kconfigwidgets" ,kconfigwidgets)
10282 ("kcoreaddons" ,kcoreaddons)
10283 ("ki18n" ,ki18n)
10284 ("kwidgetsaddons" ,kwidgetsaddons)
10285 ("qtbase" ,qtbase)
10286 ("qtsvg" ,qtsvg)))
10287 (home-page "https://games.kde.org/")
10288 (synopsis "Shared library for kmahjongg and kshisen")
10289 (description "Shared library and common files for kmahjongg, kshisen and
10290 other Mah Jongg like games.")
10291 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
10292
10293 (define-public kmahjongg
10294 (package
10295 (name "kmahjongg")
10296 (version "20.12.0")
10297 (source
10298 (origin
10299 (method url-fetch)
10300 (uri (string-append "mirror://kde/stable/release-service/"
10301 version "/src/kmahjongg-" version ".tar.xz"))
10302 (sha256
10303 (base32 "1fcj4jb2zzbaxp7cp04w36y0c7lh77yzin66fmvrcxkl11xi2wwd"))))
10304 (build-system qt-build-system)
10305 (native-inputs
10306 `(("extra-cmake-modules" ,extra-cmake-modules)
10307 ("kdoctools" ,kdoctools)))
10308 (inputs
10309 `(("kcompletion" ,kcompletion)
10310 ("kcrash" ,kcrash)
10311 ("kdbusaddons" ,kdbusaddons)
10312 ("kdeclarative" ,kdeclarative)
10313 ("ki18n" ,ki18n)
10314 ("knewstuff" ,knewstuff)
10315 ("kxmlgui" ,kxmlgui)
10316 ("libkdegames" ,libkdegames)
10317 ("libkmahjongg" ,libkmahjongg)
10318 ("qtbase" ,qtbase)
10319 ("qtdeclarative" ,qtdeclarative)
10320 ("qtsvg" ,qtsvg)))
10321 (home-page "https://games.kde.org/")
10322 (synopsis "Tile laying patience")
10323 (description "In KMahjongg the tiles are scrambled and staked on top of
10324 each other to resemble a certain shape. The player is then expected to remove
10325 all the tiles off the game board by locating each tile's matching pair.
10326
10327 A variety of tile layouts are included, as well as an editor to create new
10328 layouts.
10329
10330 This package is part of the KDE games module.")
10331 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
10332
10333 (define-public kshisen
10334 (package
10335 (name "kshisen")
10336 (version "20.12.0")
10337 (source
10338 (origin
10339 (method url-fetch)
10340 (uri (string-append "mirror://kde/stable/release-service/"
10341 version "/src/kshisen-" version ".tar.xz"))
10342 (sha256
10343 (base32 "1hrwr0f1kidivsp8lnwdbqz3xxagjvjwh72r3gma8smfilybygfb"))))
10344 (build-system qt-build-system)
10345 (native-inputs
10346 `(("extra-cmake-modules" ,extra-cmake-modules)
10347 ;("perl" ,perl)
10348 ;("pkg-config" ,pkg-config)
10349 ("kdoctools" ,kdoctools)))
10350 (inputs
10351 `(("kauth" ,kauth)
10352 ("kcompletion" ,kcompletion)
10353 ("kconfigwidgets" ,kconfigwidgets)
10354 ("kcoreaddons" ,kcoreaddons)
10355 ("kcrash" ,kcrash)
10356 ("kdbusaddons" ,kdbusaddons)
10357 ("ki18n" ,ki18n)
10358 ("kxmlgui" ,kxmlgui)
10359 ("libkdegames" ,libkdegames)
10360 ("libkmahjongg" ,libkmahjongg)
10361 ("qtbase" ,qtbase)
10362 ("qtdeclarative" ,qtdeclarative)))
10363 (home-page "https://games.kde.org/")
10364 (synopsis "Shisen-Sho solitaire game")
10365 (description "KShisen is a solitaire-like game played using the standard
10366 set of Mahjong tiles. Unlike Mahjong however, KShisen has only one layer of
10367 scrambled tiles
10368
10369 This package is part of the KDE games module.")
10370 (license license:gpl2+)))
10371
10372 (define-public kajongg
10373 (package
10374 (name "kajongg")
10375 (version "20.12.0")
10376 (source
10377 (origin
10378 (method url-fetch)
10379 (uri (string-append "mirror://kde/stable/release-service/"
10380 version "/src/kajongg-" version ".tar.xz"))
10381 (sha256
10382 (base32 "03fdbnx7zx7vgcxvwd1h1098ks9gq162bwz35fhpyzpynr667m5r"))))
10383 (build-system qt-build-system)
10384 (arguments
10385 `(#:phases
10386 (modify-phases %standard-phases
10387 (add-after 'install 'wrap
10388 (lambda* (#:key outputs #:allow-other-keys)
10389 (let ((out (assoc-ref outputs "out")))
10390 (wrap-program (string-append out "/bin/kajongg")
10391 `("PYTHONPATH" ":" prefix (,(getenv "PYTHONPATH"))))
10392 #t))))))
10393 (native-inputs
10394 `(("extra-cmake-modules" ,extra-cmake-modules)
10395 ;("perl" ,perl)
10396 ("kdoctools" ,kdoctools)))
10397 (inputs
10398 `(("kconfig" ,kconfig)
10399 ("kconfigwidgets" ,kconfigwidgets)
10400 ("kcoreaddons" ,kcoreaddons)
10401 ("ki18n" ,ki18n)
10402 ("libkmahjongg" ,libkmahjongg)
10403 ("python" ,python)
10404 ("python-twisted" ,python-twisted)
10405 ("python-pyqt" ,python-pyqt)
10406 ("qtbase" ,qtbase)
10407 ("qtsvg" ,qtsvg)))
10408 (home-page "https://games.kde.org/")
10409 (synopsis "Classical Mah Jongg game for 4 players")
10410 (description "Kajongg is the ancient Chinese board game for 4 players.
10411
10412 If you are looking for the Mah Jongg solitaire please use the application
10413 kmahjongg.
10414
10415 Kajongg can be used in two different ways: Scoring a manual game where you
10416 play as always and use Kajongg for the computation of scores and for
10417 bookkeeping. Or you can use Kajongg to play against any combination of other
10418 human players or computer players.
10419
10420 This package is part of the KDE games module.")
10421 (license (list license:gpl2+ license:fdl1.2+))))
10422
10423 (define-public kbreakout
10424 (package
10425 (name "kbreakout")
10426 (version "20.12.0")
10427 (source
10428 (origin
10429 (method url-fetch)
10430 (uri (string-append "mirror://kde/stable/release-service/" version
10431 "/src/kbreakout-" version ".tar.xz"))
10432 (sha256
10433 (base32 "0kqj2cx0ny3qq65c6w5fpnzmrwl9irg8slzvpd3anck5cnvma3j4"))))
10434 (build-system qt-build-system)
10435 (native-inputs
10436 `(("extra-cmake-modules" ,extra-cmake-modules)
10437 ("kdoctools" ,kdoctools)))
10438 (inputs
10439 `(("kcompletion" ,kcompletion)
10440 ("kconfig" ,kconfig)
10441 ("kconfigwidgets" ,kconfigwidgets)
10442 ("kcoreaddons" ,kcoreaddons)
10443 ("kcrash" ,kcrash)
10444 ("kdbusaddons" ,kdbusaddons)
10445 ("ki18n" ,ki18n)
10446 ("kwidgetsaddons" ,kwidgetsaddons)
10447 ("kxmlgui" ,kxmlgui)
10448 ("libkdegames" ,libkdegames)
10449 ("qtbase" ,qtbase)
10450 ("qtdeclarative" ,qtdeclarative)))
10451 (home-page "https://games.kde.org/")
10452 (synopsis "Breakout like game")
10453 (description "KBreakout is similar to the classics breakout and xboing,
10454 featuring a number of added graphical enhancements and effects. You control a
10455 paddle at the bottom of the playing-field, and must destroy bricks at the top
10456 by bouncing balls against them.
10457
10458 This package is part of the KDE games module.")
10459 (license (list license:gpl2+ license:fdl1.2+))))
10460
10461 (define-public kmines
10462 (package
10463 (name "kmines")
10464 (version "20.12.0")
10465 (source
10466 (origin
10467 (method url-fetch)
10468 (uri (string-append "mirror://kde/stable/release-service/" version
10469 "/src/kmines-" version ".tar.xz"))
10470 (sha256
10471 (base32 "0hqjwh3jq2npqwkvh67fyn2xnq8swiasdw5jz8f0ikl0k28id775"))))
10472 (build-system qt-build-system)
10473 (native-inputs
10474 `(("extra-cmake-modules" ,extra-cmake-modules)
10475 ("kdoctools" ,kdoctools)))
10476 (inputs
10477 `(("kcompletion" ,kcompletion)
10478 ("kconfig" ,kconfig)
10479 ("kconfigwidgets" ,kconfigwidgets)
10480 ("kcoreaddons" ,kcoreaddons)
10481 ("kcrash" ,kcrash)
10482 ("kdbusaddons" ,kdbusaddons)
10483 ("ki18n" ,ki18n)
10484 ("ktextwidgets" ,ktextwidgets)
10485 ("kwidgetsaddons" ,kwidgetsaddons)
10486 ("kxmlgui" ,kxmlgui)
10487 ("libkdegames" ,libkdegames)
10488 ("qtbase" ,qtbase)
10489 ("qtdeclarative" ,qtdeclarative)))
10490 (home-page "https://games.kde.org/")
10491 (synopsis "Classical mine sweeper game")
10492 (description "KMines is a classic Minesweeper game. The idea is to
10493 uncover all the squares without blowing up any mines. When a mine is blown
10494 up, the game is over.
10495
10496 This package is part of the KDE games module.")
10497 (license (list license:gpl2+ license:fdl1.2+))))
10498
10499 (define-public konquest
10500 (package
10501 (name "konquest")
10502 (version "20.12.0")
10503 (source
10504 (origin
10505 (method url-fetch)
10506 (uri (string-append "mirror://kde/stable/release-service/"
10507 version "/src/konquest-" version ".tar.xz"))
10508 (sha256
10509 (base32 "0lnwj06vv4qx05hr8pzysnvrxh8y04asajrph0rsj37v8hs9g5lh"))))
10510 (build-system qt-build-system)
10511 (native-inputs
10512 `(("extra-cmake-modules" ,extra-cmake-modules)
10513 ("kdoctools" ,kdoctools)))
10514 (inputs
10515 `(("kcompletion" ,kcompletion)
10516 ("kconfig" ,kconfig)
10517 ("kcoreaddons" ,kcoreaddons)
10518 ("kcrash" ,kcrash)
10519 ("kdbusaddons" ,kdbusaddons)
10520 ("kguiaddons" ,kguiaddons)
10521 ("ki18n" ,ki18n)
10522 ("kwidgetsaddons" ,kwidgetsaddons)
10523 ("kxmlgui" ,kxmlgui)
10524 ("libkdegames" ,libkdegames)
10525 ("qtbase" ,qtbase)
10526 ("qtdeclarative" ,qtdeclarative)
10527 ("qtsvg" ,qtsvg)))
10528 (home-page "https://games.kde.org/")
10529 (synopsis "Simple turn-based strategy game")
10530 (description "Konquest is the KDE version of Gnu-Lactic Konquest. Players
10531 conquer other planets by sending ships to them. The goal is to build an
10532 interstellar empire and ultimately conquer all other player's planets. The
10533 game can be played with up to nine empires, commanded either by the computer
10534 or by puny earthlings.
10535
10536 This package is part of the KDE games module.")
10537 (license (list license:gpl2+ license:fdl1.2+))))
10538
10539 (define-public kbounce
10540 (package
10541 (name "kbounce")
10542 (version "20.12.0")
10543 (source
10544 (origin
10545 (method url-fetch)
10546 (uri (string-append "mirror://kde/stable/release-service/"
10547 version "/src/kbounce-" version ".tar.xz"))
10548 (sha256
10549 (base32 "0ymy0z1qlw3n653xs3dsa1xm78q4xaj09dnnci4km77rzis26vb6"))))
10550 (build-system qt-build-system)
10551 (native-inputs
10552 `(("extra-cmake-modules" ,extra-cmake-modules)
10553 ("kdoctools" ,kdoctools)))
10554 (inputs
10555 `(("kcompletion" ,kcompletion)
10556 ("kconfigwidgets" ,kconfigwidgets)
10557 ("kcoreaddons" ,kcoreaddons)
10558 ("kcrash" ,kcrash)
10559 ("kdbusaddons" ,kdbusaddons)
10560 ("ki18n" ,ki18n)
10561 ("kio" ,kio)
10562 ("kwidgetsaddons" ,kwidgetsaddons)
10563 ("kxmlgui" ,kxmlgui)
10564 ("libkdegames" ,libkdegames)
10565 ("qtbase" ,qtbase)
10566 ("qtdeclarative" ,qtdeclarative)
10567 ("qtsvg" ,qtsvg)))
10568 (home-page "https://games.kde.org/")
10569 (synopsis "Jezzball arcade game")
10570 (description "KBounce is a single player arcade game with the elements of
10571 puzzle. It is played on a field, surrounded by wall, with two or more balls
10572 bouncing around within the walls. The object of the game is to build new
10573 walls to decrease the size of the active field.
10574
10575 This package is part of the KDE games module.")
10576 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
10577
10578 (define-public kblocks
10579 (package
10580 (name "kblocks")
10581 (version "20.12.0")
10582 (source
10583 (origin
10584 (method url-fetch)
10585 (uri (string-append "mirror://kde/stable/release-service/"
10586 version "/src/kblocks-" version ".tar.xz"))
10587 (sha256
10588 (base32 "09yfm9mzbamp294cvc5finq6ilxvxr68i0dnb0m72pa4sfzmij32"))))
10589 (build-system qt-build-system)
10590 (native-inputs
10591 `(("extra-cmake-modules" ,extra-cmake-modules)
10592 ("kdoctools" ,kdoctools)))
10593 (inputs
10594 `(("kcompletion" ,kcompletion)
10595 ("kconfig" ,kconfig)
10596 ("kconfigwidgets" ,kconfigwidgets)
10597 ("kcoreaddons" ,kcoreaddons)
10598 ("kcrash" ,kcrash)
10599 ("kdbusaddons" ,kdbusaddons)
10600 ("ki18n" ,ki18n)
10601 ("kwidgetsaddons" ,kwidgetsaddons)
10602 ("kxmlgui" ,kxmlgui)
10603 ("libkdegames" ,libkdegames)
10604 ("qtbase" ,qtbase)
10605 ("qtdeclarative" ,qtdeclarative)
10606 ("qtsvg" ,qtsvg)))
10607 (home-page "https://games.kde.org/")
10608 (synopsis "Single player falling blocks puzzle game")
10609 (description "KBlocks is the classic Tetris-like falling blocks game.
10610
10611 The idea is to stack the falling blocks to create horizontal lines without any
10612 gaps. When a line is completed it is removed, and more space is available in
10613 the play area. When there is not enough space for blocks to fall, the game is
10614 over.
10615
10616 This package is part of the KDE games module.")
10617 (license (list license:gpl2+ license:fdl1.2+))))
10618
10619 (define-public ksudoku
10620 (package
10621 (name "ksudoku")
10622 (version "20.12.0")
10623 (source
10624 (origin
10625 (method url-fetch)
10626 (uri (string-append "mirror://kde/stable/release-service/"
10627 version "/src/ksudoku-" version ".tar.xz"))
10628 (sha256
10629 (base32 "0pj6ry7ak1rnpb93mqypaxrcbmrhwg9ir6zhb3ybzfkfcrh67g12"))))
10630 (build-system qt-build-system)
10631 (native-inputs
10632 `(("extra-cmake-modules" ,extra-cmake-modules)
10633 ("kdoctools" ,kdoctools)))
10634 (inputs
10635 `(("karchive" ,karchive)
10636 ("kconfig" ,kconfig)
10637 ("kconfigwidgets" ,kconfigwidgets)
10638 ("kcoreaddons" ,kcoreaddons)
10639 ("kcrash" ,kcrash)
10640 ("kguiaddons" ,kguiaddons)
10641 ("ki18n" ,ki18n)
10642 ("kiconthemes" ,kiconthemes)
10643 ("kio" ,kio)
10644 ("kwidgetsaddons" ,kwidgetsaddons)
10645 ("kxmlgui" ,kxmlgui)
10646 ("libkdegames" ,libkdegames)
10647 ("glu" ,glu)
10648 ("qtbase" ,qtbase)
10649 ("qtdeclarative" ,qtdeclarative)
10650 ("qtsvg" ,qtsvg)))
10651 (home-page "https://games.kde.org/")
10652 (synopsis "Sudoku puzzle game and solver")
10653 (description "KSudoku is a Sudoku game and solver, supporting a range of
10654 2D and 3D Sudoku variants. In addition to playing Sudoku, it can print Sudoku
10655 puzzle sheets and find the solution to any Sudoku puzzle.
10656
10657 The word Sudoku means \"single number in an allotted place\" in Japanese.
10658 These are the basic rules: Every Sudoku is a square divided into 3x3
10659 subsquares with 3x3 cells each.
10660
10661 Some cells are filled with a number at the beginning. The remaining ones are
10662 to be filled by the player using numbers from 1 to 9, without repeating a
10663 number twice on each column, row or subsquare (each of them must contain only
10664 one 1, one 2, one 3, and so on). The game requires logic and patience.
10665 Solving takes usually 10 to 30 minutes, depending on puzzle level, your skill
10666 and experience.
10667
10668 The numerals in Sudoku puzzles are used for convenience (for example in 16x16
10669 board we use letters): arithmetic relationships between numbers are
10670 irrelevant.
10671
10672 This program supports also 16x16 games with numbers from 1 to 16 and 256
10673 cells with 16 cols, rows and subsquares!
10674
10675 More information at http://en.wikipedia.org/wiki/Sudoku
10676
10677 This package is part of the KDE games module.")
10678 (license (list license:gpl2+ license:fdl1.2+))))
10679
10680 (define-public klines
10681 (package
10682 (name "klines")
10683 (version "20.12.0")
10684 (source
10685 (origin
10686 (method url-fetch)
10687 (uri (string-append "mirror://kde/stable/release-service/" version
10688 "/src/klines-" version ".tar.xz"))
10689 (sha256
10690 (base32 "0y8lnwawrkl4ixn7v4dg48k2zpr083krv7dv4d94b2dpkh7xfvih"))))
10691 (build-system qt-build-system)
10692 (native-inputs
10693 `(("extra-cmake-modules" ,extra-cmake-modules)
10694 ("kdoctools" ,kdoctools)))
10695 (inputs
10696 `(("kcompletion" ,kcompletion)
10697 ("kconfigwidgets" ,kconfigwidgets)
10698 ("kcoreaddons" ,kcoreaddons)
10699 ("kcrash" ,kcrash)
10700 ("kdbusaddons" ,kdbusaddons)
10701 ("ki18n" ,ki18n)
10702 ("kwidgetsaddons" ,kwidgetsaddons)
10703 ("kxmlgui" ,kxmlgui)
10704 ("libkdegames" ,libkdegames)
10705 ("qtbase" ,qtbase)
10706 ("qtdeclarative" ,qtdeclarative)))
10707 (home-page "https://games.kde.org/")
10708 (synopsis "Place 5 equal pieces together, but wait, there are 3 new ones")
10709 (description "KLines is a simple but highly addictive one player game.
10710
10711 The player has to move the colored balls around the game board, gathering them
10712 into the lines of the same color by five. Once the line is complete it is
10713 removed from the board, therefore freeing precious space. In the same time
10714 the new balls keep arriving by three after each move, filling up the game
10715 board.
10716
10717 KLines is a single-player game where the player removes colored balls from the
10718 board by arranging them into lines of five or more. However, every time the
10719 player moves a ball, three more balls are added to the board.
10720
10721 This package is part of the KDE games module.")
10722 (license (list license:gpl2+ license:fdl1.2+))))
10723
10724 (define-public kgoldrunner
10725 (package
10726 (name "kgoldrunner")
10727 (version "20.12.0")
10728 (source
10729 (origin
10730 (method url-fetch)
10731 (uri (string-append "mirror://kde/stable/release-service/" version
10732 "/src/kgoldrunner-" version ".tar.xz"))
10733 (sha256
10734 (base32 "17ra5d3r9ajy2inj17gwd5xphzhvbzx5kpvdwyj6msx4dd9wxgfi"))))
10735 (build-system qt-build-system)
10736 (native-inputs
10737 `(("extra-cmake-modules" ,extra-cmake-modules)
10738 ("kdoctools" ,kdoctools)))
10739 (inputs
10740 `(("kcompletion" ,kcompletion)
10741 ("kcoreaddons" ,kcoreaddons)
10742 ("kcrash" ,kcrash)
10743 ("kdbusaddons" ,kdbusaddons)
10744 ("ki18n" ,ki18n)
10745 ("kio" ,kio)
10746 ("kwidgetsaddons" ,kwidgetsaddons)
10747 ("kxmlgui" ,kxmlgui)
10748 ("libkdegames" ,libkdegames)
10749 ("qtbase" ,qtbase)
10750 ("qtdeclarative" ,qtdeclarative)))
10751 (home-page "https://games.kde.org/")
10752 (synopsis "Action and puzzle solving game")
10753 (description "KGoldrunner is an action game where the hero runs through a
10754 maze, climbs stairs, dig holes and dodges enemies in order to collect all the
10755 gold nuggets and escape to the next level. Your enemies are also after the
10756 gold. Worse still, they are after you!.
10757
10758 KGoldrunner is a fast-paced platform game where the player must navigate a
10759 maze while collecting gold nuggets and avoiding enemies. A variety of level
10760 packs are included, as well as an editor to create new levels.
10761
10762 This package is part of the KDE games module.")
10763 (license (list license:gpl2+ license:fdl1.2+))))
10764
10765 (define-public kdiamond
10766 (package
10767 (name "kdiamond")
10768 (version "20.12.0")
10769 (source
10770 (origin
10771 (method url-fetch)
10772 (uri (string-append "mirror://kde/stable/release-service/" version
10773 "/src/kdiamond-" version ".tar.xz"))
10774 (sha256
10775 (base32 "1iyxrx3422asa58kh0siwvi1svds5kccrym6gdfpdhlmhmciqlzi"))))
10776 (build-system qt-build-system)
10777 (native-inputs
10778 `(("extra-cmake-modules" ,extra-cmake-modules)
10779 ("kdoctools" ,kdoctools)))
10780 (inputs
10781 `(("kcompletion" ,kcompletion)
10782 ("kconfig" ,kconfig)
10783 ("kconfigwidgets" ,kconfigwidgets)
10784 ("kcoreaddons" ,kcoreaddons)
10785 ("kcrash" ,kcrash)
10786 ("kdbusaddons" ,kdbusaddons)
10787 ("ki18n" ,ki18n)
10788 ("knotifications" ,knotifications)
10789 ("knotifyconfig" ,knotifyconfig)
10790 ("kwidgetsaddons" ,kwidgetsaddons)
10791 ("kxmlgui" ,kxmlgui)
10792 ("libkdegames" ,libkdegames)
10793 ("qtbase" ,qtbase)
10794 ("qtdeclarative" ,qtdeclarative)))
10795 (home-page "https://games.kde.org/")
10796 (synopsis "Three-in-a-row game")
10797 (description "KDiamond is a three-in-a-row game like Bejeweled. It
10798 features unlimited fun with randomly generated games and five difficulty
10799 levels with varying number of diamond colors and board sizes.
10800
10801 This package is part of the KDE games module.")
10802 (license (list license:gpl2+ license:fdl1.2+))))
10803
10804 (define-public kfourinline
10805 (package
10806 (name "kfourinline")
10807 (version "20.12.0")
10808 (source
10809 (origin
10810 (method url-fetch)
10811 (uri (string-append "mirror://kde/stable/release-service/" version
10812 "/src/kfourinline-" version ".tar.xz"))
10813 (sha256
10814 (base32 "0plx3lv35fc8q9svbyl71mms3ji6zn58j306bvm1f8kkgg0x395b"))))
10815 (build-system qt-build-system)
10816 (native-inputs
10817 `(("extra-cmake-modules" ,extra-cmake-modules)
10818 ("kdoctools" ,kdoctools)))
10819 (inputs
10820 `(("kcompletion" ,kcompletion)
10821 ("kconfig" ,kconfig)
10822 ("kconfigwidgets" ,kconfigwidgets)
10823 ("kcoreaddons" ,kcoreaddons)
10824 ("kcrash" ,kcrash)
10825 ("kdnssd" ,kdnssd)
10826 ("ki18n" ,ki18n)
10827 ("kxmlgui" ,kxmlgui)
10828 ("libkdegames" ,libkdegames)
10829 ("qtbase" ,qtbase)
10830 ("qtdeclarative" ,qtdeclarative)
10831 ("qtsvg" ,qtsvg)))
10832 (home-page "https://games.kde.org/")
10833 (synopsis "Place 4 pieces in a row")
10834 (description "KFourInLine is a board game for two players based on the
10835 Connect-Four game.
10836
10837 KFourInLine is a game where two players take turns dropping pieces into a
10838 grid, the winner being the first to place four pieces in a line.
10839
10840 This package is part of the KDE games module.")
10841 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
10842
10843 (define-public kblackbox
10844 (package
10845 (name "kblackbox")
10846 (version "20.12.0")
10847 (source
10848 (origin
10849 (method url-fetch)
10850 (uri (string-append "mirror://kde/stable/release-service/" version
10851 "/src/kblackbox-" version ".tar.xz"))
10852 (sha256
10853 (base32 "0la5w44b0gl72g3wfp0pw8gwnm287lh7nd9k5ikpszw5nn49db0h"))))
10854 (build-system qt-build-system)
10855 (native-inputs
10856 `(("extra-cmake-modules" ,extra-cmake-modules)
10857 ("kdoctools" ,kdoctools)))
10858 (inputs
10859 `(("karchive" ,karchive)
10860 ("kcompletion" ,kcompletion)
10861 ("kconfig" ,kconfig)
10862 ("kcoreaddons" ,kcoreaddons)
10863 ("kcrash" ,kcrash)
10864 ("kdbusaddons" ,kdbusaddons)
10865 ("ki18n" ,ki18n)
10866 ("ktextwidgets" ,ktextwidgets)
10867 ("kxmlgui" ,kxmlgui)
10868 ("libkdegames" ,libkdegames)
10869 ("qtbase" ,qtbase)
10870 ("qtdeclarative" ,qtdeclarative)
10871 ("qtsvg" ,qtsvg)))
10872 (home-page "https://games.kde.org/")
10873 (synopsis "Find atoms in a grid by shooting electrons")
10874 (description "KBlackbox is a game of hide and seek played on a grid of
10875 boxes where the computer has hidden several balls. The position of the hidden
10876 balls can be deduced by shooting beams into the box
10877
10878 KBlackBox is a game of hide and seek played on an grid of boxes, where the
10879 player shoots rays into the grid to deduce the positions of hidden objects.
10880
10881 This package is part of the KDE games module.")
10882 (license (list license:gpl2+ license:fdl1.2+))))
10883
10884 (define-public knetwalk
10885 (package
10886 (name "knetwalk")
10887 (version "20.12.0")
10888 (source
10889 (origin
10890 (method url-fetch)
10891 (uri (string-append "mirror://kde/stable/release-service/" version
10892 "/src/knetwalk-" version ".tar.xz"))
10893 (sha256
10894 (base32 "060kj06vpigdy570izsjfgnmqqrpmb8bkr9arqc109hg3avl5wjz"))))
10895 (build-system qt-build-system)
10896 (native-inputs
10897 `(("extra-cmake-modules" ,extra-cmake-modules)
10898 ("kdoctools" ,kdoctools)))
10899 (inputs
10900 `(("kcompletion" ,kcompletion)
10901 ("kconfig" ,kconfig)
10902 ("kconfigwidgets" ,kconfigwidgets)
10903 ("kcoreaddons" ,kcoreaddons)
10904 ("kcrash" ,kcrash)
10905 ("kdbusaddons" ,kdbusaddons)
10906 ("ki18n" ,ki18n)
10907 ("ktextwidgets" ,ktextwidgets)
10908 ("kwidgetsaddons" ,kwidgetsaddons)
10909 ("kxmlgui" ,kxmlgui)
10910 ("libkdegames" ,libkdegames)
10911 ("qtbase" ,qtbase)
10912 ("qtdeclarative" ,qtdeclarative)))
10913 (home-page "https://games.kde.org/")
10914 (synopsis "Turn the board pieces to get all computers connected")
10915 (description "KNetWalk is a small game where you have to build up a
10916 computer network by rotating the wires to connect the terminals to the server.
10917 When the network is build, a highscore-list comes up where competitions can be
10918 fought out.
10919
10920 KNetwalk is a puzzle game where the player arranges sections of wire to
10921 connect all the computers on the board.
10922
10923 This package is part of the KDE games module.")
10924 (license (list license:gpl2+ license:fdl1.2+))))
10925
10926 (define-public bomber
10927 (package
10928 (name "bomber")
10929 (version "20.12.0")
10930 (source
10931 (origin
10932 (method url-fetch)
10933 (uri (string-append "mirror://kde/stable/release-service/" version
10934 "/src/bomber-" version ".tar.xz"))
10935 (sha256
10936 (base32 "1fjcwm591jgx3bgqpi0j5fnb2l2r2h3r6lav3vhaxz4rkf56pg2a"))))
10937 (build-system qt-build-system)
10938 (native-inputs
10939 `(("extra-cmake-modules" ,extra-cmake-modules)
10940 ("kdoctools" ,kdoctools)))
10941 (inputs
10942 `(("kcompletiom" ,kcompletion)
10943 ("kconfig" ,kconfig)
10944 ("kcoreaddons" ,kcoreaddons)
10945 ("kcrash" ,kcrash)
10946 ("kdbusaddons" ,kdbusaddons)
10947 ("ki18n" ,ki18n)
10948 ("kxmlgui" ,kxmlgui)
10949 ("libkdegames" ,libkdegames)
10950 ("qtbase" ,qtbase)
10951 ("qtdeclarative" ,qtdeclarative)))
10952 (home-page "https://games.kde.org/")
10953 (synopsis "Arcade bombing game")
10954 (description "Bomber is a single player arcade game.
10955
10956 The player is invading various cities in a plane that is decreasing in height.
10957 The goal of the game is to destroy all the buildings and advance to the next
10958 level. Each level gets a bit harder by increasing the speed of the plane and
10959 the height of the buildings.
10960
10961 Bomber is a game where you fly a spaceship and attempt to bomb the buildings
10962 below you. Each pass the spaceship makes, it gets lower and lower. If you've
10963 not destroyed a building in your path, you will crash into it.
10964
10965 This package is part of the KDE games module.")
10966 (license (list license:gpl2+ license:fdl1.2+))))
10967
10968 (define-public granatier
10969 (package
10970 (name "granatier")
10971 (version "20.12.0")
10972 (source
10973 (origin
10974 (method url-fetch)
10975 (uri (string-append "mirror://kde/stable/release-service/" version
10976 "/src/granatier-" version ".tar.xz"))
10977 (sha256
10978 (base32 "1fyh7zyacb3pnlfd29jw2jmyl8a7sjw354pi234nd5x5999xw5z6"))))
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 ("kconfigwidgets" ,kconfigwidgets)
10987 ("kcoreaddons" ,kcoreaddons)
10988 ("kcrash" ,kcrash)
10989 ("kdbusaddons" ,kdbusaddons)
10990 ("ki18n" ,ki18n)
10991 ("knewstuff" ,knewstuff)
10992 ("kwidgetsaddons" ,kwidgetsaddons)
10993 ("kxmlgui" ,kxmlgui)
10994 ("libkdegames" ,libkdegames)
10995 ("qtbase" ,qtbase)
10996 ("qtdeclarative" ,qtdeclarative)
10997 ("qtsvg" ,qtsvg)))
10998 (home-page "https://games.kde.org/")
10999 (synopsis "Bomberman clone")
11000 (description "Granatier is a clone of the classic Bomberman game,
11001 inspired by the work of the Clanbomber clone.
11002
11003 This package is part of the KDE games module.")
11004 (license (list license:gpl2+ license:fdl1.2+))))
11005
11006 (define-public ksirk
11007 (package
11008 (name "ksirk")
11009 (version "20.12.0")
11010 (source
11011 (origin
11012 (method url-fetch)
11013 (uri (string-append "mirror://kde/stable/release-service/" version
11014 "/src/ksirk-" version ".tar.xz"))
11015 (sha256
11016 (base32 "10y7nm0x6zcc0gh3am69bbxyyb8azbbfyrdqsa023ggr7n04cn21"))))
11017 (build-system qt-build-system)
11018 (native-inputs
11019 `(("extra-cmake-modules" ,extra-cmake-modules)
11020 ("kdoctools" ,kdoctools)))
11021 (inputs
11022 `(("kcrash" ,kcrash)
11023 ("ki18n" ,ki18n)
11024 ("kiconthemes" ,kiconthemes)
11025 ("kio" ,kio)
11026 ("knewstuff" ,knewstuff)
11027 ("kwallet" ,kwallet)
11028 ("kxmlgui" ,kxmlgui)
11029 ("libkdegames" ,libkdegames)
11030 ("phonon" ,phonon)
11031 ("qca" ,qca)
11032 ("qtbase" ,qtbase)
11033 ("qtdeclarative" ,qtdeclarative)
11034 ("qtsvg" ,qtsvg)
11035 ("zlib" ,zlib)))
11036 (home-page "https://games.kde.org/")
11037 (synopsis "Computerized version of the well known strategy board game
11038 'Risk'")
11039 (description "KsirK is a multi-player network-enabled game. The goal of
11040 the game is simply to conquer the world by attacking your neighbors with your
11041 armies.
11042
11043 At the beginning of the game, countries are distributed to all the players.
11044 Each country contains one army represented by an infantryman. Each player has
11045 some armies to distribute to his countries. On each turn, each player can
11046 attack his neighbours, eventually conquering one or more countries. At the
11047 end of each turn, some bonus armies are distributed to the players in function
11048 of the number of countries they own. The winner is the player that conquered
11049 all the world.
11050
11051 Features:
11052 @itemize
11053 @item Support for 1-6 human or computer players
11054 @item Multi-player gaming over a network
11055 @item You can easily create new skins with SVG graphics and the skin editor
11056 @item Hot New Stuff support. You can easily download and install new skins
11057 @end itemize
11058
11059 This package is part of the KDE games module.")
11060 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
11061
11062 (define-public palapeli
11063 (package
11064 (name "palapeli")
11065 (version "20.12.0")
11066 (source
11067 (origin
11068 (method url-fetch)
11069 (uri (string-append "mirror://kde/stable/release-service/" version
11070 "/src/palapeli-" version ".tar.xz"))
11071 (sha256
11072 (base32 "0xxz9g4zxljlg20g88a5lkbwzzm9yg4vxnrfigk8m018cz0nqd5b"))))
11073 (build-system qt-build-system)
11074 (native-inputs
11075 `(("extra-cmake-modules" ,extra-cmake-modules)
11076 ("kdoctools" ,kdoctools)))
11077 (inputs
11078 `(("karchive" ,karchive)
11079 ("kcompletion" ,kcompletion)
11080 ("kconfig" ,kconfig)
11081 ("kconfigwidgets" ,kconfigwidgets)
11082 ("kcoreaddons" ,kcoreaddons)
11083 ("kcrash" ,kcrash)
11084 ("kcrash" ,kcrash)
11085 ("ki18n" ,ki18n)
11086 ("ki18n" ,ki18n)
11087 ("kio" ,kio)
11088 ("kitemviews" ,kitemviews)
11089 ("knotifications" ,knotifications)
11090 ("kservice" ,kservice)
11091 ("kwidgetsaddons" ,kwidgetsaddons)
11092 ("kxmlgui" ,kxmlgui)
11093 ("libkdegames" ,libkdegames)
11094 ("qtbase" ,qtbase)
11095 ("qtdeclarative" ,qtdeclarative)
11096 ("qtsvg" ,qtsvg)
11097 ("shared-mime-info" ,shared-mime-info)))
11098 (home-page "https://games.kde.org/")
11099 (synopsis "Jigsaw puzzle game")
11100 (description "Palapeli is a jigsaw puzzle game. Unlike other games in
11101 that genre, you are not limited to aligning pieces on imaginary grids. The
11102 pieces are freely moveable. Also, Palapeli features real persistency, i.e.
11103 everything you do is saved on your disk immediately.
11104
11105 Palapeli is the Finnish word for jigsaw puzzle.
11106
11107 This package is part of the KDE games module.")
11108 (license license:gpl2+)))
11109
11110 (define-public kiriki
11111 (package
11112 (name "kiriki")
11113 (version "20.12.0")
11114 (source
11115 (origin
11116 (method url-fetch)
11117 (uri (string-append "mirror://kde/stable/release-service/" version
11118 "/src/kiriki-" version ".tar.xz"))
11119 (sha256
11120 (base32 "0milc8fl1rj4yrwdvm60ampd47dyiys1xvqi5f0g7y6mgymgyk4x"))))
11121 (build-system qt-build-system)
11122 (native-inputs
11123 `(("extra-cmake-modules" ,extra-cmake-modules)
11124 ("kdoctools" ,kdoctools)))
11125 (inputs
11126 `(("kcompletion" ,kcompletion)
11127 ("kconfig" ,kconfig)
11128 ("kconfigwidgets" ,kconfigwidgets)
11129 ("kcoreaddons" ,kcoreaddons)
11130 ("kcrash" ,kcrash)
11131 ("kdbusaddons" ,kdbusaddons)
11132 ("ki18n" ,ki18n)
11133 ("kiconthemes" ,kiconthemes)
11134 ("kxmlgui" ,kxmlgui)
11135 ("libkdegames" ,libkdegames)
11136 ("qtbase" ,qtbase)
11137 ("qtdeclarative" ,qtdeclarative)))
11138 (home-page "https://games.kde.org/")
11139 (synopsis "Yahtzee dice game")
11140 (description "Kiriki is an addictive and fun dice game, designed to be
11141 played by as many as six players.
11142
11143 Participants have to collect points by rolling five dice for up to three times
11144 per single turn to make combinations with the highest score.
11145
11146 This package is part of the KDE games module.")
11147 (license (list license:gpl2+ license:fdl1.2+))))
11148
11149 (define-public kigo
11150 (package
11151 (name "kigo")
11152 (version "20.12.0")
11153 (source
11154 (origin
11155 (method url-fetch)
11156 (uri (string-append "mirror://kde/stable/release-service/" version
11157 "/src/kigo-" version ".tar.xz"))
11158 (sha256
11159 (base32 "088752yzmfsnppd27p8hld4x5s7sw5fagm08024l5ra1mlicdfz9"))))
11160 (build-system qt-build-system)
11161 (native-inputs
11162 `(("extra-cmake-modules" ,extra-cmake-modules)
11163 ("kdoctools" ,kdoctools)))
11164 (inputs
11165 `(("kconfig" ,kconfig)
11166 ("kconfigwidgets" ,kconfigwidgets)
11167 ("kcoreaddons" ,kcoreaddons)
11168 ("kcrash" ,kcrash)
11169 ("kdbusaddons" ,kdbusaddons)
11170 ("ki18n" ,ki18n)
11171 ("kio" ,kio)
11172 ("knewstuff" ,knewstuff)
11173 ("ktextwidgets" ,ktextwidgets)
11174 ("kxmlgui" ,kxmlgui)
11175 ("libkdegames" ,libkdegames)
11176 ("qtbase" ,qtbase)
11177 ("qtdeclarative" ,qtdeclarative)
11178 ("qtsvg" ,qtsvg)))
11179 (home-page "https://games.kde.org/")
11180 (synopsis "Go board game")
11181 (description "Kigo is an open-source implementation of the popular Go
11182 game.
11183
11184 Go is a strategic board game for two players. It is also known as
11185 igo (Japanese), weiqi or wei ch'i (Chinese) or baduk (Korean). Go is noted
11186 for being rich in strategic complexity despite its simple rules. The game is
11187 played by two players who alternately place black and white stones (playing
11188 pieces, now usually made of glass or plastic) on the vacant intersections of a
11189 grid of 19x19 lines (9x9 or 13x13 for easier games).
11190
11191 You also need to install a go engine, e.g. @code{gnugo}.
11192
11193 This package is part of the KDE games module.")
11194 (license license:gpl3+)))
11195
11196 (define-public kubrick
11197 (package
11198 (name "kubrick")
11199 (version "20.12.0")
11200 (source
11201 (origin
11202 (method url-fetch)
11203 (uri (string-append "mirror://kde/stable/release-service/" version
11204 "/src/kubrick-" version ".tar.xz"))
11205 (sha256
11206 (base32 "0h3mypwd67sss08j5vvrih5f5ss85m9kax6412y40xmsm51lz2pq"))))
11207 (build-system qt-build-system)
11208 (native-inputs
11209 `(("extra-cmake-modules" ,extra-cmake-modules)
11210 ("kdoctools" ,kdoctools)))
11211 (inputs
11212 `(("glu" ,glu)
11213 ("kconfig" ,kconfig)
11214 ("kconfigwidgets" ,kconfigwidgets)
11215 ("kcoreaddons" ,kcoreaddons)
11216 ("kcrash" ,kcrash)
11217 ("ki18n" ,ki18n)
11218 ("kio" ,kio)
11219 ("kwidgetsaddons" ,kwidgetsaddons)
11220 ("kxmlgui" ,kxmlgui)
11221 ("libkdegames" ,libkdegames)
11222 ("qtbase" ,qtbase)
11223 ("qtdeclarative" ,qtdeclarative)
11224 ("qtsvg" ,qtsvg)))
11225 (home-page "https://games.kde.org/")
11226 (synopsis "Game based on Rubik's Cube")
11227 (description "Kubrick is a game based on the Rubik's Cube puzzle.
11228
11229 The cube sizes range from 2x2x2 up to 6x6x6, or you can play with irregular
11230 \"bricks\" such as 5x3x2 or \"mats\" such as 6x4x1 or 2x2x1. The game has a
11231 selection of puzzles at several levels of difficulty, as well as demos of
11232 pretty patterns and solution moves, or you can make up your own puzzles. The
11233 game has unlimited undo, redo, save and reload capabilities.
11234
11235 This package is part of the KDE games module.")
11236 (license (list license:gpl2+ license:fdl1.2+))))
11237
11238 (define-public lskat
11239 (package
11240 (name "lskat")
11241 (version "20.12.0")
11242 (source
11243 (origin
11244 (method url-fetch)
11245 (uri (string-append "mirror://kde/stable/release-service/" version
11246 "/src/lskat-" version ".tar.xz"))
11247 (sha256
11248 (base32 "1wg9zxp64kwjxqs4qw0h7j8yhgffbmvh8j9d4dgmz45dscngnjli"))))
11249 (build-system qt-build-system)
11250 (native-inputs
11251 `(("extra-cmake-modules" ,extra-cmake-modules)
11252 ("kdoctools" ,kdoctools)))
11253 (inputs
11254 `(("kcompletion" ,kcompletion)
11255 ("kconfig" ,kconfig)
11256 ("kcoreaddons" ,kcoreaddons)
11257 ("kcrash" ,kcrash)
11258 ("kguiaddons" ,kguiaddons)
11259 ("ki18n" ,ki18n)
11260 ("kwidgetsaddons" ,kwidgetsaddons)
11261 ("kxmlgui" ,kxmlgui)
11262 ("libkdegames" ,libkdegames)
11263 ("qtbase" ,qtbase)
11264 ("qtdeclarative" ,qtdeclarative)
11265 ("qtsvg" ,qtsvg)))
11266 (home-page "https://games.kde.org/")
11267 (synopsis "Lieutnant Skat card game")
11268 (description "Lieutnant Skat (from German \"Offiziersskat\") is a fun and
11269 engaging card game for two players, where the second player is either live
11270 opponent, or a built in artificial intelligence.
11271
11272 Lieutnant Skat is a simplified variant of the Skat card game for two players.
11273
11274 This package is part of the KDE games module.")
11275 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
11276
11277 (define-public kapman
11278 (package
11279 (name "kapman")
11280 (version "20.12.0")
11281 (source
11282 (origin
11283 (method url-fetch)
11284 (uri (string-append "mirror://kde/stable/release-service/" version
11285 "/src/kapman-" version ".tar.xz"))
11286 (sha256
11287 (base32 "14x3v6li4r3gzzwfd6ar9saq2rhc7yxs0sp9ygalzq8vq4d7i1kh"))))
11288 (build-system qt-build-system)
11289 (native-inputs
11290 `(("extra-cmake-modules" ,extra-cmake-modules)
11291 ("kdoctools" ,kdoctools)))
11292 (inputs
11293 `(("kcompletion" ,kcompletion)
11294 ("kconfig" ,kconfig)
11295 ("kconfigwidgets" ,kconfigwidgets)
11296 ("kcoreaddons" ,kcoreaddons)
11297 ("kcrash" ,kcrash)
11298 ("kdbusaddons" ,kdbusaddons)
11299 ("ki18n" ,ki18n)
11300 ("kxmlgui" ,kxmlgui)
11301 ("libkdegames" ,libkdegames)
11302 ("qtbase" ,qtbase)
11303 ("qtdeclarative" ,qtdeclarative)
11304 ("qtsvg" ,qtsvg)))
11305 (home-page "https://games.kde.org/")
11306 (synopsis "Pac-Man clone")
11307 (description "Kapman is a clone of the well known game Pac-Man.
11308
11309 You must run through the maze to eat all pills without being captured by a
11310 ghost. By eating an energizer, Kapman gets the ability to eat ghosts for a
11311 few seconds. When a stage is cleared of pills and energizer the player is
11312 taken to the next stage with slightly increased game speed
11313
11314 This package is part of the KDE games module.")
11315 (license (list license:gpl2+ license:fdl1.2+))))
11316
11317 (define-public kspaceduel
11318 (package
11319 (name "kspaceduel")
11320 (version "20.12.0")
11321 (source
11322 (origin
11323 (method url-fetch)
11324 (uri (string-append "mirror://kde/stable/release-service/" version
11325 "/src/kspaceduel-" version ".tar.xz"))
11326 (sha256
11327 (base32 "1aixh6ygif2cm1a5g32sl5y6b5x68139pzihaxq4334c6avamdai"))))
11328 (build-system qt-build-system)
11329 (native-inputs
11330 `(("extra-cmake-modules" ,extra-cmake-modules)
11331 ("kdoctools" ,kdoctools)))
11332 (inputs
11333 `(("kcompletion" ,kcompletion)
11334 ("kconfig" ,kconfig)
11335 ("kconfigwidgets" ,kconfigwidgets)
11336 ("kcoreaddons" ,kcoreaddons)
11337 ("kcrash" ,kcrash)
11338 ("kdbusaddons" ,kdbusaddons)
11339 ("ki18n" ,ki18n)
11340 ("kxmlgui" ,kxmlgui)
11341 ("libkdegames" ,libkdegames)
11342 ("qtbase" ,qtbase)
11343 ("qtdeclarative" ,qtdeclarative)
11344 ("qtsvg" ,qtsvg)))
11345 (home-page "https://games.kde.org/")
11346 (synopsis "Two player game with shooting spaceships flying around a sun")
11347 (description "KSpaceduel is a space battle game for one or two players,
11348 where two ships fly around a star in a struggle to be the only survivor.
11349
11350 This package is part of the KDE games module.")
11351 (license (list license:gpl2+ license:fdl1.2+))))
11352
11353 (define-public bovo
11354 (package
11355 (name "bovo")
11356 (version "20.12.0")
11357 (source
11358 (origin
11359 (method url-fetch)
11360 (uri (string-append "mirror://kde/stable/release-service/" version
11361 "/src/bovo-" version ".tar.xz"))
11362 (sha256
11363 (base32 "18qbac366m0xma3ary11q9zxz0wgnysppcl7kpypl6ic3nf61wqz"))))
11364 (build-system qt-build-system)
11365 (native-inputs
11366 `(("extra-cmake-modules" ,extra-cmake-modules)
11367 ("kdoctools" ,kdoctools)))
11368 (inputs
11369 `(("kcompletion" ,kcompletion)
11370 ("kcoreaddons" ,kcoreaddons)
11371 ("kcrash" ,kcrash)
11372 ("kdbusaddons" ,kdbusaddons)
11373 ("ki18n" ,ki18n)
11374 ("kxmlgui" ,kxmlgui)
11375 ("libkdegames" ,libkdegames)
11376 ("qtbase" ,qtbase)
11377 ("qtdeclarative" ,qtdeclarative)
11378 ("qtsvg" ,qtsvg)))
11379 (home-page "https://games.kde.org/")
11380 (synopsis "Classic pen and paper game: five in a line")
11381 (description "Bovo is a Gomoku (from Japanese 五目並べ - lit. \"five
11382 points\") like game for two players, where the opponents alternate in placing
11383 their respective pictogram on the game board. The winner is the first to
11384 complete a line of five markers. (Also known as: Connect Five, Five in a row,
11385 X and O, Naughts and Crosses)
11386
11387 This package is part of the KDE games module.")
11388 (license (list license:gpl2+ license:fdl1.2+))))
11389
11390 (define-public killbots
11391 (package
11392 (name "killbots")
11393 (version "20.12.0")
11394 (source
11395 (origin
11396 (method url-fetch)
11397 (uri (string-append "mirror://kde/stable/release-service/" version
11398 "/src/killbots-" version ".tar.xz"))
11399 (sha256
11400 (base32 "1296gww42nwnai7y6m2qpjqpyc30p7z9chfv5rv0n48jvdhva88y"))))
11401 (build-system qt-build-system)
11402 (native-inputs
11403 `(("extra-cmake-modules" ,extra-cmake-modules)
11404 ("kdoctools" ,kdoctools)))
11405 (inputs
11406 `(("kcompletion" ,kcompletion)
11407 ("kconfig" ,kconfig)
11408 ("kconfigwidgets" ,kconfigwidgets)
11409 ("kcoreaddons" ,kcoreaddons)
11410 ("kcrash" ,kcrash)
11411 ("kdbusaddons" ,kdbusaddons)
11412 ("ki18n" ,ki18n)
11413 ("kwidgetsaddons" ,kwidgetsaddons)
11414 ("kxmlgui" ,kxmlgui)
11415 ("libkdegames" ,libkdegames)
11416 ("qtbase" ,qtbase)
11417 ("qtdeclarative" ,qtdeclarative)))
11418 (home-page "https://games.kde.org/")
11419 (synopsis "Port of the classic BSD console game robots")
11420 (description "Killbots is a simple game of evading killer robots.
11421
11422 Who created the robots and why they have been programmed to destroy, no one
11423 knows. All that is known is that the robots are numerous and their sole
11424 objective is to destroy you. Fortunately for you, their creator has focused
11425 on quantity rather than quality and as a result the robots are severely
11426 lacking in intelligence. Your superior wit and a fancy teleportation device
11427 are your only weapons against the never-ending stream of mindless automatons.
11428
11429 This package is part of the KDE games module.")
11430 (license (list license:gpl2+ license:fdl1.2+))))
11431
11432 (define-public ksnakeduel
11433 (package
11434 (name "ksnakeduel")
11435 (version "20.12.0")
11436 (source
11437 (origin
11438 (method url-fetch)
11439 (uri (string-append "mirror://kde/stable/release-service/" version
11440 "/src/ksnakeduel-" version ".tar.xz"))
11441 (sha256
11442 (base32 "0mp6g258n3xzvgf23jnhkw10xgwqwqdzqfdc6r9jq6a6m8v77swz"))))
11443 (build-system qt-build-system)
11444 (native-inputs
11445 `(("extra-cmake-modules" ,extra-cmake-modules)
11446 ("kdoctools" ,kdoctools)))
11447 (inputs
11448 `(("kcompletion" ,kcompletion)
11449 ("kconfig" ,kconfig)
11450 ("kconfigwidgets" ,kconfigwidgets)
11451 ("kcoreaddons" ,kcoreaddons)
11452 ("kcrash" ,kcrash)
11453 ("kdbusaddons" ,kdbusaddons)
11454 ("kguiaddons" ,kguiaddons)
11455 ("ki18n" ,ki18n)
11456 ("kxmlgui" ,kxmlgui)
11457 ("libkdegames" ,libkdegames)
11458 ("qtbase" ,qtbase)
11459 ("qtdeclarative" ,qtdeclarative)
11460 ("qtsvg" ,qtsvg)))
11461 (home-page "https://games.kde.org/")
11462 (synopsis "Snake race played against the computer")
11463 (description "KSnakeDuel is a fast action game where you steer a snake
11464 which has to eat food. While eating the snake grows. But once a player
11465 collides with the other snake or the wall the game is lost. This becomes of
11466 course more and more difficult the longer the snakes grow.
11467
11468 This package is part of the KDE games module.")
11469 (license (list license:gpl2+ license:fdl1.2+))))
11470
11471 (define-public kollision
11472 (package
11473 (name "kollision")
11474 (version "20.12.0")
11475 (source
11476 (origin
11477 (method url-fetch)
11478 (uri (string-append "mirror://kde/stable/release-service/" version
11479 "/src/kollision-" version ".tar.xz"))
11480 (sha256
11481 (base32 "180ybafizpwjsg80npy0l9142cjsnlyxwv9dz3bq6r8v4smn2g6b"))))
11482 (build-system qt-build-system)
11483 (native-inputs
11484 `(("extra-cmake-modules" ,extra-cmake-modules)
11485 ("kdoctools" ,kdoctools)))
11486 (inputs
11487 `(("kcompletion" ,kcompletion)
11488 ("kconfig" ,kconfig)
11489 ("kcoreaddons" ,kcoreaddons)
11490 ("kcrash" ,kcrash)
11491 ("kdbusaddons" ,kdbusaddons)
11492 ("ki18n" ,ki18n)
11493 ("kwidgetsaddons" ,kwidgetsaddons)
11494 ("kxmlgui" ,kxmlgui)
11495 ("libkdegames" ,libkdegames)
11496 ("qtbase" ,qtbase)
11497 ("qtdeclarative" ,qtdeclarative)))
11498 (home-page "https://games.kde.org/")
11499 (synopsis "Simple ball dodging game")
11500 (description "In Kollision you use mouse to control a small blue ball in a
11501 closed space environment filled with small red balls, which move about
11502 chaotically. Your goal is to avoid touching any of those red balls with your
11503 blue one, because the moment you do the game will be over. The longer you can
11504 stay in game the higher will your score be.
11505
11506 This package is part of the KDE games module.")
11507 (license (list license:gpl2+ license:fdl1.2+))))
11508
11509 (define-public knavalbattle
11510 (package
11511 (name "knavalbattle")
11512 (version "20.12.0")
11513 (source
11514 (origin
11515 (method url-fetch)
11516 (uri (string-append "mirror://kde/stable/release-service/" version
11517 "/src/knavalbattle-" version ".tar.xz"))
11518 (sha256
11519 (base32 "03rqf4avn61b0v340ymmzgp7s0axygjgxq1nlp5aaqbx70zcb4lq"))))
11520 (build-system qt-build-system)
11521 (native-inputs
11522 `(("extra-cmake-modules" ,extra-cmake-modules)
11523 ("kdoctools" ,kdoctools)))
11524 (inputs
11525 `(("kauth" ,kauth)
11526 ("kcompletion" ,kcompletion)
11527 ("kconfig" ,kconfig)
11528 ("kconfigwidgets" ,kconfigwidgets)
11529 ("kcoreaddons" ,kcoreaddons)
11530 ("kcrash" ,kcrash)
11531 ("kdbusaddons" ,kdbusaddons)
11532 ("kdnssd" ,kdnssd)
11533 ("ki18n" ,ki18n)
11534 ("ktextwidgets" ,ktextwidgets)
11535 ("kxmlgui" ,kxmlgui)
11536 ("libkdegames" ,libkdegames)
11537 ("qtbase" ,qtbase)
11538 ("qtdeclarative" ,qtdeclarative)))
11539 (home-page "https://games.kde.org/")
11540 (synopsis "Battleship board game with built-in game server")
11541 (description "KBattleship is a Battle Ship game for KDE.
11542
11543 Ships are placed on a board which represents the sea. Players try to hit each
11544 others ships in turns without knowing where they are placed. The first player
11545 to destroy all ships wins the game.
11546
11547 This package is part of the KDE games module.")
11548 (license (list license:gpl2+ license:fdl1.2+))))
11549
11550 (define-public kreversi
11551 (package
11552 (name "kreversi")
11553 (version "20.08.3")
11554 (source
11555 (origin
11556 (method url-fetch)
11557 (uri (string-append "mirror://kde/stable/release-service/" version
11558 "/src/kreversi-" version ".tar.xz"))
11559 (sha256
11560 (base32 "0d3y072q61xcik9lf0pz0c9njvarwlvf6hqv5fp5jyqaf2902pmi"))))
11561 (build-system qt-build-system)
11562 (native-inputs
11563 `(("extra-cmake-modules" ,extra-cmake-modules)
11564 ("kdoctools" ,kdoctools)))
11565 (inputs
11566 `(("kconfig" ,kconfig)
11567 ("kconfigwidgets" ,kconfigwidgets)
11568 ("kcoreaddons" ,kcoreaddons)
11569 ("kcrash" ,kcrash)
11570 ("kdbusaddons" ,kdbusaddons)
11571 ("kdeclarative" ,kdeclarative)
11572 ("ki18n" ,ki18n)
11573 ("kiconthemes" ,kiconthemes)
11574 ("kio" ,kio)
11575 ("kxmlgui" ,kxmlgui)
11576 ("libkdegames" ,libkdegames)
11577 ("qtbase" ,qtbase)
11578 ("qtdeclarative" ,qtdeclarative)
11579 ("qtsvg" ,qtsvg)))
11580 (home-page "https://games.kde.org/")
11581 (synopsis "Old reversi board game, also known as othello")
11582 (description "KReversi is a simple one player strategy game played
11583 against the computer.
11584
11585 If a player's piece is captured by an opposing player, that piece is turned
11586 over to reveal the color of that player. A winner is declared when one player
11587 has more pieces of his own color on the board and there are no more possible
11588 moves.
11589
11590 This package is part of the KDE games module.")
11591 (license (list license:gpl2+ license:fdl1.2+))))
11592
11593 (define-public ksquares
11594 (package
11595 (name "ksquares")
11596 (version "20.12.0")
11597 (source
11598 (origin
11599 (method url-fetch)
11600 (uri (string-append "mirror://kde/stable/release-service/" version
11601 "/src/ksquares-" version ".tar.xz"))
11602 (sha256
11603 (base32 "0chd30byl2kww1k699vkygrxq2wdyvi84m2bimk23q96fl8h831y"))))
11604 (build-system qt-build-system)
11605 (native-inputs
11606 `(("extra-cmake-modules" ,extra-cmake-modules)
11607 ("kdoctools" ,kdoctools)))
11608 (inputs
11609 `(("kcompletion" ,kcompletion)
11610 ("kconfig" ,kconfig)
11611 ("kconfigwidgets" ,kconfigwidgets)
11612 ("kcoreaddons" ,kcoreaddons)
11613 ("kcrash" ,kcrash)
11614 ("kdbusaddons" ,kdbusaddons)
11615 ("ki18n" ,ki18n)
11616 ("kwidgetsaddons" ,kwidgetsaddons)
11617 ("kxmlgui" ,kxmlgui)
11618 ("libkdegames" ,libkdegames)
11619 ("qtbase" ,qtbase)
11620 ("qtdeclarative" ,qtdeclarative)))
11621 (home-page "https://games.kde.org/")
11622 (synopsis "Dots and Boxes game")
11623 (description "KSquares is an implementation of the popular paper based
11624 game Squares. Two players take turns connecting dots on a grid to complete
11625 squares, the player with the most squares wins.
11626
11627 This package is part of the KDE games module.")
11628 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
11629
11630 (define-public kjumpingcube
11631 (package
11632 (name "kjumpingcube")
11633 (version "20.12.0")
11634 (source
11635 (origin
11636 (method url-fetch)
11637 (uri (string-append "mirror://kde/stable/release-service/" version
11638 "/src/kjumpingcube-" version ".tar.xz"))
11639 (sha256
11640 (base32 "1mk73il4jh15z5pm3fp65hsyvmrga11c3h7w96yamy2n2bbniapq"))))
11641 (build-system qt-build-system)
11642 (native-inputs
11643 `(("extra-cmake-modules" ,extra-cmake-modules)
11644 ("kdoctools" ,kdoctools)))
11645 (inputs
11646 `(("kconfig" ,kconfig)
11647 ("kconfigwidgets" ,kconfigwidgets)
11648 ("kcoreaddons" ,kcoreaddons)
11649 ("kcrash" ,kcrash)
11650 ("kdbusaddons" ,kdbusaddons)
11651 ("ki18n" ,ki18n)
11652 ("kio" ,kio)
11653 ("kwidgetsaddons" ,kwidgetsaddons)
11654 ("kxmlgui" ,kxmlgui)
11655 ("libkdegames" ,libkdegames)
11656 ("qtbase" ,qtbase)
11657 ("qtdeclarative" ,qtdeclarative)
11658 ("qtsvg" ,qtsvg)))
11659 (home-page "https://games.kde.org/")
11660 (synopsis "Simple tactical game for number-crunchers")
11661 (description "KJumpingcube is a simple tactical game for one or two
11662 players, played on a grid of numbered squares. Each turn, players compete for
11663 control of the board by capturing or adding to one square.
11664
11665 This package is part of the KDE games module.")
11666 (license (list license:gpl2+ license:fdl1.2+))))
11667
11668 (define-public xmoto
11669 (package
11670 (name "xmoto")
11671 (version "0.6.1")
11672 (source
11673 (origin
11674 (method git-fetch)
11675 (uri (git-reference
11676 (url "https://github.com/xmoto/xmoto")
11677 (commit version)))
11678 (file-name (git-file-name name version))
11679 (sha256
11680 (base32 "00f5ha79lfa2iiaz66wl0hl5dapa1l15qdr7m7knzi0ll7j6z66n"))
11681 (modules '((guix build utils)
11682 (ice-9 ftw)
11683 (srfi srfi-1)))
11684 ;; XXX: Remove some bundled libraries. Guix provides Chipmunk, but
11685 ;; it appears to be incompatible with the (older) one bundled.
11686 (snippet
11687 `(begin
11688 (let ((keep '("chipmunk" "glad" "md5sum")))
11689 (with-directory-excursion "vendor"
11690 (for-each delete-file-recursively
11691 (lset-difference string=?
11692 (scandir ".")
11693 (cons* "." ".." keep))))
11694 (substitute* "src/CMakeLists.txt"
11695 (("add_subdirectory\\(.*?/vendor/(.+?)\".*" line library)
11696 (if (member library keep) line ""))))
11697 #t))))
11698 (build-system cmake-build-system)
11699 (arguments
11700 `(#:tests? #f ;no test
11701 #:phases
11702 (modify-phases %standard-phases
11703 (add-after 'unpack 'fix-hard-coded-directory
11704 (lambda* (#:key outputs #:allow-other-keys)
11705 (substitute* "src/common/VFileIO.cpp"
11706 (("/usr/share")
11707 (string-append (assoc-ref outputs "out") "/share")))
11708 #t))
11709 (add-before 'build 'set-SDL
11710 ;; Set correct environment for SDL.
11711 (lambda* (#:key inputs #:allow-other-keys)
11712 (setenv "CPATH"
11713 (string-append
11714 (assoc-ref inputs "sdl") "/include/SDL:"
11715 (or (getenv "CPATH") "")))
11716 #t))
11717 (add-after 'install 'unbundle-fonts
11718 ;; Unbundle DejaVuSans TTF files.
11719 (lambda* (#:key outputs inputs #:allow-other-keys)
11720 (let ((font-dir (string-append (assoc-ref inputs "font-dejavu")
11721 "/share/fonts/truetype/"))
11722 (target-dir (string-append (assoc-ref outputs "out")
11723 "/share/xmoto/Textures/Fonts/")))
11724 (for-each (lambda (f)
11725 (let ((font (string-append font-dir f))
11726 (target (string-append target-dir f)))
11727 (delete-file target)
11728 (symlink font target)))
11729 '("DejaVuSans.ttf" "DejaVuSansMono.ttf"))
11730 #t))))))
11731 (native-inputs
11732 `(("gettext" ,gettext-minimal)
11733 ("pkg-config" ,pkg-config)))
11734 (inputs
11735 `(("bzip2" ,bzip2)
11736 ("curl" ,curl)
11737 ("font-dejavu" ,font-dejavu)
11738 ("glu" ,glu)
11739 ("libjpeg" ,libjpeg-turbo)
11740 ("libpng" ,libpng)
11741 ("libxdg-basedir" ,libxdg-basedir)
11742 ("libxml2" ,libxml2)
11743 ("lua" ,lua-5.1)
11744 ("ode" ,ode)
11745 ("sdl" ,(sdl-union (list sdl sdl-mixer sdl-net sdl-ttf)))
11746 ("sqlite" ,sqlite)
11747 ("zlib" ,zlib)))
11748 (home-page "https://xmoto.tuxfamily.org/")
11749 (synopsis "2D motocross platform game")
11750 (description
11751 "X-Moto is a challenging 2D motocross platform game, where
11752 physics play an all important role in the gameplay. You need to
11753 control your bike to its limit, if you want to have a chance finishing
11754 the more difficult challenges.")
11755 (license (list license:gpl2+ ;whole project
11756 license:bsd-3 ;vendor/md5sum
11757 license:lgpl2.1+
11758 license:expat))))
11759
11760 (define-public eboard
11761 (package
11762 (name "eboard")
11763 (version "1.1.3")
11764 (source
11765 (origin
11766 (method git-fetch)
11767 (uri (git-reference
11768 (url "https://github.com/fbergo/eboard")
11769 (commit (string-append "v" version))))
11770 (file-name (git-file-name name version))
11771 (sha256
11772 (base32 "1z4pwpqyvxhlda99h6arh2rjk90fbms9q29fqizjblrdn01dlxn1"))))
11773 (build-system gnu-build-system)
11774 (native-inputs
11775 `(("perl" ,perl)
11776 ("pkg-config" ,pkg-config)))
11777 (inputs
11778 `(("gtk+" ,gtk+-2)
11779 ("libpng" ,libpng)
11780 ("gstreamer" ,gstreamer)))
11781 (arguments
11782 `(#:tests? #f
11783 #:phases
11784 (modify-phases %standard-phases
11785 (replace 'configure
11786 (lambda* (#:key outputs #:allow-other-keys)
11787 (make-file-writable "eboard-config")
11788 (setenv "CC" "gcc")
11789 (invoke "./configure"
11790 (string-append "--prefix=" (assoc-ref outputs "out")))
11791 #t))
11792 (add-before 'install 'make-required-directories
11793 (lambda* (#:key outputs #:allow-other-keys)
11794 (mkdir-p (string-append (assoc-ref outputs "out")
11795 "/share/eboard"))
11796 #t)))))
11797 (synopsis "Graphical user interface to play chess")
11798 (description
11799 "Eboard is a chess board interface for ICS (Internet Chess Servers)
11800 and chess engines.")
11801 (home-page "https://www.bergo.eng.br/eboard/")
11802 (license license:gpl2+)))
11803
11804 (define-public chessx
11805 (package
11806 (name "chessx")
11807 (version "1.5.6")
11808 (source
11809 (origin
11810 (method url-fetch)
11811 (uri (string-append "mirror://sourceforge/chessx/chessx/"
11812 version "/chessx-" version ".tgz"))
11813 (sha256
11814 (base32 "01fjchil2h6ry2ywr0dwjw2g7zd29580cr4c74d5z74h999lp6nh"))))
11815 (build-system qt-build-system)
11816 (native-inputs
11817 `(("qttools" ,qttools)))
11818 (inputs
11819 `(("qtbase" ,qtbase)
11820 ("qtmultimedia" ,qtmultimedia)
11821 ("qtspeech" ,qtspeech)
11822 ("qtsvg" ,qtsvg)
11823 ("zlib" ,zlib)))
11824 (arguments
11825 `(#:tests? #f
11826 #:phases
11827 (modify-phases %standard-phases
11828 (add-after 'unpack 'fix-paths
11829 (lambda* (#:key inputs #:allow-other-keys)
11830 (substitute* "chessx.pro"
11831 (("\\$\\$\\[QT_INSTALL_BINS\\]/lrelease")
11832 (string-append (assoc-ref inputs "qttools") "/bin/lrelease")))
11833 #t))
11834 (add-after 'fix-paths 'make-qt-deterministic
11835 (lambda _
11836 (setenv "QT_RCC_SOURCE_DATE_OVERRIDE" "1")
11837 #t))
11838 (replace 'configure
11839 (lambda _
11840 (invoke "qmake")
11841 #t))
11842 (replace 'install
11843 (lambda* (#:key outputs #:allow-other-keys)
11844 (let ((out (assoc-ref outputs "out")))
11845 (install-file "release/chessx" (string-append out "/bin"))
11846 (install-file "unix/chessx.desktop"
11847 (string-append out "/share/applications")))
11848 #t)))))
11849 (synopsis "Chess game database")
11850 (description
11851 "ChessX is a chess database. With ChessX you can operate on your
11852 collection of chess games in many ways: browse, edit, add, organize, analyze,
11853 etc. You can also play games on FICS or against an engine.")
11854 (home-page "http://chessx.sourceforge.net/")
11855 (license license:gpl2+)))
11856
11857 (define-public stockfish
11858 (package
11859 (name "stockfish")
11860 (version "13")
11861 (source
11862 (origin
11863 (method git-fetch)
11864 (uri (git-reference
11865 (url "https://github.com/official-stockfish/Stockfish")
11866 (commit (string-append "sf_" version))))
11867 (file-name (git-file-name name version))
11868 (sha256
11869 (base32 "15dfp9fnl3w7dgxhqmsm461amsysn646rj1arnzvwhy2i6ijhg2m"))))
11870 (build-system gnu-build-system)
11871 (inputs
11872 `(("neural-network"
11873 ,(origin
11874 (method url-fetch)
11875 (uri "https://tests.stockfishchess.org/api/nn/nn-62ef826d1a6d.nnue")
11876 (sha256
11877 (base32 "0qsy9rr4zgxrpgwhwbi96z01a2560am2b00q2klbj4bd39nq5vv2"))))))
11878 (arguments
11879 `(#:tests? #f
11880 #:make-flags (list "-C" "src"
11881 "build"
11882 (string-append "PREFIX="
11883 (assoc-ref %outputs "out"))
11884 (string-append "ARCH="
11885 ,(match (%current-system)
11886 ("x86_64-linux" "x86-64")
11887 ("i686-linux" "x86-32")
11888 ("aarch64-linux" "general-64")
11889 ("armhf-linux" "armv7")
11890 ("mips64el-linux" "general-64")
11891 (_ "general-32"))))
11892 #:phases (modify-phases %standard-phases
11893 (delete 'configure)
11894 ;; The official neural network file is needed for building
11895 ;; and is embedded in the resulting binary.
11896 (add-after 'unpack 'copy-net
11897 (lambda* (#:key inputs #:allow-other-keys)
11898 (copy-file (assoc-ref inputs "neural-network")
11899 "src/nn-62ef826d1a6d.nnue")
11900 #t)))))
11901 (synopsis "Strong chess engine")
11902 (description
11903 "Stockfish is a very strong chess engine. It is much stronger than the
11904 best human chess grandmasters. It can be used with UCI-compatible GUIs like
11905 ChessX.")
11906 (home-page "https://stockfishchess.org/")
11907 (license license:gpl3+)))
11908
11909 (define-public barrage
11910 (package
11911 (name "barrage")
11912 (version "1.0.5")
11913 (source
11914 (origin
11915 (method url-fetch)
11916 (uri (string-append "mirror://sourceforge/lgames/barrage/"
11917 "barrage-" version ".tar.gz"))
11918 (sha256
11919 (base32 "0139wxyrir10cbkvkjn548xgmp84wax8mfwk80yxbxlcdamrg257"))))
11920 (build-system gnu-build-system)
11921 (inputs
11922 `(("hicolor-icon-theme" ,hicolor-icon-theme)
11923 ("sdl" ,sdl)
11924 ("sdl-mixer" ,sdl-mixer)))
11925 (arguments
11926 `(#:configure-flags
11927 (list
11928 (string-append "CFLAGS="
11929 "-I" (assoc-ref %build-inputs "sdl-mixer")
11930 "/include/SDL"))))
11931 (home-page "http://lgames.sourceforge.net/Barrage/")
11932 (synopsis "Violent point-and-click shooting game with nice effects")
11933 (description
11934 "Barrage is a rather destructive action game that puts you on a shooting
11935 range with the objective to hit as many dummy targets as possible within
11936 3 minutes. You control a gun that may either fire small or large grenades at
11937 soldiers, jeeps and tanks. The gameplay is simple but it is not that easy to
11938 get high scores.")
11939 (license license:gpl2+)))
11940
11941 (define-public burgerspace
11942 (package
11943 (name "burgerspace")
11944 (version "1.9.3")
11945 (source
11946 (origin
11947 (method url-fetch)
11948 (uri (string-append "http://perso.b2b2c.ca/~sarrazip/dev/"
11949 "burgerspace-" version ".tar.gz"))
11950 (sha256
11951 (base32 "1005a04rbn4lzjrpfg0m394k2mfaji63fm2qhdqdsxila8a6kjbv"))))
11952 (build-system gnu-build-system)
11953 (native-inputs
11954 `(("pkg-config" ,pkg-config)))
11955 (inputs
11956 `(("flatzebra" ,flatzebra)))
11957 (home-page "http://perso.b2b2c.ca/~sarrazip/dev/burgerspace.html")
11958 (synopsis "Avoid evil foodstuffs and make burgers")
11959 (description
11960 "This is a clone of the classic game BurgerTime. In it, you play
11961 the part of a chef who must create burgers by stepping repeatedly on
11962 the ingredients until they fall into place. And to make things more
11963 complicated, you also must avoid evil animate food items while
11964 performing this task, with nothing but your trusty pepper shaker to
11965 protect you.")
11966 (license license:gpl2+)))
11967
11968 (define-public 7kaa
11969 (package
11970 (name "7kaa")
11971 (version "2.15.4p1")
11972 (source
11973 (origin
11974 (method url-fetch)
11975 (uri (string-append "https://github.com/the3dfxdude/7kaa/"
11976 "releases/download/v" version "/"
11977 "7kaa-" version ".tar.xz"))
11978 (sha256
11979 (base32 "1y7v0jhp3apb619p7asikqr1dnwb2yxbh40wbx1ppmr5f03mq9ph"))))
11980 (build-system gnu-build-system)
11981 (native-inputs
11982 `(("gettext" ,gettext-minimal)
11983 ("pkg-config" ,pkg-config)))
11984 (inputs
11985 `(("curl" ,curl)
11986 ("enet" ,enet)
11987 ("openal" ,openal)
11988 ("sdl2" ,sdl2)))
11989 (home-page "https://7kfans.com/")
11990 (synopsis "Seven Kingdoms Ancient Adversaries: real-time strategy game")
11991 (description
11992 "Seven Kingdoms, designed by Trevor Chan, brings a blend of Real-Time
11993 Strategy with the addition of trade, diplomacy, and espionage. The game
11994 enables players to compete against up to six other kingdoms allowing players
11995 to conquer opponents by defeating them in war (with troops or machines),
11996 capturing their buildings with spies, or offering opponents money for their
11997 kingdom.")
11998 (license license:gpl2+)))
11999
12000 (define-public neverball
12001 ;; Git version is 6-years younger than latest release.
12002 (let ((commit "760a25d32a5fb0661b99426d4ddcb9ac9f3d1644")
12003 (revision "1"))
12004 (package
12005 (name "neverball")
12006 (version (git-version "1.6.0" revision commit))
12007 (source
12008 (origin
12009 (method git-fetch)
12010 (uri (git-reference
12011 (url "https://github.com/Neverball/neverball")
12012 (commit commit)))
12013 (sha256
12014 (base32
12015 "0bwh67df3lyf33bv710y25l3frjdd34j9b7gsjadwxviz6r1vpj5"))
12016 (file-name (git-file-name name version))
12017 (modules '((guix build utils)))
12018 (snippet
12019 '(begin
12020 ;; Octocat seems to be non-free. Oddly, Debian doesn't strip it.
12021 (delete-file-recursively "data/ball/octocat")
12022 #t))))
12023 (build-system copy-build-system)
12024 (arguments
12025 `(#:install-plan
12026 '(("neverball" "bin/")
12027 ("neverputt" "bin/")
12028 ("mapc" "bin/")
12029 ("data" "share/games/neverball/")
12030 ("locale" "share/")
12031 ("dist/" "share/games/neverball" #:include ("neverball_replay.png"
12032 "neverlogos.svg"
12033 "svg readme.txt"))
12034 ("dist/" "share/applications" #:include ("neverball.desktop"
12035 "neverputt.desktop"))
12036 ("dist/neverball_16.png"
12037 "/share/icons/hicolor/16x16/apps/neverball.png")
12038 ("dist/neverball_24.png"
12039 "/share/icons/hicolor/24x24/apps/neverball.png")
12040 ("dist/neverball_32.png"
12041 "/share/icons/hicolor/32x32/apps/neverball.png")
12042 ("dist/neverball_48.png"
12043 "/share/icons/hicolor/48x48/apps/neverball.png")
12044 ("dist/neverball_64.png"
12045 "/share/icons/hicolor/64x64/apps/neverball.png")
12046 ("dist/neverball_128.png"
12047 "/share/icons/hicolor/128x128/apps/neverball.png")
12048 ("dist/neverball_256.png"
12049 "/share/icons/hicolor/256x256/apps/neverball.png")
12050 ("dist/neverball_512.png"
12051 "/share/icons/hicolor/512x512/apps/neverball.png")
12052 ("dist/neverputt_16.png"
12053 "/share/icons/hicolor/16x16/apps/neverputt.png")
12054 ("dist/neverputt_24.png"
12055 "/share/icons/hicolor/24x24/apps/neverputt.png")
12056 ("dist/neverputt_32.png"
12057 "/share/icons/hicolor/32x32/apps/neverputt.png")
12058 ("dist/neverputt_48.png"
12059 "/share/icons/hicolor/48x48/apps/neverputt.png")
12060 ("dist/neverputt_64.png"
12061 "/share/icons/hicolor/64x64/apps/neverputt.png")
12062 ("dist/neverputt_128.png"
12063 "/share/icons/hicolor/128x128/apps/neverputt.png")
12064 ("dist/neverputt_256.png"
12065 "/share/icons/hicolor/256x256/apps/neverputt.png")
12066 ("dist/neverputt_512.png"
12067 "/share/icons/hicolor/512x512/apps/neverputt.png")
12068 ("dist/" "share/man/man1" #:include ("mapc.1"))
12069 ("dist/" "share/man/man6" #:include ("neverball.6" "neverputt.6"))
12070 ("doc/" "share/doc/neverball")
12071 ("README.md" "share/doc/neverball/"))
12072 #:phases
12073 (modify-phases %standard-phases
12074 (add-before 'install 'build
12075 (lambda* (#:key inputs outputs #:allow-other-keys)
12076 (let* ((out (assoc-ref outputs "out"))
12077 (sdl (assoc-ref inputs "sdl")))
12078 (invoke "make" "-j" (number->string (parallel-job-count))
12079 "--environment-overrides"
12080 "CC=gcc" "BUILD=release"
12081 (string-append "DATADIR="
12082 out
12083 "/share/games/neverball/data")
12084 (string-append "LOCALEDIR=" out "/share/locale")
12085 (string-append "SDL_CPPFLAGS=-I"
12086 sdl
12087 "/include/SDL2/")))
12088 #t))
12089 (add-after 'install 'fix-some-broken-fonts
12090 (lambda* (#:key outputs #:allow-other-keys)
12091 (let* ((out (assoc-ref outputs "out")))
12092 (wrap-program (string-append out "/bin/neverball")
12093 `("LANG" = ("en_US.utf8")))
12094 (wrap-program (string-append out "/bin/neverputt")
12095 `("LANG" = ("en_US.utf8"))))
12096 #t)))))
12097 (native-inputs
12098 `(("gettext" ,gettext-minimal))) ;for msgfmt
12099 (inputs
12100 `(("libjpeg" ,libjpeg-turbo)
12101 ("libpng" ,libpng)
12102 ("libvorbis" ,libvorbis)
12103 ("physfs" ,physfs)
12104 ("sdl" ,(sdl-union (list sdl2 sdl2-ttf)))))
12105 (home-page "https://neverball.org/")
12106 (synopsis "3D floor-tilting game")
12107 (description
12108 "In the grand tradition of Marble Madness and Super Monkey Ball,
12109 Neverball has you guide a rolling ball through dangerous territory. Balance
12110 on narrow bridges, navigate mazes, ride moving platforms, and dodge pushers
12111 and shovers to get to the goal. Race against the clock to collect coins to
12112 earn extra balls. Also included is Neverputt, which is a 3D miniature golf
12113 game.") ;thanks to Debian for description
12114 (license license:gpl2+))))
12115
12116 (define-public pokerth
12117 (package
12118 (name "pokerth")
12119 (version "1.1.2")
12120 (source
12121 (origin
12122 (method url-fetch)
12123 (uri (string-append "mirror://sourceforge/pokerth/pokerth/"
12124 version "/pokerth-" version ".tar.gz"))
12125 (sha256
12126 (base32 "0yi9bj3k8yc1gkwmaf14zbbvvn13n54n1dli8k6j1pkph3p3vjq2"))
12127 (modules '((guix build utils)))
12128 (snippet
12129 '(begin
12130 ;; Remove bundled websocketpp.
12131 (delete-file-recursively "src/third_party/websocketpp")
12132 (substitute* "pokerth_lib.pro"
12133 (("src/third_party/websocketpp")
12134 ""))
12135 #t))))
12136 (build-system qt-build-system)
12137 (inputs
12138 `(("boost" ,boost)
12139 ("curl" ,curl)
12140 ("gsasl" ,gsasl)
12141 ("libgcrypt" ,libgcrypt)
12142 ("libircclient" ,libircclient)
12143 ("protobuf" ,protobuf-2) ; remove package when no longer needed
12144 ("qtbase" ,qtbase)
12145 ("sdl" ,(sdl-union (list sdl sdl-mixer)))
12146 ("sqlite" ,sqlite)
12147 ("tinyxml" ,tinyxml)
12148 ("websocketpp" ,websocketpp)
12149 ("zlib" ,zlib)))
12150 (arguments
12151 `(#:tests? #f ; No test suite
12152 #:phases
12153 (modify-phases %standard-phases
12154 (add-after 'unpack 'fix-paths
12155 (lambda* (#:key inputs #:allow-other-keys)
12156 (substitute* (find-files "." "\\.pro$")
12157 (("/opt/gsasl")
12158 (assoc-ref inputs "gsasl"))
12159 (("\\$\\$\\{PREFIX\\}/include/libircclient")
12160 (string-append (assoc-ref inputs "libircclient")
12161 "/include/libircclient"))
12162 (("LIB_DIRS =")
12163 (string-append "LIB_DIRS = "
12164 (assoc-ref inputs "boost") "/lib")))
12165 #t))
12166 (add-after 'unpack 'fix-build
12167 (lambda _
12168 ;; Fixes for Boost versions >= 1.66.
12169 (substitute* '("src/net/common/clientthread.cpp"
12170 "src/net/serveraccepthelper.h")
12171 (("boost::asio::socket_base::non_blocking_io command\\(true\\);")
12172 "")
12173 (("newSock->io_control\\(command\\);")
12174 "newSock->non_blocking(true);")
12175 (("acceptedSocket->io_control\\(command\\);")
12176 "acceptedSocket->non_blocking(true);"))
12177 #t))
12178 (replace 'configure
12179 (lambda* (#:key outputs #:allow-other-keys)
12180 (invoke "qmake" "pokerth.pro" "CONFIG+=client"
12181 (string-append "PREFIX=" (assoc-ref outputs "out"))))))))
12182 (home-page "https://www.pokerth.net")
12183 (synopsis "Texas holdem poker game")
12184 (description
12185 "With PokerTH you can play the Texas holdem poker game, either against
12186 computer opponents or against real players online.")
12187 (license license:agpl3+)))
12188
12189 (define-public azimuth
12190 (package
12191 (name "azimuth")
12192 ;; Not marked as latest release, but it fixes a compiling issue
12193 ;; and adds the install target.
12194 (version "1.0.3")
12195 (source
12196 (origin
12197 (method git-fetch)
12198 (uri (git-reference
12199 (url "https://github.com/mdsteele/azimuth")
12200 (commit (string-append "v" version))))
12201 (file-name (git-file-name name version))
12202 (sha256
12203 (base32
12204 "1znfvpmqiixd977jv748glk5zc4cmhw5813zp81waj07r9b0828r"))))
12205 (build-system gnu-build-system)
12206 (arguments
12207 `(#:test-target "test"
12208 #:phases
12209 (modify-phases %standard-phases
12210 (delete 'configure) ; no configure script
12211 ;; Build release version instead of debug version.
12212 (add-after 'unpack 'set-release
12213 (lambda _
12214 (setenv "BUILDTYPE" "release") #t))
12215 (add-after 'unpack 'fix-install ; set install directory
12216 (lambda* (#:key outputs #:allow-other-keys)
12217 (substitute* "Makefile" (("/usr") (assoc-ref outputs "out"))) #t)))))
12218 (inputs `(("sdl" ,sdl)))
12219 (home-page "https://mdsteele.games/azimuth/")
12220 (synopsis "Metroidvania game with vector graphics")
12221 (description
12222 "Pilot your ship inside a planet to find and rescue the colonists trapped
12223 inside the Zenith Colony.")
12224 (license license:gpl3+)))
12225
12226 (define-public cgoban
12227 (package
12228 (name "cgoban")
12229 (version "1.9.14")
12230 (source
12231 (origin
12232 (method url-fetch)
12233 (uri (string-append "mirror://sourceforge/cgoban1/cgoban1/"
12234 version "/cgoban-" version ".tar.gz"))
12235 (sha256
12236 (base32 "0qlvkiaglqq0izfph3l04mp4rqqqm9ks6rcsrmzrggw9x706z2iv"))))
12237 (build-system gnu-build-system)
12238 (inputs
12239 `(("libx11" ,libx11)
12240 ("libxt" ,libxt)
12241 ("xorgproto" ,xorgproto)))
12242 (home-page "http://cgoban1.sourceforge.net/")
12243 (synopsis "Go client for X11")
12244 (description "Provides a large set of Go-related services for X11:
12245 @itemize
12246 @item Local games with precise implementation of the Chinese and Japanese rulesets
12247 @item Edition and visualization of SGF files-Connection to the NNGS or IGS Go servers
12248 @item Bridge to Go modem protocol, allowing to play against Go modem-capable AIs
12249 such as GnuGo.
12250 @end itemize")
12251 (license license:gpl2+)))
12252
12253 (define-public passage
12254 (package
12255 (name "passage")
12256 (version "4")
12257 (source
12258 (origin
12259 (method url-fetch)
12260 (uri (string-append "mirror://sourceforge/hcsoftware/Passage/v"
12261 version "/Passage_v" version "_UnixSource.tar.gz"))
12262 (sha256
12263 (base32 "02ky4a4xdjvr71r58339jjrjyz76b5skcnbq4f8707mrln9vhby3"))))
12264 (build-system gnu-build-system)
12265 (arguments
12266 `(#:tests? #false ; there are none
12267 #:phases
12268 (modify-phases %standard-phases
12269 (add-after 'unpack 'chdir
12270 (lambda _
12271 (chdir "gamma256/gameSource")
12272 (system "cat Makefile.GnuLinux Makefile.all > Makefile")))
12273 (replace 'configure
12274 (lambda* (#:key outputs inputs #:allow-other-keys)
12275 (setenv "CPATH"
12276 (string-append
12277 (assoc-ref inputs "sdl") "/include/SDL:"
12278 (or (getenv "CPATH") "")))
12279 (let* ((out (assoc-ref outputs "out"))
12280 (assets (string-append out "/share/passage")))
12281 (substitute* "common.cpp"
12282 (("readTGA\\( \"graphics\"")
12283 (format #false "readTGA(\"~a/graphics\"" assets)))
12284 (substitute* "musicPlayer.cpp"
12285 (("readTGA\\( \"music\"")
12286 (format #false "readTGA(\"~a/music\"" assets))))))
12287 (replace 'install
12288 (lambda* (#:key outputs #:allow-other-keys)
12289 (let* ((out (assoc-ref outputs "out"))
12290 (bin (string-append out "/bin"))
12291 (assets (string-append out "/share/passage/")))
12292 (install-file "Passage" bin)
12293 (install-file "../documentation/Readme.txt" assets)
12294 (copy-recursively "graphics" (string-append assets "graphics"))
12295 (copy-recursively "music" (string-append assets "music"))
12296 (copy-recursively "settings" (string-append assets "settings"))))))))
12297 (inputs
12298 `(("sdl" ,(sdl-union (list sdl sdl-mixer)))))
12299 (native-inputs
12300 `(("imagemagick" ,imagemagick)))
12301 (home-page "http://hcsoftware.sourceforge.net/passage/")
12302 (synopsis "Memento mori game")
12303 (description
12304 "Passage is meant to be a memento mori game. It presents an entire life,
12305 from young adulthood through old age and death, in the span of five minutes.
12306 Of course, it's a game, not a painting or a film, so the choices that you make
12307 as the player are crucial. There's no ``right'' way to play Passage, just as
12308 there's no right way to interpret it.")
12309 (license license:public-domain)))
12310
12311 (define-public paperview
12312 (let ((commit "9f8538eb6734c76877b878b8f1e52587f2ae19e6")
12313 (revision "1"))
12314 (package
12315 (name "paperview")
12316 (version (git-version "0.0.1" revision commit)) ;no upstream release
12317 (source (origin
12318 (method git-fetch)
12319 (uri (git-reference
12320 (url "https://github.com/glouw/paperview")
12321 (commit commit)))
12322 (file-name (git-file-name name version))
12323 (sha256
12324 (base32
12325 "09sb9sg44fvkgfdyycrm1ndpx7cnkrglxhci41y8f3gpagnvi7jk"))))
12326 (build-system gnu-build-system)
12327 (inputs
12328 `(("sdl2" ,sdl2)))
12329 (arguments
12330 '(#:tests? #f ;no tests
12331 #:make-flags
12332 (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
12333 #:phases
12334 (modify-phases %standard-phases
12335 (delete 'configure))))
12336 (home-page "https://github.com/glouw/paperview/")
12337 (synopsis "High performance X11 animated wallpaper setter")
12338 (description "High performance animated desktop background setter for
12339 X11 that won't set your CPU on fire, drain your laptop battery, or lower video
12340 game FPS.")
12341 (license license:unlicense))))
12342
12343 (define-public curseofwar
12344 (package
12345 (name "curseofwar")
12346 (version "1.3.0")
12347 (source
12348 (origin
12349 (method git-fetch)
12350 (uri (git-reference
12351 (url "https://github.com/a-nikolaev/curseofwar")
12352 (commit (string-append "v" version))))
12353 (file-name (git-file-name name version))
12354 (sha256
12355 (base32 "1wd71wdnj9izg5d95m81yx3684g4zdi7fsy0j5wwnbd9j34ilz1i"))))
12356 (build-system gnu-build-system)
12357 (arguments
12358 `(#:tests? #f ; no tests
12359 #:make-flags
12360 (list (string-append "CC=" ,(cc-for-target))
12361 (string-append "PREFIX=" (assoc-ref %outputs "out")))
12362 #:phases
12363 (modify-phases %standard-phases
12364 (delete 'configure))))
12365 (inputs `(("ncurses" ,ncurses)))
12366 (home-page "https://a-nikolaev.github.io/curseofwar/")
12367 (synopsis "Fast-paced action strategy game")
12368 (description "Curse of War is a fast-paced action strategy game originally
12369 implemented using ncurses user interface. An SDL graphical version is also
12370 available.")
12371 (license license:gpl3+)))