gnu: Add solarus-quest-editor.
[jackhill/guix/guix.git] / gnu / packages / games.scm
1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2013 John Darrington <jmd@gnu.org>
3 ;;; Copyright © 2013 Nikita Karetnikov <nikita@karetnikov.org>
4 ;;; Copyright © 2014, 2016 David Thompson <dthompson2@worcester.edu>
5 ;;; Copyright © 2014, 2015, 2016, 2017, 2018, 2019, 2020 Eric Bavier <bavier@posteo.net>
6 ;;; Copyright © 2014 Cyrill Schenkel <cyrill.schenkel@gmail.com>
7 ;;; Copyright © 2014 Sylvain Beucler <beuc@beuc.net>
8 ;;; Copyright © 2014, 2015, 2018, 2019 Ludovic Courtès <ludo@gnu.org>
9 ;;; Copyright © 2014, 2015, 2016 Sou Bunnbu <iyzsong@gmail.com>
10 ;;; Copyright © 2014, 2015, 2019 Mark H Weaver <mhw@netris.org>
11 ;;; Copyright © 2015, 2016 Andreas Enge <andreas@enge.fr>
12 ;;; Copyright © 2015 David Hashe <david.hashe@dhashe.com>
13 ;;; Copyright © 2015, 2017, 2018 Christopher Lemmer Webber <cwebber@dustycloud.org>
14 ;;; Copyright © 2015, 2016, 2017, 2018, 2019 Ricardo Wurmus <rekado@elephly.net>
15 ;;; Copyright © 2015, 2016, 2017 Alex Kost <alezost@gmail.com>
16 ;;; Copyright © 2015 Paul van der Walt <paul@denknerd.org>
17 ;;; Copyright © 2016, 2017 Rodger Fox <thylakoid@openmailbox.org>
18 ;;; Copyright © 2016, 2017, 2018 Nikita <nikita@n0.is>
19 ;;; Copyright © 2016 Albin Söderqvist <albin@fripost.org>
20 ;;; Copyright © 2016, 2017, 2018, 2019, 2020 Kei Kebreau <kkebreau@posteo.net>
21 ;;; Copyright © 2016 Alex Griffin <a@ajgrf.com>
22 ;;; Copyright © 2016, 2017, 2018, 2019, 2020 Efraim Flashner <efraim@flashner.co.il>
23 ;;; Copyright © 2016 Jan Nieuwenhuizen <janneke@gnu.org>
24 ;;; Copyright © 2016 Steve Webber <webber.sl@gmail.com>
25 ;;; Copyright © 2017 Adonay "adfeno" Felipe Nogueira <https://libreplanet.org/wiki/User:Adfeno> <adfeno@hyperbola.info>
26 ;;; Copyright © 2017, 2018, 2020 Arun Isaac <arunisaac@systemreboot.net>
27 ;;; Copyright © 2017–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 Michael Rohleder <mike@rohleder.de>
55 ;;; Copyright © 2020 Trevor Hass <thass@okstate.edu>
56 ;;; Copyright © 2020 Leo Prikler <leo.prikler@student.tugraz.at>
57 ;;; Copyright © 2020 Lu hux <luhux@outlook.com>
58 ;;; Copyright © 2020 Tomás Ortín Fernández <tomasortin@mailbox.org>
59 ;;;
60 ;;; This file is part of GNU Guix.
61 ;;;
62 ;;; GNU Guix is free software; you can redistribute it and/or modify it
63 ;;; under the terms of the GNU General Public License as published by
64 ;;; the Free Software Foundation; either version 3 of the License, or (at
65 ;;; your option) any later version.
66 ;;;
67 ;;; GNU Guix is distributed in the hope that it will be useful, but
68 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
69 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
70 ;;; GNU General Public License for more details.
71 ;;;
72 ;;; You should have received a copy of the GNU General Public License
73 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
74
75 (define-module (gnu packages games)
76 #:use-module (ice-9 match)
77 #:use-module ((guix licenses) #:prefix license:)
78 #:use-module (guix utils)
79 #:use-module (guix packages)
80 #:use-module (guix download)
81 #:use-module (guix git-download)
82 #:use-module (guix svn-download)
83 #:use-module (guix gexp)
84 #:use-module (gnu packages)
85 #:use-module (gnu packages adns)
86 #:use-module (gnu packages algebra)
87 #:use-module (gnu packages autotools)
88 #:use-module (gnu packages backup)
89 #:use-module (gnu packages base)
90 #:use-module (gnu packages build-tools)
91 #:use-module (gnu packages admin)
92 #:use-module (gnu packages audio)
93 #:use-module (gnu packages avahi)
94 #:use-module (gnu packages assembly)
95 #:use-module (gnu packages bash)
96 #:use-module (gnu packages bison)
97 #:use-module (gnu packages boost)
98 #:use-module (gnu packages check)
99 #:use-module (gnu packages cmake)
100 #:use-module (gnu packages compression)
101 #:use-module (gnu packages cpp)
102 #:use-module (gnu packages curl)
103 #:use-module (gnu packages crypto)
104 #:use-module (gnu packages cyrus-sasl)
105 #:use-module (gnu packages documentation)
106 #:use-module (gnu packages docbook)
107 #:use-module (gnu packages emulators)
108 #:use-module (gnu packages flex)
109 #:use-module (gnu packages fltk)
110 #:use-module (gnu packages fonts)
111 #:use-module (gnu packages fontutils)
112 #:use-module (gnu packages freedesktop)
113 #:use-module (gnu packages fribidi)
114 #:use-module (gnu packages game-development)
115 #:use-module (gnu packages gcc)
116 #:use-module (gnu packages gettext)
117 #:use-module (gnu packages ghostscript)
118 #:use-module (gnu packages gimp)
119 #:use-module (gnu packages gl)
120 #:use-module (gnu packages glib)
121 #:use-module (gnu packages gnome)
122 #:use-module (gnu packages gnu-doc)
123 #:use-module (gnu packages gnupg)
124 #:use-module (gnu packages gnuzilla)
125 #:use-module (gnu packages gperf)
126 #:use-module (gnu packages graphics)
127 #:use-module (gnu packages gsasl)
128 #:use-module (gnu packages gstreamer)
129 #:use-module (gnu packages gtk)
130 #:use-module (gnu packages guile)
131 #:use-module (gnu packages haskell)
132 #:use-module (gnu packages haskell-crypto)
133 #:use-module (gnu packages haskell-xyz)
134 #:use-module (gnu packages icu4c)
135 #:use-module (gnu packages image)
136 #:use-module (gnu packages imagemagick)
137 #:use-module (gnu packages javascript)
138 #:use-module (gnu packages kde)
139 #:use-module (gnu packages kde-frameworks)
140 #:use-module (gnu packages less)
141 #:use-module (gnu packages libcanberra)
142 #:use-module (gnu packages libedit)
143 #:use-module (gnu packages libunwind)
144 #:use-module (gnu packages linux)
145 #:use-module (gnu packages llvm)
146 #:use-module (gnu packages lua)
147 #:use-module (gnu packages man)
148 #:use-module (gnu packages maths)
149 #:use-module (gnu packages messaging)
150 #:use-module (gnu packages mp3)
151 #:use-module (gnu packages music)
152 #:use-module (gnu packages multiprecision)
153 #:use-module (gnu packages ncurses)
154 #:use-module (gnu packages netpbm)
155 #:use-module (gnu packages networking)
156 #:use-module (gnu packages ocaml)
157 #:use-module (gnu packages opencl)
158 #:use-module (gnu packages pcre)
159 #:use-module (gnu packages perl)
160 #:use-module (gnu packages perl-check)
161 #:use-module (gnu packages perl-compression)
162 #:use-module (gnu packages pkg-config)
163 #:use-module (gnu packages protobuf)
164 #:use-module (gnu packages pulseaudio)
165 #:use-module (gnu packages python)
166 #:use-module (gnu packages python-xyz)
167 #:use-module (gnu packages qt)
168 #:use-module (gnu packages readline)
169 #:use-module (gnu packages ruby)
170 #:use-module (gnu packages shells)
171 #:use-module (gnu packages sdl)
172 #:use-module (gnu packages serialization)
173 #:use-module (gnu packages sqlite)
174 #:use-module (gnu packages squirrel)
175 #:use-module (gnu packages swig)
176 #:use-module (gnu packages tcl)
177 #:use-module (gnu packages terminals)
178 #:use-module (gnu packages texinfo)
179 #:use-module (gnu packages textutils)
180 #:use-module (gnu packages tls)
181 #:use-module (gnu packages upnp)
182 #:use-module (gnu packages video)
183 #:use-module (gnu packages vulkan)
184 #:use-module (gnu packages web)
185 #:use-module (gnu packages wget)
186 #:use-module (gnu packages wxwidgets)
187 #:use-module (gnu packages xdisorg)
188 #:use-module (gnu packages xorg)
189 #:use-module (gnu packages xiph)
190 #:use-module (gnu packages xml)
191 #:use-module (guix build-system copy)
192 #:use-module (guix build-system cmake)
193 #:use-module (guix build-system glib-or-gtk)
194 #:use-module (guix build-system gnu)
195 #:use-module (guix build-system go)
196 #:use-module (guix build-system meson)
197 #:use-module (guix build-system perl)
198 #:use-module (guix build-system python)
199 #:use-module (guix build-system qt)
200 #:use-module (guix build-system scons)
201 #:use-module (guix build-system trivial)
202 #:use-module ((srfi srfi-1) #:hide (zip))
203 #:use-module (srfi srfi-26))
204
205 (define-public abe
206 (package
207 (name "abe")
208 (version "1.1")
209 (source
210 (origin
211 (method url-fetch)
212 (uri (string-append "mirror://sourceforge/abe/abe/abe-" version
213 "/abe-" version ".tar.gz"))
214 (sha256
215 (base32 "1xvpnq1y6y48fn3pvn2lk0h1ilmalv7nb7awpid1g4jcq1sfmi6z"))))
216 (build-system gnu-build-system)
217 (arguments
218 `(#:configure-flags
219 (list (string-append "--with-data-dir="
220 (assoc-ref %outputs "out")
221 "/share/abe"))
222 #:phases
223 (modify-phases %standard-phases
224 (replace 'bootstrap
225 (lambda _ (invoke "sh" "autogen.sh")))
226 (add-before 'build 'set-SDL
227 ;; Set correct environment for SDL.
228 (lambda* (#:key inputs #:allow-other-keys)
229 (setenv "CPATH"
230 (string-append
231 (assoc-ref inputs "sdl") "/include/SDL:"
232 (or (getenv "CPATH") "")))
233 #t))
234 (add-after 'install 'finalize-install
235 (lambda* (#:key outputs #:allow-other-keys)
236 (let ((share (string-append (assoc-ref outputs "out") "/share")))
237 ;; Installation script does not copy game data files.
238 (let ((data (string-append share "/abe")))
239 (for-each (lambda (dir)
240 (let ((target (string-append data "/" dir)))
241 (mkdir-p target)
242 (copy-recursively dir target)))
243 '("images" "maps" "sounds")))
244 ;; Create desktop file.
245 (let ((apps (string-append share "/applications")))
246 (mkdir-p apps)
247 (make-desktop-entry-file
248 (string-append apps "/abe.desktop")
249 #:name "Abe's Amazing Adventure"
250 #:exec ,name
251 #:categories '("AdventureGame" "Game")
252 #:keywords
253 '("side-scrolling" "adventure" "pyramid" "singleplayer")
254 #:comment
255 '(("de" "Ein sich seitwärts bewegendes Abenteuerspiel")
256 (#f "Side-scrolling game")))))
257 #t)))))
258 (native-inputs
259 `(("autoconf" ,autoconf)
260 ("automake" ,automake)))
261 (inputs
262 `(("libxi" ,libxi)
263 ("libxmu" ,libxmu)
264 ("libxt" ,libxt)
265 ("sdl" ,(sdl-union (list sdl sdl-mixer)))))
266 (home-page "http://abe.sourceforge.net")
267 (synopsis "Scrolling, platform-jumping, ancient pyramid exploring game")
268 (description
269 "Abe's Amazing Adventure is a scrolling,
270 platform-jumping, key-collecting, ancient pyramid exploring game, vaguely in
271 the style of similar games for the Commodore+4.")
272 (license license:gpl2+)))
273
274 ;; Data package for adanaxisgpl.
275 (define adanaxis-mush
276 (let ((version "1.1.0"))
277 (origin
278 (method url-fetch)
279 (uri (string-append "http://www.mushware.com/files/adanaxis-mush-"
280 version ".tar.gz"))
281 (sha256
282 (base32 "0mk9ibis5nkdcalcg1lkgnsdxxbw4g5w2i3icjzy667hqirsng03")))))
283
284 (define-public adanaxisgpl
285 (package
286 (name "adanaxisgpl")
287 (version "1.2.5")
288 (source
289 (origin
290 (method url-fetch)
291 (uri (string-append "http://www.mushware.com/files/adanaxisgpl-"
292 version ".tar.gz"))
293 (sha256
294 (base32 "0jkn637jaabvlhd6hpvzb57vvjph94l6fbf7qxbjlw9zpr19dw1f"))
295 (modules '((guix build utils)))
296 (snippet
297 '(begin
298 ;; Necessary for building with gcc >=4.7.
299 (substitute* "src/Mushcore/MushcoreSingleton.h"
300 (("SingletonPtrSet\\(new SingletonType\\);")
301 "MushcoreSingleton::SingletonPtrSet(new SingletonType);"))
302 ;; Avoid an "invalid conversion from const char* to char*" error.
303 (substitute* "src/Platform/X11/PlatformMiscUtils.cpp"
304 (("char \\*end, \\*result;")
305 (string-append "const char *end;"
306 "\n"
307 "char *result;")))
308 #t))))
309 (build-system gnu-build-system)
310 (arguments
311 `(#:tests? #f ; no check target
312 #:phases
313 (modify-phases %standard-phases
314 (add-after 'install 'install-data
315 (lambda* (#:key inputs outputs #:allow-other-keys)
316 (let ((data (assoc-ref inputs "adanaxis-mush"))
317 (share (string-append (assoc-ref outputs "out")
318 "/share/" ,name "-" ,version)))
319 (mkdir-p share)
320 (invoke "tar" "xvf" data "-C" share)))))))
321 (native-inputs
322 `(("adanaxis-mush" ,adanaxis-mush))) ; game data
323 (inputs
324 `(("expat" ,expat)
325 ("freeglut" ,freeglut)
326 ("glu" ,glu)
327 ("libjpeg" ,libjpeg-turbo)
328 ("libogg" ,libogg)
329 ("libtiff" ,libtiff)
330 ("libvorbis" ,libvorbis)
331 ("libx11" ,libx11)
332 ("libxext" ,libxext)
333 ("pcre" ,pcre)
334 ("sdl" ,sdl)
335 ("sdl-mixer" ,sdl-mixer)))
336 (home-page "https://www.mushware.com")
337 (synopsis "Action game in four spatial dimensions")
338 (description
339 "Adanaxis is a fast-moving first person shooter set in deep space, where
340 the fundamentals of space itself are changed. By adding another dimension to
341 space this game provides an environment with movement in four directions and
342 six planes of rotation. Initially the game explains the 4D control system via
343 a graphical sequence, before moving on to 30 levels of gameplay with numerous
344 enemy, ally, weapon and mission types. Features include simulated 4D texturing,
345 mouse and joystick control, and original music.")
346 (license license:gpl2)))
347
348 (define-public alex4
349 (package
350 (name "alex4")
351 (version "1.2.1")
352 (source
353 (origin
354 (method git-fetch)
355 (uri (git-reference
356 (url "https://github.com/carstene1ns/alex4")
357 (commit version)))
358 (file-name (git-file-name name version))
359 (sha256
360 (base32 "098wy72mh4lsvq3gm0rhamjssf9l1hp6hhkpzrv7klpb97cwwc3h"))))
361 (build-system gnu-build-system)
362 (arguments
363 `(#:tests? #f ; no check target
364 #:make-flags
365 (list "CC=gcc"
366 "CFLAGS=-D_FILE_OFFSET_BITS=64"
367 (string-append "PREFIX=" (assoc-ref %outputs "out")))
368 #:phases
369 (modify-phases %standard-phases
370 (delete 'configure) ; no configure script
371 (add-after 'install 'install-data
372 (lambda* (#:key outputs #:allow-other-keys)
373 (let ((share (string-append (assoc-ref outputs "out")
374 "/share/" ,name)))
375 (install-file "alex4.ini" share)
376 #t))))))
377 (inputs
378 `(("allegro" ,allegro-4)
379 ("dumb" ,dumb-allegro4)))
380 (home-page "http://allegator.sourceforge.net/")
381 (synopsis "Retro platform game")
382 (description
383 "Guide Alex the Allegator through the jungle in order to save his
384 girlfriend Lola from evil humans who want to make a pair of shoes out of her.
385 Plenty of classic platforming in four nice colors guaranteed!
386
387 The game includes a built-in editor so you can design and share your own maps.")
388 (license license:gpl2+)))
389
390 (define-public armagetronad
391 (package
392 (name "armagetronad")
393 (version "0.2.9.0.1")
394 (source (origin
395 (method url-fetch)
396 (uri (string-append "mirror://sourceforge/armagetronad/stable/"
397 version "/armagetronad-" version ".tbz"))
398 (sha256
399 (base32
400 "19rfhlg4gp0r7k1j8v4iw20325ciy156nmzax4xikmw22c6nmxcz"))))
401 (build-system gnu-build-system)
402 (native-inputs
403 `(("pkg-config" ,pkg-config)))
404 (inputs
405 `(("libxml2" ,libxml2)
406 ("sdl" ,sdl)
407 ("sdl-image" ,sdl-image)
408 ("freeglut" ,freeglut)
409 ("libpng" ,libpng)
410 ("libjpeg-turbo" ,libjpeg-turbo)))
411 (home-page "http://www.armagetronad.org")
412 (synopsis "Tron clone in 3D")
413 (description "Armagetron Advanced is a multiplayer game in 3d that
414 attempts to emulate and expand on the lightcycle sequence from the movie Tron.
415 It's an old school arcade game slung into the 21st century. Highlights
416 include a customizable playing arena, HUD, unique graphics, and AI bots. For
417 the more advanced player there are new game modes and a wide variety of
418 physics settings to tweak as well.")
419 (license license:gpl2+)))
420
421 (define-public astromenace
422 (package
423 (name "astromenace")
424 (version "1.4.1")
425 (source
426 (origin
427 (method git-fetch)
428 (uri (git-reference
429 (url "https://github.com/viewizard/astromenace")
430 (commit (string-append "v" version))))
431 (file-name (git-file-name name version))
432 (sha256
433 (base32 "1ad6l887jxqv8xspwc2rvy8ym9sdlmkqdqhsh0pi076kjarxsyws"))))
434 (build-system cmake-build-system)
435 (arguments
436 `(#:tests? #f ;no test
437 #:configure-flags (list (string-append "-DDATADIR="
438 (assoc-ref %outputs "out")
439 "/share/astromenace"))
440 #:phases
441 (modify-phases %standard-phases
442 (replace 'install
443 ;; Upstream provides no install phase.
444 (lambda* (#:key inputs outputs #:allow-other-keys)
445 (let* ((out (assoc-ref outputs "out"))
446 (bin (string-append out "/bin"))
447 (share (string-append out "/share"))
448 (apps (string-append share "/applications"))
449 (data (string-append share "/astromenace"))
450 (icons (string-append share "/icons/hicolor/64x64/apps")))
451 (install-file "astromenace" bin)
452 (install-file "gamedata.vfs" data)
453 (let ((source (assoc-ref inputs "source")))
454 (with-directory-excursion (string-append source "/share")
455 (install-file "astromenace.desktop" apps)
456 (mkdir-p icons)
457 (copy-file "astromenace_64.png"
458 (string-append icons "/astromenace.png")))))
459 #t)))))
460 (inputs
461 `(("freealut" ,freealut)
462 ("freetype" ,freetype)
463 ("glu" ,glu)
464 ("libogg" ,libogg)
465 ("libvorbis" ,libvorbis)
466 ("openal" ,openal)
467 ("sdl2" ,sdl2)))
468 (home-page "https://www.viewizard.com/")
469 (synopsis "3D space shooter with spaceship upgrade possibilities")
470 (description
471 "Space is a vast area, an unbounded territory where it seems there is
472 a room for everybody, but reversal of fortune put things differently. The
473 hordes of hostile creatures crawled out from the dark corners of the universe,
474 craving to conquer your homeland. Their force is compelling, their legions
475 are interminable. However, humans didn't give up without a final showdown and
476 put their best pilot to fight back. These malicious invaders chose the wrong
477 galaxy to conquer and you are to prove it! Go ahead and make alien aggressors
478 regret their insolence.")
479 ;; Game is released under GPL3+ terms. Artwork is subject to CC
480 ;; BY-SA 4.0, and fonts to OFL1.1.
481 (license (list license:gpl3+ license:cc-by-sa4.0 license:silofl1.1))))
482
483 (define-public bastet
484 (package
485 (name "bastet")
486 (version "0.43.2")
487 (source
488 (origin
489 (method git-fetch)
490 (uri (git-reference
491 (url "https://github.com/fph/bastet")
492 (commit version)))
493 (file-name (git-file-name name version))
494 (sha256
495 (base32 "09kamxapm9jw9przpsgjfg33n9k94bccv65w95dakj0br33a75wn"))
496 (patches
497 (search-patches "bastet-change-source-of-unordered_set.patch"))))
498 (build-system gnu-build-system)
499 (arguments
500 `(#:make-flags
501 (list (string-append "CXXFLAGS=-I"
502 (assoc-ref %build-inputs "boost") "/include"))
503 #:phases
504 (modify-phases %standard-phases
505 (delete 'configure) ; no configure script
506 (replace 'check
507 ;; The 'Test' target builds the tests, but doesn't actually run them.
508 (lambda* (#:key make-flags #:allow-other-keys)
509 (apply invoke "make" "Test" make-flags)
510 (setenv "HOME" ".")
511 (invoke "./Test")))
512 (replace 'install
513 (lambda* (#:key outputs #:allow-other-keys)
514 (let* ((out (assoc-ref outputs "out"))
515 (share (string-append out "/share"))
516 (hicolor (string-append share "/icons/hicolor")))
517 (install-file "bastet"
518 (string-append out "/bin"))
519
520 (install-file "bastet.desktop"
521 (string-append share "/applications"))
522 (install-file "bastet.svg"
523 (string-append hicolor "/scalable/apps"))
524
525 (install-file "bastet.appdata.xml"
526 (string-append share "/appdata"))
527
528 (install-file "bastet.6"
529 (string-append out "/share/man/man6"))
530 #t))))))
531 (native-inputs
532 `(("hicolor-icon-theme" ,hicolor-icon-theme)))
533 (inputs
534 `(("boost" ,boost)
535 ("ncurses" ,ncurses)))
536 (home-page "https://fph.altervista.org/prog/bastet.html")
537 (synopsis "Antagonistic Tetris-style falling brick game for text terminals")
538 (description
539 "Bastet (short for Bastard Tetris) is a simple ncurses-based falling brick
540 game. Unlike normal Tetris, Bastet does not choose the next brick at random.
541 Instead, it uses a special algorithm to choose the worst brick possible.
542
543 Playing bastet can be a painful experience, especially if you usually make
544 canyons and wait for the long I-shaped block to clear four rows at a time.")
545 (license license:gpl3+)))
546
547 (define-public blobwars
548 (package
549 (name "blobwars")
550 (version "2.00")
551 (source
552 (origin
553 (method url-fetch)
554 (uri (string-append "mirror://sourceforge/blobwars/"
555 "blobwars-" version ".tar.gz"))
556 (sha256
557 (base32 "16aagvkx6azf75gm5kaa94bh5npydvhqp3fvdqyfsanzdjgjf1n4"))))
558 (build-system gnu-build-system)
559 (arguments
560 `(#:tests? #f ;no test
561 #:make-flags
562 (let ((out (assoc-ref %outputs "out")))
563 (list (string-append "PREFIX=" out)
564 (string-append "BINDIR=" out "/bin/")
565 "USEPAK=1"
566 "RELEASE=1"))
567 #:phases
568 (modify-phases %standard-phases
569 (add-after 'unpack 'werror-begone
570 (lambda _
571 (substitute* "Makefile" (("-Werror") ""))
572 #t))
573 (delete 'configure)))) ;no configure script
574 (native-inputs
575 `(("gettext" ,gettext-minimal)
576 ("pkg-config" ,pkg-config)))
577 (inputs
578 `(("hicolor-icon-theme" ,hicolor-icon-theme)
579 ("sdl" ,(sdl-union (list sdl2
580 sdl2-image
581 sdl2-mixer
582 sdl2-ttf
583 sdl2-net)))))
584 (home-page "https://sourceforge.net/projects/blobwars/")
585 (synopsis "Platform action game featuring a blob with a lot of weapons")
586 (description "Blobwars: Metal Blob Solid is a 2D platform game, the first
587 in the Blobwars series. You take on the role of a fearless Blob agent. Your
588 mission is to infiltrate various enemy bases and rescue as many MIAs as
589 possible, while battling many vicious aliens.")
590 (license (list license:gpl2 ; For code and graphics
591 license:cc0 ; Music and sounds have specific licenses
592 license:cc-by3.0 ; see /doc/readme
593 license:cc-by-sa3.0
594 license:lgpl2.1+
595 license:bsd-2))))
596
597 (define-public bsd-games
598 (package
599 (name "bsd-games")
600 (version "2.17.0")
601 (source
602 (origin
603 (method url-fetch)
604 (uri "https://ibiblio.org/pub/linux/games/bsd-games-2.17.tar.gz")
605 (sha256
606 (base32 "0q7zdyyfvn15y0w4g54kq3gza89h61py727m8slmw73cxx594vq6"))
607 (patches
608 (search-patches
609 ;; thanks Arch, and Debian
610 "bsd-games-2.17-64bit.patch"
611 "bsd-games-bad-ntohl-cast.patch"
612 "bsd-games-gamescreen.h.patch"
613 "bsd-games-getline.patch"
614 "bsd-games-null-check.patch"
615 "bsd-games-number.c-and-test.patch"
616 "bsd-games-stdio.h.patch"
617 "bsd-games-prevent-name-collisions.patch"
618 ;; Guix customizations
619 "bsd-games-add-configure-config.patch"
620 "bsd-games-dont-install-empty-files.patch"
621 "bsd-games-add-wrapper.patch"))))
622 (build-system gnu-build-system)
623 (native-inputs
624 `(("flex" ,flex)
625 ("bison" ,bison)))
626 (inputs
627 `(("curses" ,ncurses)
628 ("pager" ,less)
629 ("miscfiles" ,miscfiles)
630 ("openssl" ,openssl))) ;used only by 'factor'
631 (arguments
632 `(#:phases
633 (modify-phases %standard-phases
634 (replace 'configure
635 (lambda* (#:key outputs inputs #:allow-other-keys)
636 (let* ((out (assoc-ref outputs "out"))
637 (bin (string-append out "/bin"))
638 (doc (string-append out "/share/doc/bsd-games-" ,version))
639 (man (string-append out "/share/man"))
640 (word-list (string-append (assoc-ref inputs "miscfiles")
641 "/share/web2"))
642 (static-data (string-append out "/share/games/bsd-games"))
643 ;; Not a "./" because of substitute* in 'patch-install
644 ;; below. The .// allow us not to mess with the games'
645 ;; code any further: we just use a wrapper script that
646 ;; cd's to a BSD_GAMES_DIR. :]
647 (save-files ".//"))
648 (substitute* "configure"
649 (("/usr/share/man") man)
650 (("/usr/share/doc/bsd-games") doc)
651 (("/usr/share/[^\n/]*") static-data)
652 (("/var/games") save-files)
653 (("/usr/bin/less") (which "less"))
654 (("(/usr/bin|/usr/games)") bin))
655 (substitute* "config.params" (("WORD_LIST") word-list))
656 (substitute* "wrapper" (("STATIC_DATA") static-data))
657 (invoke "./configure"))
658 #t))
659 (add-before 'install 'patch-install
660 ;; Some games need a writable directory containing pre-maded files.
661 ;; The files get installed to the Store. Then the wrapper kicks in.
662 (lambda* (#:key outputs #:allow-other-keys)
663 (let* ((out (assoc-ref outputs "out"))
664 (static-data (string-append out "/share/games/bsd-games"))
665 (save-files ".//"))
666 (substitute* "Makeconfig" ((save-files) static-data)))
667 #t))
668 (add-after 'install 'install-documents
669 (lambda* (#:key outputs #:allow-other-keys)
670 (let* ((out (assoc-ref outputs "out"))
671 (doc (string-append out "/share/doc/bsd-games-" ,version)))
672 (rename-file "phantasia/COPYRIGHT" "phantasia-COPYRIGHT")
673 (for-each
674 (lambda(file) (install-file file doc))
675 '("AUTHORS" "BUGS" "README" "SECURITY" "THANKS"
676 "phantasia-COPYRIGHT")))
677 #t)))))
678 (home-page "https://github.com/vattam/BSDGames")
679 (synopsis "Collection of the old text-based games and amusements")
680 (description
681 "These are the BSD games. See the fortune-mod package for fortunes.
682
683 Action: atc (keep the airplanes safe), hack (explore the dangerous Dungeon),
684 hunt (kill the others for the Pair of Boots, multi-player only), robots (avoid
685 the evil robots), sail (game of naval warfare with wooden ships), snake (steal
686 the $$ from the cave, anger the snake, and get out alive), tetris (game of
687 lining up the falling bricks of different shapes), and worm (eat, grow big,
688 and neither bite your tail, nor ram the wall).
689
690 Amusements: banner (prints a large banner), bcd & morse & ppt (print a punch
691 card, or paper tape, or Morse codes), caesar & rot13 (ciphers and deciphers
692 the input), factor (factorizes a number), number (translates numbers into
693 text), pig (translates from English to Pig Latin), pom (should print the
694 Moon's phase), primes (generates primes), rain & worms (plays an screen-saver
695 in terminal), random (prints randomly chosen lines from files, or returns a
696 random exit-code), and wtf (explains what do some acronyms mean).
697
698 Board: backgammon (lead the men out of board faster than the friend do),
699 boggle (find the words in the square of letters), dab (game of dots and
700 boxes), gomoku (game of five in a row), hangman (guess a word before man is
701 hanged), and monop (game of monopoly, hot-seat only). Also the card-games:
702 canfield, cribbage, fish (juniors game), and mille.
703
704 Quests: adventure (search for treasures with the help of wizard),
705 battlestar (explore the world around, starting from dying spaceship),
706 phantasia (role-play as an rogue), trek (hunt the Klingons, and save the
707 Federation), and wump (hunt the big smelly Wumpus in a dark cave).
708
709 Quizes: arithmetic, and quiz.")
710 ;; "Auxiliary and data files, distributed with the games in NetBSD, but
711 ;; not bearing copyright notices, probably fall under the terms of the UCB
712 ;; or NetBSD copyrights and licences. The file "fortune/Notes" contains a
713 ;; warning in regard to the fortune databases."
714 (license (list
715 ;; Most games. Files: countmail/countmail.6, dab/dab.6,
716 ;; lib/strlcpy.c, wargames/wargames.6
717 license:bsd-3
718 ;; dab and hunt. Files: adventure/extern.h,
719 ;; backgammon/backgammon/backlocal.h, caesar/rot13.in,
720 ;; countmail/countmail, dm/utmpentry.c, dm/utmpentry.h,
721 ;; hack/extern.h, robots/auto.c, sail/display.h,
722 ;; sail/restart.h, wargames/wargames
723 license:bsd-4
724 ;; wtf (the game)
725 license:public-domain
726 ;; phantasia (all but phantasia/pathnames.h.in, which is bsd-3)
727 (license:fsf-free "file:///phantasia/COPYRIGHT")))))
728
729
730 (define-public bzflag
731 (package
732 (name "bzflag")
733 (version "2.4.20")
734 (source
735 (origin
736 (method url-fetch)
737 (uri (string-append "https://download.bzflag.org/bzflag/source/"
738 version "/bzflag-" version ".tar.bz2"))
739 (sha256
740 (base32 "16brxqmfiyz4j4lb8ihzjcbwqmpsms6vm3ijbp34lnw0blbwdjb2"))))
741 (build-system gnu-build-system)
742 (arguments
743 `(#:phases
744 (modify-phases %standard-phases
745 (add-after 'install 'install-desktop-file-and-icons
746 (lambda* (#:key outputs #:allow-other-keys)
747 (let* ((share (string-append (assoc-ref outputs "out") "/share"))
748 (data (string-append share "/bzflag"))
749 (hicolor (string-append share "/icons/hicolor"))
750 (applications (string-append share "/applications")))
751 ;; Move desktop file.
752 (install-file (string-append data "/bzflag.desktop")
753 applications)
754 ;; Install icons.
755 (for-each (lambda (size)
756 (let* ((dim (string-append size "x" size))
757 (dir (string-append hicolor "/" dim "/apps")))
758 (mkdir-p dir)
759 (copy-file
760 (string-append data "/bzflag-" dim ".png")
761 (string-append dir "/bzflag.png"))))
762 '("48" "256")))
763 #t)))))
764 (native-inputs
765 `(("pkg-config" ,pkg-config)))
766 (inputs
767 `(("c-ares" ,c-ares)
768 ("curl" ,curl)
769 ("glew" ,glew)
770 ("glu" ,glu)
771 ("sdl2" ,sdl2)
772 ("zlib" ,zlib)))
773 (home-page "https://www.bzflag.org/")
774 (synopsis "3D first person tank battle game")
775 (description
776 "BZFlag is a 3D multi-player multiplatform tank battle game that
777 allows users to play against each other in a network environment.
778 There are five teams: red, green, blue, purple and rogue (rogue tanks
779 are black). Destroying a player on another team scores a win, while
780 being destroyed or destroying a teammate scores a loss. Rogues have
781 no teammates (not even other rogues), so they cannot shoot teammates
782 and they do not have a team score.
783
784 There are two main styles of play: capture-the-flag and free-for-all.
785 In capture-the-flag, each team (except rogues) has a team base and
786 each team with at least one player has a team flag. The object is to
787 capture an enemy team's flag by bringing it to your team's base. This
788 destroys every player on the captured team, subtracts one from that
789 team's score, and adds one to your team's score. In free-for-all,
790 there are no team flags or team bases. The object is simply to get as
791 high a score as possible.")
792 ;; The game is dual-licensed.
793 (license (list license:lgpl2.1 license:mpl2.0))))
794
795 (define-public cataclysm-dda
796 (package
797 (name "cataclysm-dda")
798 (version "0.E-3")
799 (source
800 (origin
801 (method git-fetch)
802 (uri (git-reference
803 (url "https://github.com/CleverRaven/Cataclysm-DDA")
804 (commit version)))
805 (sha256
806 (base32 "108cs6vp99qmqqfnmczad0xjgcl82bypm5xszwnlfcswdsrfs4da"))
807 (file-name (git-file-name name version))))
808 (build-system gnu-build-system)
809 (arguments
810 '(#:make-flags
811 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
812 "USE_HOME_DIR=1" "DYNAMIC_LINKING=1" "RELEASE=1"
813 "LOCALIZE=1" "LANGUAGES=all")
814 #:phases
815 (modify-phases %standard-phases
816 (delete 'configure)
817 (add-after 'build 'build-tiles
818 (lambda* (#:key make-flags outputs #:allow-other-keys)
819 ;; Change prefix directory and enable tile graphics and sound.
820 (apply invoke "make" "TILES=1" "SOUND=1"
821 (string-append "PREFIX="
822 (assoc-ref outputs "tiles"))
823 (cdr make-flags))))
824 (add-after 'install 'install-tiles
825 (lambda* (#:key make-flags outputs #:allow-other-keys)
826 (apply invoke "make" "install" "TILES=1" "SOUND=1"
827 (string-append "PREFIX="
828 (assoc-ref outputs "tiles"))
829 (cdr make-flags)))))
830 ;; TODO: Add libtap++ from https://github.com/cbab/libtappp as a native
831 ;; input in order to support tests.
832 #:tests? #f))
833 (outputs '("out"
834 "tiles")) ;for tile graphics and sound support
835 (native-inputs
836 `(("gettext" ,gettext-minimal)
837 ("pkg-config" ,pkg-config)))
838 (inputs
839 `(("freetype" ,freetype)
840 ("libogg" ,libogg)
841 ("libvorbis" ,libvorbis)
842 ("ncurses" ,ncurses)
843 ("sdl2" ,sdl2)
844 ("sdl2-image" ,sdl2-image)
845 ("sdl2-ttf" ,sdl2-ttf)
846 ("sdl2-mixer" ,sdl2-mixer)))
847 (home-page "https://cataclysmdda.org/")
848 (synopsis "Survival horror roguelike video game")
849 (description
850 "Cataclysm: Dark Days Ahead (or \"DDA\" for short) is a roguelike set
851 in a post-apocalyptic world. Struggle to survive in a harsh, persistent,
852 procedurally generated world. Scavenge the remnants of a dead civilization
853 for food, equipment, or, if you are lucky, a vehicle with a full tank of gas
854 to get you out of Dodge. Fight to defeat or escape from a wide variety of
855 powerful monstrosities, from zombies to giant insects to killer robots and
856 things far stranger and deadlier, and against the others like yourself, that
857 want what you have.")
858 (license license:cc-by-sa3.0)))
859
860 (define-public corsix-th
861 (package
862 (name "corsix-th")
863 (version "0.64")
864 (source
865 (origin
866 (method git-fetch)
867 (uri (git-reference
868 (url "https://github.com/CorsixTH/CorsixTH")
869 (commit (string-append "v" version))))
870 (file-name (git-file-name name version))
871 (sha256
872 (base32 "0chh9cv2kdc39sr0x8hclcyzd8dz2y6grgagqzkvr7j570wa5cqh"))))
873 (build-system cmake-build-system)
874 (arguments
875 `(#:phases
876 (modify-phases %standard-phases
877 (add-after 'install 'wrap-binary
878 (lambda _
879 ;; Set Lua module paths and default MIDI soundfont on startup.
880 (let* ((out (assoc-ref %outputs "out"))
881 (fluid (assoc-ref %build-inputs "fluid-3"))
882 (lua-version ,(version-major+minor (package-version lua)))
883 (lua-cpath
884 (map (lambda (lib)
885 (string-append
886 (assoc-ref %build-inputs (string-append "lua-" lib))
887 "/lib/lua/" lua-version "/?.so"))
888 '("filesystem" "lpeg"))))
889 (wrap-program (string-append out "/bin/corsix-th")
890 `("LUA_CPATH" ";" = ,lua-cpath)
891 `("SDL_SOUNDFONTS" ":" suffix
892 (,(string-append fluid "/share/soundfonts/FluidR3Mono_GM.sf3")))))
893 #t)))
894 #:tests? #f)) ; TODO need busted package to run tests
895 ;; Omit Lua-Socket dependency to disable automatic updates.
896 (inputs
897 `(("ffmpeg" ,ffmpeg)
898 ("fluid-3" ,fluid-3)
899 ("freetype" ,freetype)
900 ("lua" ,lua)
901 ("lua-filesystem" ,lua-filesystem)
902 ("lua-lpeg" ,lua-lpeg)
903 ("sdl2" ,sdl2)
904 ("sdl2-mixer" ,sdl2-mixer)))
905 (home-page "https://corsixth.com")
906 (synopsis "Implementation of the @i{Theme Hospital} game engine")
907 (description
908 "This package provides a reimplementation of the 1997 Bullfrog business
909 simulation game @i{Theme Hospital}. As well as faithfully recreating the
910 original engine, CorsixTH adds support for high resolutions, custom levels and
911 more. This package does @emph{not} provide the game assets.")
912 (license (list
913 license:expat ; main license
914 license:bsd-3)))) ; CorsixTH/Src/random.c
915
916 (define-public cowsay
917 (package
918 (name "cowsay")
919 (version "3.04")
920 (source (origin
921 (method git-fetch)
922 (uri (git-reference
923 (url "https://github.com/tnalpgge/rank-amateur-cowsay")
924 (commit (string-append name "-" version))))
925 (file-name (git-file-name name version))
926 (sha256
927 (base32
928 "06455kq37hvq1xb7adyiwrx0djs50arsxvjgixyxks16lm1rlc7n"))))
929 (build-system gnu-build-system)
930 (arguments
931 `(#:phases
932 (modify-phases %standard-phases
933 (delete 'configure) ; no configure script
934 (delete 'build) ; nothing to be built
935 (replace 'install
936 (lambda* (#:key outputs #:allow-other-keys)
937 (invoke "sh" "install.sh"
938 (assoc-ref outputs "out"))))
939 (delete 'check)
940 (add-after 'install 'check
941 (lambda* (#:key outputs #:allow-other-keys)
942 (invoke (string-append (assoc-ref outputs "out")
943 "/bin/cowsay")
944 "We're done!"))))))
945 (inputs
946 `(("perl" ,perl)))
947 (home-page (string-append "https://web.archive.org/web/20071026043648/"
948 "http://www.nog.net:80/~tony/warez/cowsay.shtml"))
949 (synopsis "Speaking cow text filter")
950 (description "Cowsay is basically a text filter. Send some text into it,
951 and you get a cow saying your text. If you think a talking cow isn't enough,
952 cows can think too: all you have to do is run @command{cowthink}. If you're
953 tired of cows, a variety of other ASCII-art messengers are available.")
954 (license license:gpl3+)))
955
956 (define-public lolcat
957 (let ((commit "35dca3d0a381496d7195cd78f5b24aa7b62f2154")
958 (revision "0"))
959 (package
960 (name "lolcat")
961 (version (git-version "1.0" revision commit))
962 (source
963 (origin
964 (method git-fetch)
965 (uri (git-reference
966 (url "https://github.com/jaseg/lolcat")
967 (commit commit)))
968 (sha256
969 (base32
970 "0jjbkqcc2ikjxd1xgdyv4rb0vsw218181h89f2ywg29ffs3ypd8g"))
971 (file-name (git-file-name name version))))
972 (build-system gnu-build-system)
973 (arguments
974 `(#:tests? #f ; no check target
975 #:make-flags
976 (list ,(string-append "CC=" (cc-for-target)))
977 #:phases
978 (modify-phases %standard-phases
979 (delete 'bootstrap)
980 (delete 'configure)
981 (replace 'install
982 (lambda* (#:key outputs #:allow-other-keys)
983 (let* ((out (assoc-ref outputs "out"))
984 (dest (string-append out "/bin")))
985 (mkdir-p dest)
986 (install-file "lolcat" dest)
987 (install-file "censor" dest)
988 #t))))))
989 (home-page "https://github.com/jaseg/lolcat")
990 (synopsis "Rainbow coloring effect for text console display")
991 (description "@command{lolcat} concatenates files and streams like
992 regular @command{cat}, but it also adds terminal escape codes between
993 characters and lines resulting in a rainbow effect.")
994 (license license:wtfpl2))))
995
996 (define-public foobillard++
997 ;; Even though this latest revision is old already, stable release is
998 ;; lagging way behind it, and has issues with textures rendering.
999 (let ((svn-revision 170))
1000 (package
1001 (name "foobillard++")
1002 (version (string-append "3.43-r" (number->string svn-revision)))
1003 (source
1004 (origin
1005 (method svn-fetch)
1006 (uri (svn-reference
1007 (url "svn://svn.code.sf.net/p/foobillardplus/code/")
1008 (revision svn-revision)))
1009 (file-name (git-file-name name version))
1010 (sha256
1011 (base32 "00b693ys5zvzjbjzzj3dqfzm5xw64gwjf9m8qv6bkmf0klbhmayk"))
1012 (patches
1013 (search-patches "foobillard++-pkg-config.patch"))
1014 (modules '((guix build utils)))
1015 (snippet
1016 '(begin
1017 ;; Unfortunately, the game includes background music with
1018 ;; a non-commercial clause. Delete it.
1019 (for-each delete-file (find-files "data/music" "\\.ogg$"))
1020 #t))))
1021 (build-system gnu-build-system)
1022 (arguments
1023 `(#:configure-flags
1024 (list
1025 ;; Install data in a less exotic location.
1026 (string-append "--prefix=" (assoc-ref %outputs "out") "/share")
1027 ;; Prevent a build error about undefined trigonometric functions.
1028 "--enable-fastmath=no")
1029 #:phases
1030 (modify-phases %standard-phases
1031 (add-after 'unpack 'fix-makefile
1032 ;; Remove hard-coded directories. Also fix installation
1033 ;; rule: it tries to move around non-existent files or
1034 ;; files already moved.
1035 (lambda* (#:key outputs #:allow-other-keys)
1036 (substitute* "Makefile.am"
1037 (("/usr") (assoc-ref outputs "out"))
1038 (("cp .*?/foobillardplus\\.desktop.*") "")
1039 (("cp .*?/foobillardplus\\.(png|xbm) \\$\\(datarootdir\\).*")
1040 ""))
1041 #t))
1042 (add-after 'unpack 'unbundle-font
1043 ;; XXX: The package ships with LinBiolinum_aSB.ttf and
1044 ;; LinBiolinum_aS.ttf, which are not provided by
1045 ;; `font-linuxlibertine' package. Therefore, we cannot replace
1046 ;; them yet.
1047 (lambda* (#:key inputs #:allow-other-keys)
1048 (let ((dejavu (string-append (assoc-ref inputs "font-dejavu")
1049 "/share/fonts/truetype/")))
1050 (with-directory-excursion "data"
1051 (for-each (lambda (f)
1052 (delete-file f)
1053 (symlink (string-append dejavu f) f))
1054 '("DejaVuSans-Bold.ttf" "DejaVuSans.ttf"))))
1055 #t))
1056 (replace 'bootstrap
1057 (lambda _
1058 (invoke "aclocal" "--force")
1059 (invoke "autoconf" "-f")
1060 (invoke "autoheader" "-f")
1061 (invoke "automake" "-a" "-c" "-f")))
1062 (add-before 'build 'prepare-build
1063 ;; Set correct environment for SDL.
1064 (lambda* (#:key inputs #:allow-other-keys)
1065 (setenv "CPATH"
1066 (string-append (assoc-ref inputs "sdl")
1067 "/include/SDL:"
1068 (or (getenv "CPATH") "")))
1069 #t))
1070 (add-before 'build 'fix-settings-directory
1071 ;; Hide foobillardplus settings directory in $HOME.
1072 (lambda _
1073 (substitute* "src/history.c"
1074 (("/foobillardplus-data") "/.foobillardplus"))
1075 #t))
1076 (add-before 'install 'create-directories
1077 ;; Install process does not create directories before
1078 ;; trying to move file in it.
1079 (lambda* (#:key outputs #:allow-other-keys)
1080 (let ((out (assoc-ref outputs "out")))
1081 (mkdir-p (string-append out "/share/icons"))
1082 (mkdir-p (string-append out "/share/applications")))
1083 #t))
1084 (add-after 'install 'symlink-executable
1085 ;; Symlink executable to $out/bin.
1086 (lambda* (#:key outputs #:allow-other-keys)
1087 (let* ((out (assoc-ref outputs "out"))
1088 (bin (string-append out "/bin")))
1089 (mkdir-p bin)
1090 (with-directory-excursion bin
1091 (symlink "../share/foobillardplus/bin/foobillardplus"
1092 "foobillardplus"))
1093 #t))))))
1094 (native-inputs
1095 `(("autoconf" ,autoconf)
1096 ("automake" ,automake)
1097 ("pkg-config" ,pkg-config)))
1098 (inputs
1099 `(("font-dejavu" ,font-dejavu)
1100 ("freetype" ,freetype)
1101 ("glu" ,glu)
1102 ("libpng" ,libpng)
1103 ("sdl" ,(sdl-union (list sdl sdl-mixer sdl-net)))))
1104 (home-page "http://foobillardplus.sourceforge.net/")
1105 (synopsis "3D billiard game")
1106 (description "FooBillard++ is an advanced 3D OpenGL billiard game
1107 based on the original foobillard 3.0a sources from Florian Berger.
1108 You can play it with one or two players or against the computer.
1109
1110 The game features:
1111
1112 @itemize
1113 @item Wood paneled table with gold covers and gold diamonds.
1114 @item Reflections on balls.
1115 @item Zoom in and out, rotation, different angles and bird's eye view.
1116 @item Different game modes: 8 or 9-ball, Snooker or Carambole.
1117 @item Tournaments. Compete against other players.
1118 @item Animated cue with strength and eccentric hit adjustment.
1119 @item Jump shots and snipping.
1120 @item Realistic gameplay and billiard sounds.
1121 @item Red-Green stereo.
1122 @item And much more.
1123 @end itemize")
1124 (license (list license:gpl2 license:silofl1.1)))))
1125
1126 (define-public freedoom
1127 (package
1128 (name "freedoom")
1129 (version "0.12.1")
1130 (source
1131 (origin
1132 (method git-fetch)
1133 (uri (git-reference
1134 (url "https://github.com/freedoom/freedoom")
1135 (commit (string-append "v" version))))
1136 (file-name (git-file-name name version))
1137 (sha256
1138 (base32 "1mq60lfwaaxmch7hsz8403pwafnlsmsd5z2df2j77ppwndwcrypb"))))
1139 (build-system gnu-build-system)
1140 (arguments
1141 '(#:make-flags
1142 (list (string-append "prefix=" (assoc-ref %outputs "out")))
1143 #:tests? #f ; no check target
1144 #:phases
1145 (modify-phases %standard-phases
1146 (delete 'bootstrap)
1147 (replace 'configure
1148 (lambda* (#:key inputs outputs #:allow-other-keys)
1149 (let* ((freedoom (assoc-ref outputs "out"))
1150 (wad-dir (string-append freedoom "/share/games/doom")))
1151 ;; Make sure that the install scripts know where to find
1152 ;; the appropriate WAD files.
1153 (substitute* "dist/freedoom"
1154 (("IWAD=freedm.wad")
1155 (string-append "IWAD=" wad-dir "/freedm.wad"))
1156 (("IWAD=freedoom1.wad")
1157 (string-append "IWAD=" wad-dir "/freedoom1.wad"))
1158 (("IWAD=freedoom2.wad")
1159 (string-append "IWAD=" wad-dir "/freedoom2.wad")))
1160 #t))))))
1161 (native-inputs
1162 `(("asciidoc" ,asciidoc)
1163 ("deutex" ,deutex)
1164 ("python" ,python)
1165 ("python-pillow" ,python-pillow)))
1166 (home-page "https://freedoom.github.io/")
1167 (synopsis "Free content game based on the Doom engine")
1168 (native-search-paths
1169 (list (search-path-specification
1170 (variable "DOOMWADDIR")
1171 (files '("share/games/doom")))
1172 (search-path-specification
1173 (variable "DOOMWADPATH")
1174 (files '("share/games/doom")))))
1175 (description
1176 "The Freedoom project aims to create a complete free content first person
1177 shooter game. Freedoom by itself is just the raw material for a game: it must
1178 be paired with a compatible game engine (such as @code{prboom-plus}) to be
1179 played. Freedoom complements the Doom engine with free levels, artwork, sound
1180 effects and music to make a completely free game.")
1181 (license license:bsd-3)))
1182
1183 (define-public freedroidrpg
1184 (package
1185 (name "freedroidrpg")
1186 (version "0.16.1")
1187 (source
1188 (origin
1189 (method url-fetch)
1190 (uri (string-append "http://ftp.osuosl.org/pub/freedroid/"
1191 "freedroidRPG-" (version-major+minor version) "/"
1192 "freedroidRPG-" version ".tar.gz"))
1193 (sha256
1194 (base32 "0n4kn38ncmcy3lrxmq8fjry6c1z50z4q1zcqfig0j4jb0dsz2va2"))))
1195 (build-system gnu-build-system)
1196 (arguments
1197 `(#:configure-flags
1198 (list
1199 (string-append "CFLAGS="
1200 "-I" (assoc-ref %build-inputs "sdl-gfx") "/include/SDL "
1201 "-I" (assoc-ref %build-inputs "sdl-image") "/include/SDL "
1202 "-I" (assoc-ref %build-inputs "sdl-mixer") "/include/SDL")
1203 "--enable-opengl")
1204 ;; FIXME: the test suite fails with the following error output:
1205 ;; 4586 Segmentation fault env SDL_VIDEODRIVER=dummy \
1206 ;; SDL_AUDIODRIVER=dummy ./src/freedroidRPG -nb text
1207 #:tests? #f))
1208 (native-inputs
1209 `(("pkg-config" ,pkg-config)))
1210 (inputs
1211 `(("glu" ,glu)
1212 ("libjpeg" ,libjpeg-turbo)
1213 ("libogg" ,libogg)
1214 ("libpng" ,libpng)
1215 ("libvorbis" ,libvorbis)
1216 ("mesa" ,mesa)
1217 ("python" ,python-wrapper)
1218 ("sdl" ,sdl)
1219 ("sdl-gfx" ,sdl-gfx)
1220 ("sdl-image" ,sdl-image)
1221 ("sdl-mixer" ,sdl-mixer)
1222 ("zlib" ,zlib)))
1223 (home-page "https://www.freedroid.org/")
1224 (synopsis "Isometric role-playing game against killer robots")
1225 (description
1226 "Freedroid RPG is an @dfn{RPG} (Role-Playing Game) with isometric graphics.
1227 The game tells the story of a world destroyed by a conflict between robots and
1228 their human masters. To restore peace to humankind, the player must complete
1229 numerous quests while fighting off rebelling robots---either by taking control
1230 of them, or by simply blasting them to pieces with melee and ranged weapons in
1231 real-time combat.")
1232 (license (list license:expat ; lua/
1233 license:gpl3 ; src/gen_savestruct.py
1234 license:gpl2+)))) ; the rest
1235
1236 (define-public golly
1237 (package
1238 (name "golly")
1239 (version "3.3")
1240 (source (origin
1241 (method url-fetch)
1242 (uri (string-append "mirror://sourceforge/golly/golly/golly-"
1243 version "/golly-" version
1244 "-src.tar.gz"))
1245 (sha256
1246 (base32
1247 "1j3ksnar4rdam4xiyspgyrs1pifbvxfxkrn65brkwxpx39mpgzc8"))))
1248 (build-system gnu-build-system)
1249 (arguments
1250 '(#:make-flags (list "CC=gcc"
1251 (string-append "GOLLYDIR="
1252 (assoc-ref %outputs "out")
1253 "/share/golly"))
1254 #:tests? #f ; no check target
1255 #:phases
1256 (modify-phases %standard-phases
1257 (replace 'configure
1258 (lambda* (#:key inputs #:allow-other-keys)
1259 ;; For some reason, setting the PYTHON_SHLIB make flag doesn't
1260 ;; properly set the path to the Python shared library. This
1261 ;; substitution acheives the same end by different means.
1262 (substitute* "gui-wx/wxprefs.cpp"
1263 (("pythonlib = wxT\\(STRINGIFY\\(PYTHON_SHLIB\\)\\)")
1264 (string-append "pythonlib = \""
1265 (assoc-ref inputs "python")
1266 "/lib/libpython-2.7.so\"")))
1267 #t))
1268 (replace 'build
1269 (lambda* (#:key make-flags outputs #:allow-other-keys)
1270 (with-directory-excursion "gui-wx"
1271 (apply invoke `("make" ,@make-flags "-f" "makefile-gtk")))))
1272 (replace 'install
1273 (lambda* (#:key outputs #:allow-other-keys)
1274 (let* ((out (assoc-ref outputs "out"))
1275 (bin (string-append out "/bin"))
1276 (doc (string-append out "/share/doc/golly"))
1277 (pixmaps (string-append out "/share/pixmaps"))
1278 (share (string-append out "/share/golly")))
1279 (for-each (lambda (binary)
1280 (install-file binary bin))
1281 '("bgolly" "golly"))
1282 (for-each (lambda (document)
1283 (install-file
1284 (string-append "docs/" document ".html")
1285 doc))
1286 '("License" "ReadMe" "ToDo"))
1287 (install-file "gui-wx/icons/appicon.xpm" pixmaps)
1288 (for-each (lambda (folder)
1289 (copy-recursively
1290 folder
1291 (string-append share "/" folder)))
1292 '("Help" "Patterns" "Rules" "Scripts")))
1293 #t)))))
1294 (native-inputs
1295 `(("lua" ,lua)))
1296 (inputs
1297 `(("glu" ,glu)
1298 ("mesa" ,mesa)
1299 ("python" ,python-2)
1300 ("wxwidgets" ,wxwidgets-gtk2)
1301 ("zlib" ,zlib)))
1302 (home-page "http://golly.sourceforge.net/")
1303 (synopsis "Software for exploring cellular automata")
1304 (description
1305 "Golly simulates Conway's Game of Life and many other types of cellular
1306 automata. The following features are available:
1307 @enumerate
1308 @item Support for bounded and unbounded universes, with cells of up to 256
1309 states.
1310 @item Support for multiple algorithms, including Bill Gosper's Hashlife
1311 algorithm.
1312 @item Loading patterns from BMP, PNG, GIF and TIFF image files.
1313 @item Reading RLE, macrocell, Life 1.05/1.06, dblife and MCell files.
1314 @item Scriptable via Lua or Python.
1315 @item Extracting patterns, rules and scripts from zip files.
1316 @item Downloading patterns, rules and scripts from online archives.
1317 @item Pasting patterns from the clipboard.
1318 @item Unlimited undo/redo.
1319 @item Configurable keyboard shortcuts.
1320 @item Auto fit option to keep patterns within the view.
1321 @end enumerate")
1322 (license license:gpl2+)))
1323
1324 (define-public julius
1325 (package
1326 (name "julius")
1327 (version "1.6.0")
1328 (source
1329 (origin
1330 (method git-fetch)
1331 (uri (git-reference
1332 (url "https://github.com/bvschaik/julius")
1333 (commit (string-append "v" version))))
1334 (file-name (git-file-name name version))
1335 (sha256
1336 (base32 "0nfdn8n6ywhm69ckz9a1chl5xxiqyaj3l337wadsbppnpscjihrc"))
1337 ;; Remove unused bundled libraries.
1338 (modules '((guix build utils)))
1339 (snippet
1340 '(begin
1341 (with-directory-excursion "ext"
1342 (for-each delete-file-recursively '("dirent" "png" "SDL2" "zlib")))
1343 #t))))
1344 (build-system cmake-build-system)
1345 (inputs
1346 `(("libpng" ,libpng)
1347 ("sdl2" ,sdl2)
1348 ("sdl2-mixer" ,sdl2-mixer)))
1349 (home-page "https://github.com/bvschaik/julius")
1350 (synopsis "Re-implementation of Caesar III game engine")
1351 (description
1352 "Engine for Caesar III, a city-building real-time strategy game.
1353 Julius includes some UI enhancements while preserving the logic (including
1354 bugs) of the original game, so that saved games are compatible. This package
1355 does not include game data.")
1356 (license (list license:agpl3
1357 license:zlib)))) ; ext/tinyfiledialogs
1358
1359 (define-public augustus
1360 (package
1361 (inherit julius)
1362 (name "augustus")
1363 (version "2.0.1")
1364 (source
1365 (origin
1366 (method git-fetch)
1367 (uri (git-reference
1368 (url "https://github.com/Keriew/augustus")
1369 (commit (string-append "v" version))))
1370 (file-name (git-file-name name version))
1371 (sha256
1372 (base32 "0czazw8mc3fbvdazs2nzvgxd1dpzjc8z5fwiv89vv4nd7laz3jkj"))
1373 ;; Remove unused bundled libraries.
1374 (modules '((guix build utils)))
1375 (snippet
1376 '(begin
1377 (with-directory-excursion "ext"
1378 (for-each delete-file-recursively '("dirent" "png" "SDL2" "zlib")))
1379 #t))))
1380 (arguments
1381 ;; No tests. See https://github.com/Keriew/augustus/issues/82.
1382 `(#:tests? #f))
1383 (home-page "https://github.com/Keriew/augustus")
1384 (synopsis "Re-implementation of Caesar III game engine with gameplay changes")
1385 (description
1386 "Fork of Julius, an engine for the a city-building real-time strategy
1387 game Caesar III. Gameplay enhancements include:
1388
1389 @itemize
1390 @item roadblocks;
1391 @item market special orders;
1392 @item global labour pool;
1393 @item partial warehouse storage;
1394 @item increased game limits;
1395 @item zoom controls.
1396 @end itemize\n")))
1397
1398 (define-public meandmyshadow
1399 (package
1400 (name "meandmyshadow")
1401 (version "0.5a")
1402 (source (origin
1403 (method url-fetch)
1404 (uri (string-append "mirror://sourceforge/meandmyshadow/"
1405 version "/meandmyshadow-" version
1406 "-src.tar.gz"))
1407 (sha256
1408 (base32
1409 "0i98v6cgmpsxy7mbb0s2y6f6qq6mkwzk2nrv1nz39ncf948aky2h"))))
1410 (build-system cmake-build-system)
1411 (arguments
1412 `(#:tests? #f)) ; there are no tests
1413 (native-inputs
1414 `(("pkg-config" ,pkg-config)))
1415 (inputs
1416 `(("curl" ,curl)
1417 ("libarchive" ,libarchive)
1418 ("lua" ,lua)
1419 ("sdl" ,(sdl-union (list sdl2
1420 sdl2-image
1421 sdl2-mixer
1422 sdl2-ttf)))))
1423 (home-page "https://acmepjz.github.io/meandmyshadow/")
1424 (synopsis "Puzzle/platform game")
1425 (description "Me and My Shadow is a puzzle/platform game in which you try
1426 to reach the exit by solving puzzles. Spikes, moving blocks, fragile blocks
1427 and much more stand between you and the exit. Record your moves and let your
1428 shadow mimic them to reach blocks you couldn't reach alone.")
1429 (license license:gpl3+)))
1430
1431 (define-public opensurge
1432 (package
1433 (name "opensurge")
1434 (version "0.5.1.2")
1435 (source
1436 (origin
1437 (method git-fetch)
1438 (uri (git-reference
1439 (url "https://github.com/alemart/opensurge")
1440 (commit (string-append "v" version))))
1441 (file-name (git-file-name name version))
1442 (sha256
1443 (base32 "0ih7hlqjnp9rv0m4lqf7c0s1ai532way5i4pk45jq1gqm8325dbv"))))
1444 (build-system cmake-build-system)
1445 (arguments
1446 `(#:tests? #f ;there are no tests
1447 #:configure-flags
1448 (let* ((out (assoc-ref %outputs "out"))
1449 (share (string-append out "/share")))
1450 (list (string-append "-DCMAKE_INSTALL_PREFIX=" out "/bin")
1451 (string-append "-DGAME_DATADIR=" share "/" ,name)
1452 (string-append "-DDESKTOP_ENTRY_PATH=" share "/applications")
1453 (string-append "-DDESKTOP_ICON_PATH=" share "/pixmaps")
1454 (string-append "-DDESKTOP_METAINFO_PATH=" share "/metainfo")))
1455 #:phases
1456 (modify-phases %standard-phases
1457 (add-after 'unpack 'fix-xdg-open-path
1458 (lambda* (#:key inputs #:allow-other-keys)
1459 ;; Look for xdg-open in the store.
1460 (substitute* "src/core/web.c"
1461 (("/usr(/bin/xdg-open)" _ bin)
1462 (string-append (assoc-ref inputs "xdg-utils") bin)))
1463 #t))
1464 (add-after 'unpack 'unbundle-fonts
1465 (lambda* (#:key inputs #:allow-other-keys)
1466 ;; Replace bundled Roboto fonts with links to the store.
1467 (with-directory-excursion "fonts"
1468 (let ((roboto-dir (string-append
1469 (assoc-ref inputs "font-google-roboto")
1470 "/share/fonts/truetype/")))
1471 (for-each
1472 (lambda (font)
1473 (delete-file font)
1474 (symlink (string-append roboto-dir font) font))
1475 '("Roboto-Black.ttf" "Roboto-Bold.ttf" "Roboto-Medium.ttf")))
1476 #t))))))
1477 (inputs
1478 `(("allegro" ,allegro)
1479 ("font-google-roboto" ,font-google-roboto)
1480 ("surgescript" ,surgescript)
1481 ("xdg-utils" ,xdg-utils)))
1482 (home-page "https://opensurge2d.org")
1483 (synopsis "2D retro side-scrolling game")
1484 (description "@code{Open Surge} is a 2D retro side-scrolling platformer
1485 inspired by the Sonic games. The player runs at high speeds through each
1486 level while collecting items and avoiding obstacles. The game includes a
1487 built-in level editor.")
1488 (license
1489 ;; Code is under GPL 3+, assets are under various licenses.
1490 ;; See src/misc/credits.c for details.
1491 (list license:gpl3+
1492 license:cc0
1493 license:cc-by3.0
1494 license:cc-by-sa3.0
1495 license:expat
1496 license:public-domain
1497 license:silofl1.1))))
1498
1499 (define-public knights
1500 (package
1501 (name "knights")
1502 (version "025")
1503 (source (origin
1504 (method url-fetch)
1505 (uri (string-append "http://www.knightsgame.org.uk/files/knights_"
1506 version "_src.tar.gz"))
1507 (sha256
1508 (base32
1509 "18vp2ygvn0s0jz8rm585jqf6hjqkam1ximq81k0r9hpmfj7wb88f"))))
1510 (build-system gnu-build-system)
1511 (arguments
1512 '(#:make-flags
1513 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
1514 "CXXFLAGS=-lpthread")
1515 #:phases
1516 (modify-phases %standard-phases
1517 ;; No configure script.
1518 (delete 'configure))
1519 #:tests? #f)) ;; No check target.
1520 (inputs
1521 `(("boost" ,boost)
1522 ("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer)))
1523 ("freetype" ,freetype)
1524 ("fontconfig" ,fontconfig)
1525 ("curl" ,curl)))
1526 (native-inputs
1527 `(("pkg-config" ,pkg-config)))
1528 (home-page "http://www.knightsgame.org.uk/")
1529 (synopsis "Multiplayer dungeon game involving knights and quests")
1530 (description "Knights is a multiplayer game involving several knights who
1531 must run around a dungeon and complete various quests. Each game revolves
1532 around a quest – for example, you might have to find some items and carry them
1533 back to your starting point. This may sound easy, but as there are only
1534 enough items in the dungeon for one player to win, you may end up having to
1535 kill your opponents to get their stuff! Other quests involve escaping from
1536 the dungeon, fighting a duel to the death against the enemy knights, or
1537 destroying an ancient book using a special wand.")
1538 ;; This package includes modified sources of lua (X11), enet (Expat), and
1539 ;; guichan (BSD-3). The "Coercri" library is released under the Boost
1540 ;; license. The whole package is released under GPLv3+.
1541 (license license:gpl3+)))
1542
1543 (define-public gnome-chess
1544 (package
1545 (name "gnome-chess")
1546 (version "3.37.3")
1547 (source (origin
1548 (method url-fetch)
1549 (uri (string-append "mirror://gnome/sources/gnome-chess/"
1550 (version-major+minor version) "/"
1551 "gnome-chess-" version ".tar.xz"))
1552 (sha256
1553 (base32
1554 "09axf0q1mp13sv8cs0syfg8ahcd9r2qb26278r09j6s4njxmkfv4"))))
1555 (build-system meson-build-system)
1556 (arguments
1557 '(#:glib-or-gtk? #t
1558 #:phases
1559 (modify-phases %standard-phases
1560 (add-after 'unpack 'skip-gtk-update-icon-cache
1561 ;; Don't create 'icon-theme.cache'.
1562 (lambda _
1563 (substitute* "meson_post_install.py"
1564 (("gtk-update-icon-cache") "true"))
1565 #t)))))
1566 (inputs
1567 `(("gtk+" ,gtk+)
1568 ("librsvg" ,librsvg)))
1569 (native-inputs
1570 `(("gettext" ,gettext-minimal)
1571 ("glib:bin" ,glib "bin") ; for desktop-file-validate and appstream-util
1572 ("itstool" ,itstool)
1573 ("pkg-config" ,pkg-config)
1574 ("vala" ,vala)))
1575 (home-page "https://wiki.gnome.org/Apps/Chess")
1576 (synopsis "Chess board for GNOME")
1577 (description "GNOME Chess provides a 2D board for playing chess games
1578 against human or computer players. It supports loading and saving games in
1579 Portable Game Notation. To play against a computer, install a chess engine
1580 such as chess or stockfish.")
1581 (license license:gpl3+)))
1582
1583 (define-public gnubg
1584 (package
1585 (name "gnubg")
1586 (version "1.06.002")
1587 (source
1588 (origin
1589 (method url-fetch)
1590 (uri (string-append "mirror://gnu/gnubg/gnubg-release-"
1591 version "-sources.tar.gz"))
1592 (sha256
1593 (base32
1594 "11xwhcli1h12k6rnhhyq4jphzrhfik7i8ah3k32pqw803460n6yf"))))
1595 (build-system gnu-build-system)
1596 (inputs `(;; XXX: Build with an older Pango for 'pango_font_get_hb_font' and
1597 ;; 'pango_coverage_get_type'. Try removing this for versions > 1.06.002.
1598 ("pango" ,pango-1.42)
1599
1600 ("glib" ,glib)
1601 ("readline" ,readline)
1602 ("gtk+" ,gtk+-2)
1603 ("mesa" ,mesa)
1604 ("glu" ,glu)
1605 ("gtkglext" ,gtkglext)
1606 ("sqlite" ,sqlite)
1607 ("libcanberra" ,libcanberra)))
1608 (native-inputs `(("python-2" ,python-2)
1609 ("pkg-config" ,pkg-config)))
1610 (arguments
1611 `(#:configure-flags
1612 ;; SSE instructions are available on Intel systems only.
1613 (list ,@(if (any (cute string-prefix? <> (or (%current-target-system)
1614 (%current-system)))
1615 '("x86_64" "i686"))
1616 '("--enable-simd=sse2") ; prevent avx instructions
1617 '()))
1618 #:phases
1619 (modify-phases %standard-phases
1620 (add-after 'install 'install-desktop-file
1621 (lambda* (#:key outputs #:allow-other-keys)
1622 (let* ((out (assoc-ref outputs "out"))
1623 (apps (string-append out "/share/applications")))
1624 (mkdir-p apps)
1625 (with-output-to-file (string-append apps "/gnubg.desktop")
1626 (lambda _
1627 (format #t
1628 "[Desktop Entry]~@
1629 Name=GNU Backgammon~@
1630 Exec=~a/bin/gnubg -w~@
1631 Icon=gnubg~@
1632 Categories=Game;~@
1633 Terminal=false~@
1634 Type=Application~%"
1635 out))))
1636 #t)))))
1637 (home-page "https://www.gnu.org/software/gnubg/")
1638 (synopsis "Backgammon game")
1639 (description "The GNU backgammon application (also known as \"gnubg\") can
1640 be used for playing, analyzing and teaching the game. It has an advanced
1641 evaluation engine based on artificial neural networks suitable for both
1642 beginners and advanced players. In addition to a command-line interface, it
1643 also features an attractive, 3D representation of the playing board.")
1644 (license license:gpl3+)))
1645
1646 (define-public gnubik
1647 (package
1648 (name "gnubik")
1649 (version "2.4.3")
1650 (source
1651 (origin
1652 (method url-fetch)
1653 (uri (string-append "mirror://gnu/gnubik/gnubik-"
1654 version ".tar.gz"))
1655 (sha256
1656 (base32
1657 "1vlf924mq8hg93bsjj0rzvs0crc6psmlxyc6zn0fr7msnmpx6gib"))))
1658 (build-system gnu-build-system)
1659 (arguments
1660 '(#:phases (modify-phases %standard-phases
1661 (add-after 'unpack 'skip-gtk-update-icon-cache
1662 (lambda _
1663 ;; Do not attempt to run 'gtk-update-icon-cache', which is
1664 ;; unnecessary and causes a needless dependency on glib.
1665 (substitute* "Makefile.in"
1666 (("gtk-update-icon-cache")
1667 "true"))
1668 #t)))))
1669 (inputs `(("gtk+" ,gtk+-2)
1670 ("mesa" ,mesa)
1671 ("glu" ,glu)
1672 ("libx11" ,libx11)
1673 ("guile" ,guile-2.0)
1674 ("gtkglext" ,gtkglext)))
1675 (native-inputs `(("gettext" ,gettext-minimal)
1676 ("pkg-config" ,pkg-config)))
1677 (home-page "https://www.gnu.org/software/gnubik/")
1678 (synopsis "3d Rubik's cube game")
1679 (description
1680 "GNUbik is a puzzle game in which you must manipulate a cube to make
1681 each of its faces have a uniform color. The game is customizable, allowing
1682 you to set the size of the cube (the default is 3x3) or to change the colors.
1683 You may even apply photos to the faces instead of colors. The game is
1684 scriptable with Guile.")
1685 (license license:gpl3+)))
1686
1687 (define-public gnushogi
1688 (package
1689 (name "gnushogi")
1690 (version "1.4.2")
1691 (source
1692 (origin
1693 (method url-fetch)
1694 (uri (string-append "mirror://gnu/gnushogi/gnushogi-"
1695 version ".tar.gz"))
1696 (sha256
1697 (base32
1698 "0a9bsl2nbnb138lq0h14jfc5xvz7hpb2bcsj4mjn6g1hcsl4ik0y"))))
1699 (arguments `(#:tests? #f)) ;; No check target.
1700 (build-system gnu-build-system)
1701 (home-page "https://www.gnu.org/software/gnushogi/")
1702 (synopsis "The game of Shogi (Japanese chess)")
1703 (description "GNU Shogi is a program that plays the game Shogi (Japanese
1704 Chess). It is similar to standard chess but this variant is far more complicated.")
1705 (license license:gpl3+)))
1706
1707 (define-public ltris
1708 (package
1709 (name "ltris")
1710 (version "1.2.1")
1711 (source
1712 (origin
1713 (method url-fetch)
1714 (uri (string-append "mirror://sourceforge/lgames/ltris/"
1715 "ltris-" version ".tar.gz"))
1716 (sha256
1717 (base32 "0959vvxh5xnxzpdv7i67lpd2b6ghx69z65ldnclj1z6llyfzfs7q"))))
1718 (build-system gnu-build-system)
1719 (arguments
1720 '(;; The code in LTris uses traditional GNU semantics for inline functions
1721 #:configure-flags '("CFLAGS=-fgnu89-inline")
1722 #:phases
1723 (modify-phases %standard-phases
1724 (add-after 'set-paths 'set-sdl-paths
1725 (lambda* (#:key inputs #:allow-other-keys)
1726 (setenv "CPATH"
1727 (string-append (assoc-ref inputs "sdl-union")
1728 "/include/SDL:"
1729 (or (getenv "CPATH") "")))
1730 #t)))))
1731 (inputs
1732 `(("sdl-union" ,(sdl-union (list sdl sdl-mixer)))))
1733 (home-page "http://lgames.sourceforge.net/LTris/")
1734 (synopsis "Tetris clone based on the SDL library")
1735 (description
1736 "LTris is a tetris clone: differently shaped blocks are falling down the
1737 rectangular playing field and can be moved sideways or rotated by 90 degree
1738 units with the aim of building lines without gaps which then disappear (causing
1739 any block above the deleted line to fall down). LTris has three game modes: In
1740 Classic you play until the stack of blocks reaches the top of the playing field
1741 and no new blocks can enter. In Figures the playing field is reset to a new
1742 figure each level and later on tiles and lines suddenly appear. In Multiplayer
1743 up to three players (either human or CPU) compete with each other sending
1744 removed lines to all opponents. There is also a Demo mode in which you can
1745 watch your CPU playing while enjoying a cup of tea!")
1746 (license license:gpl2+)))
1747
1748 (define-public nethack
1749 (package
1750 (name "nethack")
1751 (version "3.6.6")
1752 (source
1753 (origin
1754 (method url-fetch)
1755 (uri
1756 (string-append "https://www.nethack.org/download/" version "/nethack-"
1757 (string-join (string-split version #\.) "") "-src.tgz"))
1758 (sha256
1759 (base32 "1liyckjp34j354qnxc1zn9730lh1p2dabrg1hap24z6xnqx0rpng"))))
1760 (native-inputs
1761 `(("bison" ,bison)
1762 ("flex" ,flex)))
1763 (inputs
1764 `(("ncurses" ,ncurses)
1765 ("less" ,less)))
1766 (build-system gnu-build-system)
1767 (arguments
1768 '(#:make-flags
1769 `(,(string-append "PREFIX=" (assoc-ref %outputs "out")))
1770 #:phases
1771 (modify-phases %standard-phases
1772 (add-before 'configure 'patch-paths
1773 (lambda _
1774 (substitute* "sys/unix/nethack.sh"
1775 (("^ *cd .*$") ""))
1776 (substitute* "sys/unix/Makefile.utl"
1777 (("^YACC *=.*$") "YACC = bison -y\n")
1778 (("^LEX *=.*$") "LEX = flex\n")
1779 (("^# CC = gcc") "CC = gcc"))
1780 (substitute* "sys/unix/hints/linux"
1781 (("/bin/gzip") (string-append
1782 (assoc-ref %build-inputs "gzip")
1783 "/bin/gzip"))
1784 (("^WINTTYLIB=.*") "WINTTYLIB=-lncurses"))
1785 (substitute* "include/config.h"
1786 (("^.*define CHDIR.*$") "")
1787 (("^/\\* *#*define *REPRODUCIBLE_BUILD *\\*/")
1788 ;; Honor SOURCE_DATE_EPOCH.
1789 "#define REPRODUCIBLE_BUILD"))
1790
1791 ;; Note: 'makedefs' rejects and ignores dates that are too old
1792 ;; or too new, so we must choose something reasonable here.
1793 (setenv "SOURCE_DATE_EPOCH" "1531865062")
1794
1795 (substitute* "sys/unix/Makefile.src"
1796 (("^# CC = gcc") "CC = gcc"))
1797 #t))
1798 (replace 'configure
1799 (lambda _
1800 (let ((bash (string-append
1801 (assoc-ref %build-inputs "bash")
1802 "/bin/bash")))
1803 (with-directory-excursion "sys/unix"
1804 (substitute* "setup.sh" (("/bin/sh") bash))
1805 (invoke bash "setup.sh" "hints/linux"))
1806 #t)))
1807 (add-after 'install 'fixup-paths
1808 (lambda _
1809 (let* ((output (assoc-ref %outputs "out"))
1810 (nethack-script (string-append output "/bin/nethack")))
1811 (mkdir-p (string-append output "/games/lib/nethackuserdir"))
1812 (for-each
1813 (lambda (file)
1814 (rename-file
1815 (string-append output "/games/lib/nethackdir/" file)
1816 (string-append output "/games/lib/nethackuserdir/"
1817 file)))
1818 '("xlogfile" "logfile" "perm" "record" "save"))
1819 (mkdir-p (string-append output "/bin"))
1820 (call-with-output-file nethack-script
1821 (lambda (port)
1822 (format port "#!~a/bin/sh
1823 PATH=~a:$PATH
1824 if [ ! -d ~~/.config/nethack ]; then
1825 mkdir -p ~~/.config/nethack
1826 cp -r ~a/games/lib/nethackuserdir/* ~~/.config/nethack
1827 chmod -R +w ~~/.config/nethack
1828 fi
1829
1830 RUNDIR=$(mktemp -d)
1831
1832 cleanup() {
1833 rm -rf $RUNDIR
1834 }
1835 trap cleanup EXIT
1836
1837 cd $RUNDIR
1838 for i in ~~/.config/nethack/*; do
1839 ln -s $i $(basename $i)
1840 done
1841 for i in ~a/games/lib/nethackdir/*; do
1842 ln -s $i $(basename $i)
1843 done
1844 ~a/games/nethack"
1845 (assoc-ref %build-inputs "bash")
1846 (list->search-path-as-string
1847 (list
1848 (string-append
1849 (assoc-ref %build-inputs "coreutils") "/bin")
1850 (string-append
1851 (assoc-ref %build-inputs "less") "/bin"))
1852 ":")
1853 output
1854 output
1855 output)))
1856 (chmod nethack-script #o555)
1857 #t)))
1858 (delete 'check))))
1859 (home-page "https://nethack.org")
1860 (synopsis "Classic dungeon crawl game")
1861 (description "NetHack is a single player dungeon exploration game that runs
1862 on a wide variety of computer systems, with a variety of graphical and text
1863 interfaces all using the same game engine. Unlike many other Dungeons &
1864 Dragons-inspired games, the emphasis in NetHack is on discovering the detail of
1865 the dungeon and not simply killing everything in sight - in fact, killing
1866 everything in sight is a good way to die quickly. Each game presents a
1867 different landscape - the random number generator provides an essentially
1868 unlimited number of variations of the dungeon and its denizens to be discovered
1869 by the player in one of a number of characters: you can pick your race, your
1870 role, and your gender.")
1871 (license
1872 (license:fsdg-compatible
1873 "https://nethack.org/common/license.html"))))
1874
1875 (define-public pipewalker
1876 (package
1877 (name "pipewalker")
1878 (version "0.9.4")
1879 (source
1880 (origin
1881 (method url-fetch)
1882 (uri (string-append "mirror://sourceforge/pipewalker/pipewalker/"
1883 version "/pipewalker-" version ".tar.gz"))
1884 (sha256
1885 (base32 "1x46wgk0s55562pd96cxagxkn6wpgglq779f9b64ff1k3xzp3myn"))))
1886 (build-system gnu-build-system)
1887 (arguments
1888 `(#:configure-flags
1889 (list (string-append "--docdir=" (assoc-ref %outputs "out")
1890 "/share/doc/" ,name "-" ,version))
1891 #:phases
1892 (modify-phases %standard-phases
1893 (add-after 'configure 'patch-docdir
1894 ;; Makefile.in ignores configure's ‘--docdir=...’ option. Fix that.
1895 (lambda _
1896 (substitute* "Makefile"
1897 (("(pkgdocdatadir = ).*" _ assignment)
1898 (string-append assignment "$(docdir)\n")))
1899 #t)))))
1900 (inputs
1901 `(("libpng" ,libpng)
1902 ("mesa" ,mesa)
1903 ("sdl" ,sdl)))
1904 (home-page "http://pipewalker.sourceforge.net/")
1905 (synopsis "Logical tile puzzle")
1906 (description
1907 "PipeWalker is a simple puzzle game with many diffent themes: connect all
1908 computers to one network server, bring water from a source to the taps, etc.
1909 The underlying mechanism is always the same: you must turn each tile in the
1910 grid in the right direction to combine all components into a single circuit.
1911 Every puzzle has a complete solution, although there may be more than one.")
1912 (license license:gpl3+)))
1913
1914 (define-public prboom-plus
1915 (package
1916 (name "prboom-plus")
1917 (version "2.5.1.4")
1918 (source (origin
1919 (method url-fetch)
1920 (uri (string-append "mirror://sourceforge/prboom-plus/prboom-plus/"
1921 version "/prboom-plus-" version ".tar.gz"))
1922 (sha256
1923 (base32 "151v6nign86m1a2vqz27krsccpc9m4d1jax4y43v2fa82wfj9qp0"))
1924 (modules '((guix build utils)))
1925 (snippet
1926 '(begin
1927 (substitute* "src/version.c"
1928 (("__DATE__") "")
1929 (("__TIME__") ""))
1930 #t))))
1931 (build-system gnu-build-system)
1932 (arguments
1933 '(#:configure-flags '("--disable-cpu-opt")
1934 #:make-flags `(,(string-append "gamesdir="
1935 (assoc-ref %outputs "out") "/bin"))
1936 #:phases
1937 (modify-phases %standard-phases
1938 (add-after 'set-paths 'set-sdl'paths
1939 (lambda* (#:key inputs #:allow-other-keys)
1940 (setenv "CPATH"
1941 (string-append (assoc-ref inputs "sdl-union")
1942 "/include/SDL:"
1943 (or (getenv "CPATH") "")))
1944 #t)))))
1945 (inputs
1946 `(("fluidsynth" ,fluidsynth)
1947 ("glu" ,glu)
1948 ("libmad" ,libmad)
1949 ("libpng" ,libpng)
1950 ("libvorbis" ,libvorbis)
1951 ("pcre" ,pcre)
1952 ("portmidi" ,portmidi)
1953 ("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer sdl-net)))))
1954 (home-page "http://prboom-plus.sourceforge.net/")
1955 (synopsis "Version of the classic 3D shoot'em'up game Doom")
1956 (description
1957 "PrBoom+ is a Doom source port developed from the original PrBoom project.")
1958 (license license:gpl2+)))
1959
1960 (define-public retux
1961 (let ((release "1.4.1")
1962 (revision 1))
1963 (package
1964 (name "retux")
1965 (version (if (zero? revision)
1966 release
1967 (string-append release "-"
1968 (number->string revision))))
1969 (source (origin
1970 (method url-fetch)
1971 (uri (string-append "https://github.com/retux-game/retux/"
1972 "releases/download/v"
1973 version "/retux-"
1974 release "-src.tar.gz"))
1975 (sha256
1976 (base32
1977 "1vrldg2qh2gqfswj7vkpc589ldrrjd903j6cnfdik9zh0jhlq4h2"))))
1978 (build-system python-build-system)
1979 (arguments
1980 `(#:tests? #f ; no check target
1981 #:phases
1982 (modify-phases %standard-phases
1983 ;; no setup.py script
1984 (delete 'build)
1985 (replace 'install
1986 (lambda* (#:key outputs #:allow-other-keys)
1987 (let* ((out (assoc-ref outputs "out"))
1988 (bin (string-append out "/bin"))
1989 (data (string-append out "/share/retux")))
1990 (mkdir-p bin)
1991
1992 (substitute* "retux.py"
1993 ;; Use the correct data directory.
1994 (("os\\.path\\.join\\(os\\.path\\.dirname\\(__file__\\), \"data\"\\),")
1995 (string-append "\"" data "\",")))
1996
1997 (copy-file "retux.py" (string-append bin "/retux"))
1998 (copy-recursively "data" data)
1999 #t))))))
2000 (inputs
2001 `(("python-sge-pygame" ,python-sge-pygame)
2002 ("python-six" ,python-six)
2003 ("python-xsge" ,python-xsge)))
2004 (home-page "https://retux-game.github.io/")
2005 (synopsis "Action platformer game")
2006 (description
2007 "ReTux is an action platformer loosely inspired by the Mario games,
2008 utilizing the art assets from the @code{SuperTux} project.")
2009 ;; GPL version 3 or later is the license for the code and some art.
2010 ;; The rest of the licenses are for the art exclusively, as listed in
2011 ;; data/LICENSES.
2012 (license (list license:cc0
2013 license:cc-by3.0
2014 license:cc-by-sa3.0
2015 license:cc-by-sa4.0
2016 license:gpl2+
2017 license:gpl3+)))))
2018
2019 (define-public roguebox-adventures
2020 (package
2021 (name "roguebox-adventures")
2022 (version "3.0.1")
2023 (source
2024 (origin
2025 (method url-fetch)
2026 (uri (string-append
2027 "http://download.tuxfamily.org/rba/RogueBoxAdventures_v"
2028 (string-join (string-split version #\.) "_") "_Source.zip"))
2029 (file-name (string-append name "-" version ".zip"))
2030 (sha256
2031 (base32
2032 "05zd03s5w9kcpklfgcggbaa6rwf59nm0q9vcj6gh9v2lh402k067"))))
2033 (build-system python-build-system)
2034 (arguments
2035 `(#:tests? #f ; no check target
2036 #:phases
2037 (modify-phases %standard-phases
2038 (replace 'unpack
2039 (lambda* (#:key source #:allow-other-keys)
2040 (and (invoke "unzip" source)
2041 ;; The actual source is buried a few directories deep.
2042 (chdir (string-append "RogueBoxAdventures_v"
2043 (string-join
2044 (string-split ,version #\.) "_")
2045 "_Source")))))
2046 ;; no setup.py script
2047 (replace 'build
2048 (lambda* (#:key outputs #:allow-other-keys)
2049 (let* ((out (assoc-ref outputs "out"))
2050 (data (string-append
2051 out "/share/games/roguebox-adventures")))
2052 ;; Use the correct data directory.
2053 (substitute* '("main.py" "LIB/getch.py" "LIB/getch_gcwz.py")
2054 (("basic_path + os\\.sep + 'DATA'")
2055 (string-append "'" data "'"))
2056 (("^basic_path.*$")
2057 (string-append "basic_path ='" data "'\n")))
2058 (substitute* "LIB/dialog.py"
2059 (("d_path = os\\.path\\.dirname\\(.*\\)\\)")
2060 (string-append "d_path = '" data "'")))
2061 (substitute* "LIB/gra_files.py"
2062 (("basic_path = b_path\\.replace\\('/LIB',''\\)")
2063 (string-append "basic_path ='" data "'\n")))
2064
2065 ;; The game must save in the user's home directory because
2066 ;; the store is read-only.
2067 (substitute* "main.py"
2068 (("home_save = False") "home_save = True")
2069 (("'icon_small.png'")
2070 (string-append "'" data "/icon_small.png'"))))
2071 #t))
2072 (replace 'install
2073 (lambda* (#:key outputs #:allow-other-keys)
2074 (let* ((out (assoc-ref outputs "out"))
2075 (bin (string-append out "/bin"))
2076 (roguebox-adventures
2077 (string-append bin "/roguebox-adventures"))
2078 (data (string-append
2079 out "/share/games/roguebox-adventures"))
2080 (lib (string-append data "/LIB"))
2081 (doc (string-append
2082 out "/share/doc/roguebox-adventures")))
2083 (mkdir-p bin)
2084 (mkdir-p doc)
2085
2086 (for-each (lambda (file)
2087 (copy-recursively file
2088 (string-append data "/" file)))
2089 '("AUDIO" "FONT" "GRAPHIC" "LIB" "LICENSE"
2090 "icon_big.png" "icon_small.png"))
2091 (for-each (lambda (file)
2092 (chmod file #o555)
2093 (install-file file lib))
2094 '("main.py" "run.py"))
2095
2096 (copy-recursively "DOC" doc)
2097
2098 (call-with-output-file
2099 roguebox-adventures
2100 (lambda (p)
2101 (format p "\
2102 #!~a
2103 export PYTHONPATH=~a/LIB:~a
2104 exec -a \"~a\" ~a \"$@\"\n"
2105 (which "bash") data (getenv "PYTHONPATH")
2106 (which "python3")
2107 (string-append lib "/main.py"))))
2108 (chmod roguebox-adventures #o555))
2109 #t)))))
2110 (native-inputs
2111 `(("unzip" ,unzip)))
2112 (inputs
2113 `(("python-pygame" ,python-pygame)
2114 ("python-tmx" ,python-tmx)))
2115 (home-page "https://rogueboxadventures.tuxfamily.org")
2116 (synopsis "A classical roguelike/sandbox game")
2117 (description
2118 "RogueBox Adventures is a graphical roguelike with strong influences
2119 from sandbox games like Minecraft or Terraria. The main idea of RogueBox
2120 Adventures is to offer the player a kind of roguelike toy-world. This world
2121 can be explored and changed freely.")
2122 ;; The GPL3+ is for code, the rest are for art.
2123 (license (list license:cc0
2124 license:cc-by3.0
2125 license:gpl3+
2126 license:silofl1.1))))
2127
2128 (define-public seahorse-adventures
2129 (package
2130 (name "seahorse-adventures")
2131 (version "1.3")
2132 (source
2133 (origin
2134 (method git-fetch)
2135 (uri (git-reference
2136 (url "https://github.com/dulsi/seahorse-adventures")
2137 (commit (string-append "release-" version))))
2138 (file-name (git-file-name name version))
2139 (sha256
2140 (base32 "0m53jh2gchzr7rs35hml6lbvc5kb5hp229wlfqa09098b7hhl15a"))
2141 (modules '((guix build utils)
2142 (ice-9 ftw)
2143 (srfi srfi-1)))
2144 ;; Remove non-free (non-commercial) font.
2145 (snippet
2146 `(begin
2147 (for-each delete-file (find-files "data/fonts" "."))
2148 #t))))
2149 (build-system python-build-system)
2150 (arguments
2151 `(#:tests? #f ;no test
2152 #:phases
2153 (modify-phases %standard-phases
2154 (delete 'build) ;pure Python
2155 (replace 'install ;no install script
2156 (lambda* (#:key outputs #:allow-other-keys)
2157 (let* ((out (assoc-ref outputs "out"))
2158 (bin (string-append out "/bin"))
2159 (share (string-append out "/share"))
2160 (applications (string-append share "/applications"))
2161 (data (string-append share "/seahorse-adventures")))
2162 ;; Install data.
2163 (for-each (lambda (f)
2164 (chmod f #o555)
2165 (install-file f data))
2166 '("leveledit.py" "run_game.py" "tileedit.py"))
2167 (for-each (lambda (dir)
2168 (let ((target (string-append data "/" dir)))
2169 (mkdir-p target)
2170 (copy-recursively dir target)))
2171 '("data" "lib"))
2172 ;; Create executable.
2173 (mkdir-p bin)
2174 (let ((executable (string-append bin "/seahorse-adventures")))
2175 (call-with-output-file executable
2176 (lambda (p)
2177 (format p
2178 "#!~a~@
2179 export PYTHONPATH=~a:~a~@
2180 exec -a \"~a\" ~a \"$@\"~%"
2181 (which "bash") data (getenv "PYTHONPATH")
2182 (which "python3")
2183 (string-append data "/run_game.py"))))
2184 (chmod executable #o555))
2185 ;; Add desktop file.
2186 (mkdir-p applications)
2187 (make-desktop-entry-file
2188 (string-append applications "/seahorse-adventures.desktop")
2189 #:name "Seahorse Adventures"
2190 #:comment
2191 '((#f "Help Barbie the seahorse float on bubbles to the moon"))
2192 #:exec ,name
2193 #:icon ,name
2194 #:categories '("Game" "ActionGame")
2195 #:keywords '("game" "retro" "platform"))
2196 ;; Add icons.
2197 (for-each
2198 (lambda (size)
2199 (let ((dir (string-append share "/icons/hicolor/"
2200 size "x" size "/apps")))
2201 (mkdir-p dir)
2202 (copy-file
2203 (string-append "icon" size ".png")
2204 (string-append dir "/searhorse-adventures.png"))))
2205 '("32" "64" "128")))
2206 #t))
2207 (add-after 'install 'unbundle-fonts
2208 ;; Unbundle Bitstream Vera font and replace deleted one.
2209 (lambda* (#:key outputs inputs #:allow-other-keys)
2210 (let* ((out (assoc-ref outputs "out"))
2211 (data (string-append out "/share/seahorse-adventures"))
2212 (vera (string-append (assoc-ref inputs "font-bitstream-vera")
2213 "/share/fonts/truetype/Vera.ttf")))
2214 (let ((themes-dir (string-append data "/data/themes/")))
2215 (for-each
2216 (lambda (theme)
2217 (let ((target (string-append themes-dir theme "/Vera.ttf")))
2218 (delete-file target)
2219 (symlink vera target)))
2220 '("default" "gray")))
2221 (symlink vera (string-append data "/data/fonts/04B_20__.TTF"))
2222 (substitute* (string-append data "/lib/main.py")
2223 (("f_scale = 0.35") "f_scale = 0.47")))
2224 #t)))))
2225 (inputs
2226 `(("font-bitstream-vera" ,font-bitstream-vera)
2227 ("python-pygame" ,python-pygame)))
2228 (home-page "http://www.imitationpickles.org/barbie/")
2229 (synopsis "Help Barbie the seahorse float on bubbles to the moon")
2230 (description
2231 "Barbie Seahorse Adventures is a retro style platform arcade game.
2232 You are Barbie the seahorse who travels through the jungle, up to the
2233 volcano until you float on bubbles to the moon. On the way to your
2234 final destination you will encounter various enemies, servants of the
2235 evil overlord who has stolen the galaxy crystal. Avoid getting hit
2236 and defeat them with your bubbles!")
2237 ;; GPL2+ is for code, CC0 is for art.
2238 (license (list license:gpl2+ license:cc0))))
2239
2240 (define-public solarus
2241 (package
2242 (name "solarus")
2243 ;; XXX: When updating this package, please also update hash in
2244 ;; `solarus-quest-editor' below.
2245 (version "1.6.4")
2246 (source
2247 (origin
2248 (method git-fetch)
2249 (uri (git-reference
2250 (url "https://gitlab.com/solarus-games/solarus")
2251 (commit (string-append "v" version))))
2252 (file-name (git-file-name name version))
2253 (sha256
2254 (base32 "1n6l91yyqjx0pz4w1lp3yybpq0fs2yjswfcm8c1wjfkxwiznbdxi"))))
2255 (build-system cmake-build-system)
2256 (arguments
2257 `(#:phases
2258 (modify-phases %standard-phases
2259 (add-after 'unpack 'disable-failing-tests
2260 ;; The following tests fail reporting a missing "/dev/dri"
2261 ;; file.
2262 (lambda _
2263 (substitute* "tests/cmake/AddTestMaps.cmake"
2264 ((".*1200_create_shader_from_source.*" all)
2265 (string-append "#" all))
2266 ((".*1210_shader_scaling_factor.*" all)
2267 (string-append "#" all)))
2268 #t))
2269 (add-before 'check 'set-home
2270 ;; Tests fail without setting the following environment
2271 ;; variables.
2272 (lambda _
2273 (setenv "HOME" (getcwd))
2274 (setenv "XDG_RUNTIME_DIR" (getcwd))
2275 #t)))))
2276 (native-inputs
2277 `(("pkg-config" ,pkg-config)
2278 ("qttools" ,qttools)))
2279 (inputs
2280 `(("glm" ,glm)
2281 ("libmodplug" ,libmodplug)
2282 ("libogg" ,libogg)
2283 ("libvorbis" ,libvorbis)
2284 ("luajit" ,luajit)
2285 ("openal" ,openal)
2286 ("physfs" ,physfs)
2287 ("qtbase" ,qtbase)
2288 ("sdl2" ,(sdl-union (list sdl2 sdl2-image sdl2-ttf)))))
2289 (home-page "https://www.solarus-games.org/")
2290 (synopsis "Lightweight game engine for Action-RPGs")
2291 (description
2292 "Solarus is a 2D game engine written in C++, that can run games
2293 scripted in Lua. It has been designed with 16-bit classic Action-RPGs
2294 in mind.")
2295 ;; The source code is licensed under the terms of GPL-3.0.
2296 ;; Resources are licensed under the terms of CC-BY-SA-3.0 and
2297 ;; CC-BY-SA 4.0.
2298 (license (list license:gpl3 license:cc-by-sa3.0 license:cc-by-sa4.0))))
2299
2300 (define-public solarus-quest-editor
2301 (package
2302 (inherit solarus)
2303 (name "solarus-quest-editor")
2304 (version (package-version solarus))
2305 (source
2306 (origin
2307 (method git-fetch)
2308 (uri (git-reference
2309 (url "https://gitlab.com/solarus-games/solarus-quest-editor")
2310 (commit (string-append "v" version))))
2311 (file-name (git-file-name name version))
2312 (sha256
2313 (base32 "1qbc2j9kalk7xqk9j27s7wnm5zawiyjs47xqkqphw683idmzmjzn"))))
2314 (arguments
2315 `(#:tests? #false ;no test
2316 #:phases
2317 (modify-phases %standard-phases
2318 (add-after 'unpack 'fix-qt-build
2319 ;; XXX: Fix build with Qt 5.15. It has been applied upstream as
2320 ;; 81d5c7f1 and can be removed at next upgrade.
2321 (lambda _
2322 (substitute* "src/entities/jumper.cpp"
2323 (("#include <QPainter>" all)
2324 (string-append all "\n" "#include <QPainterPath>\n")))
2325 #t)))))
2326 (inputs
2327 `(("solarus" ,solarus)
2328 ,@(package-inputs solarus)))
2329 (synopsis "Create and modify quests for the Solarus engine")
2330 (description
2331 "Solarus Quest Editor is a graphical user interface to create and
2332 modify quests for the Solarus engine.")))
2333
2334 (define-public superstarfighter
2335 (package
2336 (name "superstarfighter")
2337 (version "0.6.4")
2338 (source
2339 (origin
2340 (method git-fetch)
2341 (uri (git-reference
2342 (url "https://github.com/notapixelstudio/superstarfighter")
2343 (commit (string-append "v" version))))
2344 (file-name (git-file-name name version))
2345 (sha256
2346 (base32 "1fly63yf5ls1xwm15if4lxwy67wi84k4gvjllljpykrl18vw2y0y"))))
2347 (build-system gnu-build-system)
2348 (arguments
2349 `(#:tests? #f ;there are no tests
2350 #:phases
2351 (modify-phases %standard-phases
2352 (replace 'configure
2353 (lambda _
2354 (chdir "godot")
2355 (setenv "HOME" (getcwd))
2356 (with-output-to-file "export_presets.cfg"
2357 (lambda ()
2358 (display
2359 "[preset.0]
2360 name=\"Guix\"
2361 platform=\"Linux/X11\"
2362 runnable=true
2363 [preset.0.options]")))
2364 #t))
2365 (replace 'build
2366 (lambda _
2367 (let ((godot (assoc-ref %build-inputs "godot-headless")))
2368 (invoke (string-append godot "/bin/godot_server")
2369 "--export-pack" "Guix"
2370 "superstarfighter.pck" "project.godot"))
2371 #t))
2372 (replace 'install
2373 (lambda* (#:key inputs outputs #:allow-other-keys)
2374 (let* ((out (assoc-ref outputs "out"))
2375 (bin (string-append out "/bin"))
2376 (share (string-append out "/share"))
2377 (data (string-append share "/superstarfighter"))
2378 (icons (string-append share "/icons/hicolor/256x256/apps")))
2379 (install-file "superstarfighter.pck" data)
2380 (mkdir-p bin)
2381 (call-with-output-file (string-append bin "/superstarfighter")
2382 (lambda (port)
2383 (format port
2384 "#!/bin/sh~@
2385 exec ~a/bin/godot --main-pack ~a/superstarfighter.pck~%"
2386 (assoc-ref inputs "godot")
2387 data)
2388 (chmod port #o755)))
2389 (mkdir-p icons)
2390 (copy-file "icon.png" (string-append icons "/" ,name ".png"))
2391 (make-desktop-entry-file
2392 (string-append share "/applications/" ,name ".desktop")
2393 #:name "SuperStarfighter"
2394 #:comment "Fast-paced arcade combat game"
2395 #:exec ,name
2396 #:icon ,name
2397 #:categories '("Game" "ArcadeGame")))
2398 #t)))))
2399 (native-inputs
2400 `(("godot-headless" ,godot "headless")))
2401 (inputs
2402 `(("godot" ,godot)))
2403 (home-page "https://notapixel.itch.io/superstarfighter")
2404 (synopsis "Fast-paced local multiplayer arcade game")
2405 (description "In SuperStarfighter, up to four local players compete in a
2406 2D arena with fast-moving ships and missiles. Different game types are
2407 available, as well as a single-player mode with AI-controlled ships.")
2408 (license (list license:expat ; game
2409 license:silofl1.1)))) ; fonts
2410
2411 (define %ufoai-commit "a542a87a891f96b1ab2c44d35b2f6f16859a5019")
2412 (define %ufoai-revision "0")
2413 (define %ufoai-version (git-version "2.6.0_dev" %ufoai-revision %ufoai-commit))
2414 (define ufoai-source
2415 (origin
2416 (method git-fetch)
2417 (uri (git-reference
2418 (url "git://git.code.sf.net/p/ufoai/code") ;HTTPS fails mid-clone
2419 (commit %ufoai-commit)))
2420 (file-name (string-append "ufoai-" %ufoai-version "-checkout"))
2421 (sha256
2422 (base32
2423 "024s7b9rcg7iw8i2p72gwnvabk23ljlq0nldws0y4b6hpwzyn1wz"))
2424 (modules '((guix build utils)
2425 (srfi srfi-1)
2426 (ice-9 ftw)))
2427 (snippet
2428 '(begin
2429 ;; Delete ~32MiB of bundled dependencies.
2430 (with-directory-excursion "src/libs"
2431 (for-each delete-file-recursively
2432 (lset-difference equal? (scandir ".")
2433 '("." ".." "gtest" "mumble"))))
2434
2435 ;; Use relative path to Lua headers.
2436 (substitute* "src/common/scripts_lua.h"
2437 (("\\.\\./libs/lua/") ""))
2438
2439 ;; Adjust Makefile targets to not depend on 'ufo2map', since we build
2440 ;; it as a separate package. This way we don't need to make the same
2441 ;; adjustments for 'ufoai-data' and 'ufoai' below.
2442 (substitute* "build/maps.mk"
2443 (("\\./ufo2map") "ufo2map")
2444 (("maps: ufo2map") "maps:"))
2445 (substitute* "build/modules/testall.mk"
2446 (("testall: ufo2map") "testall:"))
2447
2448 ;; If no cURL headers are found, the build system will try to include
2449 ;; the bundled version, even when not required. Prevent that.
2450 (substitute* "build/default.mk"
2451 (("^include src/libs/curl/lib/Makefile\\.inc")
2452 ""))
2453
2454 ;; While here, improve reproducibility by adding the '-X' flag to the
2455 ;; zip command used to create the map files, in order to prevent time
2456 ;; stamps from making it into the generated archives.
2457 (substitute* "build/data.mk"
2458 (("\\$\\(call ZIP\\)")
2459 "$(call ZIP) -X"))
2460 #t))))
2461
2462 (define-public ufo2map
2463 (package
2464 (name "ufo2map")
2465 (version %ufoai-version)
2466 (home-page "https://ufoai.org/")
2467 (source ufoai-source)
2468 (build-system gnu-build-system)
2469 (arguments
2470 '(#:configure-flags '("CC=gcc" "CXX=g++"
2471 "--enable-release"
2472 "--enable-ufo2map"
2473 "--disable-uforadiant"
2474 "--disable-cgame-campaign"
2475 "--disable-cgame-multiplayer"
2476 "--disable-cgame-skirmish"
2477 "--disable-game"
2478 "--disable-memory"
2479 "--disable-testall"
2480 "--disable-ufoded"
2481 "--disable-ufo"
2482 "--disable-ufomodel"
2483 "--disable-ufoslicer")
2484 #:tests? #f ;no tests
2485 #:phases (modify-phases %standard-phases
2486 (replace 'configure
2487 (lambda* (#:key (configure-flags '()) #:allow-other-keys)
2488 ;; The home-made configure script does not understand
2489 ;; some of the default flags of gnu-build-system.
2490 (apply invoke "./configure" configure-flags)))
2491 (replace 'install
2492 (lambda* (#:key outputs #:allow-other-keys)
2493 (let ((out (assoc-ref outputs "out")))
2494 (install-file "ufo2map" (string-append out "/bin"))
2495 (install-file "debian/ufo2map.6"
2496 (string-append out "/share/man/man6"))
2497 #t))))))
2498 (native-inputs
2499 `(("pkg-config" ,pkg-config)))
2500 (inputs
2501 `(("libjpeg" ,libjpeg-turbo)
2502 ("libpng" ,libpng)
2503 ("lua" ,lua-5.1)
2504 ("sdl-union" ,(sdl-union (list sdl2 sdl2-mixer sdl2-ttf)))))
2505 (synopsis "UFO: AI map generator")
2506 (description
2507 "This package provides @command{ufo2map}, a program used to generate
2508 maps for the UFO: Alien Invasion strategy game.")
2509 (license license:gpl2+)))
2510
2511 (define ufoai-data
2512 (package
2513 (name "ufoai-data")
2514 (version %ufoai-version)
2515 (home-page "https://ufoai.org/")
2516 (source ufoai-source)
2517 (build-system gnu-build-system)
2518 (arguments
2519 '(#:tests? #f
2520 #:configure-flags '("CC=gcc" "CXX=g++")
2521 #:phases (modify-phases %standard-phases
2522 (replace 'configure
2523 (lambda* (#:key outputs (configure-flags '()) #:allow-other-keys)
2524 (apply invoke "./configure" configure-flags)))
2525 (replace 'build
2526 (lambda* (#:key (parallel-build? #t) #:allow-other-keys)
2527 (invoke "make"
2528 "-j" (if parallel-build?
2529 (number->string (parallel-job-count))
2530 "1")
2531 "maps")))
2532 (add-after 'build 'pack
2533 (lambda _
2534 (invoke "make" "pk3")))
2535 (replace 'install
2536 (lambda* (#:key outputs #:allow-other-keys)
2537 (let ((out (assoc-ref outputs "out")))
2538 (for-each (lambda (file)
2539 (install-file file out))
2540 (find-files "base" "\\.pk3$"))
2541 #t))))))
2542 (native-inputs
2543 `(("python" ,python-2)
2544 ("ufo2map" ,ufo2map)
2545 ("which" ,which)
2546 ("zip" ,zip)))
2547 (synopsis "UFO: AI data files")
2548 (description
2549 "This package contains maps and other assets for UFO: Alien Invasion.")
2550 ;; Most assets are available under either GPL2 or GPL2+. Some use other
2551 ;; licenses, see LICENSES for details.
2552 (license (list license:gpl2+ license:gpl2 license:cc-by3.0
2553 license:cc-by-sa3.0 license:public-domain))))
2554
2555 (define-public ufoai
2556 (package
2557 (name "ufoai")
2558 (version %ufoai-version)
2559 (home-page "https://ufoai.org/")
2560 (source ufoai-source)
2561 (build-system gnu-build-system)
2562 (arguments
2563 `(#:configure-flags
2564 (list (string-append "--prefix=" (assoc-ref %outputs "out"))
2565 (string-append "--datadir=" (assoc-ref %outputs "out")
2566 "/share/games/ufo")
2567 "CC=gcc" "CXX=g++"
2568 "--enable-release"
2569 "--enable-game"
2570 "--disable-ufo2map"
2571 "--disable-dependency-tracking"
2572
2573 ;; Disable hard links to prevent huge NARs.
2574 "--disable-hardlinkedgame"
2575 "--disable-hardlinkedcgame")
2576 #:phases (modify-phases %standard-phases
2577 (add-after 'unpack 'symlink-data-files
2578 (lambda* (#:key inputs #:allow-other-keys)
2579 (let ((data (assoc-ref inputs "ufoai-data")))
2580 ;; Symlink the data files to where the build system
2581 ;; expects to find them. Ultimately these files are
2582 ;; copied to $out/share/games/ufoai/base, losing the
2583 ;; symlinks; we could fix that after install, but it
2584 ;; does not make a big difference in practice due to
2585 ;; deduplication.
2586 (with-directory-excursion "base"
2587 (for-each (lambda (file)
2588 (symlink file (basename file)))
2589 (find-files data "\\.pk3$")))
2590 #t)))
2591 (add-before 'configure 'create-language-files
2592 (lambda _
2593 (invoke "make" "lang")))
2594 (replace 'configure
2595 (lambda* (#:key outputs (configure-flags '()) #:allow-other-keys)
2596 (apply invoke "./configure" configure-flags)))
2597 (replace 'check
2598 (lambda* (#:key tests? #:allow-other-keys)
2599 (if tests?
2600 (invoke "./testall")
2601 (format #t "test suite not run~%"))
2602 #t))
2603 (add-after 'install 'install-man-pages
2604 (lambda* (#:key outputs #:allow-other-keys)
2605 (let* ((out (assoc-ref outputs "out"))
2606 (man6 (string-append out "/share/man/man6")))
2607 (install-file "debian/ufo.6" man6)
2608 (install-file "debian/ufoded.6" man6)
2609 #t))))
2610
2611 ;; TODO: Some map tests occasionally fail because of randomness issues,
2612 ;; e.g. not enough generated aliens. The test runner also fails early
2613 ;; in the build container with 'failed to shutdown server'?
2614 #:tests? #f))
2615 (native-inputs
2616 `(("gettext" ,gettext-minimal)
2617 ("pkg-config" ,pkg-config)
2618 ("python" ,python-2)
2619 ("ufo2map" ,ufo2map)
2620 ("ufoai-data" ,ufoai-data)))
2621 (inputs
2622 `(("curl" ,curl)
2623 ("libjpeg" ,libjpeg-turbo)
2624 ("libogg" ,libogg)
2625 ("libpng" ,libpng)
2626 ("libtheora" ,libtheora)
2627 ("libvorbis" ,libvorbis)
2628 ("libxml2" ,libxml2)
2629 ("lua" ,lua-5.1)
2630 ("mesa" ,mesa)
2631 ("minixml" ,minixml)
2632 ("sdl-union" ,(sdl-union (list sdl2 sdl2-mixer sdl2-ttf)))
2633 ("zlib" ,zlib)))
2634 (synopsis "Turn-based tactical strategy game")
2635 (description
2636 "UFO: Alien Invasion is a tactical strategy game set in the year 2084.
2637 You control a secret organisation charged with defending Earth from a brutal
2638 alien enemy. Build up your bases, prepare your team, and dive head-first into
2639 the fast and flowing turn-based combat.
2640
2641 Over the long term you will need to conduct research into the alien threat to
2642 figure out their mysterious goals and use their powerful weapons for your own
2643 ends. You will produce unique items and use them in combat against your
2644 enemies.
2645
2646 You can also use them against your friends with the multiplayer functionality.
2647
2648 Warning: This is a pre-release version of UFO: AI! Some things may not work
2649 properly.")
2650
2651 ;; The game code and most assets are GPL2+, but we use GPL2 only here
2652 ;; because some assets do not use the "or later" clause. Many individual
2653 ;; assets use Creative Commons or Public Domain; see the LICENSE file.
2654 (license (delete license:gpl2+ (package-license ufoai-data)))))
2655
2656 (define-public xshogi
2657 (package
2658 (name "xshogi")
2659 (version "1.4.2")
2660 (source
2661 (origin
2662 (method url-fetch)
2663 (uri (string-append "mirror://gnu/gnushogi/xshogi-"
2664 version ".tar.gz"))
2665 (sha256
2666 (base32
2667 "1dns0nhymak44by18sv48m4xb2skiwbi2i3nb9hl6w9iwd2i2brf"))))
2668 (build-system gnu-build-system)
2669 (inputs
2670 `(("libxaw" ,libxaw)
2671 ("libxt" ,libxt)))
2672 (home-page "https://www.gnu.org/software/gnushogi/")
2673 (synopsis "User interface for gnushogi")
2674 (description "A graphical user interface for the package @code{gnushogi}.")
2675 ;; Contains a copy of GPLv3 but the licence notices simply
2676 ;; state "GNU General Public Licence" without specifying a version.
2677 (license license:gpl1+)))
2678
2679 (define-public abbaye
2680 (package
2681 (name "abbaye")
2682 (version "2.0.1")
2683 (source
2684 (origin
2685 (method git-fetch)
2686 (uri (git-reference
2687 (url "https://github.com/nevat/abbayedesmorts-gpl")
2688 (commit (string-append "v" version))))
2689 (file-name (git-file-name name version))
2690 (sha256
2691 (base32 "1pwqf7r9bqb2p3xrw9i7y8pgr1401fy3mnnqpb1qkhmdl3gqi9hb"))
2692 (modules '((guix build utils)))
2693 (snippet
2694 ;; Unbundle fonts.
2695 '(begin
2696 (delete-file-recursively "fonts")
2697 #t))))
2698 (build-system gnu-build-system)
2699 (arguments
2700 '(#:make-flags '("CC=gcc")
2701 #:phases (modify-phases %standard-phases
2702 (add-after 'set-paths 'set-sdl-paths
2703 (lambda* (#:key inputs #:allow-other-keys)
2704 (setenv "CPATH"
2705 (string-append (assoc-ref inputs "sdl-union")
2706 "/include/SDL:"
2707 (or (getenv "CPATH") "")))))
2708 (add-after 'patch-source-shebangs 'patch-makefile
2709 (lambda* (#:key outputs #:allow-other-keys)
2710 ;; Replace /usr with package output directory.
2711 (substitute* "Makefile"
2712 (("/usr") (assoc-ref outputs "out")))))
2713 (add-before 'install 'make-install-dirs
2714 (lambda* (#:key outputs #:allow-other-keys)
2715 (let ((prefix (assoc-ref outputs "out")))
2716 ;; Create directories that the makefile assumes exist.
2717 (mkdir-p (string-append prefix "/bin"))
2718 (mkdir-p (string-append prefix "/share/applications"))
2719 (mkdir-p (string-append prefix "/share/pixmaps")))))
2720 ;; No configure script.
2721 (delete 'configure))
2722 #:tests? #f)) ;; No check target.
2723 (native-inputs `(("pkg-config" ,pkg-config)))
2724 (inputs `(("sdl-union" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer)))))
2725 (home-page "https://github.com/nevat/abbayedesmorts-gpl")
2726 (synopsis "GNU/Linux port of the indie game \"l'Abbaye des Morts\"")
2727 (description "L'Abbaye des Morts is a 2D platform game set in 13th century
2728 France. The Cathars, who preach about good Christian beliefs, were being
2729 expelled by the Catholic Church out of the Languedoc region in France. One of
2730 them, called Jean Raymond, found an old church in which to hide, not knowing
2731 that beneath its ruins lay buried an ancient evil.")
2732 (license license:gpl3)))
2733
2734 (define-public angband
2735 (package
2736 (name "angband")
2737 (version "4.2.1")
2738 (source
2739 (origin
2740 (method url-fetch)
2741 (uri (string-append "https://rephial.org/downloads/"
2742 (version-major+minor version)
2743 "/angband-" version ".tar.gz"))
2744 (sha256
2745 (base32 "03qdavkj2ik02mqjxmlm5bn17ba3yxb1rirp8ghnxy3bsk4kbmxc"))
2746 (modules '((guix build utils)))
2747 (snippet
2748 ;; So, some of the sounds/graphics/tilesets are under different
2749 ;; licenses... some of them even nonfree! This is a console-only
2750 ;; version of this package so we just remove them.
2751 ;; In the future, if someone tries to make a graphical variant of
2752 ;; this package, they can deal with that mess themselves. :)
2753 '(begin
2754 (for-each (lambda (subdir)
2755 (let ((lib-subdir (string-append "lib/" subdir)))
2756 (delete-file-recursively lib-subdir)))
2757 '("fonts" "icons" "sounds" "tiles"))
2758 (substitute* "lib/Makefile"
2759 ;; And don't try to invoke makefiles in the directories we removed.
2760 (("gamedata customize help screens fonts tiles sounds icons user")
2761 "gamedata customize help screens user"))
2762 #t))))
2763 (build-system gnu-build-system)
2764 (arguments
2765 `(#:tests? #f ; no check target
2766 #:configure-flags (list (string-append "--bindir=" %output "/bin"))
2767 #:phases
2768 (modify-phases %standard-phases
2769 (replace 'bootstrap
2770 (lambda _
2771 (substitute* "acinclude.m4"
2772 (("ncursesw5-config") "ncursesw6-config"))
2773 (invoke "sh" "autogen.sh"))))))
2774 (native-inputs
2775 `(("autoconf" ,autoconf)
2776 ("automake" ,automake)))
2777 (inputs `(("ncurses" ,ncurses)))
2778 (home-page "https://rephial.org/")
2779 (synopsis "Dungeon exploration roguelike")
2780 (description "Angband is a Classic dungeon exploration roguelike. Explore
2781 the depths below Angband, seeking riches, fighting monsters, and preparing to
2782 fight Morgoth, the Lord of Darkness.")
2783 (license license:gpl2)))
2784
2785 (define-public pingus
2786 (package
2787 (name "pingus")
2788 (version "0.7.6")
2789 (source
2790 (origin
2791 (method git-fetch)
2792 (uri (git-reference
2793 (url "https://gitlab.com/pingus/pingus.git")
2794 (commit (string-append "v" version))))
2795 (file-name (git-file-name name version))
2796 (sha256
2797 (base32
2798 "0wp06kcmknsnxz7bjnsndb8x062z7r23fb3yrnbfnj68qhz18y74"))
2799 (patches (search-patches "pingus-boost-headers.patch"
2800 "pingus-sdl-libs-config.patch"))
2801 (modules '((guix build utils)))
2802 (snippet
2803 '(begin
2804 (substitute* "src/pingus/screens/demo_session.cpp"
2805 (("#include <iostream>")
2806 ;; std::function moved to <functional> with C++ 11.
2807 ;; Remove this for versions newer than 0.7.6.
2808 "#include <iostream>\n#include <functional>"))
2809 #t))))
2810 (build-system gnu-build-system)
2811 (native-inputs `(("pkg-config" ,pkg-config)
2812 ("scons-python2" ,scons-python2)))
2813 (inputs `(("sdl" ,sdl)
2814 ("sdl-image" ,sdl-image)
2815 ("sdl-mixer" ,sdl-mixer)
2816 ("mesa" ,mesa)
2817 ("glu" ,glu)
2818 ("libpng" ,libpng)
2819 ("boost" ,boost)))
2820 (arguments
2821 '(#:make-flags (list (string-append "PREFIX=" %output))
2822 #:tests? #f ; no check target
2823 #:phases
2824 (modify-phases %standard-phases
2825 (delete 'configure)))) ; no configure script
2826 (home-page "https://pingus.seul.org/")
2827 (synopsis "Lemmings clone")
2828 (description
2829 "Pingus is a free Lemmings-like puzzle game in which the player takes
2830 command of a bunch of small animals and has to guide them through levels.
2831 Since the animals walk on their own, the player can only influence them by
2832 giving them commands, like build a bridge, dig a hole, or redirect all animals
2833 in the other direction. Multiple such commands are necessary to reach the
2834 level's exit. The game is presented in a 2D side view.")
2835 ;; Some source files are under bsd-3 and gpl2+ licenses.
2836 (license license:gpl3+)))
2837
2838 (define-public talkfilters
2839 (package
2840 (name "talkfilters")
2841 (version "2.3.8")
2842 (source
2843 (origin
2844 (method url-fetch)
2845 (uri (string-append "http://www.hyperrealm.com/talkfilters/"
2846 "talkfilters-" version ".tar.gz"))
2847 (sha256
2848 (base32 "19nc5vq4bnkjvhk8srqddzhcs93jyvpm9r6lzjzwc1mgf08yg0a6"))))
2849 (build-system gnu-build-system)
2850 (home-page "https://www.gnu.org/software/talkfilters/")
2851 (synopsis "Convert English text to humorous dialects")
2852 (description "The GNU Talk Filters are programs that convert English text
2853 into stereotyped or otherwise humorous dialects. The filters are provided as
2854 a C library, so they can easily be integrated into other programs.")
2855 (license license:gpl2+)))
2856
2857 (define-public taisei
2858 (package
2859 (name "taisei")
2860 (version "1.3.1")
2861 (source
2862 (origin
2863 (method url-fetch)
2864 (uri (string-append "https://github.com/taisei-project/"
2865 "taisei/releases/download/v" version
2866 "/taisei-v" version ".tar.xz"))
2867 (sha256
2868 (base32 "11f9mlqmzy1lszwcc1nsbar9q1hs4ml6pbm52hqfd4q0f4x3ln46"))))
2869 (build-system meson-build-system)
2870 (arguments
2871 `(#:build-type "release" ;comment out for bug-reporting (and cheats)
2872 #:configure-flags
2873 (list "-Dr_default=gles30"
2874 "-Dr_gles20=true"
2875 "-Dr_gles30=true"
2876 "-Dshader_transpiler=true")))
2877 (native-inputs
2878 `(("pkg-config" ,pkg-config)
2879 ("python" ,python)
2880 ("python-docutils" ,python-docutils)
2881 ("python-pygments" ,python-pygments)))
2882 (inputs
2883 `(("freetype" ,freetype)
2884 ("libpng" ,libpng)
2885 ("libwebp" ,libwebp)
2886 ("libzip" ,libzip)
2887 ("mesa" ,mesa)
2888 ("openssl" ,openssl)
2889 ("opusfile" ,opusfile)
2890 ("sdl2" ,sdl2)
2891 ("sdl2-mixer" ,sdl2-mixer)
2892 ("shaderc" ,shaderc)
2893 ("spirv-cross" ,spirv-cross)
2894 ("zlib" ,zlib)))
2895 (home-page "https://taisei-project.org/")
2896 (synopsis "Shoot'em up fangame and libre clone of Touhou Project")
2897 (description
2898 "The player controls a character (one of three: Good, Bad, and Dead),
2899 dodges the missiles (lots of it cover the screen, but the character's hitbox
2900 is very small), and shoot at the adversaries that keep appear on the screen.")
2901 (license (list ;;game
2902 license:expat
2903 ;;resources/00-taisei.pkgdir/bgm/
2904 ;;atlas/portraits/
2905 license:cc-by4.0
2906 ;;miscellaneous
2907 license:cc0
2908 license:public-domain))))
2909
2910 (define-public cmatrix
2911 (package
2912 (name "cmatrix")
2913 (version "2.0")
2914 (source
2915 (origin
2916 (method git-fetch)
2917 (uri (git-reference
2918 (url "https://github.com/abishekvashok/cmatrix")
2919 (commit (string-append "v" version))))
2920 (file-name (git-file-name name version))
2921 (sha256
2922 (base32
2923 "1h9jz4m4s5l8c3figaq46ja0km1gimrkfxm4dg7mf4s84icmasbm"))))
2924 (build-system gnu-build-system)
2925 (native-inputs
2926 `(("autoconf" ,autoconf)
2927 ("automake" ,automake)))
2928 (arguments
2929 '(#:phases
2930 (modify-phases %standard-phases
2931 (replace 'configure
2932 (lambda* (#:key outputs #:allow-other-keys)
2933 ;; This old ‘configure’ script doesn't support
2934 ;; variables passed as arguments.
2935 (let ((out (assoc-ref outputs "out")))
2936 (setenv "CONFIG_SHELL" (which "bash"))
2937 (invoke "./configure"
2938 (string-append "--prefix=" out))))))))
2939 (inputs `(("ncurses" ,ncurses)))
2940 (home-page "http://www.asty.org/cmatrix")
2941 (synopsis "Simulate the display from \"The Matrix\"")
2942 (description "CMatrix simulates the display from \"The Matrix\" and is
2943 based on the screensaver from the movie's website. It works with terminal
2944 settings up to 132x300 and can scroll lines all at the same rate or
2945 asynchronously and at a user-defined speed.")
2946 (license license:gpl2+)))
2947
2948 (define-public chess
2949 (package
2950 (name "chess")
2951 (version "6.2.7")
2952 (source
2953 (origin
2954 (method url-fetch)
2955 (uri (string-append "mirror://gnu/chess/gnuchess-" version
2956 ".tar.gz"))
2957 (sha256
2958 (base32
2959 "0ilq4bfl0lwyzf11q7n2skydjhalfn3bgxhrp5hjxs5bc5d6fdp5"))))
2960 (build-system gnu-build-system)
2961 (home-page "https://www.gnu.org/software/chess/")
2962 (synopsis "Full chess implementation")
2963 (description "GNU Chess is a chess engine. It allows you to compete
2964 against the computer in a game of chess, either through the default terminal
2965 interface or via an external visual interface such as GNU XBoard.")
2966 (properties '((upstream-name . "gnuchess")
2967 (ftp-directory . "/chess")))
2968 (license license:gpl3+)))
2969
2970 (define-public freedink-engine
2971 (package
2972 (name "freedink-engine")
2973 (version "109.6")
2974 (source (origin
2975 (method url-fetch)
2976 (uri (string-append "mirror://gnu/freedink/freedink-" version
2977 ".tar.gz"))
2978 (patches (search-patches "freedink-engine-fix-sdl-hints.patch"))
2979 (sha256
2980 (base32
2981 "00hhk1bjdrc1np2qz44sa5n1mb62qzwxbvsnws3vpms6iyn3a2sy"))))
2982 (build-system gnu-build-system)
2983 (arguments
2984 `(#:configure-flags '("--disable-embedded-resources")
2985 #:phases
2986 (modify-phases %standard-phases
2987 (add-after 'unpack 'disable-graphical-tests
2988 (lambda _
2989 ;; These tests require a graphical interface.
2990 (substitute* "src/Makefile.am"
2991 (("test_gfx_fonts TestIOGfxDisplay") ""))
2992 #t))
2993 (add-before 'bootstrap 'autoreconf
2994 (lambda _
2995 ;; automake is out of date in the source
2996 ;; autoreconf updates the automake scripts
2997 (invoke "autoreconf")
2998 ;; Build fails when autom4te.cache exists.
2999 (delete-file-recursively "autom4te.cache")
3000 #t))
3001 (add-after 'install 'delete-freedinkedit-desktop
3002 (lambda* (#:key outputs #:allow-other-keys)
3003 (let ((out (assoc-ref outputs "out")))
3004 ;; freedinkedit does not know where to find freedink data
3005 ;; freedink data is read-only, so it cannot be edited anyway.
3006 ;; TODO: fix freedink.desktop
3007 (delete-file-recursively (string-append
3008 out "/share/applications"))
3009 #t))))))
3010 (native-inputs `(("autoconf" ,autoconf)
3011 ("automake" ,automake)
3012 ("cxxtest" ,cxxtest)
3013 ("gettext" ,gettext-minimal)
3014 ("help2man" ,help2man)
3015 ("pkg-config" ,pkg-config)))
3016 (inputs `(("sdl-union" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer
3017 sdl2-ttf sdl2-gfx)))
3018 ("fontconfig" ,fontconfig)
3019 ("glm" ,glm)))
3020 (properties '((ftp-directory . "/freedink")
3021 (upstream-name . "freedink")))
3022 (home-page "https://www.gnu.org/software/freedink/")
3023 (synopsis "Twisted adventures of young pig farmer Dink Smallwood")
3024 (description
3025 "GNU FreeDink is a free and portable re-implementation of the engine
3026 for the role-playing game Dink Smallwood. It supports not only the original
3027 game data files but it also supports user-produced game mods or \"D-Mods\".
3028 To that extent, it also includes a front-end for managing all of your D-Mods.")
3029 (license license:gpl3+)))
3030
3031 (define-public freedink-data
3032 (package
3033 (name "freedink-data")
3034 (version "1.08.20190120")
3035 (source (origin
3036 (method url-fetch)
3037 (uri (string-append "mirror://gnu/freedink/freedink-data-"
3038 version ".tar.gz"))
3039 (sha256
3040 (base32
3041 "17gvryadlxk172mblbsil7hina1z5wahwaxnr6g3mdq57dvl8pvi"))))
3042 (build-system gnu-build-system)
3043 (arguments
3044 `(#:phases
3045 (modify-phases %standard-phases
3046 (delete 'configure) ; no configure script
3047 (delete 'check)) ; no tests
3048 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))))
3049 (properties '((ftp-directory . "/freedink")))
3050 (home-page "https://www.gnu.org/software/freedink/")
3051 (synopsis "Game data for GNU Freedink")
3052 (description
3053 "This package contains the game data of GNU Freedink.")
3054 (license license:gpl3+)))
3055
3056 (define-public freedink-dfarc
3057 (package
3058 (name "freedink-dfarc")
3059 (version "3.14")
3060 (source (origin
3061 (method url-fetch)
3062 (uri (string-append "mirror://gnu/freedink/dfarc-"
3063 version ".tar.gz"))
3064 (sha256
3065 (base32
3066 "1yp8n3w426xnlp10xk06vfi2y3k9xrcfyck7s7qs1v0ys7n284d5"))))
3067 (build-system gnu-build-system)
3068 (native-inputs
3069 `(("intltool" ,intltool)))
3070 (inputs
3071 `(("bzip2" ,bzip2)
3072 ("wxwidgets" ,wxwidgets)))
3073 (properties '((ftp-directory . "/freedink")
3074 (upstream-name . "dfarc")))
3075 (home-page "https://www.gnu.org/software/freedink/")
3076 (synopsis "Front-end for managing and playing Dink Modules")
3077 (description "DFArc makes it easy to play and manage the GNU FreeDink game
3078 and its numerous D-Mods.")
3079 (license license:gpl3+)))
3080
3081 (define-public freedink
3082 ;; This is a wrapper that tells the engine where to find the data.
3083 (package (inherit freedink-engine)
3084 (name "freedink")
3085 (build-system trivial-build-system)
3086 (arguments
3087 '(#:builder (begin
3088 (use-modules (guix build utils))
3089
3090 (let* ((output (assoc-ref %outputs "out"))
3091 (bin (string-append output "/bin"))
3092 (executable (string-append bin "/freedink")))
3093 (mkdir-p bin)
3094 (call-with-output-file executable
3095 (lambda (port)
3096 (format port "#!~a/bin/sh
3097 exec ~a/bin/freedink -refdir ~a/share/dink\n"
3098 (assoc-ref %build-inputs "bash")
3099 (assoc-ref %build-inputs "engine")
3100 (assoc-ref %build-inputs "data"))
3101 (chmod port #o777)))
3102 #t))
3103 #:modules ((guix build utils))))
3104 (inputs `(("engine" ,freedink-engine)
3105 ("data" ,freedink-data)
3106 ("bash" ,bash)))
3107 (native-inputs '())))
3108
3109 (define-public xboard
3110 (package
3111 (name "xboard")
3112 (version "4.9.1")
3113 (source
3114 (origin
3115 (method url-fetch)
3116 (uri (string-append "mirror://gnu/xboard/xboard-" version
3117 ".tar.gz"))
3118 (sha256
3119 (base32
3120 "1mkh36xnnacnz9r00b5f9ld9309k32jv6mcavklbdnca8bl56bib"))))
3121 (build-system gnu-build-system)
3122 (inputs
3123 `(("gtk+" ,gtk+-2)
3124 ("librsvg" ,librsvg)))
3125 (native-inputs
3126 `(("texinfo" ,texinfo)
3127 ("pkg-config" ,pkg-config)))
3128 (home-page "https://www.gnu.org/software/xboard/")
3129 (synopsis "Graphical user interface for chess programs")
3130 (description "GNU XBoard is a graphical board for all varieties of chess,
3131 including international chess, xiangqi (Chinese chess), shogi (Japanese chess)
3132 and Makruk. Several lesser-known variants are also supported. It presents a
3133 fully interactive graphical interface and it can load and save games in the
3134 Portable Game Notation.")
3135 (license license:gpl3+)))
3136
3137 (define-public gtypist
3138 (package
3139 (name "gtypist")
3140 (version "2.9.5")
3141 (source (origin
3142 (method url-fetch)
3143 (uri (string-append "mirror://gnu/gtypist/gtypist-"
3144 version ".tar.xz"))
3145 (sha256
3146 (base32
3147 "0xzrkkmj0b1dw3yr0m9hml2y634cc4h61im6zwcq57s7285z8fn1"))
3148 (modules '((guix build utils)))
3149 (snippet
3150 ;; We do not provide `ncurses.h' within an `ncursesw'
3151 ;; sub-directory, so patch the source accordingly. See
3152 ;; <http://bugs.gnu.org/19018>.
3153 '(begin
3154 (for-each (lambda (file)
3155 (substitute* file
3156 (("ncursesw/ncurses.h")
3157 "ncurses.h")))
3158 (find-files "." "configure$|\\.c$"))
3159 #t))))
3160 (build-system gnu-build-system)
3161 (inputs `(("ncurses" ,ncurses)
3162 ("perl" ,perl)))
3163 (home-page "https://www.gnu.org/software/gtypist/")
3164 (synopsis "Typing tutor")
3165 (description
3166 "GNU Typist is a universal typing tutor. It can be used to learn and
3167 practice touch-typing. Several tutorials are included; in addition to
3168 tutorials for the standard QWERTY layout, there are also tutorials for the
3169 alternative layouts Dvorak and Colemak, as well as for the numpad. Tutorials
3170 are primarily in English, however some in other languages are provided.")
3171 (license license:gpl3+)))
3172
3173 (define-public irrlicht
3174 (package
3175 (name "irrlicht")
3176 (version "1.8.4")
3177 (source (origin
3178 (method url-fetch)
3179 (uri (string-append
3180 "mirror://sourceforge/irrlicht/Irrlicht%20SDK/"
3181 (version-major+minor version)
3182 "/" version "/irrlicht-" version ".zip"))
3183 (sha256
3184 (base32
3185 "0cz4z4dwrv5ypl19ll67wl6jjpy5k6ly4vr042w4br88qq5jhazl"))
3186 (patches (search-patches "irrlicht-use-system-libs.patch"))
3187 (modules '((guix build utils)))
3188 (snippet
3189 '(begin
3190 (for-each delete-file-recursively
3191 '("bin" ; bundled compiled Windows binaries"
3192 "source/Irrlicht/MacOSX"
3193 "source/Irrlicht/bzip2"
3194 "source/Irrlicht/jpeglib"
3195 "source/Irrlicht/libpng"
3196 "source/Irrlicht/lzma"
3197 "source/Irrlicht/zlib"))
3198 (delete-file "source/Irrlicht/glext.h")
3199 (delete-file "source/Irrlicht/glxext.h")
3200 (delete-file "source/Irrlicht/wglext.h")
3201 #t))))
3202 (build-system gnu-build-system)
3203 (arguments
3204 `(#:phases
3205 (modify-phases %standard-phases
3206 (add-after 'unpack 'chdir-to-source
3207 (lambda _
3208 ;; The actual source is buried a few directories deep.
3209 (chdir "source/Irrlicht/")
3210 #t))
3211 (add-after 'chdir-to-source 'fix-build-env
3212 (lambda* (#:key outputs #:allow-other-keys)
3213 (let ((out (assoc-ref outputs "out")))
3214 (substitute* "Makefile"
3215 (("INSTALL_DIR = /usr/local/lib")
3216 (string-append "INSTALL_DIR = " out "/lib"))
3217 ;; Add '-fpermissive' to the CXXFLAGS
3218 (("-Wall") "-Wall -fpermissive")) ; CImageLoaderJPG.cpp
3219 ;; The Makefile assumes these directories exist.
3220 (mkdir-p (string-append out "/lib"))
3221 (mkdir-p (string-append out "/include")))))
3222 (delete 'configure)) ; no configure script
3223 #:tests? #f ; no check target
3224 #:make-flags '("CC=gcc" "sharedlib")))
3225 (inputs
3226 `(("bzip2" ,bzip2)
3227 ("libjpeg" ,libjpeg-turbo)
3228 ("libpng" ,libpng)
3229 ("libx11" ,libx11)
3230 ("libxxf86vm" ,libxxf86vm)
3231 ("mesa" ,mesa)))
3232 (synopsis "3D game engine written in C++")
3233 (description
3234 "The Irrlicht Engine is a high performance realtime 3D engine written in
3235 C++. Features include an OpenGL renderer, extensible materials, scene graph
3236 management, character animation, particle and other special effects, support
3237 for common mesh file formats, and collision detection.")
3238 (home-page "http://irrlicht.sourceforge.net/")
3239 (license license:zlib)))
3240
3241 (define-public mars
3242 ;; The latest release on SourceForge relies on an unreleased version of SFML
3243 ;; with a different API, so we take the latest version from the official
3244 ;; repository on Github.
3245 (let ((commit "c855d044094a1d92317e38935d81ba938946132e")
3246 (revision "1"))
3247 (package
3248 (name "mars")
3249 (version (string-append "0.7.5." revision "." (string-take commit 7) ))
3250 (source (origin
3251 (method git-fetch)
3252 (uri (git-reference
3253 (url "https://github.com/thelaui/M.A.R.S.")
3254 (commit commit)))
3255 (file-name (git-file-name name version))
3256 (sha256
3257 (base32
3258 "1r4c5gap1z2zsv4yjd34qriqkxaq4lb4rykapyzkkdf4g36lc3nh"))
3259 (patches (search-patches "mars-sfml-2.3.patch"
3260 "mars-install.patch"))))
3261 (build-system cmake-build-system)
3262 (arguments
3263 `(#:tests? #f ; There are no tests
3264 #:phases
3265 (modify-phases %standard-phases
3266 (add-after 'unpack 'fix-install-path
3267 (lambda _
3268 (substitute* "src/CMakeLists.txt"
3269 (("\\$\\{CMAKE_INSTALL_PREFIX\\}/games")
3270 "${CMAKE_INSTALL_PREFIX}/bin"))
3271 #t))
3272 (add-after 'unpack 'fix-data-path
3273 (lambda* (#:key outputs #:allow-other-keys)
3274 (substitute* "src/System/settings.cpp"
3275 (("C_dataPath = \"./data/\";")
3276 (string-append "C_dataPath = \""
3277 (assoc-ref outputs "out")
3278 "/share/games/marsshooter/\";")))
3279 #t)))))
3280 (inputs
3281 `(("mesa" ,mesa)
3282 ("fribidi" ,fribidi)
3283 ("taglib" ,taglib)
3284 ("sfml" ,sfml)))
3285 (home-page "http://mars-game.sourceforge.net/")
3286 (synopsis "2D space shooter")
3287 (description
3288 "M.A.R.S. is a 2D space shooter with pretty visual effects and
3289 attractive physics. Players can battle each other or computer controlled
3290 enemies in different game modes such as space ball, death match, team death
3291 match, cannon keep, and grave-itation pit.")
3292 (license license:gpl3+))))
3293
3294 (define-public minetest
3295 (package
3296 (name "minetest")
3297 (version "5.3.0")
3298 (source (origin
3299 (method git-fetch)
3300 (uri (git-reference
3301 (url "https://github.com/minetest/minetest")
3302 (commit version)))
3303 (file-name (git-file-name name version))
3304 (sha256
3305 (base32
3306 "03ga3j3cg38w4lg4d4qxasmnjdl8n3lbizidrinanvyfdyvznyh6"))
3307 (modules '((guix build utils)))
3308 (snippet
3309 '(begin
3310 ;; Delete bundled libraries.
3311 (delete-file-recursively "lib")
3312 #t))))
3313 (build-system cmake-build-system)
3314 (arguments
3315 '(#:configure-flags
3316 (list "-DRUN_IN_PLACE=0"
3317 "-DENABLE_FREETYPE=1"
3318 "-DENABLE_GETTEXT=1"
3319 "-DENABLE_SYSTEM_JSONCPP=TRUE"
3320 (string-append "-DIRRLICHT_INCLUDE_DIR="
3321 (assoc-ref %build-inputs "irrlicht")
3322 "/include/irrlicht")
3323 (string-append "-DCURL_INCLUDE_DIR="
3324 (assoc-ref %build-inputs "curl")
3325 "/include/curl"))
3326 #:tests? #f)) ;no check target
3327 (native-search-paths
3328 (list (search-path-specification
3329 (variable "MINETEST_SUBGAME_PATH")
3330 (files '("share/minetest/games")))))
3331 (native-inputs
3332 `(("pkg-config" ,pkg-config)))
3333 (inputs
3334 `(("curl" ,curl)
3335 ("freetype" ,freetype)
3336 ("gettext" ,gettext-minimal)
3337 ("gmp" ,gmp)
3338 ("irrlicht" ,irrlicht)
3339 ("jsoncpp" ,jsoncpp)
3340 ("libjpeg" ,libjpeg-turbo)
3341 ("libpng" ,libpng)
3342 ("libogg" ,libogg)
3343 ("libvorbis" ,libvorbis)
3344 ("libxxf86vm" ,libxxf86vm)
3345 ("luajit" ,luajit)
3346 ("mesa" ,mesa)
3347 ("ncurses" ,ncurses)
3348 ("openal" ,openal)
3349 ("sqlite" ,sqlite)))
3350 (propagated-inputs
3351 `(("minetest-data" ,minetest-data)))
3352 (synopsis "Infinite-world block sandbox game")
3353 (description
3354 "Minetest is a sandbox construction game. Players can create and destroy
3355 various types of blocks in a three-dimensional open world. This allows
3356 forming structures in every possible creation, on multiplayer servers or as a
3357 single player. Mods and texture packs allow players to personalize the game
3358 in different ways.")
3359 (home-page "https://www.minetest.net/")
3360 (license license:lgpl2.1+)))
3361
3362 (define minetest-data
3363 (package
3364 (name "minetest-data")
3365 (version (package-version minetest))
3366 (source (origin
3367 (method git-fetch)
3368 (uri (git-reference
3369 (url "https://github.com/minetest/minetest_game")
3370 (commit version)))
3371 (file-name (git-file-name name version))
3372 (sha256
3373 (base32
3374 "1liciwlh013z5h08ib0psjbwn5wkvlr937ir7kslfk4vly984cjx"))))
3375 (build-system trivial-build-system)
3376 (native-inputs
3377 `(("source" ,source)))
3378 (arguments
3379 `(#:modules ((guix build utils))
3380 #:builder (begin
3381 (use-modules (guix build utils))
3382 (let ((install-dir (string-append
3383 %output
3384 "/share/minetest/games/minetest_game")))
3385 (mkdir-p install-dir)
3386 (copy-recursively
3387 (assoc-ref %build-inputs "source")
3388 install-dir)
3389 #t))))
3390 (synopsis "Main game data for the Minetest game engine")
3391 (description
3392 "Game data for the Minetest infinite-world block sandbox game.")
3393 (home-page "https://www.minetest.net/")
3394 (license license:lgpl2.1+)))
3395
3396 (define-public minetest-mineclone
3397 (package
3398 (name "minetest-mineclone")
3399 (version "0.66.2")
3400 (source (origin
3401 (method git-fetch)
3402 (uri (git-reference
3403 (url "https://git.minetest.land/Wuzzy/MineClone2")
3404 (commit version)))
3405 (file-name (git-file-name name version))
3406 (sha256
3407 (base32
3408 "0miszzlzplpvaj0j1yii9867ydr42wsaqa9g6grxdrci75p05g00"))))
3409 (build-system copy-build-system)
3410 (arguments
3411 `(#:install-plan
3412 '(("." "share/minetest/games/mineclone"))))
3413 (synopsis "Minecraft clone based on Minetest engine")
3414 (description
3415 "MineClone is a Minetest subgame, that aims to recreate Minecraft as
3416 closely as the engine allows.")
3417 (home-page "https://content.minetest.net/packages/Wuzzy/mineclone2/")
3418 (license license:gpl3+)))
3419
3420 (define glkterm
3421 (package
3422 (name "glkterm")
3423 (version "1.0.4")
3424 (source
3425 (origin
3426 (method url-fetch)
3427 (uri (string-append "http://www.ifarchive.org/if-archive/programming/"
3428 "glk/implementations/glkterm-104.tar.gz"))
3429 (sha256
3430 (base32
3431 "0zlj9nlnkdlvgbiliczinirqygiq8ikg5hzh5vgcmnpg9pvnwga7"))))
3432 (build-system gnu-build-system)
3433 (propagated-inputs `(("ncurses" ,ncurses))) ; required by Make.glkterm
3434 (arguments
3435 '(#:tests? #f ; no check target
3436 #:phases
3437 (modify-phases %standard-phases
3438 (replace 'install
3439 (lambda* (#:key outputs #:allow-other-keys)
3440 (let* ((out (assoc-ref outputs "out"))
3441 (inc (string-append out "/include"))
3442 (lib (string-append out "/lib")))
3443 (for-each
3444 (lambda (file)
3445 (install-file file inc))
3446 '("glk.h" "glkstart.h" "gi_blorb.h" "gi_dispa.h" "Make.glkterm"))
3447 (install-file "libglkterm.a" lib))
3448 #t))
3449 (delete 'configure)))) ; no configure script
3450 (home-page "http://www.eblong.com/zarf/glk/")
3451 (synopsis "Curses Implementation of the Glk API")
3452 (description
3453 "Glk defines a portable API for applications with text UIs. It was
3454 primarily designed for interactive fiction, but it should be suitable for many
3455 interactive text utilities, particularly those based on a command line.
3456 This is an implementation of the Glk library which runs in a terminal window,
3457 using the @code{curses.h} library for screen control.")
3458 (license (license:fsf-free "file://README"))))
3459
3460 (define-public glulxe
3461 (package
3462 (name "glulxe")
3463 (version "0.5.4")
3464 (source
3465 (origin
3466 (method url-fetch)
3467 (uri (string-append "http://www.ifarchive.org/if-archive/programming/"
3468 "glulx/interpreters/glulxe/glulxe-054.tar.gz"))
3469 (sha256
3470 (base32
3471 "0vipydg6ra90yf9b3ipgppwxyb2xdhcxwvirgjy0v20wlf56zhhz"))))
3472 (build-system gnu-build-system)
3473 (inputs `(("glk" ,glkterm)))
3474 (arguments
3475 '(#:tests? #f ; no check target
3476 #:make-flags
3477 (let* ((glk (assoc-ref %build-inputs "glk")))
3478 (list (string-append "GLKINCLUDEDIR=" glk "/include")
3479 (string-append "GLKLIBDIR=" glk "/lib")
3480 (string-append "GLKMAKEFILE=" "Make.glkterm")))
3481 #:phases
3482 (modify-phases %standard-phases
3483 (replace 'install
3484 (lambda* (#:key outputs #:allow-other-keys)
3485 (let* ((out (assoc-ref outputs "out"))
3486 (bin (string-append out "/bin")))
3487 (install-file "glulxe" bin))
3488 #t))
3489 (delete 'configure)))) ; no configure script
3490 (home-page "https://www.eblong.com/zarf/glulx/")
3491 (synopsis "Interpreter for Glulx VM")
3492 (description
3493 "Glulx is a 32-bit portable virtual machine intended for writing and
3494 playing interactive fiction. It was designed by Andrew Plotkin to relieve
3495 some of the restrictions in the venerable Z-machine format. This is the
3496 reference interpreter, using the Glk API.")
3497 (license license:expat)))
3498
3499 (define-public fifechan
3500 (package
3501 (name "fifechan")
3502 (version "0.1.5")
3503 (source (origin
3504 (method url-fetch)
3505 (uri (string-append "https://codeload.github.com/fifengine/"
3506 "fifechan/tar.gz/" version))
3507 (file-name (string-append name "-" version ".tar.gz"))
3508 (sha256
3509 (base32
3510 "0wxs9vz5x9y8chghd8vp7vfk089lfb0qnzggi17zrqkrngs5zgi9"))))
3511 (build-system cmake-build-system)
3512 (inputs
3513 `(("sdl2" ,sdl2)
3514 ("sdl2-image" ,sdl2-image)
3515 ("mesa" ,mesa)))
3516 (arguments
3517 '(#:tests? #f)) ; No included tests
3518 (home-page "https://fifengine.github.io/fifechan/")
3519 (synopsis "Cross platform GUI library specifically for games")
3520 (description
3521 "Fifechan is a lightweight cross platform GUI library written in C++
3522 specifically designed for games. It has a built in set of extendable GUI
3523 Widgets, and allows users to create more.")
3524 (license license:lgpl2.1+)))
3525
3526 (define-public fifengine
3527 (package
3528 (name "fifengine")
3529 (version "0.4.2")
3530 (source (origin
3531 (method url-fetch)
3532 (uri (string-append "https://codeload.github.com/fifengine/"
3533 "fifengine/tar.gz/" version))
3534 (file-name (string-append name "-" version ".tar.gz"))
3535 (patches (search-patches "fifengine-swig-compat.patch"))
3536 (sha256
3537 (base32
3538 "1y4grw25cq5iqlg05rnbyxw1njl11ypidnlsm3qy4sm3xxdvb0p8"))))
3539 (build-system cmake-build-system)
3540 (arguments
3541 `(#:tests? #f ; TODO The test running fails to run some tests.
3542 #:modules ((srfi srfi-1)
3543 (guix build cmake-build-system)
3544 (guix build utils))
3545 #:configure-flags
3546 (list
3547 (string-append "-DOPENALSOFT_INCLUDE_DIR="
3548 (assoc-ref %build-inputs "openal")
3549 "/include/AL")
3550 (string-append "-DPYTHON_SITE_PACKAGES="
3551 (assoc-ref %outputs "out")
3552 "/lib/python"
3553 ,(version-major+minor (package-version python))
3554 "/site-packages"))
3555 #:phases
3556 (modify-phases %standard-phases
3557 (add-after 'unpack 'patch-run_tests.py
3558 (lambda _
3559 ;; Patch the test runner to exit with a status of 1 if any test
3560 ;; fails, to allow detecting failures.
3561 (substitute* "run_tests.py"
3562 (("ERROR\\. One or more tests failed!'\\)")
3563 "ERROR. One or more tests failed!')
3564 \t\texit(1)"))
3565 #t))
3566 ;; Run tests after installation so that we can make use of the built
3567 ;; python modules.
3568 (delete 'check)
3569 (add-after 'install 'check
3570 (lambda* (#:key inputs outputs tests? #:allow-other-keys)
3571 (define python-version
3572 (let* ((version (last (string-split
3573 (assoc-ref inputs "python")
3574 #\-)))
3575 (components (string-split version #\.))
3576 (major+minor (take components 2)))
3577 (string-join major+minor ".")))
3578
3579 (when tests?
3580 ;; Set PYTHONPATH so that python finds the installed modules.
3581 (setenv "PYTHONPATH"
3582 (string-append (getenv "PYTHONPATH") ":"
3583 (assoc-ref outputs "out")
3584 "/lib/python"
3585 python-version
3586 "/site-packages"))
3587 ;; The tests require an X server.
3588 (system "Xvfb :1 &")
3589 (setenv "DISPLAY" ":1")
3590 (setenv "XDG_RUNTIME_DIR" "/tmp")
3591 ;; Run tests
3592 (chdir ,(string-append "../" name "-" version))
3593 (invoke "python3" "run_tests.py" "-a"))
3594 #t)))))
3595 (inputs
3596 `(("sdl2" ,sdl2)
3597 ("sdl2-image" ,sdl2-image)
3598 ("sdl2-ttf" ,sdl2-ttf)
3599 ("tinyxml" ,tinyxml)
3600 ("openal" ,openal)
3601 ("libogg" ,libogg)
3602 ("glew" ,glew)
3603 ("libvorbis" ,libvorbis)
3604 ("boost" ,boost)
3605 ("fifechan" ,fifechan)
3606 ("swig" ,swig)
3607 ("python" ,python)))
3608 (native-inputs
3609 `(("python" ,python)
3610 ("swig" ,swig)
3611 ("xvfb" ,xorg-server)))
3612 (propagated-inputs
3613 `(("python-future" ,python-future)))
3614 (home-page "https://www.fifengine.net/")
3615 (synopsis "FIFE is a multi-platform isometric game engine written in C++")
3616 (description
3617 "@acronym{FIFE, Flexible Isometric Free Engine} is a multi-platform
3618 isometric game engine. Python bindings are included allowing users to create
3619 games using Python as well as C++.")
3620 (license license:lgpl2.1+)))
3621
3622 (define-public fizmo
3623 (package
3624 (name "fizmo")
3625 (version "0.8.5")
3626 (source (origin
3627 (method url-fetch)
3628 (uri (string-append "https://fizmo.spellbreaker.org/source/"
3629 "fizmo-" version ".tar.gz"))
3630 (sha256
3631 (base32
3632 "1amyc4n41jf08kxmdgkk30bzzx54miaxa97w28f417qwn8lrl98w"))))
3633 (build-system gnu-build-system)
3634 (arguments
3635 '(#:configure-flags
3636 (let ((libjpeg (assoc-ref %build-inputs "libjpeg"))
3637 (ncurses (assoc-ref %build-inputs "ncurses")))
3638 (list (string-append "--with-jpeg-includedir=" libjpeg "/include")))))
3639 (native-inputs
3640 `(("pkg-config" ,pkg-config)))
3641 (inputs
3642 `(("freetype" ,freetype)
3643 ("libjpeg" ,libjpeg-turbo)
3644 ("libpng" ,libpng)
3645 ("libsndfile" ,libsndfile)
3646 ("libxml2" ,libxml2)
3647 ("ncurses" ,ncurses)
3648 ("sdl2" ,sdl2)))
3649 (home-page "https://fizmo.spellbreaker.org/")
3650 (synopsis "Z-machine interpreter")
3651 (description
3652 "Fizmo is a console-based Z-machine interpreter. It is used to play
3653 interactive fiction, also known as text adventures, which were implemented
3654 either by Infocom or created using the Inform compiler.")
3655 (license license:bsd-3)))
3656
3657 (define-public gnugo
3658 (package
3659 (name "gnugo")
3660 (version "3.8")
3661 (source (origin
3662 (method url-fetch)
3663 (uri (string-append "mirror://gnu/gnugo/gnugo-" version
3664 ".tar.gz"))
3665 (sha256
3666 (base32
3667 "0wkahvqpzq6lzl5r49a4sd4p52frdmphnqsfdv7gdp24bykdfs6s"))))
3668 (build-system gnu-build-system)
3669 (inputs `(("readline" ,readline)))
3670 (synopsis "Play the game of Go")
3671 (description
3672 "GNU Go is a program that plays the game of Go, in which players
3673 place stones on a grid to form territory or capture other stones. While
3674 it can be played directly from the terminal, rendered in ASCII characters,
3675 it is also possible to play GNU Go with 3rd party graphical interfaces or
3676 even in Emacs. It supports the standard game storage format (SGF, Smart
3677 Game Format) and inter-process communication format (GMP, Go Modem
3678 Protocol).")
3679 (home-page "https://www.gnu.org/software/gnugo/")
3680 (license license:gpl3+)))
3681
3682 (define-public extremetuxracer
3683 (package
3684 (name "extremetuxracer")
3685 (version "0.8.0")
3686 (source (origin
3687 (method url-fetch)
3688 (uri (string-append
3689 "mirror://sourceforge/extremetuxracer/releases/"
3690 version "/etr-" version ".tar.xz"))
3691 (sha256
3692 (base32
3693 "05ysaxvsgps9fxc421kdifsxmc1sn6n79cjaa0k0i3fs9qqrja2b"))))
3694 (build-system gnu-build-system)
3695 (native-inputs
3696 `(("pkg-config" ,pkg-config)))
3697 (inputs
3698 `(("glu" ,glu)
3699 ("sfml" ,sfml)))
3700 (synopsis "High-speed arctic racing game based on Tux Racer")
3701 ;; Snarfed straight from Debian.
3702 (description "Extreme Tux Racer, or etracer as it is called for short, is
3703 a simple OpenGL racing game featuring Tux, the Linux mascot. The goal of the
3704 game is to slide down a snow- and ice-covered mountain as quickly as possible,
3705 avoiding the trees and rocks that will slow you down.
3706
3707 Collect herrings and other goodies while sliding down the hill, but avoid fish
3708 bones.
3709
3710 This game is based on the GPL version of the famous game TuxRacer.")
3711 (home-page "https://sourceforge.net/projects/extremetuxracer/")
3712 (license license:gpl2+)))
3713
3714 (define-public supertuxkart
3715 (package
3716 (name "supertuxkart")
3717 (version "1.2")
3718 (source
3719 (origin
3720 (method url-fetch)
3721 (uri (string-append "mirror://sourceforge/supertuxkart/SuperTuxKart/"
3722 version "/SuperTuxKart-" version "-src.tar.xz"))
3723 (sha256
3724 (base32
3725 "0dvx56hmy6wdhl7m9dw8zc1n3jqfp05gnxl6zs1rbfdyzl5dybh5"))
3726 (modules '((guix build utils)))
3727 (snippet
3728 ;; Delete bundled library sources
3729 '(begin
3730 ;; Supertuxkart uses modified versions of the Irrlicht engine
3731 ;; and the bullet library. The developers gave an explanation
3732 ;; here: http://forum.freegamedev.net/viewtopic.php?f=17&t=3906
3733 ;; FIXME: try to unbundle angelscript, libmcpp and libraqm
3734 (for-each delete-file-recursively
3735 '("lib/glew"
3736 "lib/wiiuse"
3737 "lib/enet"))
3738 #t))))
3739 (build-system cmake-build-system)
3740 (arguments
3741 `(#:tests? #f ; no check target
3742 #:configure-flags
3743 (list "-DUSE_WIIUSE=0"
3744 "-DUSE_SYSTEM_GLEW=TRUE"
3745 "-DUSE_SYSTEM_ENET=TRUE"
3746 ;; In order to use the system ENet library, IPv6 support (added in
3747 ;; SuperTuxKart version 1.1) must be disabled.
3748 "-DUSE_IPV6=FALSE"
3749 ;; FIXME: needs libopenglrecorder
3750 "-DBUILD_RECORDER=0")))
3751 (inputs
3752 `(("curl" ,curl)
3753 ("freetype" ,freetype)
3754 ("fribidi" ,fribidi)
3755 ("glew" ,glew)
3756 ("harfbuzz" ,harfbuzz)
3757 ("libvorbis" ,libvorbis)
3758 ("libx11" ,libx11)
3759 ("libxrandr" ,libxrandr)
3760 ("mesa" ,mesa)
3761 ("openal" ,openal)
3762 ("sdl2" ,sdl2)
3763 ("zlib" ,zlib)
3764 ;; The following input is needed to build the bundled and modified
3765 ;; version of irrlicht.
3766 ("enet" ,enet)
3767 ("libjpeg" ,libjpeg-turbo)
3768 ("openssl" ,openssl)))
3769 (native-inputs
3770 `(("pkg-config" ,pkg-config)))
3771 (home-page "https://supertuxkart.net/Main_Page")
3772 (synopsis "3D kart racing game")
3773 (description "SuperTuxKart is a 3D kart racing game, with a focus on
3774 having fun over realism. You can play with up to 4 friends on one PC, racing
3775 against each other or just trying to beat the computer; single-player mode is
3776 also available.")
3777 (license license:gpl3+)))
3778
3779 (define-public unknown-horizons
3780 (package
3781 (name "unknown-horizons")
3782 (version "2019.1")
3783 (source (origin
3784 (method url-fetch)
3785 (uri (string-append "https://codeload.github.com/unknown-horizons/"
3786 "unknown-horizons/tar.gz/" version))
3787 (file-name (string-append name "-" version ".tar.gz"))
3788 (sha256
3789 (base32
3790 "1n747p7h0qp48szgp262swg0xh8kxy1bw8ag1qczs4i26hyzs5x4"))
3791 (patches (search-patches "unknown-horizons-python-3.8-distro.patch"))))
3792 (build-system python-build-system)
3793 (arguments
3794 '(#:phases
3795 (modify-phases %standard-phases
3796 (add-before 'build 'set-HOME
3797 (lambda _
3798 (setenv "HOME" "/tmp")
3799 #t))
3800 (add-after 'build 'build-extra
3801 (lambda _
3802 (invoke "python3" "./setup.py" "build_i18n")
3803 (invoke "python3" "horizons/engine/generate_atlases.py" "2048")
3804 #t))
3805 (add-after 'install 'patch
3806 (lambda* (#:key outputs #:allow-other-keys)
3807 (let ((out (assoc-ref outputs "out")))
3808 (substitute* (string-append out "/bin/unknown-horizons")
3809 (("os\\.chdir\\(get\\_content\\_dir\\_parent_path\\(\\)\\)")
3810 (string-append "os.chdir(\""
3811 (assoc-ref outputs "out")
3812 "/share/unknown-horizons\")"))))
3813 #t))
3814 (add-before 'check 'fix-tests-with-pytest>=4
3815 (lambda _
3816 (substitute* "tests/conftest.py"
3817 (("pytest_namespace")
3818 "pytest_configure")
3819 (("get_marker")
3820 "get_closest_marker"))
3821 #t))
3822 ;; TODO: Run GUI tests as well
3823 (replace 'check
3824 (lambda _
3825 (substitute* "horizons/constants.py"
3826 (("IS_DEV_VERSION = False")
3827 "IS_DEV_VERSION = True"))
3828 (invoke "pytest" "tests")
3829 (substitute* "horizons/constants.py"
3830 (("IS_DEV_VERSION = True")
3831 "IS_DEV_VERSION = False"))
3832 #t)))))
3833 (inputs
3834 `(("fifengine" ,fifengine)
3835 ("python:tk" ,python "tk")
3836 ("python-pillow" ,python-pillow)
3837 ("python-pyyaml" ,python-pyyaml)))
3838 (native-inputs
3839 `(("intltool" ,intltool)
3840 ("python-distro" ,python-distro)
3841
3842 ;; Required for tests
3843 ("python-greenlet" ,python-greenlet)
3844 ("python-polib" ,python-polib)
3845 ("python-pytest" ,python-pytest)
3846 ("python-pytest-mock" ,python-pytest-mock)))
3847 (home-page "http://unknown-horizons.org/")
3848 (synopsis "Isometric realtime strategy, economy and city building simulation")
3849 (description
3850 "Unknown Horizons is a 2D realtime strategy simulation with an emphasis
3851 on economy and city building. Expand your small settlement to a strong and
3852 wealthy colony, collect taxes and supply your inhabitants with valuable
3853 goods. Increase your power with a well balanced economy and with strategic
3854 trade and diplomacy.")
3855 (license (list
3856 license:gpl2+ ; Covers code
3857 license:expat ; tests/dummy.py, ext/polib.py
3858 license:cc-by-sa3.0 ; Covers some media content
3859 license:cc-by3.0 ; Covers some media content
3860 license:bsd-3)))) ; horizons/ext/speaklater.py
3861
3862 (define-public gnujump
3863 (package
3864 (name "gnujump")
3865 (version "1.0.8")
3866 (source (origin
3867 (method url-fetch)
3868 (uri (string-append "mirror://gnu/gnujump/gnujump-"
3869 version ".tar.gz"))
3870 (sha256
3871 (base32
3872 "05syy9mzbyqcfnm0hrswlmhwlwx54f0l6zhcaq8c1c0f8dgzxhqk"))))
3873 (build-system gnu-build-system)
3874 (arguments
3875 '(#:phases
3876 (modify-phases %standard-phases
3877 (add-before
3878 'configure 'link-libm
3879 (lambda _ (setenv "LIBS" "-lm")))
3880 (add-after 'install 'create-desktop-entry
3881 (lambda* (#:key outputs #:allow-other-keys)
3882 (let* ((out (assoc-ref outputs "out"))
3883 (apps (string-append out "/share/applications")))
3884 (mkdir-p apps)
3885 (with-output-to-file
3886 (string-append apps "/gnujump.desktop")
3887 (lambda _
3888 (format #t
3889 "[Desktop Entry]~@
3890 Name=GNUjump~@
3891 Comment=Jump up the tower to survive~@
3892 Exec=~a/bin/gnujump~@
3893 Terminal=false~@
3894 Type=Application~@
3895 Categories=Game;ArcadeGame~%"
3896 out)))))))))
3897 (inputs
3898 `(("glu" ,glu)
3899 ("mesa" ,mesa)
3900 ("sdl" ,sdl)
3901 ("sdl-image" ,sdl-image)
3902 ("sdl-mixer" ,sdl-mixer)))
3903 (home-page "http://gnujump.es.gnu.org/")
3904 (synopsis
3905 "Game of jumping to the next floor, trying not to fall")
3906 (description
3907 "GNUjump is a simple, yet addictive game in which you must jump from
3908 platform to platform to avoid falling, while the platforms drop at faster rates
3909 the higher you go. The game features multiplayer, unlimited FPS, smooth floor
3910 falling, themeable graphics and sounds, and replays.")
3911 (license license:gpl3+)))
3912
3913 (define-public wesnoth
3914 (package
3915 (name "wesnoth")
3916 (version "1.14.15")
3917 (source (origin
3918 (method url-fetch)
3919 (uri (string-append "mirror://sourceforge/wesnoth/wesnoth-"
3920 (version-major+minor version)
3921 "/wesnoth-" version "/"
3922 "wesnoth-" version ".tar.bz2"))
3923 (sha256
3924 (base32
3925 "05iapxj3nzaqh10y42yq1jf7spxgm4iwjw4qj1c4lnb25xp4mc2h"))))
3926 (build-system cmake-build-system)
3927 (arguments
3928 `(#:tests? #f)) ;no check target
3929 (native-inputs
3930 `(("gettext" ,gettext-minimal)
3931 ("pkg-config" ,pkg-config)))
3932 (inputs
3933 `(("boost" ,boost)
3934 ("dbus" ,dbus)
3935 ("fribidi" ,fribidi)
3936 ("libvorbis" ,libvorbis)
3937 ("openssl" ,openssl)
3938 ("pango" ,pango)
3939 ("sdl-union" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer sdl2-ttf)))))
3940 (home-page "https://www.wesnoth.org/")
3941 (synopsis "Turn-based strategy game")
3942 (description
3943 "The Battle for Wesnoth is a fantasy, turn based tactical strategy game,
3944 with several single player campaigns, and multiplayer games (both networked and
3945 local).
3946
3947 Battle for control on a range of maps, using variety of units which have
3948 advantages and disadvantages against different types of attacks. Units gain
3949 experience and advance levels, and are carried over from one scenario to the
3950 next campaign.")
3951 (license license:gpl2+)))
3952
3953 (define-public wesnoth-server
3954 (package
3955 (inherit wesnoth)
3956 (name "wesnoth-server")
3957 (inputs
3958 `(("boost" ,boost)
3959 ("icu4c" ,icu4c)
3960 ("openssl" ,openssl)
3961 ("sdl2" ,sdl2)))
3962 (arguments
3963 `(#:configure-flags '("-DENABLE_GAME=OFF")
3964 ,@(package-arguments wesnoth)))
3965 (synopsis "Dedicated @emph{Battle for Wesnoth} server")
3966 (description "This package contains a dedicated server for @emph{The
3967 Battle for Wesnoth}.")))
3968
3969 (define-public gamine
3970 (package
3971 (name "gamine")
3972 (version "1.6")
3973 (source (origin
3974 (method url-fetch)
3975 (uri (string-append "mirror://sourceforge/gamine-game/"
3976 "gamine-" version ".tar.gz"))
3977 (sha256
3978 (base32
3979 "1sc6f4445ciigd6yw0ri92746k4hk6ps0bvj9fm1gbp3c3fslk5n"))))
3980 (build-system gnu-build-system)
3981 (native-inputs
3982 `(("pkg-config" ,pkg-config)
3983 ("intltool" ,intltool)))
3984 (inputs
3985 `(("gstreamer" ,gstreamer)
3986 ("gst-plugins-base" ,gst-plugins-base) ; playbin plugin
3987 ("gst-plugins-good" ,gst-plugins-good) ; for wav playback
3988 ("gtk+" ,gtk+)))
3989 (arguments
3990 `(#:tests? #f
3991 #:make-flags
3992 (let ((out (assoc-ref %outputs "out")))
3993 (list (string-append "PREFIX=" out)
3994 (string-append "SYSCONFDIR=" out "/etc")))
3995 #:phases
3996 (modify-phases %standard-phases
3997 (delete 'configure)
3998 (add-after
3999 'install 'wrap-gamine
4000 (lambda* (#:key outputs #:allow-other-keys)
4001 (let ((out (assoc-ref outputs "out"))
4002 (gst-plugin-path (getenv "GST_PLUGIN_SYSTEM_PATH")))
4003 (wrap-program (string-append out "/bin/gamine")
4004 `("GST_PLUGIN_SYSTEM_PATH" ":" prefix (,gst-plugin-path))))
4005 #t)))))
4006 (home-page "http://gamine-game.sourceforge.net/")
4007 (synopsis "Mouse and keyboard discovery for children")
4008 (description
4009 "Gamine is a game designed for young children who are learning to use the
4010 mouse and keyboard. The child uses the mouse to draw colored dots and lines
4011 on the screen and keyboard to display letters.")
4012 ;; Most files under gpl2+ or gpl3+, but eat.wav under gpl3
4013 (license license:gpl3)))
4014
4015 (define-public manaplus
4016 (package
4017 (name "manaplus")
4018 (version "1.9.3.23")
4019 (source (origin
4020 (method url-fetch)
4021 (uri (string-append
4022 "https://repo.manaplus.org/manaplus/download/"
4023 version "/manaplus-" version ".tar.xz"))
4024 (sha256
4025 (base32
4026 "1ky182p4svwdqm6cf7jbns85hidkhkhq4s17cs2p381f0klapfjz"))))
4027 (build-system gnu-build-system)
4028 (arguments
4029 '(#:configure-flags
4030 (list (string-append "CPPFLAGS=-I"
4031 (assoc-ref %build-inputs "sdl-union")
4032 "/include/SDL"))))
4033 (native-inputs
4034 `(("pkg-config" ,pkg-config)))
4035 (inputs
4036 `(("glu" ,glu)
4037 ("curl" ,curl)
4038 ("libxml2" ,libxml2)
4039 ("mesa" ,mesa)
4040 ("sdl-union" ,(sdl-union))))
4041 (home-page "https://manaplus.org")
4042 (synopsis "Client for 'The Mana World' and similar games")
4043 (description
4044 "ManaPlus is a 2D MMORPG client for game servers. It is the only
4045 fully supported client for @uref{http://www.themanaworld.org, The mana
4046 world}, @uref{http://evolonline.org, Evol Online} and
4047 @uref{http://landoffire.org, Land of fire}.")
4048 ;; "src/debug/*" and "src/sdl2gfx/*" are under Zlib.
4049 ;; "data/themes/{golden-delicious,jewelry}/*" are under CC-BY-SA.
4050 ;; The rest is under GPL2+.
4051 (license (list license:gpl2+ license:zlib license:cc-by-sa4.0))))
4052
4053 (define openttd-engine
4054 (package
4055 (name "openttd-engine")
4056 (version "1.10.3")
4057 (source
4058 (origin (method url-fetch)
4059 (uri (string-append "https://cdn.openttd.org/openttd-releases/"
4060 version "/openttd-" version "-source.tar.xz"))
4061 (sha256
4062 (base32
4063 "0fxmfz1mm95a2x0rnzfff9wb8q57w0cvsdd0z7agdcbyakph25n1"))))
4064 (build-system gnu-build-system)
4065 (arguments
4066 `(#:tests? #f ; no "check" target
4067 #:phases
4068 (modify-phases %standard-phases
4069 ;; The build process fails if the configure script is passed the
4070 ;; option "--enable-fast-install".
4071 (replace 'configure
4072 (lambda* (#:key inputs outputs (configure-flags '())
4073 #:allow-other-keys)
4074 (let ((out (assoc-ref outputs "out"))
4075 (lzo (assoc-ref inputs "lzo")))
4076 (apply invoke "./configure"
4077 (string-append "--prefix=" out)
4078 ;; Provide the "lzo" path.
4079 (string-append "--with-liblzo2="
4080 lzo "/lib/liblzo2.a")
4081 ;; Put the binary in 'bin' instead of 'games'.
4082 "--binary-dir=bin"
4083 configure-flags)))))))
4084 (native-inputs `(("pkg-config" ,pkg-config)))
4085 (inputs
4086 `(("allegro" ,allegro)
4087 ("fontconfig" ,fontconfig)
4088 ("freetype" ,freetype)
4089 ("icu4c" ,icu4c)
4090 ("libpng" ,libpng)
4091 ("lzo" ,lzo)
4092 ("sdl" ,sdl)
4093 ("xz" ,xz)
4094 ("zlib" ,zlib)))
4095 (synopsis "Transportation economics simulator game")
4096 (description "OpenTTD is a game in which you transport goods and
4097 passengers by land, water and air. It is a re-implementation of Transport
4098 Tycoon Deluxe with many enhancements including multiplayer mode,
4099 internationalization support, conditional orders and the ability to clone,
4100 autoreplace and autoupdate vehicles. This package only includes the game
4101 engine. When you start it you will be prompted to download a graphics set.")
4102 (home-page "https://www.openttd.org/")
4103 ;; This package is GPLv2, except for a few files located in
4104 ;; "src/3rdparty/" which are under the 3-clause BSD, LGPLv2.1+ and Zlib
4105 ;; licenses. In addition, this software contains an in-game downloader
4106 ;; from which the user may find non-functional data licensed under
4107 ;; different terms.
4108 (license (list license:bsd-3 license:gpl2 license:lgpl2.1+ license:zlib))))
4109
4110 (define openttd-opengfx
4111 (package
4112 (name "openttd-opengfx")
4113 (version "0.6.0")
4114 (source
4115 (origin
4116 (method url-fetch)
4117 (uri (string-append "https://cdn.openttd.org/opengfx-releases/"
4118 version "/opengfx-" version "-source.tar.xz"))
4119 (sha256
4120 (base32
4121 "0qxc6gl2gxcrn1np88dnjgbaaakkkx96b13rcmy1spryc8c09hyr"))))
4122 (build-system gnu-build-system)
4123 (arguments
4124 '(#:make-flags (list "CC=gcc"
4125 (string-append "INSTALL_DIR="
4126 (assoc-ref %outputs "out")
4127 "/share/games/openttd/baseset/opengfx"))
4128 #:phases
4129 (modify-phases %standard-phases
4130 (replace 'configure
4131 (lambda _
4132 ;; Make sure HOME is writable for GIMP.
4133 (setenv "HOME" (getcwd))
4134
4135 ;; Redirect stdout, not stderr, to /dev/null. This prevents
4136 ;; dos2unix from receiving its version information as a flag.
4137 (substitute* "Makefile"
4138 (("\\$\\(UNIX2DOS\\) -q --version 2>/dev/null")
4139 "$(UNIX2DOS) -q --version 1>/dev/null")))))
4140 ;; The check phase for this package only checks the md5sums of the built
4141 ;; GRF files against the md5sums of the release versions. Because we use
4142 ;; different software versions than upstream does, some of the md5sums
4143 ;; are different. However, the package is still reproducible, it's safe
4144 ;; to disable this test.
4145 #:tests? #f
4146 #:parallel-build? #f))
4147 (native-inputs `(("dos2unix" ,dos2unix)
4148 ("gimp" ,gimp)
4149 ("grfcodec" ,grfcodec)
4150 ("nml" ,nml)
4151 ("which" ,which)
4152 ("python" ,python-2)))
4153 (home-page "http://dev.openttdcoop.org/projects/opengfx")
4154 (synopsis "Base graphics set for OpenTTD")
4155 (description
4156 "The OpenGFX project is an implementation of the OpenTTD base graphics
4157 set that aims to ensure the best possible out-of-the-box experience.
4158
4159 OpenGFX provides you with...
4160 @enumerate
4161 @item All graphics you need to enjoy OpenTTD.
4162 @item Uniquely drawn rail vehicles for every climate.
4163 @item Completely snow-aware rivers.
4164 @item Different river and sea water.
4165 @item Snow-aware buoys.
4166 @end enumerate")
4167 (license license:gpl2)))
4168
4169 (define openttd-opensfx
4170 (package
4171 (name "openttd-opensfx")
4172 (version "0.2.3")
4173 (source
4174 (origin
4175 (method url-fetch)
4176 (uri (string-append
4177 "https://binaries.openttd.org/extra/opensfx/"
4178 version "/opensfx-" version "-source.tar.gz"))
4179 (sha256
4180 (base32
4181 "03jxgp02ks31hmsdh4xh0xcpkb70ds8jakc9pfc1y9vdrdavh4p5"))))
4182 (build-system gnu-build-system)
4183 (native-inputs
4184 `(("catcodec" ,catcodec)
4185 ("python" ,python-2)))
4186 (arguments
4187 `(#:make-flags
4188 (list (string-append "INSTALL_DIR=" %output
4189 "/share/games/openttd/baseset/opensfx"))
4190 #:phases
4191 (modify-phases %standard-phases
4192 (add-after 'unpack 'make-reproducible
4193 (lambda _
4194 ;; Remove the time dependency of the installed tarball by setting
4195 ;; the modification times if its members to 0.
4196 (substitute* "scripts/Makefile.def"
4197 (("-cf") " --mtime=@0 -cf"))
4198 #t))
4199 (delete 'configure))))
4200 (home-page "http://dev.openttdcoop.org/projects/opensfx")
4201 (synopsis "Base sounds for OpenTTD")
4202 (description "OpenSFX is a set of free base sounds for OpenTTD which make
4203 it possible to play OpenTTD without requiring the proprietary sound files from
4204 the original Transport Tycoon Deluxe.")
4205 (license license:cc-sampling-plus-1.0)))
4206
4207 (define openttd-openmsx
4208 (package
4209 (name "openttd-openmsx")
4210 (version "0.3.1")
4211 (source
4212 (origin
4213 (method url-fetch)
4214 (uri (string-append
4215 "https://binaries.openttd.org/extra/openmsx/"
4216 version "/openmsx-" version "-source.tar.gz"))
4217 (sha256
4218 (base32
4219 "0nskq97a6fsv1v6d62zf3yb8whzhqnlh3lap3va3nzvj7csjgf7c"))))
4220 (build-system gnu-build-system)
4221 (native-inputs
4222 `(("python" ,python-2)))
4223 (arguments
4224 `(#:make-flags
4225 (list (string-append "INSTALL_DIR=" %output
4226 "/share/games/openttd/baseset"))
4227 #:phases
4228 (modify-phases %standard-phases
4229 (delete 'configure)
4230 (add-after 'install 'post-install
4231 ;; Rename openmsx-version to openmsx
4232 (lambda* (#:key outputs #:allow-other-keys)
4233 (let ((install-directory (string-append (assoc-ref outputs "out")
4234 "/share/games/openttd/baseset")))
4235 (rename-file (string-append install-directory "/openmsx-" ,version)
4236 (string-append install-directory "/openmsx"))
4237 #t))))))
4238 (home-page "http://dev.openttdcoop.org/projects/openmsx")
4239 (synopsis "Music set for OpenTTD")
4240 (description "OpenMSX is a music set for OpenTTD which makes it possible
4241 to play OpenTTD without requiring the proprietary music from the original
4242 Transport Tycoon Deluxe.")
4243 (license license:gpl2)))
4244
4245 (define-public openttd
4246 (package
4247 (inherit openttd-engine)
4248 (name "openttd")
4249 (arguments
4250 `(#:configure-flags
4251 (list (string-append "--with-midi=" (assoc-ref %build-inputs "timidity++")
4252 "/bin/timidity"))
4253 ,@(substitute-keyword-arguments (package-arguments openttd-engine)
4254 ((#:phases phases)
4255 `(modify-phases ,phases
4256 (add-after 'install 'install-data
4257 (lambda* (#:key inputs outputs #:allow-other-keys)
4258 (for-each
4259 (lambda (input)
4260 (copy-recursively (assoc-ref inputs input)
4261 (assoc-ref outputs "out")))
4262 (list "opengfx" "openmsx" "opensfx"))
4263 #t)))))))
4264 (inputs
4265 `(("timidity++" ,timidity++)
4266 ,@(package-inputs openttd-engine)))
4267 (native-inputs
4268 `(("opengfx" ,openttd-opengfx)
4269 ("openmsx" ,openttd-openmsx)
4270 ("opensfx" ,openttd-opensfx)
4271 ,@(package-native-inputs openttd-engine)))))
4272
4273 (define openrct2-title-sequences
4274 (package
4275 (name "openrct2-title-sequences")
4276 (version "0.1.2")
4277 (source
4278 (origin
4279 (method url-fetch)
4280 (uri (string-append "https://github.com/OpenRCT2/title-sequences/releases/download/v"
4281 version "/title-sequence-v" version ".zip"))
4282 (file-name (string-append name "-" version ".zip"))
4283 (sha256
4284 (base32
4285 "0qbyxrsw8hlgaq0r5d7lx7an3idy4qbfv7yiw9byhldk763n9cfw"))))
4286 (build-system trivial-build-system)
4287 (native-inputs
4288 `(("bash" ,bash)
4289 ("coreutils" ,coreutils)
4290 ("unzip" ,unzip)))
4291 (arguments
4292 `(#:modules ((guix build utils))
4293 #:builder
4294 (begin
4295 (use-modules (guix build utils))
4296 (let* ((out (assoc-ref %outputs "out"))
4297 (openrct2-title-sequences (string-append out
4298 "/share/openrct2/title-sequences"))
4299 (source (assoc-ref %build-inputs "source"))
4300 (unzip (string-append (assoc-ref %build-inputs "unzip") "/bin/unzip")))
4301 (copy-file source (string-append ,name "-" ,version ".zip"))
4302 (invoke unzip (string-append ,name "-" ,version ".zip"))
4303 (delete-file (string-append ,name "-" ,version ".zip"))
4304 (mkdir-p openrct2-title-sequences)
4305 (copy-recursively "."
4306 openrct2-title-sequences)
4307 #t))))
4308 (home-page "https://github.com/OpenRCT2/OpenRCT2")
4309 (synopsis "Title sequences for OpenRCT2")
4310 (description
4311 "openrct2-title-sequences is a set of title sequences for OpenRCT2.")
4312 (license license:gpl3+)))
4313
4314 (define openrct2-objects
4315 (package
4316 (name "openrct2-objects")
4317 (version "1.0.20")
4318 (source
4319 (origin
4320 (method url-fetch)
4321 (uri (string-append "https://github.com/OpenRCT2/objects/releases/download/v"
4322 version "/objects.zip"))
4323 (file-name (string-append name "-" version ".zip"))
4324 (sha256
4325 (base32 "1q7a38kcwrfijav6app1gf253yfv8b0rljbkah8040y6i7snw9mw"))))
4326 (build-system trivial-build-system)
4327 (native-inputs
4328 `(("bash" ,bash)
4329 ("coreutils" ,coreutils)
4330 ("unzip" ,unzip)))
4331 (arguments
4332 `(#:modules ((guix build utils))
4333 #:builder
4334 (begin
4335 (use-modules (guix build utils))
4336 (let* ((out (assoc-ref %outputs "out"))
4337 (openrct2-objects (string-append out
4338 "/share/openrct2/objects"))
4339 (source (assoc-ref %build-inputs "source"))
4340 (unzip (string-append (assoc-ref %build-inputs "unzip") "/bin/unzip")))
4341 (copy-file source (string-append ,name "-" ,version ".zip"))
4342 (invoke unzip (string-append ,name "-" ,version ".zip"))
4343 (delete-file (string-append ,name "-" ,version ".zip"))
4344 (mkdir-p openrct2-objects)
4345 (copy-recursively "."
4346 openrct2-objects)
4347 #t))))
4348 (home-page "https://github.com/OpenRCT2/OpenRCT2")
4349 (synopsis "Objects for OpenRCT2")
4350 (description
4351 "openrct2-objects is a set of objects for OpenRCT2.")
4352 (license license:gpl3+)))
4353
4354 (define-public openrct2
4355 (package
4356 (name "openrct2")
4357 (version "0.3.2")
4358 (source
4359 (origin
4360 (method git-fetch)
4361 (uri (git-reference
4362 (url "https://github.com/OpenRCT2/OpenRCT2")
4363 (commit (string-append "v" version))))
4364 (file-name (git-file-name name version))
4365 (sha256
4366 (base32 "1fd32wniiy6qz2046ppqfj2sb3rf2qf086rf9v1bdhyj254d0b1z"))))
4367 (build-system cmake-build-system)
4368 (arguments
4369 `(#:configure-flags (list "-DDOWNLOAD_OBJECTS=OFF"
4370 "-DDOWNLOAD_TITLE_SEQUENCES=OFF")
4371 #:tests? #f ; tests require network access
4372 #:phases
4373 (modify-phases %standard-phases
4374 (add-after 'unpack 'fix-usr-share-paths&add-data
4375 (lambda* (#:key inputs outputs #:allow-other-keys)
4376 (let ((titles (assoc-ref inputs "openrct2-title-sequences"))
4377 (objects (assoc-ref inputs "openrct2-objects")))
4378 ;; Fix some references to /usr/share.
4379 (substitute* "src/openrct2/platform/Platform.Linux.cpp"
4380 (("/usr/share")
4381 (string-append (assoc-ref %outputs "out") "/share")))
4382 (copy-recursively
4383 (string-append titles "/share/openrct2/title-sequences")
4384 "data/title")
4385 (copy-recursively
4386 (string-append objects "/share/openrct2/objects")
4387 "data/object"))))
4388 (add-before 'configure 'get-rid-of-errors
4389 (lambda _
4390 ;; Don't treat warnings as errors.
4391 (substitute* "CMakeLists.txt"
4392 (("-Werror") ""))
4393 #t)))))
4394 (inputs `(("curl" ,curl)
4395 ("duktape" ,duktape)
4396 ("fontconfig" ,fontconfig)
4397 ("freetype" ,freetype)
4398 ("icu4c" ,icu4c)
4399 ("jansson" ,jansson)
4400 ("libpng" ,libpng)
4401 ("libzip" ,libzip)
4402 ("mesa" ,mesa)
4403 ("nlohmann-json-cpp" ,nlohmann-json-cpp)
4404 ("openrct2-objects" ,openrct2-objects)
4405 ("openrct2-title-sequences" ,openrct2-title-sequences)
4406 ("openssl" ,openssl)
4407 ("sdl2" ,sdl2)
4408 ("speexdsp" ,speexdsp)
4409 ("zlib" ,zlib)))
4410 (native-inputs
4411 `(("pkg-config" ,pkg-config)))
4412 (home-page "https://github.com/OpenRCT2/OpenRCT2")
4413 (synopsis "Free software re-implementation of RollerCoaster Tycoon 2")
4414 (description "OpenRCT2 is a free software re-implementation of
4415 RollerCoaster Tycoon 2 (RCT2). The gameplay revolves around building and
4416 maintaining an amusement park containing attractions, shops and facilities.
4417
4418 Note that this package does @emph{not} provide the game assets (sounds,
4419 images, etc.)")
4420 ;; See <https://github.com/OpenRCT2/OpenRCT2/wiki/Required-RCT2-files>
4421 ;; regarding assets.
4422 (license license:gpl3+)))
4423
4424 (define-public pinball
4425 (package
4426 (name "pinball")
4427 (version "0.3.1")
4428 (source
4429 (origin (method url-fetch)
4430 (uri (string-append "mirror://sourceforge/pinball/pinball/"
4431 "pinball-" version "/"
4432 "pinball-" version ".tar.gz"))
4433 (sha256
4434 (base32
4435 "1f2whlrfidwfh8lvr8cspcyirc6840r5d1ajm7x99qmngygrhixs"))
4436 (patches (search-patches "pinball-const-fix.patch"
4437 "pinball-cstddef.patch"
4438 "pinball-missing-separators.patch"
4439 "pinball-src-deps.patch"
4440 "pinball-system-ltdl.patch"))))
4441 (build-system gnu-build-system)
4442 (inputs
4443 `(("glu" ,glu)
4444 ("mesa" ,mesa)
4445 ("sdl" ,sdl)
4446 ("sdl-image" ,sdl-image)
4447 ("sdl-mixer" ,sdl-mixer)))
4448 (arguments
4449 '(#:configure-flags
4450 (list (string-append "CPPFLAGS=-I"
4451 (assoc-ref %build-inputs "sdl-image")
4452 "/include/SDL -I"
4453 (assoc-ref %build-inputs "sdl-mixer")
4454 "/include/SDL"))))
4455 (home-page "http://pinball.sourceforge.net")
4456 (synopsis "Pinball simulator")
4457 (description "The Emilia Pinball Project is a pinball simulator. There
4458 are only two levels to play with, but they are very addictive.")
4459 (license license:gpl2)))
4460
4461 (define-public pioneers
4462 (package
4463 (name "pioneers")
4464 (version "15.6")
4465 (source (origin
4466 (method url-fetch)
4467 (uri (string-append "https://downloads.sourceforge.net/pio/"
4468 "pioneers-" version ".tar.gz"))
4469 (sha256
4470 (base32
4471 "07b3xdd81n8ybsb4fzc5lx0813y9crzp1hj69khncf4faj48sdcs"))))
4472 (build-system gnu-build-system)
4473 (inputs `(("avahi" ,avahi)
4474 ("gtk+" ,gtk+)
4475 ("librsvg" ,librsvg)))
4476 (native-inputs `(("intltool" ,intltool)
4477 ("itstool" ,itstool)
4478 ("libxml2" ,libxml2)
4479 ("pkg-config" ,pkg-config)))
4480 (synopsis "Board game inspired by The Settlers of Catan")
4481 (description "Pioneers is an emulation of the board game The Settlers of
4482 Catan. It can be played on a local network, on the internet, and with AI
4483 players.")
4484 (home-page "http://pio.sourceforge.net/")
4485 (license license:gpl2+)))
4486
4487 (define-public einstein
4488 (package
4489 (name "einstein")
4490 (version "2.0")
4491 (source (origin
4492 (method url-fetch)
4493 (uri (string-append "mirror://debian/pool/main/e/"
4494 "einstein/einstein_2.0.dfsg.2.orig.tar.gz"))
4495 (sha256
4496 (base32
4497 "1hxrlv6n8py48j487i6wbb4n4vd55w0na69r7ccmmr9vmrsw5mlk"))
4498 (patches (search-patches "einstein-build.patch"))))
4499 (build-system gnu-build-system)
4500 (inputs
4501 `(("freetype" ,freetype)
4502 ("sdl" ,(sdl-union (list sdl sdl-mixer sdl-ttf)))
4503 ("zlib" ,zlib)))
4504 (native-inputs
4505 `(("font-dejavu" ,font-dejavu)))
4506 (arguments
4507 `(#:tests? #f ; no check target
4508 #:phases
4509 (modify-phases %standard-phases
4510 (replace 'configure
4511 (lambda* (#:key outputs inputs #:allow-other-keys)
4512 (let ((out (assoc-ref outputs "out"))
4513 (dejavu (string-append (assoc-ref inputs "font-dejavu")
4514 "/share/fonts/truetype/DejaVuSans.ttf")))
4515 (substitute* "Makefile"
4516 (("PREFIX=/usr/local") (string-append "PREFIX=" out)))
4517 ;; The patch above registers a free font for use by the binary,
4518 ;; but the font is copied during the compile phase into a
4519 ;; resources file, so we need to make the ttf file available.
4520 (symlink dejavu "res/DejaVuSans.ttf")
4521 #t))))))
4522 (synopsis "Logic puzzle game")
4523 (description "The goal of this logic game is to open all cards in a 6x6
4524 grid, using a number of hints as to their relative position. The game idea
4525 is attributed to Albert Einstein.")
4526 ;; The original home page has disappeared.
4527 (home-page (string-append "http://web.archive.org/web/20120521062745/"
4528 "http://games.flowix.com/en/index.html"))
4529 ;; License according to
4530 ;; http://web.archive.org/web/20150222180355/http://www.babichev.info/en/projects/index.html
4531 ;; The source code is a DFSG-sanitized tarball and does not contain any
4532 ;; license information.
4533 (license license:gpl3+)))
4534
4535 (define-public powwow
4536 (package
4537 (name "powwow")
4538 (version "1.2.22")
4539 (source (origin
4540 (method url-fetch)
4541 (uri (string-append
4542 "https://www.hoopajoo.net/static/projects/powwow-"
4543 version ".tar.gz"))
4544 (sha256
4545 (base32
4546 "12i11b8zxg8vdb9d6ims8qy2lmwwr42rcqbwq3vsa1x94s51bcbp"))))
4547 (inputs
4548 `(("ncurses" ,ncurses)))
4549 (build-system gnu-build-system)
4550 (home-page "https://www.hoopajoo.net/projects/powwow.html")
4551 (synopsis "MUD and telnet client")
4552 (description
4553 "POWWOW is a client software which can be used for telnet as well as for
4554 @dfn{Multi-User Dungeon} (MUD). Additionally it can serve as a nice client for
4555 the chat server psyced with the specific config located at
4556 http://lavachat.symlynx.com/unix/")
4557 (license license:gpl2+)))
4558
4559 (define-public red-eclipse
4560 (let ((release "2.0.0")
4561 (revision 0))
4562 (package
4563 (name "red-eclipse")
4564 (version (if (zero? revision)
4565 release
4566 (string-append release "-"
4567 (number->string revision))))
4568 (source
4569 (origin
4570 (method git-fetch)
4571 (uri (git-reference
4572 (url "https://github.com/redeclipse/base")
4573 (commit (string-append "v" release))
4574 (recursive? #t))) ; for game data
4575 (file-name (git-file-name name version))
4576 (sha256
4577 (base32 "0sz0mqhwx8r9n4mk3qrxw420nlsm3y0n48gd0lazgd64lfqjh3ab"))
4578 (modules '((guix build utils)))
4579 (snippet
4580 ;; Remove proprietary libraries and other pre-compiled binaries.
4581 '(begin
4582 (delete-file-recursively "bin")
4583 #t))))
4584 (build-system gnu-build-system)
4585 (arguments
4586 `(#:tests? #f ; no check target
4587 #:make-flags (list "CC=gcc" "-Csrc"
4588 (string-append "INSTDIR="
4589 (assoc-ref %outputs "out") "/bin")
4590 (string-append "prefix="
4591 (assoc-ref %outputs "out")))
4592 #:phases
4593 (modify-phases %standard-phases
4594 (add-after 'unpack 'add-store-data-package-path-as-default
4595 (lambda* (#:key outputs #:allow-other-keys)
4596 (substitute* "src/engine/server.cpp"
4597 (("data = \"data\"")
4598 (string-append "data = \""
4599 (assoc-ref outputs "out")
4600 "/share/redeclipse/data\"")))
4601 #t))
4602 (delete 'configure) ; no configure script
4603 (add-after 'set-paths 'set-sdl-paths
4604 (lambda* (#:key inputs #:allow-other-keys)
4605 (setenv "CPATH"
4606 (string-append (assoc-ref inputs "sdl-union")
4607 "/include/SDL2:"
4608 (or (getenv "CPATH") "")))
4609 #t))
4610 (add-after 'install 'copy-data
4611 (lambda* (#:key outputs #:allow-other-keys)
4612 (let ((out (assoc-ref outputs "out")))
4613 (copy-recursively "config"
4614 (string-append out "/config"))
4615 (copy-file "doc/examples/servinit.cfg"
4616 (string-append out "/config/servinit.cfg"))
4617 (copy-recursively "data"
4618 (string-append out "/share/redeclipse/data"))
4619 (mkdir-p (string-append out "/lib/redeclipse"))
4620 (symlink (string-append out "/share/redeclipse/data")
4621 (string-append out "/lib/redeclipse/data")))
4622 #t))
4623 (add-after 'copy-data 'wrap-program
4624 (lambda* (#:key inputs outputs #:allow-other-keys)
4625 (let* ((out (assoc-ref outputs "out"))
4626 (bin (string-append out "/bin")))
4627 (with-directory-excursion bin
4628 (rename-file "redeclipse_linux"
4629 ".redeclipse_linux-real")
4630 (rename-file "redeclipse_server_linux"
4631 ".redeclipse_server_linux-real")
4632 (call-with-output-file "redeclipse_linux"
4633 (lambda (port)
4634 (format port "#!~a/bin/sh
4635 # Run the thing from its home, otherwise it just bails out.
4636 cd \"~a\"
4637 exec -a \"$0\" ~a/.redeclipse_linux-real~%"
4638 (assoc-ref inputs "bash") ;implicit input
4639 (string-append out)
4640 (string-append bin))))
4641 (call-with-output-file "redeclipse_server_linux"
4642 (lambda (port)
4643 (format port "#!~a/bin/sh
4644 # Run the thing from its home, otherwise it just bails out.
4645 cd \"~a\"
4646 exec -a \"$0\" ~a/.redeclipse_server_linux-real~%"
4647 (assoc-ref inputs "bash") ;implicit input
4648 (string-append out)
4649 (string-append bin))))
4650 (chmod "redeclipse_linux" #o555)
4651 (chmod "redeclipse_server_linux" #o555)))
4652 #t)))))
4653 (native-inputs
4654 `(("pkg-config" ,pkg-config)))
4655 (inputs
4656 `(("curl" ,curl)
4657 ("freetype" ,freetype)
4658 ("glu" ,glu)
4659 ("sdl-union" ,(sdl-union (list sdl2
4660 sdl2-image
4661 sdl2-mixer)))))
4662 (home-page "https://redeclipse.net/")
4663 (synopsis "Arena shooter derived from the Cube 2 engine")
4664 (description
4665 "Red Eclipse is an arena shooter, created from the Cube2 engine.
4666 Offering an innovative parkour system and distinct but all potent weapons,
4667 Red Eclipse provides fast paced and accessible gameplay.")
4668 ;; The engine is under Zlib; data files are covered by the other
4669 ;; licenses. More details at file:///doc/all-licenses.txt.
4670 (license (list license:expat
4671 license:zlib
4672 license:cc-by-sa4.0
4673 license:cc-by-sa3.0
4674 license:cc-by3.0
4675 license:cc0
4676 license:public-domain
4677 license:silofl1.1)))))
4678
4679 (define-public grue-hunter
4680 (package
4681 (name "grue-hunter")
4682 (version "1.0")
4683 (source (origin
4684 (method url-fetch)
4685 (uri (string-append "https://jxself.org/grue-hunter.tar.gz"))
4686 (sha256
4687 (base32
4688 "1hjcpy5439qs3v2zykis7hsi0i17zjs62gks3zd8mnfw9ni4i2h3"))))
4689 (build-system trivial-build-system) ; no Makefile.PL
4690 (arguments `(#:modules ((guix build utils))
4691 #:builder
4692 (begin
4693 (use-modules (guix build utils))
4694 (use-modules (srfi srfi-1))
4695
4696 (let* ((tarball (assoc-ref %build-inputs "tarball"))
4697 (perl (string-append (assoc-ref %build-inputs
4698 "perl")
4699 "/bin"))
4700 (gzip (string-append (assoc-ref %build-inputs
4701 "gzip")
4702 "/bin/gzip"))
4703 (tar (string-append (assoc-ref %build-inputs
4704 "tar")
4705 "/bin/tar"))
4706 (out (assoc-ref %outputs "out"))
4707 (bin (string-append out "/bin"))
4708 (doc (string-append out
4709 "/share/doc/grue-hunter")))
4710 (copy-file tarball "grue-hunter.tar.gz")
4711 (invoke gzip "-d" "grue-hunter.tar.gz")
4712 (invoke tar "xvf" "grue-hunter.tar")
4713
4714 (mkdir-p bin)
4715 (copy-file "grue-hunter/gh.pl"
4716 (string-append bin "/grue-hunter"))
4717 (patch-shebang (string-append bin "/grue-hunter")
4718 (list perl))
4719
4720 (install-file "grue-hunter/AGPLv3.txt" doc)
4721
4722 #t))))
4723 (inputs `(("perl" ,perl)
4724 ("tar" ,tar)
4725 ("gzip" ,gzip)
4726 ("tarball" ,source)))
4727 (home-page "https://jxself.org/grue-hunter.shtml")
4728 (synopsis "Text adventure game")
4729 (description
4730 "Grue Hunter is a text adventure game written in Perl. You must make
4731 your way through an underground cave system in search of the Grue. Can you
4732 capture it and get out alive?")
4733 (license license:agpl3+)))
4734
4735 (define-public lierolibre
4736 (package
4737 (name "lierolibre")
4738 (version "0.5")
4739 (source (origin
4740 (method url-fetch)
4741 (uri (string-append "https://launchpad.net/lierolibre/trunk/"
4742 version "/+download/lierolibre-"
4743 version ".tar.xz"))
4744 (sha256
4745 (base32
4746 "1cf1gvsn4qq190lrf9k5bpjnqwlcfw7pajvdnh7z5r4jqw0rsbl9"))
4747 (patches
4748 (search-patches "lierolibre-check-unaligned-access.patch"
4749 "lierolibre-try-building-other-arch.patch"
4750 "lierolibre-remove-arch-warning.patch"
4751 "lierolibre-newer-libconfig.patch"
4752 "lierolibre-is-free-software.patch"))
4753 (modules '((guix build utils)))
4754 (snippet
4755 '(begin
4756 ;; Delete pre-compiled files.
4757 (delete-file "data/LIERO.CHR")
4758 (delete-file "data/LIERO.SND")
4759 #t))))
4760 (build-system gnu-build-system)
4761 (native-inputs
4762 `(("imagemagick" ,imagemagick)
4763 ("pkg-config" ,pkg-config)
4764 ("util-linux" ,util-linux)
4765 ("sox" ,sox)))
4766 (inputs
4767 `(("boost" ,boost)
4768 ("libconfig" ,libconfig)
4769 ("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer)))
4770 ("zlib" ,zlib)))
4771 (home-page "https://gitlab.com/lierolibre/lierolibre")
4772 (synopsis "Old-school earthworm action game")
4773 (description
4774 "lierolibre is an earthworm action game where you fight another player
4775 (or the computer) underground using a wide array of weapons.
4776
4777 Features:
4778 @itemize
4779 @item 2 worms, 40 weapons, great playability, two game modes: Kill'em All
4780 and Game of Tag, plus AI-players without true intelligence!
4781 @item Dat nostalgia.
4782 @item Extensions via a hidden F1 menu:
4783 @itemize
4784 @item Replays
4785 @item Game controller support
4786 @item Powerlevel palettes
4787 @end itemize
4788 @item Ability to write game variables to plain text files.
4789 @item Ability to load game variables from both EXE and plain text files.
4790 @item Scripts to extract and repack graphics, sounds and levels.
4791 @end itemize
4792
4793 To switch between different window sizes, use F6, F7 and F8, to switch to
4794 fullscreen, use F5 or Alt+Enter.")
4795 ;; Code mainly BSD-2, some parts under Boost 1.0. All assets are WTFPL2.
4796 (license (list license:bsd-2 license:boost1.0 license:wtfpl2))))
4797
4798 (define-public tennix
4799 (package
4800 (name "tennix")
4801 (version "1.3.1")
4802 (source
4803 (origin
4804 (method git-fetch)
4805 (uri (git-reference
4806 (url "https://repo.or.cz/tennix.git")
4807 (commit (string-append "tennix-" version))))
4808 (file-name (git-file-name name version))
4809 (sha256
4810 (base32 "02cj4lrdrisal5s9pnbf2smx7qz9czczjzndfkhfx0qy67b957sk"))
4811 ;; Remove non-free images.
4812 (modules '((guix build utils)))
4813 (snippet
4814 '(begin
4815 (for-each delete-file
4816 '("data/loc_training_camp.png"
4817 "data/loc_austrian_open.png"
4818 "data/loc_olympic_green_tennis.png"))
4819 #t))))
4820 (build-system gnu-build-system)
4821 (arguments
4822 `(#:tests? #f ;no test
4823 #:phases
4824 (modify-phases %standard-phases
4825 (add-after 'unpack 'fix-include
4826 (lambda _
4827 (substitute* '("src/graphics.h" "src/sound.h")
4828 (("#include \"(SDL_(image|ttf|mixer)\\.h)\"" _ header)
4829 (string-append "#include \"SDL/" header "\"")))
4830 (substitute* '("src/tennix.h" "src/network.h" "src/SDL_rotozoom.h")
4831 (("#include <SDL.h>") "#include <SDL/SDL.h>")
4832 (("#include <SDL_net.h>") "#include <SDL/SDL_net.h>"))
4833 #t))
4834 (add-after 'unpack 'locate-install
4835 ;; Build process cannot expand "$(INSTALL)" in Makefile.
4836 (lambda _
4837 (substitute* "makefile"
4838 (("^CONFIGURE_OUTPUT :=.*" all)
4839 (string-append "INSTALL := install -c\n" all)))
4840 #t))
4841 (replace 'configure
4842 ;; The "configure" script is picky about the arguments it
4843 ;; gets. Call it ourselves.
4844 (lambda _
4845 (invoke "./configure" "--prefix" (assoc-ref %outputs "out")))))))
4846 (native-inputs
4847 `(("which" ,which)))
4848 (inputs
4849 `(("python" ,python-wrapper)
4850 ("sdl" ,(sdl-union (list sdl sdl-image sdl-mixer sdl-ttf sdl-net)))))
4851 (home-page "http://icculus.org/tennix/")
4852 (synopsis "Play tennis against the computer or a friend")
4853 (description "Tennix is a 2D tennis game. You can play against the
4854 computer or against another player using the keyboard. The game runs
4855 in-window at 640x480 resolution or fullscreen.")
4856 ;; Project is licensed under GPL2+ terms. It includes images
4857 ;; released under Public Domain terms, and SDL_rotozoom, released
4858 ;; under LGPL2.1 terms.
4859 (license (list license:gpl2+ license:public-domain license:lgpl2.1))))
4860
4861 (define-public warzone2100
4862 (package
4863 (name "warzone2100")
4864 (version "3.4.1")
4865 (source
4866 (origin
4867 (method url-fetch)
4868 (uri (string-append "mirror://sourceforge/warzone2100/releases/"
4869 version
4870 "/warzone2100_src.tar.xz"))
4871 (sha256
4872 (base32 "0savalmw1kp1sf8vg5aqrl5hc77p4jacxy5y9qj8k2hi2vqdfb7a"))
4873 (modules '((guix build utils)))
4874 (snippet
4875 '(begin
4876 (with-directory-excursion "3rdparty"
4877 (for-each
4878 delete-file-recursively
4879 '("discord-rpc"
4880 "miniupnp"
4881 "utfcpp")))
4882 #t))))
4883 (build-system cmake-build-system)
4884 (arguments
4885 `(#:configure-flags '("-DWZ_DISTRIBUTOR=Guix"
4886 "-DENABLE_DISCORD=off")
4887 #:tests? #f ; TODO: Tests seem to be broken, configure.ac is missing.
4888 #:phases
4889 (modify-phases %standard-phases
4890 (add-after 'unpack 'fix-utfcpp-include
4891 (lambda _
4892 (substitute* "lib/framework/wzstring.cpp"
4893 (("<utfcpp/source/utf8.h>") "<utf8.h>"))
4894 #t))
4895 (add-after 'unpack 'link-tests-with-qt
4896 (lambda _
4897 (substitute* "tests/Makefile.am"
4898 (("(framework_linktest_LDADD|maptest_LDADD) = " prefix)
4899 (string-append prefix "$(QT5_LIBS) ")))
4900 #t))
4901 (add-after 'unpack 'fix-ivis-linktest
4902 (lambda _
4903 (substitute* "tests/ivis_linktest.cpp"
4904 (("iV_DrawTextRotated.*;")
4905 (string-append "iV_DrawTextRotated(\"Press ESC to exit.\", "
4906 "100, 100, 0.0f, font_regular);")))
4907 #t)))))
4908 (native-inputs `(("asciidoc" ,asciidoc)
4909 ("asciidoctor" ,ruby-asciidoctor)
4910 ("gettext" ,gettext-minimal)
4911 ("pkg-config" ,pkg-config)
4912 ("unzip" ,unzip)
4913 ;; 7z is used to create .zip archive, not `zip' as in version 3.2.*.
4914 ("p7zip" ,p7zip)))
4915 (inputs `(("curl" ,curl)
4916 ("fontconfig" ,fontconfig)
4917 ("freetype" ,freetype)
4918 ("glew" ,glew)
4919 ("harfbuzz" ,harfbuzz)
4920 ("libtheora" ,libtheora)
4921 ("libvorbis" ,libvorbis)
4922 ("libxrandr" ,libxrandr)
4923 ("libsodium" ,libsodium)
4924 ("miniupnpc" ,miniupnpc)
4925 ("openal" ,openal)
4926 ("physfs" ,physfs)
4927 ("qtbase" ,qtbase)
4928 ("qtscript" ,qtscript)
4929 ("openssl" ,openssl)
4930 ("sdl2" ,sdl2)
4931 ("utfcpp" ,utfcpp)))
4932 (home-page "https://wz2100.net")
4933 (synopsis "3D Real-time strategy and real-time tactics game")
4934 (description
4935 "Warzone 2100 offers campaign, multi-player, and single-player skirmish
4936 modes. An extensive tech tree with over 400 different technologies, combined
4937 with the unit design system, allows for a wide variety of possible units and
4938 tactics.")
4939 ;; Everything is GPLv2+ unless otherwise specified in COPYING.NONGPL
4940 (license (list license:bsd-3
4941 license:cc0
4942 license:cc-by-sa3.0
4943 license:expat
4944 license:gpl2+
4945 license:lgpl2.1+))))
4946
4947 (define-public widelands
4948 (package
4949 (name "widelands")
4950 (version "21")
4951 (source
4952 (origin
4953 (method url-fetch)
4954 (uri (string-append "https://launchpad.net/widelands/"
4955 "build" version "/build" version "/+download/"
4956 "widelands-build" version "-source.tar.gz"))
4957 (sha256
4958 (base32 "0mz3jily0w1zxxqbnkqrp6hl88xhrwzbil9crq7gpcwidx60w7k0"))
4959 (modules '((guix build utils)))
4960 (snippet
4961 '(begin
4962 (delete-file-recursively "src/third_party/minizip")
4963 #t))
4964 (patches
4965 ;; Use system Minizip. Patch is provided by Debian, and discussed
4966 ;; upstream at <https://github.com/widelands/widelands/issues/399>.
4967 (search-patches "widelands-system-wide_minizip.patch"))))
4968 (build-system cmake-build-system)
4969 (arguments
4970 `(#:configure-flags
4971 (let* ((out (assoc-ref %outputs "out"))
4972 (share (string-append out "/share")))
4973 (list (string-append "-DCMAKE_INSTALL_PREFIX=" out "/bin")
4974 (string-append "-DWL_INSTALL_BASEDIR=" share "/widelands")
4975 (string-append "-DWL_INSTALL_DATADIR=" share "/widelands")
4976 "-DOPTION_BUILD_WEBSITE_TOOLS=OFF"
4977 ;; CMakeLists.txt does not handle properly RelWithDebInfo build
4978 ;; type. When used, no game data is installed!
4979 "-DCMAKE_BUILD_TYPE=Release"))
4980 #:phases
4981 (modify-phases %standard-phases
4982 (add-after 'unpack 'unbundle-fonts
4983 ;; Unbundle fonts already packaged in Guix. XXX: missing fonts are
4984 ;; amiri, Culmus, mmrCensus, Nakula, and Sinhala.
4985 (lambda* (#:key inputs #:allow-other-keys)
4986 (with-directory-excursion "data/i18n/fonts"
4987 (for-each (lambda (font)
4988 (delete-file-recursively font)
4989 (symlink (string-append (assoc-ref inputs font)
4990 "/share/fonts/truetype")
4991 font))
4992 '("DejaVu" "MicroHei")))
4993 #t)))))
4994 (native-inputs
4995 `(("gettext" ,gettext-minimal)
4996 ("python" ,python-wrapper)))
4997 (inputs
4998 `(("boost" ,boost)
4999 ("glew" ,glew)
5000 ("icu4c" ,icu4c)
5001 ("libpng" ,libpng)
5002 ("minizip" ,minizip)
5003 ("sdl" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer sdl2-ttf)))
5004 ("zlib" ,zlib)
5005 ;; Fonts for the ‘unbundle-fonts’ phase. Case matters in name!
5006 ("DejaVu" ,font-dejavu)
5007 ("MicroHei" ,font-wqy-microhei)))
5008 (home-page "https://www.widelands.org/")
5009 (synopsis "Fantasy real-time strategy game")
5010 (description
5011 "In Widelands, you are the regent of a small clan. You start out with
5012 nothing but your headquarters, where all your resources are stored.
5013
5014 In the course of the game, you will build an ever growing settlement. Every
5015 member of your clan will do his or her part to produce more resources---wood,
5016 food, iron, gold and more---to further this growth. The economic network is
5017 complex and different in the four tribes (Barbarians, Empire, Atlanteans, and
5018 Frisians).
5019
5020 As you are not alone in the world, you will meet other clans sooner or later.
5021 Some of them may be friendly and you may eventually trade with them. However,
5022 if you want to rule the world, you will have to train soldiers and fight.
5023
5024 Widelands offers single-player mode with different campaigns; the campaigns
5025 all tell stories of tribes and their struggle in the Widelands universe!
5026 However, settling really starts when you unite with friends over the Internet
5027 or LAN to build up new empires together---or to crush each other in the dusts
5028 of war. Widelands also offers an Artificial Intelligence to challenge you.")
5029 ;; Game is released as GPL2+. Some parts, e.g., art, are released under
5030 ;; different licenses.
5031 (license (list license:gpl2+
5032 license:expat ;src/third_party/eris
5033 license:silofl1.1 ;Widelands.ttf
5034 license:cc-by-sa3.0)))) ;some music files
5035
5036 (define-public starfighter
5037 (package
5038 (name "starfighter")
5039 (version "2.4")
5040 (source (origin
5041 (method url-fetch)
5042 (uri (string-append
5043 "https://github.com/pr-starfighter/starfighter/releases"
5044 "/download/v" version "/starfighter-"
5045 version "-src.tar.gz"))
5046 (sha256
5047 (base32
5048 "0ips79j3sdy8wa64jqka0skbbqkzqiln9bbiiilh4z717q7vz9r5"))))
5049 (build-system gnu-build-system)
5050 (native-inputs
5051 `(("pkg-config" ,pkg-config)))
5052 (inputs
5053 `(("pango" ,pango)
5054 ("sdl2" ,sdl2)
5055 ("sdl2-image" ,sdl2-image)
5056 ("sdl2-mixer" ,sdl2-mixer)
5057 ("sdl2-ttf" ,sdl2-ttf)))
5058 (home-page "https://pr-starfighter.github.io/")
5059 (synopsis "2D scrolling shooter game")
5060 (description
5061 "In the year 2579, the intergalactic weapons corporation, WEAPCO, has
5062 dominated the galaxy. Guide Chris Bainfield and his friend Sid Wilson on
5063 their quest to liberate the galaxy from the clutches of WEAPCO. Along the
5064 way, you will encounter new foes, make new allies, and assist local rebels
5065 in strikes against the evil corporation.")
5066 ;; gfx and music are under CC-BY 3.0, CC-BY-SA 3.0, CC0 or Public Domain.
5067 (license (list license:gpl3+
5068 license:cc-by3.0
5069 license:cc-by-sa3.0
5070 license:cc0
5071 license:public-domain))))
5072
5073 (define-public chromium-bsu
5074 (package
5075 (name "chromium-bsu")
5076 (version "0.9.16.1")
5077 (source (origin
5078 (method url-fetch)
5079 (uri (string-append "mirror://sourceforge/chromium-bsu"
5080 "/Chromium B.S.U. source code/"
5081 "chromium-bsu-" version ".tar.gz"))
5082 (sha256
5083 (base32
5084 "0jk2w5b6s6nkzri585bbz16cif2fhqcnl5l1mq3rd98r9nil3hd1"))))
5085 (build-system gnu-build-system)
5086 (native-inputs `(("pkg-config" ,pkg-config)))
5087 (inputs `(("gettext" ,gettext-minimal)
5088 ("glu" ,glu)
5089 ("quesoglc" ,quesoglc)
5090 ("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer)))))
5091 (home-page "http://chromium-bsu.sourceforge.net/")
5092 (synopsis "Fast-paced, arcade-style, top-scrolling space shooter")
5093 (description
5094 "In this game you are the captain of the cargo ship Chromium B.S.U. and
5095 are responsible for delivering supplies to the troops on the front line. Your
5096 ship has a small fleet of robotic fighters which you control from the relative
5097 safety of the Chromium vessel.")
5098 ;; Clarified Artistic License for everything but sound, which is covered
5099 ;; by the Expat License.
5100 (license (list license:clarified-artistic license:expat))))
5101
5102 (define-public tuxpaint
5103 (package
5104 (name "tuxpaint")
5105 (version "0.9.23") ;keep VER_DATE below in sync
5106 (source
5107 (origin
5108 (method url-fetch)
5109 (uri (string-append "mirror://sourceforge/tuxpaint/tuxpaint/"
5110 version "/tuxpaint-" version ".tar.gz"))
5111 (sha256
5112 (base32
5113 "09k9pxi88r3dx6dyjwf9h85d4qpva4i29qz63dc558hg9v21k69l"))
5114 (modules '((guix build utils)))
5115 (snippet
5116 '(begin
5117 ;; Remove win32 directory which contains binary dll's and the
5118 ;; deprecated visualc directory.
5119 (for-each delete-file-recursively '("win32" "visualc"))
5120 (substitute* "Makefile"
5121 ;; Do not rely on $(GPERF) being an absolute file name
5122 (("\\[ -x \\$\\(GPERF\\) \\]")
5123 "$(GPERF) --version >/dev/null 2>&1"))
5124 #t))
5125 (patches (search-patches "tuxpaint-stamps-path.patch"))))
5126 (build-system gnu-build-system)
5127 (native-inputs
5128 `(("gperf" ,gperf)
5129 ("pkg-config" ,pkg-config)))
5130 (inputs
5131 `(("cairo" ,cairo)
5132 ("fribidi" ,fribidi)
5133 ("gettext" ,gettext-minimal)
5134 ("libpng" ,libpng)
5135 ("librsvg" ,librsvg)
5136 ("libpaper" ,libpaper)
5137 ("netpbm" ,netpbm)
5138 ("sdl" ,(sdl-union (list sdl sdl-mixer sdl-ttf sdl-image)))))
5139 ;; TODO: Use system fonts rather than those in data/fonts
5140 (arguments
5141 `(#:make-flags `("VER_DATE=2018-09-02"
5142 "GPERF=gperf" "CC=gcc"
5143 "SDL_PCNAME=sdl SDL_image SDL_mixer SDL_ttf"
5144 ,(string-append "PREFIX=" %output)
5145 "KDE_PREFIX=$(PREFIX)/share/applications"
5146 "KDE_ICON_PREFIX=$(PREFIX)/share/icons/"
5147 "COMPLETIONDIR=$(PREFIX)/etc/bash_completion.d")
5148 #:parallel-build? #f ;fails on some systems
5149 #:tests? #f ;No tests
5150 #:phases (modify-phases %standard-phases
5151 (delete 'configure) ;no configure phase
5152 (add-before 'install 'no-sys-cache
5153 (lambda _ ;do not rebuild system conf cache
5154 (substitute* "Makefile"
5155 (("kbuildsycoca4") ""))
5156 #t))
5157 (add-after 'install 'fix-import
5158 (lambda* (#:key inputs outputs #:allow-other-keys)
5159 (let* ((out (assoc-ref outputs "out"))
5160 (net (assoc-ref inputs "netpbm"))
5161 (tpi (string-append out "/bin/tuxpaint-import")))
5162 (substitute* tpi
5163 ;; Point to installation prefix so that the default
5164 ;; configure file is found.
5165 (("/usr/local") out))
5166 ;; tuxpaint-import uses a bunch of programs from
5167 ;; netpbm, so make sure it knows where those are
5168 (wrap-program tpi
5169 `("PATH" ":" prefix
5170 (,(string-append net "/bin"))))))))))
5171 (native-search-paths
5172 (list (search-path-specification
5173 (variable "TUXPAINT_STAMPS_PATH")
5174 (files '("share/tuxpaint/stamps")))))
5175 (home-page "http://www.tuxpaint.org")
5176 (synopsis "Drawing software for children")
5177 (description
5178 "Tux Paint is a free drawing program designed for young children (kids
5179 ages 3 and up). It has a simple, easy-to-use interface; fun sound effects;
5180 and an encouraging cartoon mascot who helps guide children as they use the
5181 program. It provides a blank canvas and a variety of drawing tools to help
5182 your child be creative.")
5183 (license license:gpl2+)))
5184
5185 (define-public tuxpaint-stamps
5186 (package
5187 (name "tuxpaint-stamps")
5188 (version "2018.09.01")
5189 (source
5190 (origin
5191 (method url-fetch)
5192 (uri (string-append "mirror://sourceforge/tuxpaint/tuxpaint-stamps/"
5193 (string-map (λ (x) (if (eq? x #\.) #\- x)) version)
5194 "/tuxpaint-stamps-" version ".tar.gz"))
5195 (sha256
5196 (base32
5197 "1skr23k27yj3vgwfazpzxp90lb2a278gxrkr3bxw7az6zpkmb3yp"))))
5198 (build-system trivial-build-system)
5199 (native-inputs
5200 `(("tar" ,tar)
5201 ("gzip" ,gzip)))
5202 (arguments
5203 `(#:modules ((guix build utils))
5204 #:builder (begin
5205 (use-modules (guix build utils))
5206 (setenv "PATH"
5207 (string-append
5208 (assoc-ref %build-inputs "tar") "/bin" ":"
5209 (assoc-ref %build-inputs "gzip") "/bin"))
5210 (invoke "tar" "xvf" (assoc-ref %build-inputs "source"))
5211 (chdir (string-append ,name "-" ,version))
5212 (let ((dir (string-append %output "/share/tuxpaint/stamps")))
5213 (mkdir-p dir)
5214 (copy-recursively "stamps" dir))
5215 #t)))
5216 (home-page (package-home-page tuxpaint))
5217 (synopsis "Stamp images for Tux Paint")
5218 (description
5219 "This package contains a set of \"Rubber Stamp\" images which can be used
5220 with the \"Stamp\" tool within Tux Paint.")
5221 (license license:gpl2+)))
5222
5223 (define-public tuxpaint-config
5224 (package
5225 (name "tuxpaint-config")
5226 (version "0.0.14") ;keep VER_DATE below in sync
5227 (source
5228 (origin
5229 (method url-fetch)
5230 (uri (string-append "mirror://sourceforge/tuxpaint/tuxpaint-config/"
5231 version "/tuxpaint-config-" version ".tar.gz"))
5232 (sha256
5233 (base32
5234 "0zkgxk436nqcp43zghkfmh397c7dvh5bwn2as7gwvv208bzyij6g"))))
5235 (build-system gnu-build-system)
5236 (native-inputs
5237 `(("gettext" ,gettext-minimal)))
5238 (inputs
5239 `(("fltk" ,fltk)
5240 ("libpaper" ,libpaper)
5241 ;; TODO: Should the following be propagated by fltk?
5242 ("libx11" ,libx11)
5243 ("libxft" ,libxft)
5244 ("mesa" ,mesa)))
5245 (arguments
5246 `(#:make-flags `("VER_DATE=2018-09-01"
5247 "CONFDIR=/etc/tuxpaint" ;don't write to store
5248 ,(string-append "PREFIX=" %output)
5249 "GNOME_PREFIX=$(PREFIX)")
5250 #:parallel-build? #f ;race conditions
5251 #:tests? #f ;no tests
5252 #:phases (modify-phases %standard-phases
5253 (delete 'configure) ;no configure phase
5254 (add-before 'install 'gzip-no-name
5255 (lambda* _
5256 (substitute* "Makefile"
5257 ;; tuxpaint-config compresses its own documentation;
5258 ;; make sure it uses flags for reproducibility.
5259 (("gzip") "gzip --no-name"))))
5260 (add-before 'install 'make-install-dirs
5261 (lambda* (#:key outputs #:allow-other-keys)
5262 (let ((out (assoc-ref outputs "out")))
5263 (mkdir-p (string-append out "/bin"))
5264 #t))))))
5265 (home-page (package-home-page tuxpaint))
5266 (synopsis "Configure Tux Paint")
5267 (description
5268 "Tux Paint Config is a graphical configuration editor for Tux Paint.")
5269 (license license:gpl2))) ;no "or later" present
5270
5271 (define-public supertux
5272 (package
5273 (name "supertux")
5274 (version "0.6.2")
5275 (source (origin
5276 (method url-fetch)
5277 (uri (string-append "https://github.com/SuperTux/supertux/"
5278 "releases/download/v" version "/SuperTux-v"
5279 version "-Source.tar.gz"))
5280 (file-name (string-append name "-" version ".tar.gz"))
5281 (sha256
5282 (base32
5283 "167m3z4m8n76dvbv42m1fnvabpbpsxvr28zk9641916jl9pfba96"))
5284 (patches
5285 (search-patches "supertux-unbundle-squirrel.patch"))))
5286 (arguments
5287 '(#:tests? #f
5288 #:configure-flags '("-DINSTALL_SUBDIR_BIN=bin"
5289 "-DUSE_SYSTEM_PHYSFS=ON")
5290 #:phases
5291 (modify-phases %standard-phases
5292 (add-after 'unpack 'patch-squirrel-path
5293 (lambda* (#:key inputs #:allow-other-keys)
5294 (let ((squirrel (assoc-ref inputs "squirrel")))
5295 (substitute* "CMakeLists.txt"
5296 (("set\\(SQUIRREL_PREFIX.*")
5297 (string-append "set(SQUIRREL_PREFIX " squirrel ")"))
5298 (("add_dependencies\\(supertux2_lib squirrel\\)") "")
5299 (("\\$\\{SQUIRREL_PREFIX\\}/include")
5300 (string-append "${SQUIRREL_PREFIX}/include/squirrel"))))
5301 #t)))))
5302 (build-system cmake-build-system)
5303 (inputs `(("sdl2" ,sdl2)
5304 ("sdl2-image" ,sdl2-image)
5305 ("sdl2-mixer" ,sdl2-mixer)
5306 ("openal" ,openal)
5307 ("mesa" ,mesa)
5308 ("glew" ,glew)
5309 ("libvorbis" ,libvorbis)
5310 ("libogg" ,libogg)
5311 ("physfs" ,physfs)
5312 ("curl" ,curl)
5313 ("boost" ,boost)
5314 ("freetype" ,freetype)
5315 ("squirrel" ,squirrel)))
5316 (native-inputs
5317 `(("pkg-config" ,pkg-config)))
5318 (synopsis "2D platformer game")
5319 (description "SuperTux is a classic 2D jump'n run sidescroller game in
5320 a style similar to the original Super Mario games.")
5321 (home-page "https://supertux.org/")
5322 (license license:gpl3+)))
5323
5324 (define-public tintin++
5325 (package
5326 (name "tintin++")
5327 (version "2.02.05")
5328 (source
5329 (origin
5330 (method url-fetch)
5331 (uri (string-append "mirror://sourceforge/tintin/TinTin++ Source Code/"
5332 (string-drop-right version 1)
5333 "/tintin-" version ".tar.gz"))
5334 (sha256
5335 (base32 "18fm9ga08mxqmblahmnlzwnl387i8mbkj4n0gffxc91d299019v3"))))
5336 (inputs
5337 `(("gnutls" ,gnutls)
5338 ("pcre" ,pcre)
5339 ("readline" ,readline)
5340 ("zlib" ,zlib)))
5341 (arguments
5342 '(#:tests? #f ; no test suite
5343 #:phases
5344 (modify-phases %standard-phases
5345 ;; The source is in tt/src.
5346 (add-before 'configure 'chdir
5347 (lambda _
5348 (chdir "src")
5349 #t)))))
5350 (build-system gnu-build-system)
5351 (home-page "https://tintin.mudhalla.net/")
5352 (synopsis "MUD client")
5353 (description
5354 "TinTin++ is a MUD client which supports MCCP (Mud Client Compression
5355 Protocol), MMCP (Mud Master Chat Protocol), xterm 256 colors, most TELNET
5356 options used by MUDs, as well as those required to login via telnet on
5357 Linux / Mac OS X servers, and an auto mapper with a VT100 map display.")
5358 (license license:gpl3+)))
5359
5360 (define-public laby
5361 (package
5362 (name "laby")
5363 (version "0.7.0")
5364 (source
5365 (origin (method git-fetch)
5366 (uri (git-reference
5367 (url "https://github.com/sgimenez/laby")
5368 (commit (string-append name "-" version))))
5369 (file-name (git-file-name name version))
5370 (sha256
5371 (base32
5372 "1y6nfxcjhqg9bb81hs0wijg7kcwk5kff81rgd8bsv5ps7ia9nj6b"))
5373 (patches (search-patches "laby-make-install.patch"))))
5374 (build-system gnu-build-system)
5375 (inputs
5376 `(("lablgtk" ,lablgtk)
5377 ("ocaml" ,ocaml)
5378 ("ocaml-findlib" ,ocaml-findlib)
5379 ("ocamlbuild" ,ocamlbuild)))
5380 (arguments
5381 '(#:phases
5382 (modify-phases %standard-phases
5383 (delete 'configure)
5384 (add-before 'build 'allow-unsafe-strings
5385 ;; Fix a build failure with ocaml >=4.06.0.
5386 ;; See <https://github.com/sgimenez/laby/issues/53>.
5387 (lambda _
5388 (setenv "OCAMLPARAM" "safe-string=0,_")
5389 #t))
5390 (add-before 'build 'set-library-path
5391 (lambda* (#:key inputs #:allow-other-keys)
5392 (let ((lablgtk (assoc-ref inputs "lablgtk")))
5393 (setenv "LD_LIBRARY_PATH"
5394 (string-append lablgtk "/lib/ocaml/stublibs"))))))
5395 #:tests? #f ; no 'check' target
5396 #:make-flags
5397 (list (string-append "PREFIX=" (assoc-ref %outputs "out")) "all")))
5398 (home-page "https://sgimenez.github.io/laby/")
5399 (synopsis "Programming game")
5400 (description "Learn programming, playing with ants and spider webs ;-)
5401 Your robot ant can be programmed in many languages: OCaml, Python, C, C++,
5402 Java, Ruby, Lua, JavaScript, Pascal, Perl, Scheme, Vala, Prolog. Experienced
5403 programmers may also add their own favorite language.")
5404 (license license:gpl3+)))
5405
5406 (define-public bambam
5407 (package
5408 (name "bambam")
5409 (version "1.0.0")
5410 (source
5411 (origin
5412 (method git-fetch)
5413 (uri (git-reference
5414 (url "https://github.com/porridge/bambam")
5415 (commit (string-append "v" version))))
5416 (file-name (git-file-name name version))
5417 (sha256
5418 (base32 "18cwd1wpyyx8y61cags9bkdhx9x858xicc4y1c9c2s0xjmgzhl3i"))))
5419 (build-system python-build-system)
5420 (arguments
5421 `(#:tests? #f ; no tests
5422 #:phases
5423 (modify-phases %standard-phases
5424 (delete 'build) ; nothing to build
5425 (replace 'install
5426 (lambda* (#:key outputs #:allow-other-keys)
5427 (let* ((out (assoc-ref outputs "out"))
5428 (bin (string-append out "/bin"))
5429 (share (string-append out "/share")))
5430 (mkdir-p bin)
5431 (copy-file "bambam.py" (string-append bin "/bambam"))
5432 (install-file "bambam.6" (string-append share "/man/man6"))
5433 (copy-recursively "data" (string-append share "/bambam/data")))
5434 #t)))))
5435 (inputs
5436 `(("python-pygame" ,python-pygame)))
5437 (home-page "https://github.com/porridge/bambam")
5438 (synopsis "Keyboard mashing and doodling game for babies")
5439 (description "Bambam is a simple baby keyboard (and gamepad) masher
5440 application that locks the keyboard and mouse and instead displays bright
5441 colors, pictures, and sounds.")
5442 (license license:gpl3+)))
5443
5444 (define-public mrrescue
5445 (package
5446 (name "mrrescue")
5447 (version "1.02e")
5448 (source (origin
5449 (method url-fetch)
5450 (uri (string-append
5451 "https://github.com/SimonLarsen/mrrescue/releases/"
5452 "download/" version "/mrrescue" version ".love"))
5453 (file-name (string-append name "-" version ".love"))
5454 (sha256
5455 (base32
5456 "0jwzbwkgp1l5ia6c7s760gmdirbsncp6nfqp7vqdqsfb63la9gl2"))))
5457 (build-system trivial-build-system)
5458 (arguments
5459 `(#:modules ((guix build utils))
5460 #:builder
5461 (begin
5462 (use-modules (guix build utils))
5463 (let* ((out (assoc-ref %outputs "out"))
5464 (script (string-append out "/bin/" ,name))
5465 (data (string-append out "/share/" ,name))
5466 (source (assoc-ref %build-inputs "source"))
5467 (unzip (string-append (assoc-ref %build-inputs "unzip")
5468 "/bin/unzip"))
5469 (patch (string-append (assoc-ref %build-inputs "patch")
5470 "/bin/patch"))
5471 (bash (string-append (assoc-ref %build-inputs "bash")
5472 "/bin/bash"))
5473 (love (string-append (assoc-ref %build-inputs "love")
5474 "/bin/love")))
5475
5476 (mkdir-p (dirname script))
5477 (with-output-to-file script
5478 (lambda ()
5479 (format #t "#!~a~%" bash)
5480 (format #t "exec -a ~a \"~a\" \"~a\"~%" ,name love data)))
5481 (chmod script #o755)
5482
5483 ;; The better way to package this game would be to install *only* the
5484 ;; script above, pointing to the unextracted .love file in the store.
5485 ;; However, mrrescue 1.02e needs to be patched to work with Love 11.
5486 ;; Instead of extracting the .love file, patching it, and re-zipping
5487 ;; it to the store, simply point the script to the extracted patched
5488 ;; data directory directly.
5489 (mkdir-p data)
5490 (with-directory-excursion data
5491 (invoke unzip source)
5492 (invoke patch "-p1" "-i"
5493 (assoc-ref %build-inputs "love-11.patch")))
5494 #t))))
5495 (native-inputs
5496 `(("unzip" ,unzip)
5497 ("patch" ,patch)
5498 ("love-11.patch" ,(search-patch "mrrescue-support-love-11.patch"))))
5499 (inputs
5500 `(("bash" ,bash)
5501 ("love" ,love)))
5502 (home-page "https://tangramgames.dk/games/mrrescue")
5503 (synopsis "Arcade-style fire fighting game")
5504 (description
5505 "Mr. Rescue is an arcade styled 2d action game centered around evacuating
5506 civilians from burning buildings. The game features fast-paced fire
5507 extinguishing action, intense boss battles, a catchy soundtrack, and lots of
5508 throwing people around in pseudo-randomly generated buildings.")
5509 (license (list license:zlib ; for source code
5510 license:cc-by-sa3.0)))) ; for graphics and music assets
5511
5512 (define-public hyperrogue
5513 (package
5514 (name "hyperrogue")
5515 (version "11.3a")
5516 ;; When updating this package, be sure to update the "hyperrogue-data"
5517 ;; origin in native-inputs.
5518 (source (origin
5519 (method url-fetch)
5520 (uri (string-append
5521 "https://www.roguetemple.com/z/hyper/hyperrogue"
5522 (string-join (string-split version #\.) "")
5523 "-src.tgz"))
5524 (sha256
5525 (base32
5526 "1yxabbswq02fc5frigvs43f83m5vlxybc7n5mynkwzj2c70lfp2k"))))
5527 (build-system gnu-build-system)
5528 (arguments
5529 `(#:tests? #f ; no check target
5530 #:make-flags '("HYPERROGUE_USE_GLEW=1"
5531 "HYPERROGUE_USE_PNG=1")
5532 #:phases
5533 (modify-phases %standard-phases
5534 (add-after 'set-paths 'set-sdl-paths
5535 (lambda* (#:key inputs #:allow-other-keys)
5536 (setenv "CPATH"
5537 (string-append (or (getenv "CPATH") "") ":"
5538 (assoc-ref inputs "sdl-union")
5539 "/include/SDL"))))
5540 (replace 'configure
5541 (lambda* (#:key inputs outputs #:allow-other-keys)
5542 (let* ((out (assoc-ref outputs "out"))
5543 (share-dir (string-append out "/share/hyperrogue"))
5544 (dejavu-dir (string-append
5545 (assoc-ref inputs "font-dejavu")
5546 "/share/fonts/truetype"))
5547 (dejavu-font "DejaVuSans-Bold.ttf")
5548 (music-file "hyperrogue-music.txt"))
5549 ;; Fix font and music paths.
5550 (substitute* "basegraph.cpp"
5551 ((dejavu-font)
5552 (string-append dejavu-dir "/" dejavu-font)))
5553 (substitute* music-file
5554 (("\\*/")
5555 (string-append share-dir "/sounds/")))
5556 (substitute* "sound.cpp"
5557 (("musicfile = \"\"")
5558 (string-append "musicfile = \""
5559 share-dir "/" music-file "\"")))
5560 ;; Disable build machine CPU optimizations and warnings treated
5561 ;; as errors.
5562 (substitute* "Makefile"
5563 (("-march=native") "")
5564 (("-Werror") "")))
5565 #t))
5566 (replace 'install
5567 (lambda* (#:key inputs outputs #:allow-other-keys)
5568 (let* ((out (assoc-ref outputs "out"))
5569 (bin (string-append out "/bin"))
5570 (share-dir (string-append out "/share/hyperrogue")))
5571 (mkdir-p bin)
5572 (install-file "hyperrogue" bin)
5573 (install-file "hyperrogue-music.txt" share-dir))
5574 #t))
5575 (add-after 'install 'install-data
5576 (lambda* (#:key inputs outputs #:allow-other-keys)
5577 (let* ((data (assoc-ref inputs "hyperrogue-data"))
5578 (out (assoc-ref outputs "out"))
5579 (sounds (string-append out "/share/hyperrogue/sounds"))
5580 (unzip (string-append (assoc-ref inputs "unzip") "/bin/unzip")))
5581 ;; Extract media license information into sounds directory.
5582 (invoke unzip "-j" data
5583 (string-append
5584 "hyperrogue"
5585 (string-join (string-split ,version #\.) "")
5586 "/sounds/credits.txt") "-d" sounds)
5587 ;; Extract sounds and music into sounds directory.
5588 (invoke "unzip" "-j" data
5589 (string-append
5590 "hyperrogue"
5591 (string-join (string-split ,version #\.) "")
5592 "/*.ogg") "-d" sounds)))))))
5593 (native-inputs
5594 `(("hyperrogue-data"
5595 ,(origin
5596 (method url-fetch)
5597 (uri
5598 (string-append
5599 "https://www.roguetemple.com/z/hyper/hyperrogue"
5600 (string-join (string-split version #\.) "")
5601 "-win.zip"))
5602 (sha256
5603 (base32
5604 "11yhbia45f1w9z0j67h9nynwjqmvakr9l6rnrmdrdkzin6lvzzj4"))))
5605 ("unzip" ,unzip)))
5606 (inputs
5607 `(("font-dejavu" ,font-dejavu)
5608 ("glew" ,glew)
5609 ("libpng" ,libpng)
5610 ("sdl-union" ,(sdl-union (list sdl
5611 sdl-gfx
5612 sdl-mixer
5613 sdl-ttf)))))
5614 (home-page "https://www.roguetemple.com/z/hyper/")
5615 (synopsis "Non-euclidean graphical rogue-like game")
5616 (description
5617 "HyperRogue is a game in which the player collects treasures and fights
5618 monsters -- rogue-like but for the fact that it is played on the hyperbolic
5619 plane and not in euclidean space.
5620
5621 In HyperRogue, the player can move through different parts of the world, which
5622 are home to particular creatures and may be subject to their own rules of
5623 \"physics\".
5624
5625 While the game can use ASCII characters to display the the classical rogue
5626 symbols, it still needs graphics to render the non-euclidean world.")
5627 (license (list license:bsd-3 ; glew.c, mtrand.*
5628 license:cc-by-sa3.0 ; music
5629 license:cc-by-sa4.0 ; sounds
5630 license:cc0
5631 license:public-domain ; direntx.*, some sounds
5632 license:zlib ; savepng.*
5633 license:gpl2+)))) ; remaining files
5634
5635 (define-public kobodeluxe
5636 (package
5637 (name "kobodeluxe")
5638 (version "0.5.1")
5639 (source (origin
5640 (method url-fetch)
5641 (uri (string-append "http://olofson.net/kobodl/download/KoboDeluxe-"
5642 version ".tar.bz2"))
5643 (sha256
5644 (base32
5645 "0b2wvdpnmaibsy419c16dfwj5kvd3pccby2aaqvm964x74592yqg"))
5646 (patches (search-patches
5647 "kobodeluxe-const-charp-conversion.patch"
5648 "kobodeluxe-enemies-pipe-decl.patch"
5649 "kobodeluxe-graphics-window-signed-char.patch"
5650 "kobodeluxe-manpage-minus-not-hyphen.patch"
5651 "kobodeluxe-midicon-segmentation-fault.patch"
5652 "kobodeluxe-paths.patch"))))
5653 (build-system gnu-build-system)
5654 (arguments
5655 '(#:configure-flags
5656 (list (string-append "CPPFLAGS=-I"
5657 (assoc-ref %build-inputs "sdl-union")
5658 "/include/SDL"))))
5659 (inputs
5660 `(("glu" ,glu)
5661 ("sdl-union" ,(sdl-union (list sdl sdl-image)))))
5662 (synopsis "Shooter with space station destruction")
5663 (description
5664 "Kobo Deluxe is an enhanced version of Akira Higuchi's XKobo graphical game
5665 for Un*x systems with X11.")
5666 (home-page "http://olofson.net/kobodl/")
5667 (license license:gpl2+)))
5668
5669 (define-public freeciv
5670 (package
5671 (name "freeciv")
5672 (version "2.6.3")
5673 (source
5674 (origin
5675 (method url-fetch)
5676 (uri (list (string-append
5677 "http://files.freeciv.org/stable/freeciv-"
5678 version ".tar.bz2")
5679 (string-append
5680 "mirror://sourceforge/freeciv/Freeciv%20"
5681 (version-major+minor version) "/" version
5682 "/freeciv-" version ".tar.bz2")))
5683 (sha256
5684 (base32 "1lgq7wcbhwpy2yqdw4biwfmp5q8fh7lhlwxcgm0fpaapfl12whvp"))))
5685 (build-system gnu-build-system)
5686 (inputs
5687 `(("curl" ,curl)
5688 ("cyrus-sasl" ,cyrus-sasl)
5689 ("gtk+" ,gtk+)
5690 ("sdl-mixer" ,sdl-mixer)
5691 ("zlib" ,zlib)))
5692 (native-inputs
5693 `(("pkg-config" ,pkg-config)))
5694 (home-page "http://www.freeciv.org/")
5695 (synopsis "Turn-based empire building strategy game")
5696 (description "Freeciv is a turn-based empire building strategy game
5697 inspired by the history of human civilization. The game commences in
5698 prehistory and your mission is to lead your tribe from the Stone Age
5699 into the Space Age.")
5700 (license license:gpl2+)))
5701
5702 (define-public no-more-secrets
5703 (package
5704 (name "no-more-secrets")
5705 (version "0.3.3")
5706 (source
5707 (origin
5708 (method git-fetch)
5709 (uri (git-reference
5710 (url "https://github.com/bartobri/no-more-secrets")
5711 (commit (string-append "v" version))))
5712 (file-name (git-file-name name version))
5713 (sha256
5714 (base32 "1zfv4qabikf8w9winsr4brxrdvs3f0d7xvydksyx8bydadsm2v2h"))))
5715 (build-system gnu-build-system)
5716 (arguments
5717 `(#:tests? #f
5718 #:make-flags (list "CC=gcc" "all-ncurses"
5719 (string-append "prefix="
5720 (assoc-ref %outputs "out")))
5721 #:phases
5722 (modify-phases %standard-phases
5723 (delete 'configure))))
5724 (inputs
5725 `(("ncurses" ,ncurses)))
5726 (home-page "https://github.com/bartobri/no-more-secrets")
5727 (synopsis "Recreation of data decryption effect in \"Sneakers\"")
5728 (description
5729 "@code{No More Secrets} provides a command line tool called \"nms\"
5730 that recreates the famous data decryption effect seen on screen in the 1992
5731 movie \"Sneakers\".
5732
5733 This command works on piped data. Pipe any ASCII or UTF-8 text to nms, and
5734 it will apply the hollywood effect, initially showing encrypted data, then
5735 starting a decryption sequence to reveal the original plaintext characters.")
5736 (license license:expat)))
5737
5738 (define-public megaglest-data
5739 (package
5740 (name "megaglest-data")
5741 (version "3.13.0")
5742 (source
5743 (origin
5744 (method url-fetch)
5745 (uri (string-append
5746 "https://github.com/MegaGlest/megaglest-data"
5747 "/releases/download/" version "/megaglest-data-"
5748 version ".tar.xz"))
5749 (sha256
5750 (base32
5751 "0ipgza33z89fw3si32iafm981f3fvm0zldvbxj29whghd2k3rpj3"))))
5752 (build-system cmake-build-system)
5753 (arguments
5754 `(#:tests? #f))
5755 (home-page "https://megaglest.org/")
5756 (synopsis "Data files for MegaGlest")
5757 (description "This package contains the data files required for MegaGlest.")
5758 (license license:cc-by-sa3.0)))
5759
5760 (define-public megaglest
5761 (package
5762 (name "megaglest")
5763 (version "3.13.0")
5764 (source
5765 (origin
5766 (method url-fetch)
5767 (uri (string-append
5768 "https://github.com/MegaGlest/megaglest-source"
5769 "/releases/download/" version "/megaglest-source-"
5770 version ".tar.xz"))
5771 (sha256
5772 (base32
5773 "1ffck3ii1wp5k3nn5p0ga06jgp7pzk4zw0xln3xim2w7qrxzdzh9"))))
5774 (build-system cmake-build-system)
5775 (inputs
5776 `(("curl" ,curl)
5777 ("fontconfig" ,fontconfig)
5778 ("ftgl" ,ftgl)
5779 ("glew" ,glew)
5780 ("libjpeg-turbo" ,libjpeg-turbo)
5781 ("megaglest-data" ,megaglest-data)
5782 ("mesa" ,mesa)
5783 ("miniupnpc" ,miniupnpc)
5784 ("openal" ,openal)
5785 ("libircclient" ,libircclient)
5786 ("libpng" ,libpng)
5787 ("libvorbis" ,libvorbis)
5788 ("lua" ,lua)
5789 ("sdl2" ,sdl2)
5790 ("wxwidgets" ,wxwidgets)))
5791 (native-inputs
5792 `(("cppunit" ,cppunit)
5793 ("pkg-config" ,pkg-config)))
5794 (arguments
5795 `(#:configure-flags
5796 (list (string-append "-DCUSTOM_DATA_INSTALL_PATH="
5797 (assoc-ref %build-inputs "megaglest-data")
5798 "/share/megaglest")
5799 "-DBUILD_MEGAGLEST_TESTS=ON")
5800 #:phases
5801 (modify-phases %standard-phases
5802 (add-after 'unpack 'fix-ini-search-path
5803 (lambda* (#:key outputs #:allow-other-keys)
5804 (substitute* "source/glest_game/global/config.cpp"
5805 (("/usr/share/megaglest/")
5806 (string-append (assoc-ref outputs "out")
5807 "/share/megaglest/"))))))
5808 #:test-target "megaglest_tests"))
5809 (home-page "https://megaglest.org/")
5810 (synopsis "3D real-time strategy (RTS) game")
5811 (description "MegaGlest is a cross-platform 3D real-time strategy (RTS)
5812 game, where you control the armies of one of seven different factions: Tech,
5813 Magic, Egypt, Indians, Norsemen, Persian or Romans.")
5814 (license license:gpl2+)))
5815
5816 (define-public freegish
5817 (let ((commit "8795cd7adc95957883f2d3465eb9036a774667a7")
5818 (revision "1"))
5819 (package
5820 (name "freegish")
5821 (version (string-append "0-" revision "." (string-take commit 9)))
5822 (source (origin
5823 (method git-fetch)
5824 (uri (git-reference
5825 (url "https://github.com/freegish/freegish")
5826 (commit commit)))
5827 (file-name (git-file-name name version))
5828 (sha256
5829 (base32
5830 "1p1zf5qqagmcpi1db2bs02cnalpy3qiymp6yzan7k1bhmv859gsx"))
5831 (modules '((guix build utils)))
5832 ;; The audio files in the "music" directory are licensed under
5833 ;; CC-BY-NC, so we delete them.
5834 (snippet
5835 '(begin
5836 (delete-file-recursively "music")
5837 #t))))
5838 (build-system cmake-build-system)
5839 (arguments
5840 `(#:tests? #f ; no tests included
5841 #:configure-flags
5842 (list "-DCMAKE_INSTALL_FHS=ON")
5843 #:phases
5844 (modify-phases %standard-phases
5845 (add-after 'unpack 'set-DATAPATH
5846 (lambda* (#:key outputs #:allow-other-keys)
5847 (substitute* "CMakeLists.txt"
5848 (("^option\\(INSTALL_FHS" line)
5849 (string-append "add_definitions(-DDATAPATH=\""
5850 (assoc-ref outputs "out") "/share/freegish\")\n"
5851 line)))
5852 #t)))))
5853 (inputs
5854 `(("sdl-union" ,(sdl-union (list sdl sdl-mixer)))
5855 ("openal" ,openal)
5856 ("libvorbis" ,libvorbis)
5857 ("libogg" ,libogg)
5858 ("mesa" ,mesa)
5859 ("libpng" ,libpng)
5860 ("zlib" ,zlib)))
5861 (home-page "https://github.com/freegish/freegish")
5862 (synopsis "Side-scrolling physics platformer with a ball of tar")
5863 (description "In FreeGish you control Gish, a ball of tar who lives
5864 happily with his girlfriend Brea, until one day a mysterious dark creature
5865 emerges from a sewer hole and pulls her below ground.")
5866 ;; The textures are available under the Expat license. All other assets
5867 ;; (including levels) are covered under CC-BY-SA or public domain. The
5868 ;; source code is under GPLv2+.
5869 (license (list license:gpl2+
5870 license:expat
5871 license:public-domain
5872 license:cc-by-sa3.0)))))
5873
5874 (define-public cdogs-sdl
5875 (package
5876 (name "cdogs-sdl")
5877 (version "0.8.0")
5878 (source
5879 (origin
5880 (method git-fetch)
5881 (uri (git-reference
5882 (url "https://github.com/cxong/cdogs-sdl")
5883 (commit version)))
5884 (file-name (git-file-name name version))
5885 (sha256
5886 (base32 "0vx37zb2iw7sfw5a2bs97ydlmb301nvy485ybdm8g46c5hn9s13c"))))
5887 (build-system cmake-build-system)
5888 (arguments
5889 `(#:configure-flags
5890 (list (string-append "-DCDOGS_DATA_DIR="
5891 (assoc-ref %outputs "out")
5892 "/share/cdogs-sdl/"))))
5893 (native-inputs
5894 `(("pkg-config" ,pkg-config)))
5895 (inputs
5896 `(("gtk+" ,gtk+)
5897 ("mesa" ,mesa)
5898 ("sdl2" ,sdl2)
5899 ("sdl2-image" ,sdl2-image)
5900 ("sdl2-mixer" ,sdl2-mixer)))
5901 (home-page "https://cxong.github.io/cdogs-sdl/")
5902 (synopsis "Classic overhead run-and-gun game")
5903 (description "C-Dogs SDL is a classic overhead run-and-gun game,
5904 supporting up to 4 players in co-op and deathmatch modes. Customize your
5905 player, choose from many weapons, and blast, slide and slash your way through
5906 over 100 user-created campaigns.")
5907 ;; GPLv2+ for code (includes files under BSD-2 and BSD-3),
5908 ;; CC0/CC-BY/CC-BY-SA for assets.
5909 (license (list license:gpl2+
5910 license:bsd-2
5911 license:bsd-3
5912 license:cc0
5913 license:cc-by3.0
5914 license:cc-by-sa3.0))))
5915
5916 (define-public kiki
5917 (package
5918 (name "kiki")
5919 (version "1.0.2")
5920 (source (origin
5921 (method url-fetch)
5922 (uri (string-append "mirror://sourceforge/kiki/kiki-src/"
5923 version "/kiki-" version "-src.tgz"))
5924 (sha256
5925 (base32
5926 "0ihjdsxbn8z3cz0gpcprafiipcqaiskgdnh1rhmw4qff8dszalbn"))
5927 (modules '((guix build utils)))
5928 (snippet
5929 '(begin
5930 (for-each delete-file (find-files "." "\\.dll$"))
5931 #t))
5932 (patches
5933 (search-patches "kiki-level-selection-crash.patch"
5934 "kiki-makefile.patch"
5935 "kiki-missing-includes.patch"
5936 "kiki-portability-64bit.patch"))))
5937 (build-system gnu-build-system)
5938 (arguments
5939 `(#:tests? #f ; there are no tests
5940 #:make-flags '("CXX=g++")
5941 #:phases
5942 (modify-phases %standard-phases
5943 (replace 'configure
5944 (lambda* (#:key inputs outputs #:allow-other-keys)
5945 (setenv "CPLUS_INCLUDE_PATH"
5946 (string-append (assoc-ref inputs "sdl-union")
5947 "/include/SDL:"
5948 (assoc-ref inputs "python")
5949 "/include/python2.7:"
5950 (or (getenv "CPLUS_INCLUDE_PATH") "")))
5951 (substitute* "src/main/main.cpp"
5952 (("#include <SDL.h>" line)
5953 (string-append line "
5954 #define K_INCLUDE_GLUT
5955 #include \"KIncludeTools.h\""))
5956 (("// initialize SDL" line)
5957 (string-append "glutInit(&argc,argv);\n" line)))
5958 (substitute* "src/main/KikiController.cpp"
5959 (("getenv\\(\"KIKI_HOME\"\\)")
5960 (string-append "\"" (assoc-ref outputs "out") "/share/kiki/\"")))
5961 (substitute* "linux/Makefile"
5962 (("CXXOPTS =" line)
5963 (string-append line " -fpermissive"))
5964 (("PYTHON_VERSION=.*") "PYTHON_VERSION=2.7")
5965 (("PYTHONHOME =.*")
5966 (string-append "PYTHONHOME = "
5967 (assoc-ref inputs "python")
5968 "/lib/python2.7/"))
5969 (("\\$\\(GLLIBS\\)" line)
5970 (string-append line " -lm -lpython2.7")))
5971 (substitute* "src/main/KikiPythonWidget.h"
5972 (("#define __KikiPythonWidget" line)
5973 (string-append line "\n#include \"KikiPython.h\"")))
5974 #t))
5975 (add-before 'build 'build-kodilib
5976 (lambda* (#:key make-flags #:allow-other-keys)
5977 (with-directory-excursion "kodilib/linux"
5978 (apply invoke "make" make-flags))))
5979 (add-after 'build-kodilib 'chdir
5980 (lambda _ (chdir "linux") #t))
5981 (replace 'install
5982 (lambda* (#:key outputs #:allow-other-keys)
5983 (let* ((out (assoc-ref outputs "out"))
5984 (bin (string-append out "/bin"))
5985 (share (string-append out "/share/kiki")))
5986 (mkdir-p bin)
5987 (mkdir-p share)
5988 (install-file "kiki" bin)
5989 (copy-recursively "../py" (string-append share "/py"))
5990 (copy-recursively "../sound" (string-append share "/sound"))
5991 #t))))))
5992 (inputs
5993 `(("glu" ,glu)
5994 ;; Kiki builds fine with freeglut 3.0.0 but segfaults on start.
5995 ("freeglut" ,freeglut-2.8)
5996 ("sdl-union" ,(sdl-union (list sdl
5997 sdl-mixer
5998 sdl-image)))
5999 ("python" ,python-2)))
6000 (native-inputs
6001 `(("swig" ,swig)))
6002 (home-page "http://kiki.sourceforge.net/")
6003 (synopsis "3D puzzle game")
6004 (description "Kiki the nano bot is a 3D puzzle game. It is basically a
6005 mixture of the games Sokoban and Kula-World. Your task is to help Kiki, a
6006 small robot living in the nano world, repair its maker.")
6007 ;; See <http://metadata.ftp-master.debian.org/changelogs/main/k/
6008 ;; kiki-the-nano-bot/kiki-the-nano-bot_1.0.2+dfsg1-4_copyright>
6009 ;; for a statement from the author.
6010 (license license:public-domain)))
6011
6012 (define-public teeworlds
6013 (package
6014 (name "teeworlds")
6015 (version "0.7.5")
6016 (source (origin
6017 (method git-fetch)
6018 (uri (git-reference
6019 (url "https://github.com/teeworlds/teeworlds")
6020 (commit version)))
6021 (file-name (git-file-name name version))
6022 (sha256
6023 (base32
6024 "169dl83q08zl4h813az8hjs4rs3dms9yjn6bnsld4fjcj0imvvc6"))
6025 (modules '((guix build utils)
6026 (ice-9 ftw)
6027 (ice-9 regex)
6028 (srfi srfi-1)
6029 (srfi srfi-26)))
6030 (snippet ; remove bundled libraries except md5
6031 '(let ((base-dir "src/engine/external/"))
6032 (for-each (compose (cut delete-file-recursively <>)
6033 (cut string-append base-dir <>))
6034 (remove (cut string-match "(^.)|(^md5$)" <>)
6035 (scandir base-dir)))
6036 #t))))
6037 (build-system gnu-build-system)
6038 (arguments
6039 `(#:tests? #f ; no tests included
6040 #:modules ((guix build gnu-build-system)
6041 (guix build utils)
6042 (srfi srfi-26))
6043 #:phases
6044 (modify-phases %standard-phases
6045 (replace 'configure
6046 (lambda* (#:key outputs #:allow-other-keys)
6047 ;; Embed path to assets.
6048 (substitute* "src/engine/shared/storage.cpp"
6049 (("#define DATA_DIR.*")
6050 (string-append "#define DATA_DIR \""
6051 (assoc-ref outputs "out")
6052 "/share/teeworlds/data"
6053 "\"")))
6054
6055 ;; Bam expects all files to have a recent time stamp.
6056 (for-each (cut utime <> 1 1)
6057 (find-files "."))
6058
6059 ;; Do not use bundled libraries.
6060 (substitute* "bam.lua"
6061 (("local json = Compile.+$")
6062 "local json = nil
6063 settings.link.libs:Add(\"jsonparser\")")
6064 (("local png = Compile.+$")
6065 "local png = nil
6066 settings.link.libs:Add(\"pnglite\")")
6067 (("local wavpack = Compile.+$")
6068 "local wavpack = nil
6069 settings.link.libs:Add(\"wavpack\")")
6070 (("if config\\.zlib\\.value == 1")
6071 "if config.zlib.value"))
6072 (substitute* "src/engine/client/graphics_threaded.cpp"
6073 (("engine/external/pnglite/pnglite\\.h")
6074 "pnglite.h"))
6075 (substitute* "src/engine/client/sound.cpp"
6076 (("engine/external/wavpack/wavpack\\.h")
6077 "wavpack/wavpack.h"))
6078 #t))
6079 (replace 'build
6080 (lambda _
6081 (invoke "bam" "-a" "-v" "conf=release")))
6082 (replace 'install
6083 (lambda* (#:key outputs #:allow-other-keys)
6084 (let* ((arch ,(system->linux-architecture
6085 (or (%current-target-system)
6086 (%current-system))))
6087 (build (string-append "build/" (if (string=? arch "i386")
6088 "x86" arch)
6089 "/release/"))
6090 (data-built (string-append build "data/"))
6091 (out (assoc-ref outputs "out"))
6092 (bin (string-append out "/bin/"))
6093 (data (string-append out "/share/teeworlds/data/")))
6094 (for-each (cut install-file <> bin)
6095 (map (cut string-append build <>)
6096 '("teeworlds" "teeworlds_srv")))
6097 (copy-recursively data-built data)
6098 #t))))))
6099 (inputs
6100 `(("freetype" ,freetype)
6101 ("glu" ,glu)
6102 ("json-parser" ,json-parser)
6103 ("mesa" ,mesa)
6104 ("pnglite" ,pnglite)
6105 ("sdl2" ,sdl2)
6106 ("sdl2-image" ,sdl2-image)
6107 ("sdl2-mixer" ,sdl2-mixer)
6108 ("wavpack" ,wavpack)
6109 ("zlib" ,zlib)))
6110 (native-inputs
6111 `(("bam" ,bam)
6112 ("python" ,python-wrapper)
6113 ("pkg-config" ,pkg-config)))
6114 (home-page "https://www.teeworlds.com")
6115 (synopsis "2D retro multiplayer shooter game")
6116 (description "Teeworlds is an online multiplayer game. Battle with up to
6117 16 players in a variety of game modes, including Team Deathmatch and Capture
6118 The Flag. You can even design your own maps!")
6119 (license license:bsd-3)))
6120
6121 (define-public enigma
6122 (package
6123 (name "enigma")
6124 (version "1.21")
6125 (source (origin
6126 (method url-fetch)
6127 (uri (string-append "mirror://sourceforge/enigma-game/"
6128 "Release%20" version "/enigma-"
6129 version ".tar.gz"))
6130 (sha256
6131 (base32
6132 "00ffh9pypj1948pg3q9sjp1nmiabh52p5c8wpg9n1dcfgl3cywnq"))))
6133 (build-system gnu-build-system)
6134 (arguments
6135 `(#:configure-flags
6136 (list "--with-system-enet")
6137 #:phases
6138 (modify-phases %standard-phases
6139 (add-after 'unpack 'fix-build-with-new-gcc
6140 (lambda _
6141 ;; Fix build with GCC6 and later by avoiding comparing ifstream
6142 ;; to NULL. Can be removed for versions > 1.21.
6143 (substitute* "src/lev/Proxy.cc"
6144 (("ifs != NULL")
6145 "ifs"))
6146 #t))
6147 (add-after 'unpack 'find-sdl
6148 (lambda _
6149 (substitute* "configure"
6150 (("SDL_ttf.h") "SDL/SDL_ttf.h"))
6151 (substitute* '("tools/ttf2bmf.cc"
6152 "lib-src/enigma-core/ecl_font.cc"
6153 "lib-src/enigma-core/ecl_video.cc"
6154 "lib-src/enigma-core/ecl_buffer.hh"
6155 "src/SoundEngine.cc"
6156 "src/SoundEngine.hh"
6157 "src/MusicManager.cc"
6158 "src/MusicManager.hh"
6159 "src/d_models.cc"
6160 "src/main.cc"
6161 "src/network.cc")
6162 (("#include \"SDL_(image|ttf|mixer|types|syswm|mutex).h\"" line header)
6163 (string-append "#include \"SDL/SDL_" header ".h\"")))
6164 (substitute* "src/main.cc"
6165 (("#include <SDL_(image|ttf|mixer).h>" line header)
6166 (string-append "#include \"SDL/SDL_" header ".h\"")))
6167 #t)))))
6168 (inputs
6169 `(("xerces-c" ,xerces-c)
6170 ("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer sdl-ttf)))
6171 ("curl" ,curl)
6172 ("enet" ,enet)))
6173 (native-inputs
6174 `(("pkg-config" ,pkg-config)
6175 ("imagemagick" ,imagemagick)))
6176 (home-page "https://www.nongnu.org/enigma")
6177 (synopsis "Puzzle game with a dexterity component")
6178 (description "Enigma is a puzzle game with 550 unique levels. The object
6179 of the game is to find and uncover pairs of identically colored ‘Oxyd’ stones.
6180 Simple? Yes. Easy? Certainly not! Hidden traps, vast mazes, laser beams,
6181 and most of all, countless hairy puzzles usually block your direct way to the
6182 Oxyd stones. Enigma’s game objects (and there are hundreds of them, lest you
6183 get bored) interact in many unexpected ways, and since many of them follow the
6184 laws of physics (Enigma’s special laws of physics, that is), controlling them
6185 with the mouse isn’t always trivial.")
6186 (license license:gpl2+)))
6187
6188 (define-public chroma
6189 (package
6190 (name "chroma")
6191 (version "1.17")
6192 (source (origin
6193 (method url-fetch)
6194 (uri (string-append "http://level7.org.uk/chroma/download/chroma-"
6195 version ".tar.bz2"))
6196 (sha256
6197 (base32
6198 "047sf00x71xbmi8bqrhfbmr9bk89l2gbykkqsfpw4wz6yfjscs6y"))))
6199 (build-system gnu-build-system)
6200 (arguments
6201 `(#:tests? #f ; no tests included
6202 #:configure-flags '("CFLAGS=-fgnu89-inline"))) ; fix inlines
6203 (inputs
6204 `(("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer sdl-ttf)))
6205 ("freetype" ,freetype)
6206 ("ncurses" ,ncurses)
6207 ("fontconfig" ,fontconfig)
6208 ("libxft" ,libxft)))
6209 (native-inputs
6210 `(("pkg-config" ,pkg-config)))
6211 (home-page "http://level7.org.uk/chroma/")
6212 (synopsis "Abstract puzzle game")
6213 (description "Chroma is an abstract puzzle game. A variety of colourful
6214 shapes are arranged in a series of increasingly complex patterns, forming
6215 fiendish traps that must be disarmed and mysterious puzzles that must be
6216 manipulated in order to give up their subtle secrets. Initially so
6217 straightforward that anyone can pick it up and begin to play, yet gradually
6218 becoming difficult enough to tax even the brightest of minds.")
6219 (license license:gpl2+)))
6220
6221 (define-public fillets-ng
6222 (package
6223 (name "fillets-ng")
6224 (version "1.0.1")
6225 (source (origin
6226 (method url-fetch)
6227 (uri (string-append "mirror://sourceforge/fillets/"
6228 "Fish%20Fillets%20-%20Next%20Generation/"
6229 version "/fillets-ng-" version ".tar.gz"))
6230 (sha256
6231 (base32
6232 "1nljp75aqqb35qq3x7abhs2kp69vjcj0h1vxcpdyn2yn2nalv6ij"))))
6233 (build-system gnu-build-system)
6234 (arguments
6235 `(#:configure-flags
6236 (list (string-append "--with-lua="
6237 (assoc-ref %build-inputs "lua")))
6238 #:make-flags
6239 (list (string-append "CFLAGS=-I"
6240 (assoc-ref %build-inputs "sdl-union")
6241 "/include/SDL")
6242 (string-append "CXXFLAGS=-I"
6243 (assoc-ref %build-inputs "sdl-union")
6244 "/include/SDL"))
6245 #:phases
6246 (modify-phases %standard-phases
6247 ;; Lua 5.1 does not provide it.
6248 (add-after 'unpack 'do-not-link-with-lualib
6249 (lambda _
6250 (substitute* "configure"
6251 (("-llualib") ""))
6252 #t))
6253 (add-after 'install 'install-data
6254 (lambda* (#:key inputs outputs #:allow-other-keys)
6255 (let ((data (string-append (assoc-ref outputs "out")
6256 "/share/games/fillets-ng")))
6257 (mkdir-p data)
6258 (invoke "tar" "-xvf"
6259 (assoc-ref inputs "fillets-ng-data")
6260 "--strip-components=1"
6261 "-C" data)))))))
6262 (inputs
6263 `(("sdl-union" ,(sdl-union (list sdl
6264 sdl-mixer
6265 sdl-image
6266 sdl-ttf)))
6267 ("fribidi" ,fribidi)
6268 ("libx11" ,libx11)
6269 ("lua" ,lua-5.1)))
6270 (native-inputs
6271 `(("pkg-config" ,pkg-config)
6272 ("fillets-ng-data"
6273 ,(origin
6274 (method url-fetch)
6275 (uri (string-append "mirror://sourceforge/fillets/"
6276 "Fish%20Fillets%20-%20Next%20Generation/"
6277 version "/fillets-ng-data-" version ".tar.gz"))
6278 (sha256
6279 (base32
6280 "169p0yqh2gxvhdilvjc2ld8aap7lv2nhkhkg4i1hlmgc6pxpkjgh"))))))
6281 (home-page "http://fillets.sourceforge.net/")
6282 (synopsis "Puzzle game")
6283 (description "Fish Fillets NG is strictly a puzzle game. The goal in
6284 every of the seventy levels is always the same: find a safe way out. The fish
6285 utter witty remarks about their surroundings, the various inhabitants of their
6286 underwater realm quarrel among themselves or comment on the efforts of your
6287 fish. The whole game is accompanied by quiet, comforting music.")
6288 (license license:gpl2+)))
6289
6290 (define-public crawl
6291 (package
6292 (name "crawl")
6293 (version "0.26.0")
6294 (source
6295 (origin
6296 (method url-fetch)
6297 (uri (string-append "https://github.com/crawl/crawl/releases/download/"
6298 version "/stone_soup-" version "-nodeps.tar.xz"))
6299 (sha256
6300 (base32 "1m81x1sp6p2ka5w2nib3pcw5w5iv58z41c8aqn0dayi1lb3yslfb"))
6301 (patches (search-patches "crawl-upgrade-saves.patch"))))
6302 (build-system gnu-build-system)
6303 (inputs
6304 `(("lua51" ,lua-5.1)
6305 ("ncurses" ,ncurses)
6306 ("sqlite" ,sqlite)
6307 ("zlib" ,zlib)))
6308 (native-inputs
6309 `(("bison" ,bison)
6310 ("flex" ,flex)
6311 ("perl" ,perl)
6312 ("python" ,python-wrapper)
6313 ("python-pyyaml" ,python-pyyaml)
6314 ("pkg-config" ,pkg-config)))
6315 (arguments
6316 `(#:make-flags
6317 (let* ((sqlite (assoc-ref %build-inputs "sqlite"))
6318 (out (assoc-ref %outputs "out")))
6319 (list (string-append "SQLITE_INCLUDE_DIR=" sqlite "/include")
6320 (string-append "prefix=" out)
6321 "SAVEDIR=~/.crawl"
6322 ;; Don't compile with SSE on systems which don't have it.
6323 ,@(match (%current-system)
6324 ((or "i686-linux" "x86_64-linux")
6325 '())
6326 (_ '("NOSSE=TRUE")))
6327 ;; don't build any bundled dependencies
6328 "BUILD_LUA="
6329 "BUILD_SQLITE="
6330 "BUILD_ZLIB="
6331 "-Csource"))
6332 #:phases
6333 (modify-phases %standard-phases
6334 (add-after 'unpack 'find-SDL-image
6335 (lambda _
6336 (substitute* "source/windowmanager-sdl.cc"
6337 (("SDL_image.h") "SDL2/SDL_image.h"))
6338 #t))
6339 (delete 'configure)
6340 (replace 'check
6341 (lambda* (#:key inputs outputs make-flags #:allow-other-keys)
6342 (setenv "HOME" (getcwd))
6343 ;; Fake a terminal for the test cases.
6344 (setenv "TERM" "xterm-256color")
6345 ;; Run the tests that don't require a debug build.
6346 (apply invoke "make" "nondebugtest"
6347 (format #f "-j~d" (parallel-job-count))
6348 ;; Force command line build for test cases.
6349 (append make-flags '("GAME=crawl" "TILES="))))))))
6350 (synopsis "Roguelike dungeon crawler game")
6351 (description "Dungeon Crawl Stone Soup (also known as \"Crawl\" or DCSS
6352 for short) is a roguelike adventure through dungeons filled with dangerous
6353 monsters in a quest to find the mystifyingly fabulous Orb of Zot.")
6354 (home-page "https://crawl.develz.org")
6355 (license (list license:gpl2+
6356 license:bsd-2
6357 license:bsd-3
6358 license:cc0
6359 license:expat
6360 license:zlib
6361 license:asl2.0))))
6362
6363 ;; The linter here claims that patch file names should start with the package
6364 ;; name. But, in this case, the patches are inherited from crawl with the
6365 ;; "crawl-" prefix instead of "crawl-tiles-".
6366 (define-public crawl-tiles
6367 (package
6368 (inherit crawl)
6369 (name "crawl-tiles")
6370 (arguments
6371 (substitute-keyword-arguments
6372 (package-arguments crawl)
6373 ((#:make-flags flags)
6374 `(let ((dejavu (assoc-ref %build-inputs "font-dejavu")))
6375 (cons*
6376 (string-append "PROPORTIONAL_FONT=" dejavu
6377 "/share/fonts/truetype/DejaVuSans.ttf")
6378 (string-append "MONOSPACED_FONT=" dejavu
6379 "/share/fonts/truetype/DejaVuSansMono.ttf")
6380 "TILES=y"
6381 ;; Rename the executable to allow parallel installation with crawl.
6382 "GAME=crawl-tiles"
6383 ,flags)))))
6384 (inputs
6385 `(,@(package-inputs crawl)
6386 ("font-dejavu" ,font-dejavu)
6387 ("freetype6" ,freetype)
6388 ("glu" ,glu)
6389 ("libpng" ,libpng)
6390 ("sdl2" ,sdl2)
6391 ("sdl2-image" ,sdl2-image)
6392 ("sdl2-mixer" ,sdl2-mixer)))
6393 (native-inputs
6394 `(,@(package-native-inputs crawl)
6395 ("pngcrush" ,pngcrush)
6396 ("which" ,which)))
6397 (synopsis "Graphical roguelike dungeon crawler game")))
6398
6399 (define-public lugaru
6400 (package
6401 (name "lugaru")
6402 (version "1.2")
6403 (source (origin
6404 (method url-fetch)
6405 (uri (string-append "https://bitbucket.org/osslugaru/lugaru/downloads/"
6406 "lugaru-" version ".tar.xz"))
6407 (sha256
6408 (base32
6409 "15zgcshy22q51rm72zi6y9z7qlgnz5iw3gczjdlir4bqmxy4gspk"))))
6410 (build-system cmake-build-system)
6411 (arguments
6412 `(#:configure-flags
6413 (list "-DSYSTEM_INSTALL=ON")
6414 ;; no test target
6415 #:tests? #f))
6416 (native-inputs
6417 `(("pkg-config" ,pkg-config)))
6418 (inputs
6419 `(("sdl2" ,sdl2)
6420 ("glu" ,glu)
6421 ("libjpeg" ,libjpeg-turbo)
6422 ("libpng" ,libpng)
6423 ("openal" ,openal)
6424 ("vorbis" ,libvorbis)
6425 ("zlib" ,zlib)))
6426 (home-page "https://osslugaru.gitlab.io")
6427 (synopsis "Cross-platform third-person action game")
6428 (description "Lugaru is a third-person action game. The main character,
6429 Turner, is an anthropomorphic rebel bunny rabbit with impressive combat skills.
6430 In his quest to find those responsible for slaughtering his village, he uncovers
6431 a far-reaching conspiracy involving the corrupt leaders of the rabbit republic
6432 and the starving wolves from a nearby den. Turner takes it upon himself to
6433 fight against their plot and save his fellow rabbits from slavery.")
6434 (license (list license:gpl2+ ; code
6435 ;; assets:
6436 license:cc-by-sa3.0
6437 license:cc-by-sa4.0))))
6438
6439 (define-public 0ad-data
6440 (package
6441 (name "0ad-data")
6442 (version "0.0.23b-alpha")
6443 (source
6444 (origin
6445 (method url-fetch)
6446 (uri (string-append "https://releases.wildfiregames.com/0ad-"
6447 version "-unix-data.tar.xz"))
6448 (file-name (string-append name "-" version ".tar.xz"))
6449 (sha256
6450 (base32
6451 "04x7729hk6zw1xj3n4s4lvaviijsnbjf5rhzvjxlr5fygvg4l6z1"))
6452 (modules '((guix build utils)))
6453 (snippet
6454 #~(begin
6455 (for-each (lambda (name)
6456 (let* ((dir (string-append "binaries/data/mods/" name))
6457 (file (string-append dir "/" name ".zip"))
6458 (unzip #$(file-append unzip "/bin/unzip")))
6459 (invoke unzip "-d" dir file)
6460 (delete-file file)))
6461 '("mod" "public"))
6462 #t))))
6463 (build-system trivial-build-system)
6464 (native-inputs `(("tar" ,tar)
6465 ("xz" ,xz)))
6466 (arguments
6467 `(#:modules ((guix build utils))
6468 #:builder
6469 (begin
6470 (use-modules (guix build utils))
6471 (let ((out (assoc-ref %outputs "out"))
6472 (source (assoc-ref %build-inputs "source"))
6473 (tar (string-append (assoc-ref %build-inputs "tar") "/bin/tar"))
6474 (xz-path (string-append (assoc-ref %build-inputs "xz") "/bin")))
6475 (setenv "PATH" xz-path)
6476 (mkdir out)
6477 (invoke tar "xvf" source "-C" out "--strip=3")))))
6478 (synopsis "Data files for 0ad")
6479 (description "0ad-data provides the data files required by the game 0ad.")
6480 (home-page "https://play0ad.com")
6481 (license (list (license:fsdg-compatible
6482 "http://tavmjong.free.fr/FONTS/ArevCopyright.txt"
6483 "Similar to the license of the Bitstream Vera fonts.")
6484 (license:fsdg-compatible
6485 "https://www.gnome.org/fonts/#Final_Bitstream_Vera_Fonts")
6486 license:cc-by-sa3.0
6487 license:expat
6488 license:gfl1.0
6489 license:gpl2+
6490 license:gpl3+))))
6491
6492 (define-public 0ad
6493 (package
6494 (name "0ad")
6495 (version "0.0.23b-alpha")
6496 (source
6497 (origin
6498 (method url-fetch)
6499 (uri (string-append "https://releases.wildfiregames.com/0ad-"
6500 version "-unix-build.tar.xz"))
6501 (file-name (string-append name "-" version ".tar.xz"))
6502 (sha256
6503 (base32
6504 "0draa53xg69i5qhqym85658m45xhwkbiimaldj4sr3703rjgggq1"))))
6505 ;; A snippet here would cause a build failure because of timestamps
6506 ;; reset. See https://bugs.gnu.org/26734.
6507 (inputs
6508 `(("0ad-data" ,0ad-data)
6509 ("curl" ,curl)
6510 ("enet" ,enet)
6511 ("gloox" ,gloox)
6512 ("icu4c" ,icu4c)
6513 ("libpng" ,libpng)
6514 ("libsodium" ,libsodium)
6515 ("libvorbis" ,libvorbis)
6516 ("libxcursor" ,libxcursor)
6517 ("libxml2" ,libxml2)
6518 ("miniupnpc" ,miniupnpc)
6519 ("mozjs-38" ,mozjs-38)
6520 ("openal" ,openal)
6521 ("sdl2" ,sdl2)
6522 ("wxwidgets" ,wxwidgets)
6523 ("zlib" ,zlib)))
6524 (native-inputs
6525 `(("boost" ,boost)
6526 ("cmake" ,cmake-minimal)
6527 ("mesa" ,mesa)
6528 ("pkg-config" ,pkg-config)
6529 ("python-2" ,python-2)))
6530 (build-system gnu-build-system)
6531 (arguments
6532 `(#:make-flags '("config=release" "verbose=1" "-C" "build/workspaces/gcc")
6533 #:phases
6534 (modify-phases %standard-phases
6535 (add-after 'unpack 'delete-bundles
6536 (lambda _
6537 (delete-file-recursively "libraries/source/spidermonkey")
6538 #t))
6539 (add-after 'unpack 'fix-x11-includes
6540 (lambda _
6541 (substitute* "source/lib/sysdep/os/unix/x/x.cpp"
6542 (("<Xlib.h>") "<X11/Xlib.h>"))
6543 (substitute* "source/lib/sysdep/os/unix/x/x.cpp"
6544 (("<Xatom.h>") "<X11/Xatom.h>"))
6545 (substitute* "source/lib/sysdep/os/unix/x/x.cpp"
6546 (("<Xcursor/Xcursor.h>") "<X11/Xcursor/Xcursor.h>"))
6547 #t))
6548 (replace 'configure
6549 (lambda* (#:key inputs outputs #:allow-other-keys)
6550 (let* ((jobs (number->string (parallel-job-count)))
6551 (out (assoc-ref outputs "out"))
6552 (lib (string-append out "/lib"))
6553 (data (string-append out "/share/0ad")))
6554 (setenv "JOBS" (string-append "-j" jobs))
6555 (setenv "CC" "gcc")
6556 (with-directory-excursion "build/workspaces"
6557 (invoke "./update-workspaces.sh"
6558 (string-append "--libdir=" lib)
6559 (string-append "--datadir=" data)
6560 ;; TODO: "--with-system-nvtt"
6561 "--with-system-mozjs38")))))
6562 (delete 'check)
6563 (replace 'install
6564 (lambda* (#:key inputs outputs #:allow-other-keys)
6565 (chdir "binaries")
6566 (let* ((out (assoc-ref outputs "out"))
6567 (bin (string-append out "/bin"))
6568 (lib (string-append out "/lib"))
6569 (data (string-append out "/share/0ad"))
6570 (applications (string-append out "/share/applications"))
6571 (pixmaps (string-append out "/share/pixmaps"))
6572 (0ad-data (assoc-ref inputs "0ad-data")))
6573 ;; data
6574 (copy-recursively "data" data)
6575 (for-each (lambda (file)
6576 (symlink (string-append 0ad-data "/" file)
6577 (string-append data "/" file)))
6578 '("config" "mods/mod" "mods/public" "tools"))
6579 ;; libraries
6580 (for-each (lambda (file)
6581 (install-file file lib))
6582 (find-files "system" "\\.so$"))
6583 ;; binaries
6584 (install-file "system/pyrogenesis" bin)
6585 (with-directory-excursion bin
6586 (symlink "pyrogenesis" "0ad"))
6587 ;; resources
6588 (with-directory-excursion "../build/resources"
6589 (install-file "0ad.desktop" applications)
6590 (install-file "0ad.png" pixmaps))
6591 #t)))
6592 (add-after 'install 'check
6593 (lambda _
6594 (with-directory-excursion "system"
6595 (invoke "./test")))))))
6596 (home-page "https://play0ad.com")
6597 (synopsis "3D real-time strategy game of ancient warfare")
6598 (description "0 A.D. is a real-time strategy (RTS) game of ancient
6599 warfare. It's a historically-based war/economy game that allows players to
6600 relive or rewrite the history of twelve ancient civilizations, each depicted
6601 at their peak of economic growth and military prowess.
6602
6603 0ad needs a window manager that supports 'Extended Window Manager Hints'.")
6604 (license (list license:bsd-2
6605 license:bsd-3
6606 license:expat
6607 license:gpl2+
6608 license:ibmpl1.0
6609 license:isc
6610 license:lgpl2.1
6611 license:lgpl3
6612 license:mpl2.0
6613 license:zlib))))
6614
6615 (define-public open-adventure
6616 (package
6617 (name "open-adventure")
6618 (version "1.9")
6619 (source
6620 (origin
6621 (method git-fetch)
6622 (uri (git-reference
6623 (url "https://gitlab.com/esr/open-adventure")
6624 (commit version)))
6625 (file-name (git-file-name name version))
6626 (sha256
6627 (base32 "123svzy7xczdklx6plbafp22yv9bcvwfibjk0jv2c9i22dfsr07f"))))
6628 (build-system gnu-build-system)
6629 (arguments
6630 `(#:make-flags (list "CC=gcc")
6631 #:phases
6632 (modify-phases %standard-phases
6633 (delete 'configure) ;no configure script
6634 (add-before 'build 'use-echo
6635 (lambda _
6636 (substitute* "tests/Makefile"
6637 (("/bin/echo") (which "echo")))
6638 #t))
6639 (add-after 'build 'build-manpage
6640 (lambda _
6641 ;; This target is missing a dependency
6642 (substitute* "Makefile"
6643 ((".adoc.6:" line)
6644 (string-append line " advent.adoc")))
6645 (invoke "make" ".adoc.6")))
6646 ;; There is no install target.
6647 (replace 'install
6648 (lambda* (#:key outputs #:allow-other-keys)
6649 (let* ((out (assoc-ref outputs "out"))
6650 (bin (string-append out "/bin"))
6651 (man (string-append out "/share/man/man6")))
6652 (install-file "advent" bin)
6653 (install-file "advent.6" man))
6654 #t)))))
6655 (native-inputs
6656 `(("asciidoc" ,asciidoc)
6657 ("libedit" ,libedit)
6658 ("pkg-config" ,pkg-config)
6659 ("python" ,python-wrapper)
6660 ("python-pyyaml" ,python-pyyaml)))
6661 (home-page "https://gitlab.com/esr/open-adventure")
6662 (synopsis "Colossal Cave Adventure")
6663 (description
6664 "The original Colossal Cave Adventure from 1976 was the origin of all
6665 text adventures, dungeon-crawl (computer) games, and computer-hosted
6666 roleplaying games. This is a forward port of the last version released by
6667 Crowther & Woods, its original authors, in 1995. It has been known as
6668 ``adventure 2.5'' and ``430-point adventure''.")
6669 (license license:bsd-2)))
6670
6671 (define-public open-adventure-2.5
6672 (package
6673 (inherit open-adventure)
6674 (version "2.5")
6675 (properties `((superseded . ,open-adventure)))))
6676
6677 (define-public tome4
6678 (package
6679 (name "tome4")
6680 (version "1.7.2")
6681 (synopsis "Single-player, RPG roguelike game set in the world of Eyal")
6682 (source
6683 (origin
6684 (method url-fetch)
6685 (uri (string-append "https://te4.org/dl/t-engine/t-engine4-src-"
6686 version ".tar.bz2"))
6687 (sha256
6688 (base32 "1xa0pdn9pggwf7hnqb87ya2qxqhjahkdjwf8cr2y01gixgrkj9lv"))
6689 (modules '((guix build utils)))
6690 (snippet
6691 '(begin
6692 (substitute* '("src/music.h" "src/tSDL.h")
6693 (("#elif defined(__FreeBSD__)" line)
6694 (string-append
6695 line " || defined(__GNUC__)")))
6696 (substitute* '("src/tgl.h")
6697 (("#include <GL/glext.h>") ""))
6698 #t))))
6699 (build-system gnu-build-system)
6700 (native-inputs
6701 `(("unzip" ,unzip)))
6702 (inputs
6703 `(("sdl-union" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer sdl2-ttf)))
6704 ("glu" ,glu)
6705 ("premake4" ,premake4)
6706 ("openal" ,openal)
6707 ("vorbis" ,libvorbis)
6708 ("luajit" ,luajit)))
6709 (arguments
6710 `(#:make-flags
6711 (list (string-append "CC=" ,(cc-for-target))
6712 "config=release")
6713 ;; XXX: Building in parallel occasionally causes this build failure:
6714 ;; ../src/luajit2/src/host/buildvm.c:73:10: fatal error: buildvm_arch.h:
6715 ;; No such file or directory
6716 #:parallel-build? #f
6717 #:phases (modify-phases %standard-phases
6718 (delete 'bootstrap)
6719 (replace 'configure
6720 (lambda _
6721 (invoke "premake4" "gmake")
6722 #t))
6723 (add-after 'set-paths 'set-sdl-paths
6724 (lambda* (#:key inputs #:allow-other-keys)
6725 (setenv "CPATH"
6726 (string-append (assoc-ref inputs "sdl-union")
6727 "/include/SDL2:"
6728 (or (getenv "CPATH") "")))
6729 #t))
6730 (delete 'check)
6731 ;; premake doesn't provide install target
6732 (replace 'install
6733 (lambda* (#:key inputs outputs #:allow-other-keys)
6734 (let* ((out (assoc-ref outputs "out"))
6735 (usr (string-append out "/usr"))
6736 (bin (string-append out "/bin"))
6737 (licenses (string-append out "/share/licenses"))
6738 (documents (string-append out "/share/doc"))
6739 (pixmaps (string-append out "/share/pixmaps"))
6740 (icon "te4-icon.png")
6741 (data (string-append out "/share/" ,name))
6742 (applications (string-append
6743 out "/share/applications"))
6744 (unzip (string-append
6745 (assoc-ref inputs "unzip") "/bin/unzip"))
6746 (wrapper (string-append bin "/" ,name)))
6747 ;; icon
6748 (mkdir-p pixmaps)
6749 (invoke unzip "-j"
6750 (string-append
6751 "game/engines/te4-" ,version ".teae")
6752 (string-append
6753 "data/gfx/" icon) "-d" pixmaps)
6754 ;; game executable
6755 (install-file "t-engine" data)
6756 (mkdir-p bin)
6757 (with-output-to-file wrapper
6758 (lambda ()
6759 (display
6760 (string-append
6761 "#!/bin/sh\n"
6762 ;; No bootstrap code found,
6763 ;; defaulting to working directory
6764 ;; for engine code!
6765 "cd " data "\n"
6766 "exec -a tome4 ./t-engine \"$@\"\n"))))
6767 (chmod wrapper #o555)
6768 ;; licenses
6769 (for-each (lambda (file)
6770 (install-file file licenses))
6771 '("COPYING" "COPYING-MEDIA"))
6772 ;; documents
6773 (for-each (lambda (file)
6774 (install-file file documents))
6775 '("CONTRIBUTING" "CREDITS"))
6776 ;; data
6777 (copy-recursively "bootstrap" (string-append
6778 data "/bootstrap"))
6779 (copy-recursively "game" (string-append data "/game"))
6780 ;; launcher
6781 (mkdir-p applications)
6782 (make-desktop-entry-file
6783 (string-append applications "/" ,name ".desktop")
6784 #:name "ToME4"
6785 #:comment ,synopsis
6786 #:exec ,name
6787 #:icon icon
6788 #:categories '("Game" "RolePlaying")))
6789 #t)))))
6790 (home-page "https://te4.org")
6791 (description "Tales of Maj’Eyal (ToME) RPG, featuring tactical turn-based
6792 combat and advanced character building. Play as one of many unique races and
6793 classes in the lore-filled world of Eyal, exploring random dungeons, facing
6794 challenging battles, and developing characters with your own tailored mix of
6795 abilities and powers. With a modern graphical and customisable interface,
6796 intuitive mouse control, streamlined mechanics and deep, challenging combat,
6797 Tales of Maj’Eyal offers engaging roguelike gameplay for the 21st century.")
6798 (license license:gpl3+)))
6799
6800 (define-public quakespasm
6801 (package
6802 (name "quakespasm")
6803 (version "0.93.2")
6804 (source
6805 (origin
6806 (method url-fetch)
6807 (uri (string-append "mirror://sourceforge/quakespasm/Source/quakespasm-"
6808 version ".tgz"))
6809 (sha256
6810 (base32 "0qm0j5drybvvq8xadfyppkpk3rxqsxbywzm6iwsjwdf0iia3gss5"))))
6811 (arguments
6812 `(#:tests? #f
6813 #:make-flags '("CC=gcc"
6814 "MP3LIB=mpg123"
6815 "USE_CODEC_FLAC=1"
6816 "USE_CODEC_MIKMOD=1"
6817 "USE_SDL2=1"
6818 "-CQuake")
6819 #:phases (modify-phases %standard-phases
6820 (delete 'configure)
6821 (add-after 'unpack 'fix-makefile-paths
6822 (lambda* (#:key outputs #:allow-other-keys)
6823 (let ((out (assoc-ref outputs "out")))
6824 (mkdir-p (string-append out "/bin"))
6825 (substitute* "Quake/Makefile"
6826 (("/usr/local/games")
6827 (string-append out "/bin")))
6828 #t))))))
6829 (build-system gnu-build-system)
6830 (inputs `(("libmikmod" ,libmikmod)
6831 ("libvorbis" ,libvorbis)
6832 ("flac" ,flac)
6833 ("mesa" ,mesa)
6834 ("mpg123" ,mpg123)
6835 ("sdl2" ,sdl2)))
6836 (synopsis "First person shooter engine for Quake 1")
6837 (description "Quakespasm is a modern engine for id software's Quake 1.
6838 It includes support for 64 bit CPUs, custom music playback, a new sound driver,
6839 some graphical niceities, and numerous bug-fixes and other improvements.")
6840 (home-page "http://quakespasm.sourceforge.net/")
6841 (license license:gpl2+)))
6842
6843 (define-public vkquake
6844 (package
6845 (inherit quakespasm)
6846 (name "vkquake")
6847 (version "1.01.0")
6848 (source
6849 (origin
6850 (method git-fetch)
6851 (uri (git-reference
6852 (url "https://github.com/Novum/vkQuake")
6853 (commit version)))
6854 (file-name (git-file-name name version))
6855 (sha256
6856 (base32 "1iwin8j5kbyrknbkhjgpy8nmm7pxqzr0daa9gn7p38qhg2mh0a39"))))
6857 (arguments
6858 `(#:make-flags
6859 (let ((vulkanlib (string-append (assoc-ref %build-inputs
6860 "vulkan-loader") "/lib")))
6861 (list "CC=gcc"
6862 "MP3LIB=mpg123"
6863 "USE_CODEC_FLAC=1"
6864 "USE_CODEC_MIKMOD=1"
6865 "USE_SDL2=1"
6866 (string-append "LDFLAGS=-Wl,-rpath=" vulkanlib)
6867 "-CQuake"))
6868 #:phases (modify-phases %standard-phases
6869 (add-after 'unpack 'patch-for-new-vulkan
6870 (lambda _
6871 ;; Mimic upstream commit a869a22d9b51c68e for
6872 ;; compatibility with newer vulkan-headers.
6873 (substitute* "Quake/gl_rmisc.c"
6874 (("VK_DYNAMIC_STATE_RANGE_SIZE")
6875 "3"))
6876 #t))
6877 (delete 'configure)
6878 (add-after 'unpack 'fix-makefile-paths
6879 (lambda* (#:key outputs #:allow-other-keys)
6880 (let ((vulkan (assoc-ref %build-inputs
6881 "vulkan-loader"))
6882 (out (assoc-ref outputs "out")))
6883 (mkdir-p (string-append out "/bin"))
6884 (substitute* "Quake/Makefile" ((" /usr")
6885 (string-append " " out)))
6886 (substitute* "Quake/Makefile" (("/games")
6887 (string-append "/bin")))
6888 (substitute* "Quake/Makefile" (("..VULKAN_SDK.") vulkan))
6889 #t))))
6890 ,@(strip-keyword-arguments '(#:make-flags #:phases)
6891 (package-arguments quakespasm))))
6892 (inputs `(("vulkan-headers" ,vulkan-headers)
6893 ("vulkan-loader" ,vulkan-loader)
6894 ,@(package-inputs quakespasm)))
6895 (description "vkquake is a modern engine for id software's Quake 1.
6896 It includes support for 64 bit CPUs, custom music playback, a new sound driver,
6897 some graphical niceities, and numerous bug-fixes and other improvements.")
6898 (home-page "https://github.com/Novum/vkQuake")))
6899
6900 (define-public yamagi-quake2
6901 (package
6902 (name "yamagi-quake2")
6903 (version "7.45")
6904 (source
6905 (origin
6906 (method url-fetch)
6907 (uri (string-append "https://deponie.yamagi.org/quake2/quake2-"
6908 version ".tar.xz"))
6909 (sha256
6910 (base32 "0rgz8x7lzd0zb0xqd0gvnf2641nr9xpfm6v14mgh99hspxklaln7"))))
6911 (build-system gnu-build-system)
6912 (arguments
6913 `(#:tests? #f
6914 #:make-flags
6915 (list "CC=gcc"
6916 ;; link openAL instead of using dlopen at runtime
6917 "DLOPEN_OPENAL=\"no\""
6918 ;; an optional directory where it will look for quake2 data files
6919 ;; in addition to the current working directory
6920 "WITH_SYSTEMWIDE=yes"
6921 "WITH_SYSTEMDIR=\"/opt/quake2\"")
6922 #:phases
6923 (modify-phases %standard-phases
6924 (delete 'configure)
6925 (replace 'install
6926 (lambda* (#:key outputs #:allow-other-keys)
6927 (let ((out (assoc-ref outputs "out")))
6928 (mkdir-p (string-append out "/lib"))
6929 (mkdir-p (string-append out "/bin"))
6930 ;; The yamagi-quake2 binary must be in the same directory
6931 ;; as it's engine libraries, but symlinking it to /bin is okay
6932 ;; https://github.com/yquake2/yquake2/blob/master/stuff/packaging.md
6933 (copy-recursively "release"
6934 (string-append out "/lib/yamagi-quake2"))
6935 (symlink (string-append out "/lib/yamagi-quake2/quake2")
6936 (string-append out "/bin/yamagi-quake2"))
6937 (symlink (string-append out "/lib/yamagi-quake2/q2ded")
6938 (string-append out "/bin/yamagi-q2ded"))))))))
6939 (native-inputs
6940 `(("pkg-config" ,pkg-config)))
6941 (inputs
6942 `(("curl" ,curl-minimal)
6943 ("libvorbis" ,libvorbis)
6944 ("mesa" ,mesa)
6945 ("openal" ,openal)
6946 ("sdl2" ,sdl2)
6947 ("zlib" ,zlib)))
6948 (synopsis "First person shooter engine based on quake2")
6949 (description "Yamagi Quake II is an enhanced client for id Software's Quake II.
6950 The main focus is an unchanged single player experience like back in 1997,
6951 thus the gameplay and the graphics are unaltered. However the user may use one
6952 of the unofficial retexturing packs. In comparison with the official client,
6953 over 1000 bugs were fixed and an extensive code audit done,
6954 making Yamagi Quake II one of the most solid Quake II implementations available.")
6955 (home-page "https://www.yamagi.org/quake2/")
6956 (license (list license:gpl2+ ; game and server
6957 (license:non-copyleft ; info-zip
6958 "file://LICENSE"
6959 "See Info-Zip section.")
6960 license:public-domain)))) ; stb
6961
6962 (define-public nudoku
6963 (package
6964 (name "nudoku")
6965 (version "2.1.0")
6966 (source
6967 (origin
6968 (method git-fetch)
6969 (uri (git-reference
6970 (url "https://github.com/jubalh/nudoku")
6971 (commit version)))
6972 (file-name (git-file-name name version))
6973 (sha256
6974 (base32 "12v00z3p0ymi8f3w4b4bgl4c76irawn3kmd147r0ap6s9ssx2q6m"))))
6975 (build-system gnu-build-system)
6976 (native-inputs
6977 `(("autoconf" ,autoconf)
6978 ("automake" ,automake)
6979 ("gettext" ,gettext-minimal)
6980 ("pkg-config" ,pkg-config)))
6981 (inputs
6982 `(("ncurses" ,ncurses)))
6983 (home-page "https://jubalh.github.io/nudoku/")
6984 (synopsis "Sudoku for your terminal")
6985 (description "Nudoku is a ncurses-based Sudoku game for your terminal.")
6986 (license license:gpl3+)))
6987
6988 (define-public the-butterfly-effect
6989 (package
6990 (name "the-butterfly-effect")
6991 (version "0.9.3.1")
6992 (source
6993 (origin
6994 (method git-fetch)
6995 (uri (git-reference
6996 (url "https://github.com/the-butterfly-effect/tbe")
6997 (commit (string-append "v" version))))
6998 (file-name (git-file-name name version))
6999 (sha256
7000 (base32
7001 "1ag2cp346f9bz9qy6za6q54id44d2ypvkyhvnjha14qzzapwaysj"))))
7002 (build-system gnu-build-system)
7003 (arguments
7004 `(#:phases
7005 (modify-phases %standard-phases
7006 (delete 'configure)
7007 ;; There is no "install" phase. By default, tbe is installed
7008 ;; in the build directory. Provide our own installation.
7009 (replace 'install
7010 (lambda* (#:key outputs #:allow-other-keys)
7011 (let* ((out (assoc-ref outputs "out"))
7012 (bin (string-append out "/bin"))
7013 (share (string-append out "/share")))
7014 (install-file "usr/games/tbe" bin)
7015 (mkdir-p share)
7016 (copy-recursively "usr/share" share)
7017 #t))))
7018 ;; Test suite requires a running Xorg server. Even when
7019 ;; provided, it fails with "D-Bus library appears to be
7020 ;; incorrectly set up; failed to read machine uuid: Failed to
7021 ;; open "/etc/machine-id": No such file or directory" along
7022 ;; with multiple "QPainter:: ... Painter not active" warnings.
7023 #:tests? #f))
7024 (inputs
7025 `(("qtbase" ,qtbase)
7026 ("qtsvg" ,qtsvg)))
7027 (native-inputs
7028 `(("cmake" ,cmake-minimal)
7029 ("gettext-minimal" ,gettext-minimal)
7030 ("qttools" ,qttools)))
7031 (synopsis "Realistic physics puzzle game")
7032 (description "The Butterfly Effect (tbe) is a game that uses
7033 realistic physics simulations to combine lots of simple mechanical
7034 elements to achieve a simple goal in the most complex way possible.")
7035 (home-page "http://the-butterfly-effect.org/")
7036 ;; Main license is GPL2-only. However, artwork is distributed
7037 ;; under various licenses, listed here.
7038 (license (list license:gpl2 license:public-domain license:expat
7039 license:cc-by-sa3.0 license:gpl3+ license:wtfpl2))))
7040
7041 (define-public pioneer
7042 (package
7043 (name "pioneer")
7044 (version "20200203")
7045 (source (origin
7046 (method git-fetch)
7047 (uri (git-reference
7048 (url "https://github.com/pioneerspacesim/pioneer")
7049 (commit version)))
7050 (file-name (git-file-name name version))
7051 (sha256
7052 (base32
7053 "1011xsi94jhw98mhm8kryq8ajig0qfbrdx5xdasi92bd4nk7lcp8"))))
7054 (build-system cmake-build-system)
7055 (native-inputs
7056 `(("pkg-config" ,pkg-config)))
7057 (inputs
7058 `(("assimp" ,assimp)
7059 ("curl" ,curl)
7060 ("freetype" ,freetype)
7061 ("glew" ,glew)
7062 ("glu" ,glu)
7063 ("libpng" ,libpng)
7064 ("libsigc++" ,libsigc++)
7065 ("libvorbis" ,libvorbis)
7066 ("lua" ,lua-5.2) ;not compatible with 5.3
7067 ("mesa" ,mesa)
7068 ("sdl" ,(sdl-union (list sdl2 sdl2-image)))))
7069 (arguments
7070 `(#:tests? #f ;tests are broken
7071 #:configure-flags (list "-DUSE_SYSTEM_LIBLUA:BOOL=YES"
7072 (string-append "-DPIONEER_DATA_DIR="
7073 %output "/share/games/pioneer"))))
7074 (home-page "https://pioneerspacesim.net")
7075 (synopsis "Game of lonely space adventure")
7076 (description
7077 "Pioneer is a space adventure game set in our galaxy at the turn of the
7078 31st century. The game is open-ended, and you are free to eke out whatever
7079 kind of space-faring existence you can think of. Look for fame or fortune by
7080 exploring the millions of star systems. Turn to a life of crime as a pirate,
7081 smuggler or bounty hunter. Forge and break alliances with the various
7082 factions fighting for power, freedom or self-determination. The universe is
7083 whatever you make of it.")
7084 (license license:gpl3)))
7085
7086 (define-public badass
7087 (let ((commit "3c3cd669b4fc8f73a102e3702788f7b28dc47dbb")
7088 (revision "0"))
7089 (package
7090 (name "badass")
7091 (version (git-version "0.0" revision commit))
7092 (source (origin
7093 (method git-fetch)
7094 (uri (git-reference
7095 (url "https://github.com/umayr/badass")
7096 (commit commit)))
7097 (file-name (git-file-name name version))
7098 (sha256
7099 (base32
7100 "05c9vdcb5ym3z0n5ll3v39mw4yl9jcjnlydmn0yl89ai9pv71zb6"))))
7101 (build-system go-build-system)
7102 (arguments
7103 '(#:import-path "github.com/umayr/badass"))
7104 (synopsis "Hacking contribution graphs in git")
7105 (description
7106 "Badass generates false commits for a range of dates, essentially
7107 hacking the gamification of contribution graphs on platforms such as
7108 Github or Gitlab.")
7109 (home-page "https://github.com/umayr/badass")
7110 (license license:expat))))
7111
7112 (define-public colobot
7113 (package
7114 (name "colobot")
7115 (version "0.1.12-alpha")
7116 (source
7117 (origin
7118 (method git-fetch)
7119 (uri (git-reference
7120 (url "https://github.com/colobot/colobot")
7121 (commit (string-append "colobot-gold-" version))
7122 (recursive? #t))) ;for "data/" subdir
7123 (file-name (git-file-name name version))
7124 (sha256
7125 (base32
7126 "1c181cclkrnspgs07lvndg2c81cjq3smkv7qim8c470cj88rcrp2"))))
7127 (build-system cmake-build-system)
7128 (arguments
7129 `(#:tests? #f ;no test
7130 #:phases
7131 (modify-phases %standard-phases
7132 (add-after 'unpack 'make-git-checkout-writable
7133 (lambda _
7134 (for-each make-file-writable (find-files "."))
7135 #t))
7136 (add-after 'unpack 'fix-directories
7137 (lambda _
7138 (substitute* "CMakeLists.txt"
7139 (("(\\$\\{CMAKE_INSTALL_PREFIX\\})/games" _ prefix)
7140 (string-append prefix "/bin"))
7141 (("(\\$\\{CMAKE_INSTALL_PREFIX\\}/share)/games/colobot" _ prefix)
7142 (string-append prefix "/colobot")))
7143 #t))
7144 (add-after 'fix-directories 'install-music
7145 ;; Retrieve and install music files.
7146 (lambda* (#:key inputs #:allow-other-keys)
7147 ;; Installation process tries to download music files using
7148 ;; "wget" if not already present. Since we are going another
7149 ;; route, skip "wget" command check.
7150 (substitute* "data/music/CMakeLists.txt"
7151 (("find_program\\(WGET wget\\)") ""))
7152 ;; Populate "music/" directory.
7153 (let ((data (assoc-ref inputs "colobot-music")))
7154 (invoke "tar" "-xvf" data "-Cdata/music"))
7155 #t)))))
7156 (native-inputs
7157 `(("colobot-music"
7158 ,(origin
7159 (method url-fetch)
7160 (uri (string-append "https://colobot.info/files/music/"
7161 "colobot-music_ogg_" version ".tar.gz"))
7162 (sha256
7163 (base32
7164 "1s86cd36rwkff329mb1ay1wi5qqyi35564ppgr3f4qqz9wj9vs2m"))))
7165 ("gettext" ,gettext-minimal)
7166 ("librsvg" ,librsvg)
7167 ("po4a" ,po4a)
7168 ("python" ,python-wrapper)))
7169 (inputs
7170 `(("boost" ,boost)
7171 ("glew" ,glew)
7172 ("libogg" ,libogg)
7173 ("libpng" ,libpng)
7174 ("libsndfile" ,libsndfile)
7175 ("libvorbis" ,libvorbis)
7176 ("openal" ,openal)
7177 ("physfs" ,physfs)
7178 ("sdl" ,(sdl-union (list sdl2 sdl2-image sdl2-ttf)))))
7179 (synopsis "Educational programming strategy game")
7180 (description "Colobot: Gold Edition is a real-time strategy game, where
7181 you can program your units (bots) in a language called CBOT, which is similar
7182 to C++ and Java. Your mission is to find a new planet to live and survive.
7183 You can save humanity and get programming skills!")
7184 (home-page "https://colobot.info")
7185 (license license:gpl3+)))
7186
7187 (define-public gzdoom
7188 (package
7189 (name "gzdoom")
7190 (version "4.3.2")
7191 (source
7192 (origin
7193 (method git-fetch)
7194 (uri (git-reference
7195 (url "https://github.com/coelckers/gzdoom")
7196 (commit (string-append "g" version))))
7197 (file-name (git-file-name name version))
7198 (sha256
7199 (base32 "0i4hyg72z84fc6ca2ic9q82q5cbgrbd7bynl3kpkypxvyasq08wz"))
7200 (patches (search-patches "gzdoom-search-in-installed-share.patch"
7201 "gzdoom-find-system-libgme.patch"))
7202 (modules '((guix build utils)))
7203 (snippet
7204 '(begin
7205 ;; Remove some bundled libraries. XXX There are more, but removing
7206 ;; them would require, at least, patching the build system.
7207 (with-directory-excursion "libraries"
7208 (delete-file-recursively "bzip2")
7209 (delete-file-recursively "game-music-emu")
7210 (delete-file-recursively "jpeg")
7211 (delete-file-recursively "zlib"))
7212 #t))))
7213 (arguments
7214 '(#:tests? #f
7215 #:configure-flags
7216 (let ((out (assoc-ref %outputs "out")))
7217 (list
7218 (string-append
7219 "-DCMAKE_CXX_FLAGS:="
7220 "-DSHARE_DIR=\\\"" out "/share/\\\" "
7221 "-DGUIX_OUT_PK3=\\\"" out "/share/games/doom\\\"")
7222
7223 ;; The build requires some extra convincing not to use the bundled
7224 ;; libgme previously deleted in the soure snippet.
7225 "-DFORCE_INTERNAL_GME=OFF"
7226
7227 ;; Link libraries at build time instead of loading them at run time.
7228 "-DDYN_OPENAL=OFF"
7229 "-DDYN_FLUIDSYNTH=OFF"
7230 "-DDYN_GTK=OFF"
7231 "-DDYN_MPG123=OFF"
7232 "-DDYN_SNDFILE=OFF"))
7233 #:phases
7234 (modify-phases %standard-phases
7235 (add-before 'configure 'fix-referenced-paths
7236 (lambda* (#:key inputs outputs #:allow-other-keys)
7237 (let ((fluid-3 (assoc-ref inputs "fluid-3"))
7238 (timidity++ (assoc-ref inputs "timidity++"))
7239 (out (assoc-ref outputs "out")))
7240
7241 (substitute*
7242 "src/CMakeLists.txt"
7243 (("COMMAND /bin/sh")
7244 (string-append "COMMAND " (which "sh"))))
7245
7246 (substitute*
7247 "libraries/zmusic/mididevices/music_fluidsynth_mididevice.cpp"
7248 (("/usr/share/sounds/sf2/FluidR3_GM.sf2")
7249 (string-append fluid-3 "/share/soundfonts/FluidR3Mono_GM.sf3")))
7250
7251 (substitute*
7252 "libraries/zmusic/mididevices/music_timiditypp_mididevice.cpp"
7253 (("exename = \"timidity\"")
7254 (string-append "exename = \"" timidity++ "/bin/timidity\"")))
7255 #t))))))
7256 (build-system cmake-build-system)
7257 (inputs `(("bzip2" ,bzip2)
7258 ("fluid-3" ,fluid-3)
7259 ("fluidsynth" ,fluidsynth)
7260 ("gtk+3" ,gtk+)
7261 ("libgme" ,libgme)
7262 ("libjpeg" ,libjpeg-turbo)
7263 ("libsndfile" ,libsndfile)
7264 ("mesa" ,mesa)
7265 ("mpg123" ,mpg123)
7266 ("openal" ,openal)
7267 ("sdl2" ,sdl2)
7268 ("timidity++" ,timidity++)
7269 ("zlib" ,zlib)))
7270 (native-inputs `(("pkg-config" ,pkg-config)
7271 ("unzip" ,unzip)))
7272 (synopsis "Modern Doom 2 source port")
7273 (description "GZdoom is a port of the Doom 2 game engine, with a modern
7274 renderer. It improves modding support with ZDoom's advanced mapping features
7275 and the new ZScript language. In addition to Doom, it supports Heretic, Hexen,
7276 Strife, Chex Quest, and fan-created games like Harmony, Hacx and Freedoom.")
7277 (home-page "https://zdoom.org/index")
7278 ;; The source uses x86 assembly
7279 (supported-systems '("x86_64-linux" "i686-linux"))
7280 (license (list license:gpl3+ ; gzdoom game
7281 license:lgpl3+ ; gzdoom renderer
7282 license:expat ; gdtoa
7283 (license:non-copyleft ; modified dumb
7284 "file://dumb/licence.txt"
7285 "Dumb license, explicitly GPL compatible.")))))
7286
7287 (define-public odamex
7288 (package
7289 (name "odamex")
7290 (version "0.8.3")
7291 (source
7292 (origin
7293 (method url-fetch)
7294 (uri (string-append
7295 "mirror://sourceforge/odamex/Odamex/" version "/"
7296 "odamex-src-" version ".tar.gz"))
7297 (sha256
7298 (base32 "0f887g87bmcq4dpcga7xc2mpxs947dkbc934ir9xs55gz6z13q96"))))
7299 (build-system cmake-build-system)
7300 (arguments `(#:tests? #f)) ; no tests
7301 (inputs
7302 `(("sdl" ,sdl)
7303 ("sdl-mixer" ,sdl-mixer)
7304 ("zlib" ,zlib)
7305 ("libpng" ,libpng)
7306 ("alsa-lib" ,alsa-lib)))
7307 (home-page "https://odamex.net/")
7308 (synopsis "Multiplayer Doom port")
7309 (description "Odamex is a modification of the Doom engine that
7310 allows players to easily join servers dedicated to playing Doom
7311 online.")
7312 (license license:gpl2+)))
7313
7314 (define-public chocolate-doom
7315 (package
7316 (name "chocolate-doom")
7317 (version "3.0.1")
7318 (source (origin
7319 (method url-fetch)
7320 (uri (string-append "https://www.chocolate-doom.org/downloads/"
7321 version
7322 "/chocolate-doom-"
7323 version
7324 ".tar.gz"))
7325 (sha256
7326 (base32
7327 "1iy8rx7kjvi1zjiw4zh77szzmd1sgpqajvbhprh1sj93fhbxcdfl"))))
7328 (build-system gnu-build-system)
7329 (inputs `(("sdl2-net" ,sdl2-net)
7330 ("sdl2-mixer" , sdl2-mixer)
7331 ("sdl2" ,sdl2)))
7332 (native-inputs
7333 `(("pkg-config" ,pkg-config)))
7334 (synopsis "Doom source port preserving the look, feel, and bugs of vanilla
7335 Doom")
7336 (description
7337 "Chocolate Doom takes a different approach to other source ports. Its
7338 aim is to accurately reproduce the experience of playing Vanilla Doom. It is
7339 a conservative, historically accurate Doom source port, which is compatible
7340 with the thousands of mods and levels that were made before the Doom source
7341 code was released. Rather than flashy new graphics, Chocolate Doom's main
7342 features are its accurate reproduction of the game as it was played in the
7343 1990s. The project is developed around a carefully-considered philosophy that
7344 intentionally restricts which features may be added (and rejects any that
7345 affect gameplay).")
7346 (home-page "https://www.chocolate-doom.org/wiki/index.php/Chocolate_Doom")
7347 (license license:gpl2)))
7348
7349 (define-public crispy-doom
7350 (package
7351 (inherit chocolate-doom)
7352 (name "crispy-doom")
7353 (version "5.8.0")
7354 (source (origin
7355 (method git-fetch)
7356 (uri (git-reference
7357 (url "https://github.com/fabiangreffrath/crispy-doom")
7358 (commit (string-append "crispy-doom-" version))))
7359 (file-name (git-file-name name version))
7360 (sha256
7361 (base32 "1b6gn0dysv631jynh769whww9xcss1gms78sz3nrn855q1dsvcb4"))))
7362 (native-inputs
7363 (append
7364 (package-native-inputs chocolate-doom)
7365 `(("automake" ,automake)
7366 ("autoreconf" ,autoconf))))
7367 (arguments
7368 `(#:phases
7369 (modify-phases %standard-phases
7370 (replace 'bootstrap
7371 ;; The bundled autogen.sh script unconditionally runs ./configure.
7372 (lambda _ (invoke "autoreconf" "-vif"))))))
7373 (synopsis "Limit-removing enhanced-resolution Doom source port based on
7374 Chocolate Doom")
7375 (description
7376 "Crispy Doom is a friendly fork of Chocolate Doom that provides a higher
7377 display resolution, removes the static limits of the Doom engine and offers
7378 further optional visual, tactical and physical enhancements while remaining
7379 entirely config file, savegame, netplay and demo compatible with the
7380 original.")
7381 (home-page "https://www.chocolate-doom.org/wiki/index.php/Crispy_Doom")))
7382
7383 (define shlomif-cmake-modules
7384 (origin
7385 (method url-fetch)
7386 (uri (string-append "https://bitbucket.org/shlomif/shlomif-cmake-modules/"
7387 "raw/c505713d7a7cda608f97f01577e5868a711b883e/"
7388 "shlomif-cmake-modules/Shlomif_Common.cmake"))
7389 (sha256
7390 (base32 "0kx9s1qqhhzprp1w3b67xmsns0n0v506bg5hgrshxaxpy6lqiwb2"))))
7391
7392 (define-public rinutils
7393 (package
7394 (name "rinutils")
7395 (version "0.2.0")
7396 (source (origin
7397 (method git-fetch)
7398 (uri (git-reference
7399 (url "https://github.com/shlomif/rinutils")
7400 (commit version)))
7401 (file-name (git-file-name name version))
7402 (sha256
7403 (base32
7404 "1fpxyg86ggv0h7j8aarjjxrvwlj7jycd3bw066c0dwkq2fszxsf2"))))
7405 (native-inputs
7406 `(("perl" ,perl)
7407 ;; The following is only needed for tests.
7408 ("perl-file-find-object" ,perl-file-find-object)
7409 ("perl-test-differences" ,perl-test-differences)
7410 ("perl-class-xsaccessor" ,perl-class-xsaccessor)
7411 ("perl-io-all" ,perl-io-all)
7412 ("perl-test-runvalgrind" ,perl-test-runvalgrind)
7413 ("cmake-rules" ,shlomif-cmake-modules)
7414 ("pkg-config" ,pkg-config)))
7415 (inputs
7416 `(("cmocka" ,cmocka)
7417 ("perl-env-path" ,perl-env-path)
7418 ("perl-inline" ,perl-inline)
7419 ("perl-inline-c" ,perl-inline-c)
7420 ("perl-string-shellquote" ,perl-string-shellquote)
7421 ("perl-test-trailingspace" ,perl-test-trailingspace)
7422 ("perl-file-find-object-rule" ,perl-file-find-object-rule)
7423 ("perl-text-glob" ,perl-text-glob)
7424 ("perl-number-compare" ,perl-number-compare)
7425 ("perl-moo" ,perl-moo)))
7426 (arguments
7427 `(#:phases
7428 (modify-phases %standard-phases
7429 (add-after 'unpack 'fix-build-env
7430 (lambda* (#:key inputs #:allow-other-keys)
7431 (use-modules (guix build utils))
7432 (let* ((cmake-rules (assoc-ref inputs "cmake-rules")))
7433 (copy-file cmake-rules
7434 (string-append "cmake/"
7435 (strip-store-file-name cmake-rules)))
7436 #t)))
7437 (replace 'check
7438 (lambda _
7439 (with-directory-excursion "../source"
7440 (setenv "FCS_TEST_BUILD" "1")
7441 (setenv "RINUTILS_TEST_BUILD" "1")
7442 ;; TODO: Run tests after setting RINUTILS_TEST_TIDY to `1',
7443 ;; which requires tidy-all.
7444 ;; (setenv "RINUTILS_TEST_TIDY" "1")
7445 (invoke "perl" "CI-testing/continuous-integration-testing.pl")))))))
7446 (build-system cmake-build-system)
7447 (home-page "https://www.shlomifish.org/open-source/projects/")
7448 (synopsis "C11 / gnu11 utilities C library")
7449 (description "This package provides C11 / gnu11 utilities C library")
7450 (license license:expat)))
7451
7452 (define-public fortune-mod
7453 (package
7454 (name "fortune-mod")
7455 (version "2.28.0")
7456 (source
7457 (origin
7458 (method git-fetch)
7459 (uri (git-reference
7460 (url "https://github.com/shlomif/fortune-mod")
7461 (commit (string-append "fortune-mod-" version))))
7462 (file-name (git-file-name name version))
7463 (sha256
7464 (base32 "1ppzgnffgdcmq6fq4gmdq2ig10ip2bnfgklkb3i8nc6bdxm7pb89"))))
7465 (build-system cmake-build-system)
7466 (arguments
7467 `(#:test-target "check"
7468 #:phases
7469 (modify-phases %standard-phases
7470 (add-after 'unpack 'fix-build-env
7471 (lambda* (#:key inputs #:allow-other-keys)
7472 (use-modules (guix build utils))
7473 (let* ((cmake-rules (assoc-ref inputs "cmake-rules")))
7474 (copy-file cmake-rules
7475 (string-append "fortune-mod/cmake/"
7476 (strip-store-file-name cmake-rules)))
7477 (chdir "fortune-mod")
7478 ;; TODO: Valgrind tests fail for some reason.
7479 ;; Similar issue: https://github.com/shlomif/fortune-mod/issues/21 (?)
7480 (delete-file "tests/t/valgrind.t")
7481 #t)))
7482 (add-after 'install 'fix-install-directory
7483 (lambda* (#:key outputs #:allow-other-keys)
7484 ;; Move binary from "games/" to "bin/" and remove the latter. This
7485 ;; is easier than patching CMakeLists.txt since the tests hard-code
7486 ;; the location as well.
7487 (let* ((out (assoc-ref outputs "out"))
7488 (bin (string-append out "/bin"))
7489 (games (string-append out "/games")))
7490 (rename-file (string-append games "/fortune")
7491 (string-append bin "/fortune"))
7492 (rmdir games)
7493 #t))))))
7494 (inputs `(("recode" ,recode)))
7495 (native-inputs
7496 `(("perl" ,perl)
7497 ;; The following is only needed for tests.
7498 ("perl-file-find-object" ,perl-file-find-object)
7499 ("perl-test-differences" ,perl-test-differences)
7500 ("perl-class-xsaccessor" ,perl-class-xsaccessor)
7501 ("perl-io-all" ,perl-io-all)
7502 ("perl-test-runvalgrind" ,perl-test-runvalgrind)
7503 ("cmake-rules" ,shlomif-cmake-modules)
7504 ("rinutils" ,rinutils)))
7505 (home-page "https://www.shlomifish.org/open-source/projects/fortune-mod/")
7506 (synopsis "The Fortune Cookie program from BSD games")
7507 (description "Fortune is a command-line utility which displays a random
7508 quotation from a collection of quotes.")
7509 (license license:bsd-4)))
7510
7511 (define xonotic-data
7512 (package
7513 (name "xonotic-data")
7514 (version "0.8.2")
7515 (source
7516 (origin
7517 (method url-fetch)
7518 (uri (string-append "http://dl.xonotic.org/xonotic-"
7519 version ".zip"))
7520 (file-name (string-append name "-" version ".zip"))
7521 (sha256
7522 (base32
7523 "1mcs6l4clvn7ibfq3q69k2p0z6ww75rxvnngamdq5ic6yhq74bx2"))))
7524 (build-system trivial-build-system)
7525 (native-inputs
7526 `(("unzip" ,unzip)))
7527 (arguments
7528 `(#:modules ((guix build utils))
7529 #:builder
7530 (begin
7531 (use-modules (guix build utils))
7532 (let* ((out (assoc-ref %outputs "out"))
7533 (xonotic (string-append out "/share/xonotic"))
7534 (source (assoc-ref %build-inputs "source"))
7535 (unzip (string-append (assoc-ref %build-inputs "unzip") "/bin/unzip")))
7536 (copy-file source (string-append ,name "-" ,version ".zip"))
7537 (invoke unzip (string-append ,name "-" ,version ".zip"))
7538 (mkdir-p out)
7539 (mkdir-p xonotic)
7540 (chdir "Xonotic")
7541 (copy-recursively "data"
7542 (string-append xonotic "/data"))
7543 (copy-recursively "server"
7544 (string-append xonotic "/server"))
7545 (install-file "key_0.d0pk" xonotic)))))
7546 (home-page "http://xonotic.org")
7547 (synopsis "Data files for Xonotic")
7548 (description
7549 "Xonotic-data provides the data files required by the game Xonotic.")
7550 (license (list license:gpl2+
7551 (license:x11-style "file://server/rcon.pl")))))
7552
7553 (define-public xonotic
7554 (package
7555 (name "xonotic")
7556 (version "0.8.2")
7557 (source
7558 (origin
7559 (method url-fetch)
7560 (uri (string-append "http://dl.xonotic.org/xonotic-"
7561 version "-source.zip"))
7562 (file-name (string-append name "-" version ".zip"))
7563 (sha256
7564 (base32
7565 "0axxw04fyz6jlfqd0kp7hdrqa0li31sx1pbipf2j5qp9wvqicsay"))))
7566 (build-system gnu-build-system)
7567 (arguments
7568 `(#:configure-flags (list (string-append "--prefix="
7569 (assoc-ref %outputs "out"))
7570 "--disable-rijndael")
7571 #:phases
7572 (modify-phases %standard-phases
7573 (add-before 'configure 'make-darkplaces
7574 (lambda* (#:key outputs #:allow-other-keys)
7575 (let* ((out (assoc-ref outputs "out"))
7576 (sharedir (string-append out "/share/xonotic/")))
7577 (invoke "make" "-C" "source/darkplaces"
7578 (string-append "DP_FS_BASEDIR="
7579 sharedir)
7580 "DP_LINK_TO_LIBJPEG=1"
7581 "DP_SOUND_API=ALSA"
7582 "CC=gcc"
7583 "-f" "makefile"
7584 "cl-release")
7585 (invoke "make" "-C" "source/darkplaces"
7586 (string-append "DP_FS_BASEDIR="
7587 sharedir)
7588 "DP_LINK_TO_LIBJPEG=1"
7589 "DP_SOUND_API=ALSA"
7590 "CC=gcc"
7591 "-f" "makefile"
7592 "sdl-release")
7593 (invoke "make" "-C" "source/darkplaces"
7594 (string-append "DP_FS_BASEDIR="
7595 sharedir)
7596 "DP_LINK_TO_LIBJPEG=1"
7597 "DP_SOUND_API=ALSA"
7598 "CC=gcc"
7599 "-f" "makefile"
7600 "sv-release"))))
7601 (add-before 'configure 'bootstrap
7602 (lambda _
7603 (chdir "source/d0_blind_id")
7604 (invoke "sh" "autogen.sh")))
7605 (add-after 'build 'install-desktop-entry
7606 (lambda* (#:key outputs #:allow-other-keys)
7607 ;; Add .desktop files for the 2 variants and the symlink
7608 (let* ((output (assoc-ref outputs "out"))
7609 (apps (string-append output "/share/applications")))
7610 (mkdir-p apps)
7611 (with-output-to-file
7612 (string-append apps "/xonotic-glx.desktop")
7613 (lambda _
7614 (format #t
7615 "[Desktop Entry]~@
7616 Name=xonotic-glx~@
7617 Comment=Xonotic glx~@
7618 Exec=~a/bin/xonotic-glx~@
7619 TryExec=~@*~a/bin/xonotic-glx~@
7620 Icon=xonotic~@
7621 Categories=Game~@
7622 Type=Application~%"
7623 output)))
7624 (with-output-to-file
7625 (string-append apps "/xonotic-sdl.desktop")
7626 (lambda _
7627 (format #t
7628 "[Desktop Entry]~@
7629 Name=xonotic-sdl~@
7630 Comment=Xonotic sdl~@
7631 Exec=~a/bin/xonotic-sdl~@
7632 TryExec=~@*~a/bin/xonotic-sdl~@
7633 Icon=xonotic~@
7634 Categories=Game~@
7635 Type=Application~%"
7636 output)))
7637 (with-output-to-file
7638 (string-append apps "/xonotic.desktop")
7639 (lambda _
7640 (format #t
7641 "[Desktop Entry]~@
7642 Name=xonotic~@
7643 Comment=Xonotic~@
7644 Exec=~a/bin/xonotic-glx~@
7645 TryExec=~@*~a/bin/xonotic~@
7646 Icon=xonotic~@
7647 Categories=Game~@
7648 Type=Application~%"
7649 output)))
7650 #t)))
7651 (add-after 'install-desktop-entry 'install-icons
7652 (lambda* (#:key outputs #:allow-other-keys)
7653 (let ((out (assoc-ref outputs "out")))
7654 (with-directory-excursion "../../misc/logos/icons_png/"
7655 (for-each
7656 (lambda (file)
7657 (let* ((size (string-filter char-numeric? file))
7658 (icons (string-append out "/share/icons/hicolor/"
7659 size "x" size "/apps")))
7660 (mkdir-p icons)
7661 (copy-file file (string-append icons "/xonotic.png"))))
7662 '("xonotic_16.png" "xonotic_22.png" "xonotic_24.png"
7663 "xonotic_32.png" "xonotic_48.png" "xonotic_64.png"
7664 "xonotic_128.png" "xonotic_256.png" "xonotic_512.png"))))))
7665 (add-after 'install-icons 'install-binaries
7666 (lambda* (#:key outputs #:allow-other-keys)
7667 (let ((out (assoc-ref outputs "out")))
7668 (define (install src dst)
7669 (let ((dst (string-append out dst)))
7670 (mkdir-p (dirname dst))
7671 (copy-file src dst)))
7672 (mkdir-p (string-append out "/bin"))
7673 (install "../darkplaces/darkplaces-dedicated"
7674 "/bin/xonotic-dedicated")
7675 (install "../darkplaces/darkplaces-glx"
7676 "/bin/xonotic-glx")
7677 (install "../darkplaces/darkplaces-sdl"
7678 "/bin/xonotic-sdl")
7679 ;; Provide a default xonotic executable, defaulting to SDL.
7680 (symlink (string-append out "/bin/xonotic-sdl")
7681 (string-append out "/bin/xonotic"))
7682 #t)))
7683 (add-after 'install-binaries 'install-data
7684 (lambda* (#:key outputs inputs #:allow-other-keys)
7685 (let* ((out (assoc-ref outputs "out"))
7686 (data (assoc-ref inputs "xonotic-data")))
7687 (symlink (string-append data "/share/xonotic")
7688 (string-append out "/share/xonotic"))
7689 #t)))
7690 (add-after 'install-binaries 'wrap-binaries
7691 (lambda* (#:key outputs inputs #:allow-other-keys)
7692 ;; Curl and libvorbis need to be wrapped so that we get
7693 ;; sound and networking.
7694 (let* ((out (assoc-ref outputs "out"))
7695 (bin (string-append out "/bin/xonotic"))
7696 (bin-sdl (string-append out "/bin/xonotic-sdl"))
7697 (bin-glx (string-append out "/bin/xonotic-glx"))
7698 (bin-dedicated (string-append out "/bin/xonotic-dedicated"))
7699 (curl (assoc-ref inputs "curl"))
7700 (vorbis (assoc-ref inputs "libvorbis")))
7701 (wrap-program bin
7702 `("LD_LIBRARY_PATH" ":" prefix
7703 (,(string-append curl "/lib:" vorbis "/lib"))))
7704 (wrap-program bin-sdl
7705 `("LD_LIBRARY_PATH" ":" prefix
7706 (,(string-append curl "/lib:" vorbis "/lib"))))
7707 (wrap-program bin-glx
7708 `("LD_LIBRARY_PATH" ":" prefix
7709 (,(string-append curl "/lib:" vorbis "/lib"))))
7710 (wrap-program bin-dedicated
7711 `("LD_LIBRARY_PATH" ":" prefix
7712 (,(string-append curl "/lib:" vorbis "/lib"))))
7713 #t))))))
7714 (inputs
7715 `(("xonotic-data" ,xonotic-data)
7716 ("alsa-lib" ,alsa-lib)
7717 ("curl" ,curl)
7718 ("libjpeg" ,libjpeg-turbo)
7719 ("libmodplug" ,libmodplug)
7720 ("libvorbis" ,libvorbis)
7721 ("libogg" ,libogg)
7722 ("libxpm" ,libxpm)
7723 ("libxxf86dga" ,libxxf86dga)
7724 ("libxxf86vm" ,libxxf86vm)
7725 ("libx11" ,libx11)
7726 ("libxext" ,libxext)
7727 ("libxau" ,libxau)
7728 ("libxdmcp" ,libxdmcp)
7729 ("mesa" ,mesa)
7730 ("glu" ,glu)
7731 ("freetype" ,freetype)
7732 ("sdl2" ,sdl2)
7733 ("libpng" ,libpng)
7734 ("hicolor-icon-theme" ,hicolor-icon-theme)))
7735 (native-inputs
7736 `(("unzip" ,unzip)
7737 ("autoconf" ,autoconf)
7738 ("automake" ,automake)
7739 ("pkg-config" ,pkg-config)
7740 ("libtool" ,libtool)
7741 ("gmp" ,gmp)))
7742 (home-page "https://xonotic.org")
7743 (synopsis "Fast-paced first-person shooter game")
7744 (description
7745 "Xonotic is a free, fast-paced first-person shooter.
7746 The project is geared towards providing addictive arena shooter
7747 gameplay which is all spawned and driven by the community itself.
7748 Xonotic is a direct successor of the Nexuiz project with years of
7749 development between them, and it aims to become the best possible
7750 open-source FPS of its kind.")
7751 (license (list license:gpl2+
7752 license:bsd-3 ; /source/d0_blind_id folder and others
7753 (license:x11-style "" "See file rcon.pl.")))))
7754
7755 (define-public frotz
7756 (package
7757 (name "frotz")
7758 (version "2.44")
7759 (source (origin
7760 (method url-fetch)
7761 (uri (list (string-append
7762 "http://www.ifarchive.org/if-archive/infocom/interpreters/"
7763 "frotz/frotz-" version ".tar.gz")
7764 (string-append
7765 "ftp://ftp.ifarchive.org/if-archive/infocom/interpreters/"
7766 "frotz/frotz-" version ".tar.gz")))
7767 (sha256
7768 (base32
7769 "1v735xr3blznac8fnwa27s1vhllx4jpz7kw7qdw1bsfj6kq21v3k"))))
7770 (build-system gnu-build-system)
7771 (arguments
7772 `(#:tests? #f ; there are no tests
7773 #:phases
7774 (modify-phases %standard-phases
7775 (delete 'configure)
7776 (add-before 'build 'curses
7777 (lambda _
7778 (substitute* "Makefile"
7779 (("lcurses") "lncurses"))
7780 #t))
7781 (replace 'install
7782 (lambda* (#:key outputs #:allow-other-keys)
7783 (let* ((out (assoc-ref outputs "out"))
7784 (bin (string-append out "/bin"))
7785 (man (string-append out "/share/man/man6")))
7786 (install-file "frotz" bin)
7787 (mkdir-p man)
7788 (install-file "doc/frotz.6" man)
7789 #t))))))
7790 (inputs `(("libmodplug" ,libmodplug)
7791 ("libsamplerate" ,libsamplerate)
7792 ("libsndfile" ,libsndfile)
7793 ("libvorbis" ,libvorbis)
7794 ("ncurses" ,ncurses)))
7795 (synopsis "Portable Z-machine interpreter (ncurses version) for text adventure games")
7796 (description "Frotz is an interpreter for Infocom games and other Z-machine
7797 games in the text adventure/interactive fiction genre. This version of Frotz
7798 complies with standard 1.0 of Graham Nelson's specification. It plays all
7799 Z-code games V1-V8, including V6, with sound support through libao, and uses
7800 ncurses for text display.")
7801 (home-page "http://frotz.sourceforge.net")
7802 (license license:gpl2+)))
7803
7804 (define-public frotz-dumb-terminal
7805 (package
7806 (name "frotz-dumb-terminal")
7807 (version "2.44")
7808 (source (origin
7809 (method url-fetch)
7810 (uri (list (string-append
7811 "http://www.ifarchive.org/if-archive/infocom/interpreters/"
7812 "frotz/frotz-" version ".tar.gz")
7813 (string-append
7814 "ftp://ftp.ifarchive.org/if-archive/infocom/interpreters/"
7815 "frotz/frotz-" version ".tar.gz")))
7816 (sha256
7817 (base32
7818 "1v735xr3blznac8fnwa27s1vhllx4jpz7kw7qdw1bsfj6kq21v3k"))))
7819 (build-system gnu-build-system)
7820 (arguments
7821 `(#:tests? #f ; there are no tests
7822 #:phases
7823 (modify-phases %standard-phases
7824 (delete 'configure)
7825 (replace 'build
7826 (lambda _
7827 (invoke "make" "dumb")))
7828 (replace 'install
7829 (lambda* (#:key outputs #:allow-other-keys)
7830 (let* ((out (assoc-ref outputs "out"))
7831 (bin (string-append out "/bin"))
7832 (man (string-append out "/share/man/man6")))
7833 (install-file "dfrotz" bin)
7834 (mkdir-p man)
7835 (install-file "doc/dfrotz.6" man)
7836 #t))))))
7837 (synopsis "Portable Z-machine dumb interpreter for text adventure games")
7838 (description "Frotz is an interpreter for Infocom games and
7839 other Z-machine games in the text adventure/interactive fiction genre.
7840 dfrotz is the dumb interface version. You get no screen control; everything
7841 is just printed to the terminal line by line. The terminal handles all the
7842 scrolling. Maybe you'd like to experience what it's like to play Adventure on
7843 a teletype. A much cooler use for compiling Frotz with the dumb interface is
7844 that it can be wrapped in CGI scripting, PHP, and the like to allow people
7845 to play games on webpages. It can also be made into a chat bot.")
7846 (home-page "http://frotz.sourceforge.net")
7847 (license license:gpl2+)))
7848
7849 (define-public frotz-sdl
7850 (let* ((commit "4de8c34f2116fff554af6216c30ec9d41bf50b24"))
7851 (package
7852 (name "frotz-sdl")
7853 (version "2.45pre")
7854 (source (origin
7855 (method git-fetch)
7856 (uri (git-reference
7857 (url "https://gitlab.com/DavidGriffith/frotz")
7858 (commit commit)))
7859 (sha256
7860 (base32
7861 "18ms21pcrl7ipcnyqnf8janamkryzx78frsgd9kfk67jvbj0z2k8"))
7862 (file-name (git-file-name name version))))
7863 (build-system gnu-build-system)
7864 (arguments
7865 `(#:tests? #f ; there are no tests
7866 #:phases
7867 (modify-phases %standard-phases
7868 (delete 'configure)
7869 (add-before 'build 'patch-makefile
7870 (lambda _
7871 (substitute* "Makefile"
7872 (("lcurses") "lncurses")
7873 (("^BUILD_DATE_TIME =.*$")
7874 "BUILD_DATE_TIME = \"2.45pre-20180907.00000\"\n"))
7875 #t))
7876 (replace 'build
7877 (lambda _
7878 (invoke "make" "sdl")))
7879 (replace 'install
7880 (lambda* (#:key outputs #:allow-other-keys)
7881 (let* ((out (assoc-ref outputs "out"))
7882 (bin (string-append out "/bin"))
7883 (man (string-append out "/share/man/man6")))
7884 (install-file "sfrotz" bin)
7885 (mkdir-p man)
7886 (install-file "doc/sfrotz.6" man)
7887 #t))))))
7888 (native-inputs
7889 `(("pkg-config" ,pkg-config)
7890 ("which" ,which)
7891 ("perl" ,perl)))
7892 (inputs `(("sdl2" ,sdl2)
7893 ("sdl2-mixer" ,sdl2-mixer)
7894 ("libmodplug" ,libmodplug)
7895 ("libsamplerate" ,libsamplerate)
7896 ("libsndfile" ,libsndfile)
7897 ("libvorbis" ,libvorbis)
7898 ("ncurses" ,ncurses)
7899 ("freetype" ,freetype)
7900 ("libjpeg-turbo" ,libjpeg-turbo)))
7901 (synopsis "Portable Z-machine interpreter (SDL port) for text adventure games")
7902 (description "Frotz is an interpreter for Infocom games and other Z-machine
7903 games in the text adventure/interactive fiction genre. This version of Frotz
7904 using SDL fully supports all these versions of the Z-Machine including the
7905 graphical version 6. Graphics and sound are created through the use of the SDL
7906 libraries. AIFF sound effects and music in MOD and OGG formats are supported
7907 when packaged in Blorb container files or optionally from individual files.")
7908 (home-page "http://frotz.sourceforge.net")
7909 (license license:gpl2+))))
7910
7911 (define-public frozen-bubble
7912 ;; Last official release is very outdated (2010). Use latest commit (2017).
7913 (let ((commit "d6a029110ad6ab9e4960052e175addc98807fb7e")
7914 (revision "1"))
7915 (package
7916 (name "frozen-bubble")
7917 (version (git-version "2.2.1" revision commit))
7918 (source
7919 (origin
7920 (method git-fetch)
7921 (uri (git-reference
7922 (url "https://github.com/kthakore/frozen-bubble")
7923 (commit commit)))
7924 (file-name (git-file-name name version))
7925 (sha256
7926 (base32 "1rfrcym5lf4qac2qdklikb1ywijyxypq298azzxahy461dadl6cx"))))
7927 (build-system perl-build-system)
7928 (arguments
7929 `(#:phases
7930 (modify-phases %standard-phases
7931 ;; Build process needs to create files in the "server"
7932 ;; directory.
7933 (add-after 'unpack 'fix-permissions
7934 (lambda _
7935 (for-each make-file-writable
7936 (find-files "server" "." #:directories? #t))))
7937 ;; By default, build stops at warnings.
7938 (add-after 'unpack 'prevent-build-error
7939 (lambda _
7940 (substitute* "inc/My/Builder.pm"
7941 (("-Werror") ""))
7942 #t))
7943 (add-after 'install 'install-desktop-file-and-icons
7944 (lambda* (#:key outputs #:allow-other-keys)
7945 (let* ((share (string-append (assoc-ref outputs "out") "/share"))
7946 (hicolor (string-append share "/icons/hicolor")))
7947 ;; Create desktop entry.
7948 (make-desktop-entry-file
7949 (string-append share "/applications/" ,name ".desktop")
7950 #:name "Frozen Bubble"
7951 #:comment "Frozen Bubble arcade game"
7952 #:exec ,name
7953 #:icon ,name
7954 #:categories '("Game" "ArcadeGame"))
7955 ;; Add icons.
7956 (with-directory-excursion "share/icons"
7957 (for-each
7958 (lambda (size)
7959 (let* ((dim (string-append size "x" size))
7960 (dir (string-append hicolor "/" dim "/apps")))
7961 (mkdir-p dir)
7962 (copy-file
7963 (string-append "frozen-bubble-icon-" dim ".png")
7964 (string-append dir "/frozen-bubble.png"))))
7965 '("16" "32" "48" "64"))))
7966 #t))
7967 (add-after 'install 'wrap-perl-libs
7968 (lambda* (#:key outputs #:allow-other-keys)
7969 (let ((out (assoc-ref outputs "out"))
7970 (perl5lib (getenv "PERL5LIB")))
7971 (for-each (lambda (prog)
7972 (wrap-program (string-append out "/" prog)
7973 `("PERL5LIB" ":" prefix
7974 (,(string-append perl5lib ":" out
7975 "/lib/perl5/site_perl")))))
7976 (find-files "bin" ".")))
7977 #t)))))
7978 (native-inputs
7979 `(("perl-alien-sdl" ,perl-alien-sdl)
7980 ("perl-capture-tiny" ,perl-capture-tiny)
7981 ("perl-locale-maketext-lexicon" ,perl-locale-maketext-lexicon)
7982 ("perl-module-build" ,perl-module-build)
7983 ("pkg-config" ,pkg-config)))
7984 (inputs
7985 `(("glib" ,glib)
7986 ("perl-compress-bzip2" ,perl-compress-bzip2)
7987 ("perl-file-sharedir" ,perl-file-sharedir)
7988 ("perl-file-slurp" ,perl-file-slurp)
7989 ("perl-file-which" ,perl-file-which)
7990 ("perl-ipc-system-simple" ,perl-ipc-system-simple)
7991 ("perl-sdl" ,perl-sdl)
7992 ("sdl" ,(sdl-union (list sdl sdl-image sdl-mixer sdl-pango sdl-ttf)))))
7993 (home-page "http://frozen-bubble.org/")
7994 (synopsis "Puzzle with bubbles")
7995 (description
7996 "Frozen-Bubble is a clone of the popular Puzzle Bobble game, in which
7997 you attempt to shoot bubbles into groups of the same color to cause them to
7998 pop.
7999
8000 Players compete as penguins and must use the arrow keys to aim a colored
8001 bubble at groups of bubbles. The objective is to clear all the bubbles off
8002 the screen before a bubble passes below a line at the bottom.
8003
8004 It features 100 single-player levels, a two-player mode, music and striking
8005 graphics. A level editor is also included to allow players to create and play
8006 their own levels.")
8007 (license license:gpl2))))
8008
8009 (define-public libmanette
8010 (package
8011 (name "libmanette")
8012 (version "0.2.6")
8013 (source (origin
8014 (method url-fetch)
8015 (uri (string-append "mirror://gnome/sources/libmanette/"
8016 (version-major+minor version) "/"
8017 "libmanette-" version ".tar.xz"))
8018 (sha256
8019 (base32
8020 "1b3bcdkk5xd5asq797cch9id8692grsjxrc1ss87vv11m1ck4rb3"))))
8021 (build-system meson-build-system)
8022 (native-inputs
8023 `(("glib" ,glib "bin") ; for glib-compile-resources
8024 ("gobject-introspection" ,gobject-introspection)
8025 ("pkg-config" ,pkg-config)
8026 ("vala" ,vala)))
8027 (inputs
8028 `(("libevdev" ,libevdev)
8029 ("libgudev" ,libgudev)))
8030 (home-page "https://wiki.gnome.org/Apps/Games")
8031 (synopsis "Game controller library")
8032 (description "Libmanette is a small GObject library giving you simple
8033 access to game controllers. It supports the de-facto standard gamepads as
8034 defined by the W3C standard Gamepad specification or as implemented by the SDL
8035 GameController.")
8036 (license license:lgpl2.1+)))
8037
8038 (define-public quadrapassel
8039 (package
8040 (name "quadrapassel")
8041 (version "3.36.05")
8042 (source (origin
8043 (method url-fetch)
8044 (uri (string-append "mirror://gnome/sources/quadrapassel/"
8045 (version-major+minor version) "/"
8046 "quadrapassel-" version ".tar.xz"))
8047 (sha256
8048 (base32
8049 "04abxmimh5npw8rhz1sfi6wxilgc6i1wka9mlnfwp8v1p1cb00cv"))))
8050 (build-system meson-build-system)
8051 (arguments
8052 '(#:glib-or-gtk? #t
8053 #:phases
8054 (modify-phases %standard-phases
8055 (add-after 'unpack 'skip-gtk-update-icon-cache
8056 ;; Don't create 'icon-theme.cache'.
8057 (lambda _
8058 (substitute* "build-aux/meson_post_install.py"
8059 (("gtk-update-icon-cache") (which "true")))
8060 #t)))))
8061 (native-inputs
8062 `(("desktop-file-utils" ,desktop-file-utils) ;for desktop-file-validate
8063 ("gettext" ,gettext-minimal)
8064 ("glib" ,glib "bin") ;for glib-compile-resources
8065 ("itstool" ,itstool)
8066 ("libxml2" ,libxml2) ;for xmllint
8067 ("pkg-config" ,pkg-config)
8068 ("vala" ,vala)))
8069 (inputs
8070 `(("clutter" ,clutter)
8071 ("clutter-gtk" ,clutter-gtk)
8072 ("gsound" ,gsound)
8073 ("gtk+" ,gtk+)
8074 ("libcanberra" ,libcanberra)
8075 ("libmanette" ,libmanette)
8076 ("librsvg" ,librsvg)))
8077 (home-page "https://wiki.gnome.org/Apps/Quadrapassel")
8078 (synopsis "GNOME version of Tetris")
8079 (description "Quadrapassel comes from the classic falling-block game,
8080 Tetris. The goal of the game is to create complete horizontal lines of
8081 blocks, which will disappear. The blocks come in seven different shapes made
8082 from four blocks each: one straight, two L-shaped, one square, and two
8083 S-shaped. The blocks fall from the top center of the screen in a random
8084 order. You rotate the blocks and move them across the screen to drop them in
8085 complete lines. You score by dropping blocks fast and completing lines. As
8086 your score gets higher, you level up and the blocks fall faster.")
8087 (license license:gpl2+)))
8088
8089 (define-public endless-sky
8090 (package
8091 (name "endless-sky")
8092 (version "0.9.12")
8093 (source
8094 (origin
8095 (method git-fetch)
8096 (uri (git-reference
8097 (url "https://github.com/endless-sky/endless-sky")
8098 (commit (string-append "v" version))))
8099 (file-name (git-file-name name version))
8100 (sha256
8101 (base32 "18nkl4s3r5sy3sd9lhbdg9160c7fggklklprx0d5azifc8g6k0wj"))))
8102 (build-system scons-build-system)
8103 (arguments
8104 `(#:scons ,scons-python2
8105 #:scons-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
8106 #:tests? #f ; no tests
8107 #:phases
8108 (modify-phases %standard-phases
8109 (add-after 'unpack 'patch-resource-locations
8110 (lambda* (#:key outputs #:allow-other-keys)
8111 (substitute* "source/Files.cpp"
8112 (("/usr/local/")
8113 (string-append (assoc-ref outputs "out") "/")))
8114 #t))
8115 (add-after 'unpack 'patch-scons
8116 (lambda _
8117 (substitute* "SConstruct"
8118 ;; Keep environmental variables
8119 (("Environment\\(\\)")
8120 "Environment(ENV = os.environ)")
8121 ;; Install into %out/bin
8122 (("games\"") "bin\""))
8123 #t)))))
8124 (inputs
8125 `(("glew" ,glew)
8126 ("libjpeg" ,libjpeg-turbo)
8127 ("libmad" ,libmad)
8128 ("libpng" ,libpng)
8129 ("openal" ,openal)
8130 ("sdl2" ,sdl2)))
8131 (home-page "https://endless-sky.github.io/")
8132 (synopsis "2D space trading and combat game")
8133 (description "Endless Sky is a 2D space trading and combat game. Explore
8134 other star systems. Earn money by trading, carrying passengers, or completing
8135 missions. Use your earnings to buy a better ship or to upgrade the weapons and
8136 engines on your current one. Blow up pirates. Take sides in a civil war. Or
8137 leave human space behind and hope to find friendly aliens whose culture is more
8138 civilized than your own.")
8139 (license (list license:gpl3+
8140 license:cc-by-sa3.0
8141 license:cc-by-sa4.0
8142 license:public-domain))))
8143
8144 (define-public stepmania
8145 (package
8146 (name "stepmania")
8147 (version "5.1.0-b2")
8148 (source
8149 (origin
8150 (method git-fetch)
8151 (uri (git-reference
8152 (url "https://github.com/stepmania/stepmania")
8153 (commit (string-append "v" version))))
8154 (file-name (git-file-name name version))
8155 (sha256
8156 (base32
8157 "0a7y9l7xm510vgnpmj1is7p9m6d6yd0fcaxrjcickz295k5w3rdn"))
8158 (modules '((guix build utils)))
8159 (snippet
8160 '(begin
8161 ;; Remove song files, which are licensed under a non-commercial
8162 ;; clause, and a course pointing to them.
8163 (for-each delete-file-recursively
8164 '("Songs/StepMania 5/Goin' Under"
8165 "Songs/StepMania 5/MechaTribe Assault"
8166 "Songs/StepMania 5/Springtime"))
8167 (for-each delete-file '("Courses/Default/Jupiter.crs"
8168 "Courses/Default/Jupiter.png"))
8169 ;; Unbundle libpng.
8170 (substitute* "extern/CMakeLists.txt"
8171 (("include\\(CMakeProject-png.cmake\\)") ""))
8172 (delete-file-recursively "extern/libpng")
8173 #t))))
8174 (build-system cmake-build-system)
8175 (arguments
8176 `(#:tests? #f ;FIXME: couldn't find how to run tests
8177 #:build-type "Release"
8178 #:out-of-source? #f ;for the 'install-desktop' phase
8179 #:configure-flags
8180 (list "-DWITH_SYSTEM_FFMPEG=1"
8181 ;; SSE instructions are available on Intel systems only.
8182 ,@(if (any (cute string-prefix? <> (or (%current-target-system)
8183 (%current-system)))
8184 '("x86_64" "i686"))
8185 '()
8186 '("-DWITH_SSE2=NO"))
8187 ;; Configuration cannot find GTK2 without the two following
8188 ;; flags.
8189 (string-append "-DGTK2_GDKCONFIG_INCLUDE_DIR="
8190 (assoc-ref %build-inputs "gtk+")
8191 "/lib/gtk-2.0/include")
8192 (string-append "-DGTK2_GLIBCONFIG_INCLUDE_DIR="
8193 (assoc-ref %build-inputs "glib")
8194 "/lib/glib-2.0/include"))
8195 #:phases
8196 (modify-phases %standard-phases
8197 (add-after 'unpack 'ensure-application-files-can-be-found
8198 (lambda* (#:key outputs #:allow-other-keys)
8199 (let ((out (assoc-ref outputs "out")))
8200 (substitute* "src/arch/LoadingWindow/LoadingWindow_Gtk.cpp"
8201 (("RageFileManagerUtil::sDirOfExecutable \\+ \"/\" \\+ \"GtkModule.so\"")
8202 (string-append "\"" out
8203 "/share/stepmania/GtkModule.so\"")))
8204 (substitute* "src/arch/ArchHooks/ArchHooks_Unix.cpp"
8205 (("Root = sDirOfExecutable")
8206 (string-append "Root = \"" out "/share/stepmania/\""))
8207 (("sDirOfExecutable \\+ \"/(Packages|Songs)\"" _ dir)
8208 (string-append "\"" out "/share/stepmania/" dir "\"")))
8209 (substitute* "src/RageFileManager.cpp"
8210 (("RageFileManagerUtil::sDirOfExecutable \\+ \"/\"")
8211 (string-append "\"" out "/share/stepmania/\""))))
8212 #t))
8213 (add-after 'unpack 'fix-install-subdir
8214 ;; Installation would be done in "%out/stepmania-X.Y", but we
8215 ;; prefer the more common layout "%out/share/stepmania".
8216 (lambda _
8217 (substitute* "src/CMakeLists.txt"
8218 (("\"stepmania-.*?\"") "\"share/stepmania\""))
8219 #t))
8220 (add-after 'unpack 'unbundle-libpng
8221 (lambda* (#:key inputs #:allow-other-keys)
8222 (substitute* "src/CMakeLists.txt"
8223 (("\\$\\{SM_EXTERN_DIR\\}/libpng/include")
8224 (string-append (assoc-ref inputs "libpng") "/include")))
8225 #t))
8226 (add-after 'install 'install-executable
8227 (lambda* (#:key outputs #:allow-other-keys)
8228 (let* ((out (assoc-ref outputs "out"))
8229 (bin (string-append out "/bin"))
8230 (exe (string-append out "/share/stepmania/stepmania")))
8231 (mkdir-p bin)
8232 (symlink exe (string-append bin "/stepmania"))
8233 #t)))
8234 (add-after 'install-executable 'install-desktop
8235 (lambda* (#:key outputs #:allow-other-keys)
8236 (let* ((out (assoc-ref outputs "out"))
8237 (share (string-append out "/share"))
8238 (applications (string-append share "/applications"))
8239 (icons (string-append share "/icons")))
8240 (install-file "stepmania.desktop" applications)
8241 (mkdir-p icons)
8242 (copy-recursively "icons" icons)
8243 #t)))
8244 ;; Move documentation in a more usual place, i.e.,
8245 ;; "%out/share/doc/stepmania/".
8246 (add-after 'install-desktop 'install-doc
8247 (lambda* (#:key outputs #:allow-other-keys)
8248 (let* ((out (assoc-ref outputs "out"))
8249 (share (string-append out "/share")))
8250 (with-directory-excursion share
8251 (mkdir-p "doc")
8252 (symlink "../stepmania/Docs" "doc/stepmania"))
8253 #t))))))
8254 (native-inputs
8255 `(("pkg-config" ,pkg-config)
8256 ("yasm" ,yasm)))
8257 (inputs
8258 `(("alsa-lib" ,alsa-lib)
8259 ;; Per upstream, StepMania is only guaranteed to work with a very
8260 ;; specific FFmpeg version, which is included in the repository as
8261 ;; a Git submodule. This particular version requirement usually
8262 ;; changes every few years.
8263 ("ffmpeg" ,ffmpeg-for-stepmania)
8264 ("glib" ,glib)
8265 ("glew" ,glew)
8266 ("gtk+" ,gtk+-2)
8267 ("jsoncpp" ,jsoncpp)
8268 ("libpng" ,libpng)
8269 ("libjpeg" ,libjpeg-turbo)
8270 ("libmad" ,libmad)
8271 ("libogg" ,libogg)
8272 ("libva" ,libva)
8273 ("libvorbis" ,libvorbis)
8274 ("libxinerama" ,libxinerama)
8275 ("libxrandr" ,libxrandr)
8276 ("mesa" ,mesa)
8277 ("pcre" ,pcre)
8278 ("pulseaudio" ,pulseaudio)
8279 ("sdl" ,sdl2)
8280 ("udev" ,eudev)
8281 ("zlib" ,zlib)))
8282 (synopsis "Advanced rhythm game designed for both home and arcade use")
8283 (description "StepMania is a dance and rhythm game. It features 3D
8284 graphics, keyboard and dance pad support, and an editor for creating your own
8285 steps.
8286
8287 This package provides the core application, but no song is shipped. You need
8288 to download and install them in @file{$HOME/.stepmania-X.Y/Songs} directory.")
8289 (home-page "https://www.stepmania.com")
8290 (license license:expat)))
8291
8292 (define-public btanks
8293 (package
8294 (name "btanks")
8295 (version "0.9.8083")
8296 (source
8297 (origin
8298 (method url-fetch)
8299 (uri (string-append "mirror://sourceforge/btanks/btanks-source/"
8300 "btanks-" version ".tar.bz2"))
8301 (sha256
8302 (base32
8303 "0ha35kxc8xlbg74wsrbapfgxvcrwy6psjkqi7c6adxs55dmcxliz"))))
8304 (build-system scons-build-system)
8305 (arguments
8306 `(#:tests? #f ; there are none
8307 #:scons ,scons-python2
8308 #:scons-flags (list (string-append "prefix=" (assoc-ref %outputs "out")))
8309 #:phases
8310 (modify-phases %standard-phases
8311 (add-after 'unpack 'replace-removed-scons-syntax
8312 (lambda _
8313 (substitute* "SConstruct"
8314 (("Options") "Variables")
8315 (("opts.Add\\(BoolOption.*") "opts.Add('gcc_visibility', 'gcc visibility', 'true')")
8316 (("opts.Add\\(EnumOption.*") "opts.Add('mode', 'build mode', 'release')"))
8317 #t))
8318 (add-after 'set-paths 'set-sdl-paths
8319 (lambda* (#:key inputs #:allow-other-keys)
8320 (setenv "CPATH"
8321 (string-append (assoc-ref inputs "sdl")
8322 "/include/SDL:"
8323 (or (getenv "CPATH") "")))
8324 #t))
8325 (add-after 'unpack 'fix-compilation-errors
8326 (lambda _
8327 (substitute* "mrt/base_file.h"
8328 (("#include <string>" m)
8329 (string-append m "\n#include <sys/types.h>")))
8330 (substitute* '("engine/sl08/sl08.h"
8331 "engine/sl08/sl08.py")
8332 (("signal = NULL") "signal = 0")
8333 (("object\\(NULL\\)") "object(0)")
8334 (("func\\(NULL\\)") "func(0)")
8335 ((" connect\\(signal_ref\\)")
8336 " this->connect(signal_ref)"))
8337 (substitute* "math/range_list.h"
8338 ((" lower_bound\\(value\\)")
8339 " this->lower_bound(value)")
8340 ((" erase\\(i\\)")
8341 " this->erase(i)"))
8342 (substitute* "clunk/source.cpp"
8343 (("using namespace clunk" m)
8344 (string-append "# define pow10f(x) exp10f(x)\n" m)))
8345 #t))
8346 (add-after 'unpack 'find-lua
8347 (lambda _
8348 (substitute* "engine/SConscript"
8349 (("lua5.1") "lua-5.1")
8350 (("bt_libs.append\\(lua\\)")
8351 "bt_libs.append(\"lua\")"))
8352 #t)))))
8353 (inputs
8354 `(("expat" ,expat)
8355 ("glu" ,glu)
8356 ("libsmpeg" ,libsmpeg-with-sdl1)
8357 ("libvorbis" ,libvorbis)
8358 ("lua51" ,lua-5.1)
8359 ("sdl" ,(sdl-union (list sdl
8360 sdl-mixer
8361 sdl-image
8362 sdl-ttf)))
8363 ("zlib" ,zlib)))
8364 (native-inputs
8365 `(("pkg-config" ,pkg-config)
8366 ("zip" ,zip)))
8367 (home-page "http://btanks.sourceforge.net")
8368 (synopsis "Multiplayer tank battle game")
8369 (description "Battle Tanks (also known as \"btanks\") is a funny battle
8370 game, where you can choose one of three vehicles and eliminate your enemy
8371 using the whole arsenal of weapons. It has original cartoon-like graphics and
8372 cool music, it’s fun and dynamic, it has several network modes for deathmatch
8373 and cooperative.")
8374 ;; Some parts (e.g. mrt/b64.cpp) are LGPLv2.1+, but the whole package is
8375 ;; released under GPLv2 or later. It comes with extra exceptions for the
8376 ;; developers.
8377 (license (list license:gpl2+ license:lgpl2.1+))))
8378
8379 (define-public slimevolley
8380 (package
8381 (name "slimevolley")
8382 (version "2.4.2")
8383 (source
8384 (origin
8385 (method url-fetch)
8386 (uri (string-append "https://download.tuxfamily.org/slime/"
8387 "slimevolley_" version ".tar.gz"))
8388 (sha256
8389 (base32 "1pi60zjpx95mfdkrbwf4cbzy5lv4v5qrljvgck46qca78i9g9g46"))))
8390 (build-system cmake-build-system)
8391 (arguments
8392 `(#:tests? #f ;no test
8393 ;; Work around build failure: "error adding symbols: DSO
8394 ;; missing from command line".
8395 #:configure-flags (list "-DCMAKE_EXE_LINKER_FLAGS=-lm")))
8396 (native-inputs
8397 `(("gettext" ,gettext-minimal)))
8398 (inputs
8399 `(("sdl" ,(sdl-union (list sdl sdl-image sdl-net sdl-ttf)))))
8400 (home-page "https://slime.tuxfamily.org/")
8401 (synopsis "Unrealistic 2D volleyball simulation")
8402 (description
8403 "Slime Volley is a 2D arcade-oriented volleyball simulation, in
8404 the spirit of some Java games of the same name.
8405
8406 Two teams, 1-3 players each, try to be the first to get 10 points.
8407 This happens when the one ball touches the floor on the other side of
8408 the net. There can be 1 to 8 balls in game. Once one ball touches
8409 the ground, the set ends and all balls are served again.")
8410 (license license:gpl3+)))
8411
8412 (define-public slingshot
8413 (package
8414 (name "slingshot")
8415 (version "0.9")
8416 (source
8417 (origin
8418 (method git-fetch)
8419 (uri (git-reference
8420 (url "https://github.com/ryanakca/slingshot")
8421 (commit version)))
8422 (file-name (git-file-name name version))
8423 (sha256
8424 (base32
8425 "19m8b6nsi786bc6gmkp185mwri3r5y249gjmqd5qsc23nnfhgrs1"))))
8426 (build-system python-build-system)
8427 (arguments
8428 `(#:python ,python-2))
8429 (inputs
8430 `(("python-pygame" ,python2-pygame)))
8431 (home-page "https://github.com/ryanakca/slingshot")
8432 (synopsis "Simple 2D shooting strategy game set in space")
8433 (description "Slingshot is a two-dimensional strategy game where two
8434 players attempt to shoot one another through a section of space populated by
8435 planets. The main feature of the game is that the shots, once fired, are
8436 affected by the gravity of the planets.")
8437 (license license:gpl2+)))
8438
8439 (define-public 4dtris
8440 (package
8441 (name "4dtris")
8442 (version "0.4.3")
8443 (source
8444 (origin
8445 (method url-fetch)
8446 (uri (string-append "https://launchpad.net/4dtris/"
8447 (version-major+minor version)
8448 "/" version "/+download/4dtris_"
8449 version ".orig.tar.gz"))
8450 (sha256
8451 (base32
8452 "1nfkhcm0l89jyw8yr65na97g4l385zhjf7whkyg47c3v5sdqq2g7"))))
8453 (build-system gnu-build-system)
8454 (arguments
8455 `(#:phases
8456 (modify-phases %standard-phases
8457 (add-after 'unpack 'fix-install-directories
8458 (lambda* (#:key outputs #:allow-other-keys)
8459 (let ((out (assoc-ref outputs "out")))
8460 (substitute* "Makefile.in"
8461 (("bindir = /usr/games")
8462 (string-append "bindir = " out "/bin"))
8463 (("/usr/share/applications")
8464 (string-append out "/share/applications"))
8465 (("/usr/share/games/4dtris")
8466 (string-append out "/share/4dtris"))))
8467 #t))
8468 (add-after 'set-paths 'set-sdl-paths
8469 (lambda* (#:key inputs #:allow-other-keys)
8470 (setenv "CPATH"
8471 (string-append (assoc-ref inputs "sdl")
8472 "/include/SDL:"
8473 (or (getenv "CPATH") "")))
8474 #t)))))
8475 (inputs
8476 `(("fontconfig" ,fontconfig)
8477 ("freeglut" ,freeglut)
8478 ("sdl" ,(sdl-union (list sdl sdl-ttf)))))
8479 (home-page "https://launchpad.net/4dtris/")
8480 (synopsis "4D Tetris")
8481 (description "4D-TRIS is an alteration of the well-known Tetris game. The
8482 game field is extended to 4D space, which has to filled up by the gamer with
8483 4D hyper cubes.")
8484 (license license:gpl3)))
8485
8486 (define-public arx-libertatis
8487 (package
8488 (name "arx-libertatis")
8489 (version "1.1.2")
8490 (source
8491 (origin
8492 (method url-fetch)
8493 (uri (string-append "http://arx-libertatis.org/files/arx-libertatis-"
8494 version ".tar.xz"))
8495 (sha256
8496 (base32
8497 "0hjfxlsmp8wwqr06snv2dlly2s79ra0d9aw49gkp6rn8m50b9bc2"))))
8498 (build-system cmake-build-system)
8499 (outputs '("out" "installer"))
8500 (arguments
8501 '(#:tests? #f ; No tests.
8502 #:phases
8503 (modify-phases %standard-phases
8504 (add-after 'unpack 'fix-install-helper-paths
8505 (lambda* (#:key inputs #:allow-other-keys)
8506 (let ((p7zip (assoc-ref inputs "p7zip"))
8507 (innoextract (assoc-ref inputs "innoextract"))
8508 (wget (assoc-ref inputs "wget"))
8509 (zenity (assoc-ref inputs "zenity")))
8510 (substitute* "scripts/arx-install-data"
8511 (("have innoextract")
8512 (string-append "have " innoextract "/bin/innoextract"))
8513 (("then innoextract")
8514 (string-append "then " innoextract "/bin/innoextract"))
8515 (("else innoextract")
8516 (string-append "else " innoextract "/bin/innoextract"))
8517 (("for _extract_zip_sz in 7za 7z")
8518 (string-append "for _extract_zip_sz in " p7zip "/bin/7za"))
8519 (("else if have 7z")
8520 (string-append "else if have " p7zip "/bin/7za"))
8521 (("7z x -tiso")
8522 (string-append p7zip "/bin/7z x -tiso"))
8523 (("if have wget")
8524 (string-append "if have " wget "/bin/wget"))
8525 (("wget -O")
8526 (string-append wget "/bin/wget -O"))
8527 (("for backend in \\$preferred zenity")
8528 (string-append "for backend in $preferred " zenity "/bin/zenity"))
8529 (("zenity +--title")
8530 (string-append zenity "/bin/zenity --title"))
8531 (("^zenity\\)")
8532 (string-append zenity "/bin/zenity)"))))
8533 #t))
8534 (add-after 'install 'move-installer
8535 (lambda* (#:key outputs #:allow-other-keys)
8536 (let ((out (assoc-ref outputs "out"))
8537 (installer (assoc-ref outputs "installer")))
8538 (mkdir-p (string-append installer "/bin"))
8539 (rename-file (string-append out "/bin/arx-install-data")
8540 (string-append installer "/bin/arx-install-data"))))))))
8541 (inputs
8542 `(("sdl" ,sdl) ; Switch to sdl2 in >1.1.2.
8543 ("mesa" ,mesa) ; Switch to libepoxy in >1.1.2.
8544 ("glew" ,glew)
8545 ("openal" ,openal)
8546 ("zlib" ,zlib)
8547 ("boost" ,boost)
8548 ("glm" ,glm)
8549 ("freetype" ,freetype)
8550 ;; The following are only needed by the arx-install-data script.
8551 ("p7zip" ,p7zip) ; Install-helper uses it to extract ISO and .cab archives.
8552 ("zenity" ,zenity) ; GUI for install-helper.
8553 ("wget" ,wget) ; Used by the install-helper to download the patch.
8554 ;; The install-helper needs it to extract the patch.
8555 ("innoextract" ,innoextract)))
8556 (home-page "https://arx-libertatis.org/")
8557 (synopsis "Port of Arx Fatalis, a first-person role-playing game")
8558 (description "Arx Libertatis is a cross-platform port of Arx Fatalis, a 2002
8559 first-person role-playing game / dungeon crawler developed by Arkane Studios.
8560 This port however does not include the game data, so you need to obtain a copy
8561 of the original Arx Fatalis or its demo to play Arx Libertatis. Arx Fatalis
8562 features crafting, melee and ranged combat, as well as a unique casting system
8563 where the player draws runes in real time to effect the desired spell.")
8564 (license license:gpl3+)))
8565
8566 (define-public edgar
8567 (package
8568 (name "edgar")
8569 (version "1.33")
8570 (source
8571 (origin
8572 (method url-fetch)
8573 (uri
8574 (string-append "https://github.com/riksweeney/edgar/releases/download/"
8575 version "/edgar-" version "-1.tar.gz"))
8576 (sha256
8577 (base32 "1mbx7dvizdca4g1blcv3bdh6yxd13k47rkya4rdzg0nvvz24m175"))))
8578 (build-system gnu-build-system)
8579 (arguments '(#:tests? #f ; there are no tests
8580 #:make-flags
8581 (list "CC=gcc"
8582 (string-append "PREFIX=" (assoc-ref %outputs "out"))
8583 (string-append "BIN_DIR=" (assoc-ref %outputs "out") "/bin/"))
8584 #:phases
8585 (modify-phases %standard-phases
8586 (delete 'configure)
8587 (add-before 'build 'fix-env
8588 (lambda* (#:key inputs #:allow-other-keys)
8589 (setenv "CPATH"
8590 (string-append (assoc-ref inputs "sdl2-union")
8591 "/include/SDL2:"
8592 (or (getenv "CPATH") "")))
8593 #t)))))
8594 (inputs
8595 `(("sdl2-union" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer sdl2-ttf)))
8596 ("zlib" ,zlib)))
8597 (native-inputs
8598 `(("pkg-config" ,pkg-config)
8599 ("autoconf" ,autoconf)
8600 ("automake" ,automake)
8601 ("gnu-gettext" ,gettext-minimal)
8602 ("libtool" ,libtool)
8603 ("which" ,which)))
8604 (synopsis "2d action platformer game")
8605 (description "The Legend of Edgar is a 2D platform game with a persistent world.
8606 When Edgar's father fails to return home after venturing out one dark and stormy night,
8607 Edgar fears the worst: he has been captured by the evil sorcerer who lives in
8608 a fortress beyond the forbidden swamp.")
8609 (home-page "https://www.parallelrealities.co.uk/games/edgar/")
8610 (license license:gpl2+)))
8611
8612 (define-public openclonk
8613 (package
8614 (name "openclonk")
8615 (version "8.1")
8616 (source (origin
8617 (method url-fetch)
8618 (uri (string-append
8619 "https://www.openclonk.org/builds/release/" version "/"
8620 "openclonk-" version "-src.tar.bz2"))
8621 (sha256
8622 (base32
8623 "0imkqjp8lww5p0cnqf4k4mb2v682mnsas63qmiz17rspakr7fxik"))))
8624 (build-system cmake-build-system)
8625 (arguments
8626 `(#:configure-flags '("-DAudio_TK=OpenAL")
8627 #:test-target "tests"
8628 #:phases
8629 (modify-phases %standard-phases
8630 (add-after 'unpack 'prepare-gmock
8631 (lambda* (#:key inputs #:allow-other-keys)
8632 (mkdir "gmock")
8633 (copy-recursively (assoc-ref inputs "googlemock") "gmock")
8634 (substitute* "tests/CMakeLists.txt"
8635 (("/usr/src/gmock")
8636 (string-append (getcwd) "/gmock/googlemock"))
8637 (("/usr/src/gtest")
8638 (string-append (getcwd) "/gmock/googletest"))
8639 (("PATH_SUFFIXES \"src\" \"gtest\"")
8640 "PATH_SUFFIXES \"src\""))
8641 #t))
8642 (add-after 'unpack 'adjust-backward-cpp-includes
8643 (lambda _
8644 ;; XXX: The bundled backward-cpp exports a CMake "interface"
8645 ;; that includes external libraries such as libdl from glibc.
8646 ;; By default, CMake interface includes are treated as "system
8647 ;; headers", and GCC behaves poorly when glibc is passed as a
8648 ;; system header (causing #include_next failures).
8649
8650 ;; Here we prevent targets that consume the Backward::Backward
8651 ;; interface from treating it as "system includes".
8652 (substitute* "CMakeLists.txt"
8653 (("target_link_libraries\\((.+) Backward::Backward\\)" all target)
8654 (string-append "set_property(TARGET " target " PROPERTY "
8655 "NO_SYSTEM_FROM_IMPORTED true)\n"
8656 all)))
8657 #t))
8658 (add-after 'unpack 'add-libiberty
8659 ;; Build fails upon linking executables without this.
8660 (lambda _
8661 (substitute* "thirdparty/backward-cpp/BackwardConfig.cmake"
8662 (("set\\(LIBBFD_LIBRARIES (.*?)\\)" _ libraries)
8663 (string-append "set(LIBBFD_LIBRARIES " libraries " iberty)")))
8664 #t))
8665 (add-after 'add-libiberty 'lax-freealut-requirement
8666 ;; TODO: We provide freealut 1.1.0, but pkg-config somehow detects
8667 ;; it as 1.0.1. Force minimal version.
8668 (lambda _
8669 (substitute* "cmake/FindAudio.cmake"
8670 (("freealut>=1.1.0") "freealut>=1.0.1"))
8671 #t))
8672 (add-after 'lax-freealut-requirement 'fix-directories
8673 ;; Prefer "$out/share/openclonk" over
8674 ;; "$out/share/games/openclonk". Also install "openclonk"
8675 ;; binary in "bin/", not "games/".
8676 (lambda _
8677 (substitute* "CMakeLists.txt"
8678 (("share/games/openclonk") "share/openclonk")
8679 (("TARGETS openclonk DESTINATION games")
8680 "TARGETS openclonk DESTINATION bin"))
8681 #t)))))
8682 (native-inputs
8683 `(("googlemock" ,(package-source googletest))
8684 ("googletest" ,googletest)
8685 ("pkg-config" ,pkg-config)))
8686 (inputs
8687 `(("freealut" ,freealut)
8688 ("freetype" ,freetype)
8689 ("glew" ,glew)
8690 ("libiberty" ,libiberty)
8691 ("libjpeg" ,libjpeg-turbo)
8692 ("libogg" ,libogg)
8693 ("libpng" ,libpng)
8694 ("libvorbis" ,libvorbis)
8695 ("libxrandr" ,libxrandr)
8696 ("mesa" ,mesa)
8697 ("miniupnpc" ,miniupnpc)
8698 ("openal" ,openal)
8699 ("qtbase" ,qtbase)
8700 ("readline" ,readline)
8701 ("sdl" ,sdl2)
8702 ("tinyxml" ,tinyxml)
8703 ("zlib" ,zlib)))
8704 (home-page "https://www.openclonk.org/")
8705 (synopsis
8706 "Multiplayer action game where you control small and nimble humanoids")
8707 (description "OpenClonk is a multiplayer action/tactics/skill game. It is
8708 often referred to as a mixture of The Settlers and Worms. In a simple 2D
8709 antfarm-style landscape, the player controls a crew of Clonks, small but
8710 robust humanoid beings. The game encourages free play but the normal goal is
8711 to either exploit valuable resources from the earth by building a mine or
8712 fight each other on an arena-like map.")
8713 ;; Software as a whole is licensed under ISC, artwork under CC-BY.
8714 (license (list license:isc license:cc-by3.0))))
8715
8716 (define-public flare-engine
8717 (package
8718 (name "flare-engine")
8719 (version "1.11")
8720 (source (origin
8721 (method git-fetch)
8722 (uri (git-reference
8723 (url "https://github.com/flareteam/flare-engine")
8724 (commit (string-append "v" version))))
8725 (file-name (git-file-name name version))
8726 (sha256
8727 (base32
8728 "1mqr1s72p5bdh4kq2a8hg72dk8lwnddicjnd2cdp1sbfa9lmjym8"))))
8729 (build-system cmake-build-system)
8730 (arguments
8731 `(#:tests? #f ;no test
8732 #:configure-flags '("-DBINDIR=bin" "-DDATADIR=share/flare")))
8733 (inputs
8734 `(("hicolor-icon-theme" ,hicolor-icon-theme)
8735 ("python" ,python-wrapper)
8736 ("sdl" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer sdl2-ttf)))))
8737 (home-page "http://www.flarerpg.org/")
8738 (synopsis "Action Roleplaying Engine")
8739 (description "Flare (Free Libre Action Roleplaying Engine) is a simple
8740 game engine built to handle a very specific kind of game: single-player 2D
8741 action RPGs.")
8742 (license license:gpl3+)))
8743
8744 (define-public flare-game
8745 (package
8746 (name "flare-game")
8747 (version "1.11")
8748 (source (origin
8749 (method git-fetch)
8750 (uri (git-reference
8751 (url "https://github.com/flareteam/flare-game")
8752 (commit (string-append "v" version))))
8753 (file-name (git-file-name name version))
8754 (sha256
8755 (base32
8756 "0bd5g7sd89a9176ilr408hdqzdfv4j7wj0idd685c1n6s01c3h6p"))))
8757 (build-system cmake-build-system)
8758 (arguments
8759 `(#:tests? #f ;no test
8760 #:configure-flags '("-DDATADIR=share/flare")
8761 #:phases
8762 (modify-phases %standard-phases
8763 ;; Flare expects the mods to be located in the same folder.
8764 ;; Yet, "default" mod is in the engine, whereas the others
8765 ;; are in the current package. Merge everything here with
8766 ;; a symlink.
8767 (add-after 'install 'add-default-mod
8768 (lambda* (#:key inputs outputs #:allow-other-keys)
8769 (let* ((out (assoc-ref outputs "out"))
8770 (mods (string-append out "/share/flare/mods")))
8771 (with-directory-excursion mods
8772 (symlink (string-append (assoc-ref inputs "flare-engine")
8773 "/share/flare/mods/default")
8774 "default")))
8775 #t))
8776 (add-after 'install 'install-executable
8777 ;; The package only provides assets for the game, the
8778 ;; executable coming from "flare-engine". Since more than
8779 ;; one game may use the engine, we create a new executable,
8780 ;; "flare-game", which launches the engine with appropriate
8781 ;; parameters.
8782 (lambda* (#:key inputs outputs #:allow-other-keys)
8783 (let* ((out (assoc-ref outputs "out"))
8784 (bash (string-append (assoc-ref inputs "bash")
8785 "/bin/bash"))
8786 (flare (string-append (assoc-ref inputs "flare-engine")
8787 "/bin/flare"))
8788 (script (string-append out "/bin/flare-game")))
8789 (mkdir-p (dirname script))
8790 (call-with-output-file script
8791 (lambda (port)
8792 (format port
8793 "#!~a
8794 exec ~a --data-path=~a/share/flare --mods=empyrean_campaign~%"
8795 bash
8796 flare
8797 out)))
8798 (chmod script #o755))
8799 #t)))))
8800 (inputs
8801 `(("flare-engine" ,flare-engine)))
8802 (home-page "http://www.flarerpg.org/")
8803 (synopsis "Fantasy action RPG using the FLARE engine")
8804 (description "Flare is a single-player 2D action RPG with
8805 fast-paced action and a dark fantasy style.")
8806 (license license:cc-by-sa3.0)))
8807
8808 (define-public meritous
8809 (package
8810 (name "meritous")
8811 (version "1.5")
8812 (source (origin
8813 (method git-fetch)
8814 (uri (git-reference
8815 (url "https://gitlab.com/meritous/meritous.git")
8816 (commit (string-append "v" version))))
8817 (file-name (git-file-name name version))
8818 (sha256
8819 (base32
8820 "0n5jm4g0arjllgqmd2crv8h02i6hs3hlh1zyc7ng7yfpg1mbd8p8"))))
8821 (build-system gnu-build-system)
8822 (arguments
8823 `(#:tests? #f ;no test
8824 #:make-flags
8825 (list "CC=gcc"
8826 (string-append "prefix=" (assoc-ref %outputs "out")))
8827 #:phases
8828 (modify-phases %standard-phases
8829 (delete 'configure)
8830 (add-after 'unpack 'fix-sdl-path
8831 ;; XXX: For some reason, `sdl-config' reports stand-alone SDL
8832 ;; directory, not SDL-union provided as an input to the package.
8833 ;; We force the latter with "--prefix=" option.
8834 (lambda* (#:key inputs #:allow-other-keys)
8835 (substitute* "Makefile"
8836 (("sdl-config" command)
8837 (string-append command " --prefix=" (assoc-ref inputs "sdl"))))
8838 #t))
8839 (add-after 'unpack 'fix-crash
8840 ;; XXX: Songs are not present in the repository, due to licensing
8841 ;; issues. Yet, the game tries to load them, and, since it cannot
8842 ;; find them, crashes. Users cannot add them back, the store being
8843 ;; read-only, so we turn off background music altogether.
8844 (lambda _
8845 (substitute* "src/audio.c"
8846 (("PlayBackgroundMusic\\(new_track\\);" all)
8847 (string-append "// " all)))
8848 #t)))))
8849 (native-inputs
8850 `(("intltool" ,intltool)))
8851 (inputs
8852 `(("sdl" ,(sdl-union (list sdl sdl-image sdl-mixer)))
8853 ("zlib" ,zlib)))
8854 (home-page "https://gitlab.com/meritous/meritous")
8855 (synopsis "Action-adventure dungeon crawl game")
8856 (description "Far below the surface of the planet is a place of limitless
8857 power. Those that seek to control such a utopia will soon bring an end to
8858 themselves. Seeking an end to the troubles that plague him, PSI user Merit
8859 journeys into the hallowed Orcus Dome in search of answers.
8860
8861 Meritous is a action-adventure game with simple controls but a challenge to
8862 find a balance of power versus recovery time during real-time battles. Set in
8863 a procedurally generated world, the player can explore thousands of rooms in
8864 search of powerful artifacts, tools to help them, and to eventually free the
8865 Orcus Dome from evil.")
8866 (license license:gpl3+)))
8867
8868 (define-public marble-marcher
8869 (let ((commit "e580460a0c3826f9b28ab404607942a8ecb625d7")
8870 (revision "1"))
8871 (package
8872 (name "marble-marcher")
8873 (version (git-version "0" revision commit))
8874 (source (origin
8875 (method git-fetch)
8876 (uri (git-reference
8877 (url "https://github.com/HackerPoet/MarbleMarcher")
8878 (commit commit)))
8879 (file-name (git-file-name name version))
8880 (sha256
8881 (base32
8882 "0jjv832hl1v170n6gryp2sr3lgqndi9ab841qvgqk68bks8701mx"))))
8883 (build-system cmake-build-system)
8884 (arguments
8885 `(#:tests? #f ; there are none
8886 #:phases
8887 (modify-phases %standard-phases
8888 (add-after 'unpack 'embed-asset-directory
8889 (lambda* (#:key outputs #:allow-other-keys)
8890 (let ((assets (string-append (assoc-ref outputs "out")
8891 "/share/marble-marcher/assets/")))
8892 ;; Some of the files we're patching are
8893 ;; ISO-8859-1-encoded, so choose it as the default
8894 ;; encoding so the byte encoding is preserved.
8895 (with-fluids ((%default-port-encoding #f))
8896 (substitute* "src/Resource.rc"
8897 (("../assets/icon.ico")
8898 (string-append assets "icon.ico")))
8899 (substitute* "src/Res.h"
8900 (("assets/") assets))))
8901 #t))
8902 (replace 'install
8903 (lambda* (#:key outputs #:allow-other-keys)
8904 (let* ((out (assoc-ref outputs "out"))
8905 (assets (string-append out "/share/marble-marcher/assets"))
8906 (bin (string-append out "/bin/")))
8907 (mkdir-p bin)
8908 (mkdir-p assets)
8909 (copy-recursively "../source/assets" assets)
8910 (install-file "MarbleMarcher" bin))
8911 #t)))))
8912 (inputs
8913 `(("eigen" ,eigen)
8914 ("mesa" ,mesa)
8915 ("sfml" ,sfml)))
8916 (native-inputs
8917 `(("pkg-config" ,pkg-config)))
8918 (home-page "https://codeparade.itch.io/marblemarcher")
8919 (synopsis "Guide a marble across fractal landscapes")
8920 (description "Marble Marcher is a video game that uses a fractal physics
8921 engine and fully procedural rendering to produce beautiful and unique
8922 gameplay. The game is played on the surface of evolving fractals. The goal
8923 of the game is to get your marble to the flag as quickly as possible. But be
8924 careful not to fall off the level or get crushed by the fractal! There are 24
8925 levels to unlock.")
8926 ;; Code is under GPLv2+, assets are under CC-BY-SA 3.0 and OFL 1.1.
8927 (license (list license:gpl2+
8928 license:silofl1.1
8929 license:cc-by-sa3.0)))))
8930
8931 ;; This must be updated together with flightgear.
8932 (define simgear
8933 (package
8934 (name "simgear")
8935 (version "2018.3.5")
8936 (source
8937 (origin
8938 (method url-fetch)
8939 (uri (string-append "mirror://sourceforge/flightgear/release-"
8940 (version-major+minor version) "/"
8941 "simgear-" version ".tar.bz2"))
8942 (sha256
8943 (base32 "1vkqm66r1205k3hdjmx5wmx5kvmsb0dgfzrs8n5gqnxj8szs42dl"))))
8944 (build-system cmake-build-system)
8945 (arguments
8946 `(#:phases
8947 (modify-phases %standard-phases
8948 (replace 'check
8949 (lambda _
8950 ;; Skip tests that require internet access.
8951 (invoke "ctest" "-E" "(http|dns)"))))))
8952 (inputs
8953 `(("boost" ,boost-for-mysql) ; fails with 1.69
8954 ("curl" ,curl)
8955 ("expat" ,expat)
8956 ("mesa" ,mesa)
8957 ("openal" ,openal)
8958 ("openscenegraph" ,openscenegraph-3.4)
8959 ("zlib" ,zlib)))
8960 (home-page "https://home.flightgear.org/")
8961 (synopsis "Libraries for 3D simulations and games")
8962 (description "SimGear is a set of libraries designed to be used as
8963 building blocks for quickly assembling 3D simulations, games, and
8964 visualization applications. SimGear is developed by the FlightGear project
8965 and also provides the base for the FlightGear Flight Simulator.")
8966 (license license:lgpl2.0+)))
8967
8968 (define-public flightgear
8969 (package
8970 (name "flightgear")
8971 (version (package-version simgear))
8972 (source
8973 (origin
8974 (method url-fetch)
8975 (uri (string-append "mirror://sourceforge/flightgear/release-"
8976 (version-major+minor version) "/"
8977 "flightgear-" version ".tar.bz2"))
8978 (sha256
8979 (base32 "0ya3vb539kwi1qrifqhsj5j3k4w6s06hrllp2vdzxf6id7cgf0hc"))
8980 (modules '((guix build utils)))
8981 (snippet
8982 '(begin
8983 ;; There are some bundled libraries.
8984 (for-each delete-file-recursively
8985 '("3rdparty/sqlite3/"))
8986 #t))))
8987 (build-system cmake-build-system)
8988 (arguments
8989 `(#:configure-flags
8990 (list "-DSYSTEM_SQLITE=ON"
8991 (string-append "-DFG_DATA_DIR="
8992 (assoc-ref %outputs "out")
8993 "/share/flightgear"))
8994 ;; TODO: test cannot be run because the "run_test_suite" executable
8995 ;; does not seem to be built.
8996 #:tests? #f
8997 #:phases
8998 (modify-phases %standard-phases
8999 (add-after 'install 'wrap-executable
9000 (lambda* (#:key inputs outputs #:allow-other-keys)
9001 (let ((out (assoc-ref outputs "out")))
9002 (wrap-program (string-append out "/bin/fgfs")
9003 `("QT_PLUGIN_PATH" ":" prefix
9004 ,(map (lambda (label)
9005 (string-append (assoc-ref inputs label)
9006 "/lib/qt5/plugins"))
9007 '("qtbase" "qtdeclarative" "qtsvg")))
9008 `("QML2_IMPORT_PATH" ":" prefix
9009 ,(map (lambda (label)
9010 (string-append (assoc-ref inputs label)
9011 "/lib/qt5/qml"))
9012 '("qtdeclarative" "qtsvg"))))
9013 #t)))
9014 (add-after 'install 'install-data
9015 (lambda* (#:key inputs outputs #:allow-other-keys)
9016 (let ((share (string-append (assoc-ref outputs "out") "/share/flightgear")))
9017 (mkdir-p share)
9018 (with-directory-excursion share
9019 (invoke "tar" "xf" (assoc-ref inputs "flightgear-data")
9020 "--strip-components=1")))
9021 #t)))))
9022 (inputs
9023 `(("boost" ,boost-for-mysql) ; same as simgear
9024 ("dbus" ,dbus)
9025 ("eudev" ,eudev)
9026 ("freeglut" ,freeglut)
9027 ("freetype" ,freetype)
9028 ("glew" ,glew)
9029 ("libpng" ,libpng)
9030 ("openal" ,openal)
9031 ("openscenegraph" ,openscenegraph-3.4)
9032 ("plib" ,plib)
9033 ("qtbase" ,qtbase)
9034 ("qtdeclarative" ,qtdeclarative)
9035 ("qtsvg" ,qtsvg)
9036 ("simgear" ,simgear)
9037 ("speexdsp" ,speexdsp)
9038 ("sqlite" ,sqlite)
9039 ("zlib" ,zlib)))
9040 (native-inputs
9041 `(("cppunit" ,cppunit)
9042 ("pkg-config" ,pkg-config)
9043 ("qttools" ,qttools)
9044 ("flightgear-data"
9045 ,(origin
9046 (method url-fetch)
9047 (uri (string-append "mirror://sourceforge/flightgear/release-"
9048 (version-major+minor version) "/"
9049 "FlightGear-" version "-data.tar.bz2"))
9050 (sha256
9051 (base32
9052 "04fv9za5zlyxlyfh6jx78y42l3jazvzl9dq2y6rzxqlcc9g5swhk"))))))
9053 (home-page "https://home.flightgear.org/")
9054 (synopsis "Flight simulator")
9055 (description "The goal of the FlightGear project is to create a
9056 sophisticated flight simulator framework for use in research or academic
9057 environments, pilot training, as an industry engineering tool, for DIY-ers to
9058 pursue their favorite interesting flight simulation idea, and last but
9059 certainly not least as a fun, realistic, and challenging desktop flight
9060 simulator.")
9061 (license license:gpl2+)))
9062
9063 (define-public jumpnbump
9064 (package
9065 (name "jumpnbump")
9066 (version "1.61")
9067 (source (origin
9068 (method git-fetch)
9069 (uri (git-reference
9070 (url "https://gitlab.com/LibreGames/jumpnbump.git")
9071 (commit version)))
9072 (file-name (git-file-name name version))
9073 (sha256
9074 (base32
9075 "12lwl5sl5n009nb83r8l4lakb9286csqdf1ynpmwwydy17giqsdp"))))
9076 (build-system gnu-build-system)
9077 (arguments
9078 `(#:make-flags
9079 (list "CC=gcc"
9080 (string-append "PREFIX=" (assoc-ref %outputs "out")))
9081 #:tests? #f ;no test
9082 #:phases
9083 (modify-phases %standard-phases
9084 (delete 'configure) ;no configure script
9085 (add-after 'unpack 'fix-sdl-path
9086 ;; XXX: For some reason, `sdl2-config' reports stand-alone SDL
9087 ;; directory, not SDL-union provided as an input to the package.
9088 ;; We force the latter with "--prefix=" option.
9089 (lambda* (#:key inputs #:allow-other-keys)
9090 (substitute* "Makefile"
9091 (("sdl2-config" command)
9092 (string-append command " --prefix=" (assoc-ref inputs "sdl"))))
9093 #t)))))
9094 (inputs
9095 `(("bzip2" ,bzip2)
9096 ("sdl" ,(sdl-union (list sdl2 sdl2-mixer sdl2-net)))
9097 ("zlib" ,zlib)))
9098 (native-inputs
9099 `(("gettext" ,gettext-minimal))) ;for msgfmt
9100 (home-page "https://gitlab.com/LibreGames/jumpnbump")
9101 (synopsis "Multiplayer platform game with bunnies")
9102 (description "You, as a bunny, have to jump on your opponents to make them
9103 explode. It is a true multiplayer game; you cannot play this alone. You can
9104 play with up to four players simultaneously. It has network support.")
9105 (license license:gpl2+)))
9106
9107 (define-public hedgewars
9108 (package
9109 (name "hedgewars")
9110 (version "1.0.0")
9111 (source (origin
9112 (method url-fetch)
9113 (uri (string-append "https://www.hedgewars.org/download/releases/"
9114 "hedgewars-src-" version ".tar.bz2"))
9115 (sha256
9116 (base32
9117 "0nqm9w02m0xkndlsj6ys3wr0ik8zc14zgilq7k6fwjrf3zk385i1"))))
9118 (build-system cmake-build-system)
9119 (arguments
9120 ;; XXX: Engine is built as Pascal source code, requiring Free Pascal
9121 ;; Compiler, which we haven't packaged yet. With the flag below, we use
9122 ;; a Pascal to C translator and Clang instead.
9123 `(#:configure-flags (list "-DBUILD_ENGINE_C=ON"
9124 "-Dhaskell_flags=-dynamic;-fPIC")
9125 #:phases
9126 (modify-phases %standard-phases
9127 (replace 'check
9128 (lambda _ (invoke "ctest")))
9129 (add-after 'install 'install-icon
9130 (lambda _
9131 ;; Install icon for the desktop file.
9132 (let* ((out (assoc-ref %outputs "out"))
9133 (icons (string-append out "/share/icons/hicolor/512x512/apps")))
9134 (with-directory-excursion (string-append "../hedgewars-src-" ,version)
9135 (install-file "misc/hedgewars.png" icons)))
9136 #t)))))
9137 (inputs
9138 `(("ffmpeg" ,ffmpeg)
9139 ("freeglut" ,freeglut)
9140 ("ghc-entropy" ,ghc-entropy)
9141 ("ghc-hslogger" ,ghc-hslogger)
9142 ("ghc-network" ,ghc-network)
9143 ("ghc-random" ,ghc-random)
9144 ("ghc-regex-tdfa" ,ghc-regex-tdfa)
9145 ("ghc-sandi" ,ghc-sandi)
9146 ("ghc-sha" ,ghc-sha)
9147 ("ghc-utf8-string" ,ghc-utf8-string)
9148 ("ghc-vector" ,ghc-vector)
9149 ("ghc-zlib" ,ghc-zlib)
9150 ("glew" ,glew)
9151 ("libpng" ,libpng)
9152 ("lua" ,lua-5.1)
9153 ("physfs" ,physfs)
9154 ("qtbase" ,qtbase)
9155 ("sdl" ,(sdl-union
9156 (list sdl2 sdl2-mixer sdl2-net sdl2-ttf sdl2-image)))))
9157 (native-inputs
9158 `(("clang" ,clang)
9159 ("ghc" ,ghc)
9160 ("pkg-config" ,pkg-config)
9161 ("qttools" ,qttools)))
9162 (home-page "https://hedgewars.org/")
9163 (synopsis "Turn-based artillery game featuring fighting hedgehogs")
9164 (description
9165 "Hedgewars is a turn based strategy, artillery, action and comedy game,
9166 featuring the antics of pink hedgehogs with attitude as they battle from the
9167 depths of hell to the depths of space.
9168
9169 As commander, it's your job to assemble your crack team of hedgehog soldiers
9170 and bring the war to your enemy.")
9171 ;; Software as a whole is licensed under GPL-2 terms. Artwork and
9172 ;; scripts are distributed under various terms.
9173 (license (list license:gpl2
9174 license:bsd-2 license:bsd-3 license:cc-by3.0 license:cc0
9175 license:expat license:fdl1.3+ license:public-domain
9176 license:zlib))))
9177
9178 (define-public harmonist
9179 (package
9180 (name "harmonist")
9181 (version "0.3.0")
9182 (source (origin
9183 (method git-fetch)
9184 (uri (git-reference
9185 (url "https://git.tuxfamily.org/harmonist/harmonist.git")
9186 (commit (string-append "v" version))))
9187 (file-name (git-file-name name version))
9188 (sha256
9189 (base32
9190 "146wiyanag0zqj6fhyll2sw6sydnnll8mgxhhqf9sjqsl2rx4s5r"))))
9191 (build-system go-build-system)
9192 (arguments
9193 '(#:import-path "git.tuxfamily.org/harmonist/harmonist"))
9194 (inputs
9195 `(("go-github.com-nsf-termbox-go" ,go-github.com-nsf-termbox-go)))
9196 (home-page "https://harmonist.tuxfamily.org/")
9197 (synopsis "Stealth coffee-break roguelike game")
9198 (description "Harmonist: Dayoriah Clan Infiltration is a stealth
9199 coffee-break roguelike game. The game has a heavy focus on tactical
9200 positioning, light and noise mechanisms, making use of various terrain types
9201 and cones of view for monsters. Aiming for a replayable streamlined experience,
9202 the game avoids complex inventory management and character building, relying
9203 on items and player adaptability for character progression.")
9204 (license license:isc)))
9205
9206 (define-public harmonist-tk
9207 (package
9208 (inherit harmonist)
9209 (name "harmonist-tk")
9210 (arguments
9211 (append
9212 (package-arguments harmonist)
9213 `(#:phases
9214 (modify-phases %standard-phases
9215 (replace 'build
9216 (lambda _
9217 (invoke "go" "install" "-v" "-x" "--tags" "tk"
9218 "git.tuxfamily.org/harmonist/harmonist")))
9219 (replace 'check
9220 (lambda _
9221 (invoke "go" "test" "--tags" "tk"
9222 "git.tuxfamily.org/harmonist/harmonist")))))))
9223 (inputs
9224 `(("go-github.com-nsf-gothic" ,go-github.com-nsf-gothic)))))
9225
9226 (define-public drascula
9227 (package
9228 (name "drascula")
9229 (version "1.0")
9230 (source (origin
9231 (method url-fetch)
9232 (uri (string-append "mirror://sourceforge/scummvm/extras/"
9233 "Drascula_%20The%20Vampire%20Strikes%20Back/"
9234 "drascula-" version ".zip"))
9235 (sha256
9236 (base32
9237 "1pj29rpb754sn6a56f8brfv6f2m1p5qgaqik7d68pfi2bb5zccdp"))))
9238 (build-system trivial-build-system)
9239 (arguments
9240 `(#:modules ((guix build utils))
9241 #:builder
9242 (begin
9243 (use-modules (guix build utils)
9244 (ice-9 match))
9245 (let* ((out (assoc-ref %outputs "out"))
9246 (share (string-append out "/share/drascula"))
9247 (scummvm (assoc-ref %build-inputs "scummvm")))
9248 ;; Install data.
9249 (let ((unzip (string-append (assoc-ref %build-inputs "unzip")
9250 "/bin/unzip"))
9251 (doc (string-append out "/share/doc/" ,name "-" ,version)))
9252 (for-each
9253 (lambda (input)
9254 (invoke unzip
9255 "-j"
9256 (assoc-ref %build-inputs input)
9257 "-x" "__MACOSX")
9258 ;; Every input provides "readme.txt", and we want to
9259 ;; preserve them all. Therefore we rename them first.
9260 (match input
9261 ("drascula-int"
9262 (rename-file "readme.txt" "readme-international.txt"))
9263 ("drascula-audio"
9264 (rename-file "readme.txt" "readme-audio.txt"))
9265 (_ #f))
9266 ;; Install documentation.
9267 (for-each (lambda (f) (install-file f doc))
9268 (find-files "." "\\.(txt|doc)$"))
9269 ;; Install data.
9270 (for-each (lambda (f) (install-file f share))
9271 (find-files "." "\\.(ogg|00[0-9])$")))
9272 '("drascula-audio" "drascula-int" "source")))
9273 ;; Create standalone executable.
9274 (let* ((bin (string-append out "/bin"))
9275 (executable (string-append bin "/drascula"))
9276 (bash (string-append (assoc-ref %build-inputs "bash")
9277 "/bin/bash")))
9278 (mkdir-p bin)
9279 (with-output-to-file executable
9280 (lambda ()
9281 (format #t "#!~a~%" bash)
9282 (format #t
9283 "exec ~a/bin/scummvm --path=~a drascula~%"
9284 scummvm share)))
9285 (chmod executable #o755))
9286 ;; Create desktop file. There is no dedicated icon for the
9287 ;; game, so we borrow SCUMMVM's.
9288 (let ((apps (string-append out "/share/applications")))
9289 (mkdir-p apps)
9290 (make-desktop-entry-file
9291 (string-append apps "/drascula.desktop")
9292 #:name "Drascula: The Vampire Strikes Back"
9293 #:generic-name "Drascula"
9294 #:exec (string-append out "/bin/drascula")
9295 #:icon (string-append scummvm "/share/icons/hicolor/scalable/apps/scummvm.svg")
9296 #:categories '("AdventureGame" "Game" "RolePlaying")
9297 #:keywords '("game" "adventure" "roleplaying" "2D" "fantasy")
9298 #:comment '((#f "Classic 2D point and click adventure game")
9299 ("de" "Klassisches 2D-Abenteuerspiel in Zeigen-und-Klicken-Manier")
9300 ("fr" "Jeu classique d'aventure pointer-et-cliquer en 2D")
9301 ("it" "Gioco classico di avventura punta e clicca 2D"))))
9302 #t))))
9303 (native-inputs
9304 `(("bash" ,bash)
9305 ("unzip" ,unzip)))
9306 (inputs
9307 `(("scummvm" ,scummvm)
9308 ("drascula-int"
9309 ,(let ((version "1.1"))
9310 (origin
9311 (method url-fetch)
9312 (uri (string-append "mirror://sourceforge/scummvm/extras/"
9313 "Drascula_%20The%20Vampire%20Strikes%20Back/"
9314 "drascula-int-" version ".zip"))
9315 (sha256
9316 (base32
9317 "12236i7blamal92p1i8dgp3nhp2yicics4whsl63v682bj999n14")))))
9318 ("drascula-audio"
9319 ,(let ((version "2.0"))
9320 (origin
9321 (method url-fetch)
9322 (uri (string-append "mirror://sourceforge/scummvm/extras/"
9323 "Drascula_%20The%20Vampire%20Strikes%20Back/"
9324 "drascula-audio-" version ".zip"))
9325 (sha256
9326 (base32
9327 "00g4izmsqzxb8ry1vhfx6jrygl58lvlij09nw01ds4zddsiznsky")))))))
9328 (home-page "https://www.scummvm.org")
9329 (synopsis "Classic 2D point and click adventure game")
9330 (description "Drascula: The Vampire Strikes Back is a classic humorous 2D
9331 point and click adventure game.
9332
9333 In Drascula you play the role of John Hacker, a British estate agent, that
9334 gets to meet a gorgeous blond girl who is kidnapped by the notorious vampire
9335 Count Drascula and embark on a fun yet dangerous quest to rescue her.
9336 Unfortunately, Hacker is not aware of Drascula's real ambitions: DOMINATING
9337 the World and demonstrating that he is even more evil than his brother Vlad.")
9338 ;; Drascula uses a BSD-like license.
9339 (license (license:non-copyleft "file:///readme.txt"))))
9340
9341 (define (make-lure-package name language hash)
9342 (package
9343 (name name)
9344 (version "1.1")
9345 (source
9346 (origin
9347 (method url-fetch)
9348 (uri (string-append
9349 "mirror://sourceforge/scummvm/extras/"
9350 "Lure%20of%20the%20Temptress/"
9351 name "-" version ".zip"))
9352 (sha256
9353 (base32 hash))))
9354 (build-system trivial-build-system)
9355 (arguments
9356 `(#:modules ((guix build utils))
9357 #:builder
9358 (begin
9359 (use-modules (guix build utils))
9360 (let* ((out (assoc-ref %outputs "out"))
9361 (share (string-append out "/share"))
9362 (data (string-append share "/" ,name "/" ,language))
9363 (apps (string-append share "/applications"))
9364 (bin (string-append out "/bin"))
9365 (executable (string-append bin "/" ,name))
9366 (scummvm (assoc-ref %build-inputs "scummvm")))
9367 (let ((unzip (string-append (assoc-ref %build-inputs "unzip")
9368 "/bin/unzip")))
9369 (invoke unzip "-j" (assoc-ref %build-inputs "source")))
9370 (let ((doc (string-append share "/doc/" ,name "-" ,version)))
9371 (for-each (lambda (f) (install-file f doc))
9372 (find-files "." "\\.(txt|PDF|pdf)$")))
9373 (for-each (lambda (f) (install-file f data))
9374 (find-files "." "\\.(vga|VGA)$"))
9375 ;; Build the executable.
9376 (mkdir-p bin)
9377 (let ((bash (assoc-ref %build-inputs "bash")))
9378 (with-output-to-file executable
9379 (lambda ()
9380 (format #t "#!~a/bin/bash~%" bash)
9381 (format #t "exec ~a/bin/scummvm -q ~a -p ~a lure~%"
9382 scummvm ,language data))))
9383 (chmod executable #o755)
9384 ;; Create desktop file. There is no dedicated
9385 ;; icon for the game, so we borrow SCUMMVM's.
9386 (mkdir-p apps)
9387 (with-output-to-file (string-append apps "/" ,name ".desktop")
9388 (lambda _
9389 (format #t
9390 "[Desktop Entry]~@
9391 Name=Lure of the Temptress~@
9392 GenericName=Lure~@
9393 Exec=~a~@
9394 Icon=~a/share/icons/hicolor/scalable/apps/scummvm.svg~@
9395 Categories=AdventureGame;Game;RolePlaying;~@
9396 Keywords=game;adventure;roleplaying;2D,fantasy;~@
9397 Comment=Classic 2D point and click adventure game~@
9398 Comment[de]=klassisches 2D-Abenteuerspiel in Zeigen-und-Klicken-Manier~@
9399 Comment[fr]=Jeu classique d'aventure pointer-et-cliquer en 2D~@
9400 Comment[it]=Gioco classico di avventura punta e clicca 2D~@
9401 Type=Application~%"
9402 executable scummvm)))
9403 #t))))
9404 (native-inputs
9405 `(("unzip" ,unzip)))
9406 (inputs
9407 `(("bash" ,bash)
9408 ("scummvm" ,scummvm)))
9409 (home-page "https://www.scummvm.org")
9410 (synopsis "2D point and click fantasy adventure game")
9411 (description
9412 "Lure of the Temptress is a classic 2D point and click adventure game.
9413
9414 You are Diermot, an unwilling hero who'd prefer a quiet life, and are, to all
9415 intents and purposes, a good man. After decades of unrest the King has united
9416 the warring factions in his kingdom and all his lands are at peace, except
9417 a remote region around a town called Turnvale. A revolt has recently taken
9418 place in Turnvale, a revolt orchestrated by an apprentice sorceress called
9419 Selena, the titular temptress. The king calls together his finest horsemen
9420 and heads off (with you in tow) to Turnvale just to witness how hellish
9421 mercenary monsters called Skorl are invading the town.
9422
9423 The king's men are defeated, the king is killed and you fall of your horse and
9424 bang your head heavily on the ground. You have been *unconscious for a while
9425 when you realize that you are in a dingy cell guarded by a not so friendly
9426 Skorl. Maybe it would be an idea to try and escape...")
9427 (license (license:non-copyleft "file:///README"))))
9428
9429 (define-public lure
9430 (make-lure-package
9431 "lure" "en" "0201i70qcs1m797kvxjx3ygkhg6kcl5yf49sihba2ga8l52q45zk"))
9432
9433 (define-public lure-de
9434 (make-lure-package
9435 "lure-de" "de" "0sqq7h5llml6rv85x0bfv4bgzwhs4c82p4w4zmfcaab6cjlad0sy"))
9436
9437 (define-public lure-es
9438 (make-lure-package
9439 "lure-es" "es" "1dvv5znvlsakw6w5r16calv9jkgw27aymgybsf4q22lcmpxbj1lk"))
9440
9441 (define-public lure-fr
9442 (make-lure-package
9443 "lure-fr" "fr" "1y51jjb7f8023832g44vd1jsb6ni85586pi2n5hjg9qjk6gi90r9"))
9444
9445 (define-public lure-it
9446 (make-lure-package
9447 "lure-it" "it" "1ks6n39r1cllisrrh6pcr39swsdv7ng3gx5c47vaw71zzfr70hjj"))
9448
9449 (define (make-queen-package name file-prefix release language hash)
9450 (package
9451 (name name)
9452 (version release)
9453 (source
9454 (origin
9455 (method url-fetch)
9456 (uri (string-append "mirror://sourceforge/scummvm/extras/"
9457 "Flight%20of%20the%20Amazon%20Queen/"
9458 file-prefix release ".zip"))
9459 (sha256
9460 (base32 hash))))
9461 (build-system trivial-build-system)
9462 (arguments
9463 `(#:modules ((guix build utils))
9464 #:builder
9465 (begin
9466 (use-modules (guix build utils))
9467 (let* ((out (assoc-ref %outputs "out"))
9468 (share (string-append out "/share"))
9469 (data (string-append share "/" ,name))
9470 (apps (string-append share "/applications"))
9471 (bin (string-append out "/bin"))
9472 (executable (string-append bin "/" ,name))
9473 (scummvm (assoc-ref %build-inputs "scummvm")))
9474 (let ((unzip (string-append (assoc-ref %build-inputs "unzip")
9475 "/bin/unzip")))
9476 (invoke unzip "-j" (assoc-ref %build-inputs "source")))
9477 (let ((doc (string-append share "/doc/" ,name "-" ,version)))
9478 (install-file "readme.txt" doc))
9479 (install-file "queen.1c" data)
9480 (mkdir-p bin)
9481 (let ((bash (assoc-ref %build-inputs "bash")))
9482 (with-output-to-file executable
9483 (lambda ()
9484 (format #t "#!~a/bin/bash~%" bash)
9485 (format #t "exec ~a/bin/scummvm -q fr -p ~a queen~%"
9486 scummvm data))))
9487 (chmod executable #o755)
9488 ;; Create desktop file. There is no dedicated
9489 ;; icon for the game, so we borrow SCUMMVM's.
9490 (mkdir-p apps)
9491 (with-output-to-file (string-append apps "/" ,name ".desktop")
9492 (lambda _
9493 (format #t
9494 "[Desktop Entry]~@
9495 Name=Flight of the Amazon Queen~@
9496 GenericName=Queen~@
9497 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~@
9498 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~@
9499 Type=Application~@
9500 Exec=~a~@
9501 Icon=~a/share/icons/hicolor/scalable/apps/scummvm.svg~@
9502 Categories=AdventureGame;Game;RolePlaying;~@
9503 Keywords=adventure;game;roleplaying;fantasy;~%"
9504 executable scummvm))))
9505 #t)))
9506 (native-inputs
9507 `(("unzip" ,unzip)))
9508 (inputs
9509 `(("bash" ,bash)
9510 ("scummvm" ,scummvm)))
9511 (home-page "https://www.scummvm.org/")
9512 (synopsis "Classic 2D point and click adventure game")
9513 (description "Flight of the Amazon Queen is a 2D point-and-click
9514 adventure game set in the 1940s.
9515
9516 You assume the role of Joe King, a pilot for hire who is given the job
9517 of flying Faye Russell (a famous movie star) into the Amazon jungle
9518 for a photo shoot. Of course, things never go according to plans.
9519 After an unfortunate turn of events they find themselves stranded in
9520 the heart of the Amazon jungle, where Joe will embark on a quest to
9521 rescue a kidnapped princess and in the process, discover the true
9522 sinister intentions of a suspiciously located Lederhosen company. In
9523 a rich 2D environment, Joe will cross paths with a variety of unlikely
9524 jungle inhabitants including, but not limited to, a tribe of Amazon
9525 women and 6-foot-tall pygmies.")
9526 (license (license:non-copyleft "file:///readme.txt"))))
9527
9528 (define-public queen
9529 (make-queen-package
9530 "queen" "FOTAQ_Talkie-" "1.1" "en"
9531 "1a6q71q1dl9vvw2qqsxk5h1sv0gaqy6236zr5905w2is01gdsp52"))
9532
9533 (define-public queen-de
9534 (make-queen-package
9535 "queen-de" "FOTAQ_Ger_talkie-" "1.0" "de"
9536 "13vn43x7214vyprlpqabvv71k890nff3d6fjscflr1ll7acjca3f"))
9537
9538 (define-public queen-fr
9539 (make-queen-package
9540 "queen-fr" "FOTAQ_Fr_Talkie_" "1.0" "fr"
9541 "0hq5g4qrkcwm2kn5i4kv4hijs9hi7bw9xl1vrwd1l69qqn30crwy"))
9542
9543 (define-public queen-it
9544 (make-queen-package
9545 "queen-it" "FOTAQ_It_Talkie_" "1.0" "it"
9546 "1h76y70lrpzfjkm53n4nr364nhyka54vbz9r7sadzyzl7c7ilv4d"))
9547
9548 (define-public sky
9549 (package
9550 (name "sky")
9551 (version "1.2") ;1.3 is floppy version
9552 (source
9553 (origin
9554 (method url-fetch)
9555 (uri (string-append "mirror://sourceforge/scummvm/extras/"
9556 "Beneath%20a%20Steel%20Sky/"
9557 "bass-cd-" version ".zip"))
9558 (sha256
9559 (base32 "14s5jz67kavm8l15gfm5xb7pbpn8azrv460mlxzzvdpa02a9n82k"))))
9560 (build-system trivial-build-system)
9561 (arguments
9562 `(#:modules ((guix build utils))
9563 #:builder
9564 (begin
9565 (use-modules (guix build utils))
9566 (let* ((out (assoc-ref %outputs "out"))
9567 (share (string-append out "/share"))
9568 (data (string-append share "/" ,name))
9569 (apps (string-append share "/applications"))
9570 (bin (string-append out "/bin"))
9571 (executable (string-append bin "/" ,name))
9572 (scummvm (assoc-ref %build-inputs "scummvm")))
9573 (let ((unzip (string-append (assoc-ref %build-inputs "unzip")
9574 "/bin/unzip")))
9575 (invoke unzip "-j" (assoc-ref %build-inputs "source")))
9576 (let ((doc (string-append share "/doc/bass-" ,version)))
9577 (install-file "readme.txt" doc))
9578 (for-each (lambda (f) (install-file f data))
9579 (find-files "." "^sky\\."))
9580 ;; Build the executable.
9581 (mkdir-p bin)
9582 (let ((bash (assoc-ref %build-inputs "bash")))
9583 (with-output-to-file executable
9584 (lambda ()
9585 (format #t "#!~a/bin/bash~%" bash)
9586 (format #t "exec ~a/bin/scummvm -p ~a sky~%" scummvm data))))
9587 (chmod executable #o755)
9588 ;; Create desktop file. There is no dedicated
9589 ;; icon for the game, so we borrow SCUMMVM's.
9590 (mkdir-p apps)
9591 (with-output-to-file (string-append apps "/" ,name ".desktop")
9592 (lambda _
9593 (format #t
9594 "[Desktop Entry]~@
9595 Name=Beneath a Steel Sky~@
9596 GenericName=Bass~@
9597 Exec=~a~@
9598 Icon=~a/share/icons/hicolor/scalable/apps/scummvm.svg~@
9599 Categories=AdventureGame;Game;RolePlaying;~@
9600 Keywords=adventure;game;roleplaying;cyberpunk;~@
9601 Comment=A science-fiction adventure game set in a bleak post-apocalyptic vision of the future~@
9602 Comment[de]=Ein Science-Fiction-Abenteuerspiel \
9603 angesiedelt in einer düsteren, postapokalyptischen Vision der Zukunft~@
9604 Type=Application~%"
9605 executable scummvm)))
9606 #t))))
9607 (native-inputs
9608 `(("unzip" ,unzip)))
9609 (inputs
9610 `(("bash" ,bash)
9611 ("scummvm" ,scummvm)))
9612 (home-page "https://www.scummvm.org/")
9613 (synopsis "Classic 2D point and click science-fiction adventure game")
9614 (description
9615 "Beneath a Steel Sky is a science-fiction thriller set in a bleak
9616 post-apocalyptic vision of the future. It revolves around Union City,
9617 where selfishness, rivalry, and corruption by its citizens seems to be
9618 all too common, those who can afford it live underground, away from
9619 the pollution and social problems which are plaguing the city.
9620
9621 You take on the role of Robert Foster, an outcast of sorts from the
9622 city since a boy who was raised in a remote environment outside of
9623 Union City simply termed ``the gap''. Robert's mother took him away
9624 from Union City as a child on their way to ``Hobart'' but the
9625 helicopter crashed on its way. Unfortunately, Robert's mother died,
9626 but he survived and was left to be raised by a local tribe from the
9627 gap.
9628
9629 Years later, Union City security drops by and abducts Robert, killing
9630 his tribe in the process; upon reaching the city the helicopter taking
9631 him there crashes with him escaping, high upon a tower block in the
9632 middle of the city. He sets out to discover the truth about his past,
9633 and to seek vengeance for the killing of his tribe.")
9634 (license (license:non-copyleft "file:///readme.txt"))))
9635
9636 (define-public gnurobots
9637 (package
9638 (name "gnurobots")
9639 (version "1.2.0")
9640 (source
9641 (origin
9642 (method url-fetch)
9643 (uri (string-append "mirror://gnu/gnurobots/gnurobots-"
9644 version ".tar.gz"))
9645 (sha256
9646 (base32
9647 "07gi3lsmbzzsjambgixj6xy79lh22km84z7bnzgwzxdy806lyvwb"))))
9648 (build-system gnu-build-system)
9649 (inputs
9650 `(("glib" ,glib)
9651 ("gtk+" ,gtk+-2)
9652 ("vte" ,vte/gtk+-2)
9653 ("readline" ,readline)
9654 ("guile" ,guile-1.8)))
9655 (native-inputs
9656 `(("pkg-config" ,pkg-config)))
9657 (arguments
9658 `(#:make-flags
9659 (list
9660 ;; Do not abort build on "deprecated-declarations" warnings.
9661 "CFLAGS=-Wno-error=deprecated-declarations"
9662 ;; Find readline headers in sub-directory.
9663 (string-append "READLINE_CFLAGS=-I"
9664 (assoc-ref %build-inputs "readline")
9665 "/include/readline/"))
9666 #:phases
9667 (modify-phases %standard-phases
9668 (add-after 'install 'install-doc
9669 (lambda* (#:key outputs #:allow-other-keys)
9670 (install-file "doc/Robots-HOWTO"
9671 (string-append (assoc-ref outputs "out")
9672 "/share/doc/gnurobots-"
9673 ,version))
9674 #t)))))
9675 (home-page "https://www.gnu.org/software/gnurobots/")
9676 (synopsis "Program a little robot and watch it explore a world")
9677 (description
9678 "GNU Robots is a game in which you program a robot to explore a world
9679 full of enemies that can hurt it, obstacles and food to be eaten. The goal of
9680 the game is to stay alive and collect prizes. The robot program conveniently
9681 may be written in a plain text file in the Scheme programming language.")
9682 (license license:gpl3+)))
9683
9684 (define-public ri-li
9685 (package
9686 (name "ri-li")
9687 (version "2.0.1")
9688 (source (origin
9689 (method url-fetch)
9690 (uri (string-append "mirror://sourceforge/ri-li/"
9691 "Ri-li%20Linux_Unix/Ri-li%20V" version "/"
9692 "Ri-li-" version ".tar.bz2"))
9693 (sha256
9694 (base32
9695 "1gcdsgnnbbn1mb1hkpwniv3fhkaj1nn8gq33v5c16q3wqchcq77p"))
9696 ;; Taken from
9697 ;; <https://github.com/NixOS/nixpkgs/blob/master/pkgs/games/rili/moderinze_cpp.patch>.
9698 ;; It doesn't build otherwise.
9699 (patches (search-patches "ri-li-modernize_cpp.patch"))))
9700 (build-system gnu-build-system)
9701 (arguments
9702 `(#:phases
9703 (modify-phases %standard-phases
9704 ;; Remove "gentoo" subdirectory from Makefile, as it is
9705 ;; missing a make file and generates a build failure.
9706 (add-after 'configure 'fix-build
9707 (lambda _
9708 (substitute* "Makefile"
9709 ((" gentoo") ""))
9710 #t))
9711 (add-after 'install 'install-desktop-file
9712 (lambda* (#:key outputs #:allow-other-keys)
9713 (let* ((out (assoc-ref outputs "out"))
9714 (apps (string-append out "/share/applications"))
9715 (pixmaps (string-append out "/share/pixmaps")))
9716 (for-each (lambda (f) (install-file f pixmaps))
9717 (find-files "data" "\\.(png|ico)$"))
9718 (mkdir-p apps)
9719 (with-output-to-file (string-append apps "/ri-li.desktop")
9720 (lambda _
9721 (format #t
9722 "[Desktop Entry]~@
9723 Name=Ri-li~@
9724 Exec=~a/bin/Ri_li~@
9725 Icon=~a/Ri-li-icon-32x32.png~@
9726 Categories=Game;ArcadeGame;~@
9727 Keywords=toy;train;wooden;snake-like;engine;~@
9728 Comment=a toy simulator game~@
9729 Comment[de]=Ein Spiel mit einem kleinen Zug~@
9730 Comment[fr]=un jeu de petit train~@
9731 Comment[ro_RO]=un joc cu un tren de jucărie~@
9732 Terminal=false~@
9733 Type=Application~%"
9734 out pixmaps))))
9735 #t))
9736 (add-after 'install-desktop-file 'remove-spurious-files
9737 ;; Delete redundant files already installed somewhere else.
9738 (lambda* (#:key outputs #:allow-other-keys)
9739 (let ((out (assoc-ref outputs "out")))
9740 (for-each delete-file
9741 (find-files (string-append out "/share/Ri-li")
9742 "\\.(png|ico)|COPYING"))
9743 #t))))))
9744 (inputs
9745 `(("sdl" ,(sdl-union (list sdl sdl-mixer)))))
9746 (home-page "http://www.ri-li.org")
9747 (synopsis "Toy train simulation game")
9748 (description "Ri-li is a game in which you drive a wooden toy
9749 steam locomotive across many levels and collect all the coaches to
9750 win.")
9751 ;; The project is dual-licensed GPL2+ and GPL3+.
9752 (license (list license:gpl2+ license:gpl3+))))
9753
9754 (define-public freeorion
9755 (package
9756 (name "freeorion")
9757 (version "0.4.10")
9758 (source
9759 (origin
9760 (method url-fetch)
9761 (uri (string-append "https://github.com/freeorion/freeorion/releases/"
9762 "download/v" version "/FreeOrion_v" version
9763 "_2020-07-10.f3d403e_Source.tar.gz"))
9764 (sha256
9765 (base32 "12xspixrkx6mmmsdqjha0hg02r4y73pk229l0wjq9s0yp8nb8ap7"))
9766 (modules '((guix build utils)))
9767 (snippet
9768 '(begin
9769 ;; There are some bundled fonts.
9770 (for-each delete-file-recursively '("default/data/fonts"))
9771 #t))))
9772 (build-system cmake-build-system)
9773 (arguments
9774 '(#:tests? #f ;no test
9775 #:phases
9776 (modify-phases %standard-phases
9777 (add-after 'unpack 'unbundle-fonts
9778 (lambda* (#:key inputs #:allow-other-keys)
9779 (let ((roboto-dir (string-append (assoc-ref inputs "font-roboto")
9780 "/share/fonts/truetype/")))
9781 (substitute* "UI/ClientUI.cpp"
9782 (("\\(GetRootDataDir.*?Roboto-(Bold|Regular)\\.ttf\"\\)\\.string\\(\\)\\);"
9783 all type)
9784 (string-append "\"" roboto-dir "Roboto-" type ".ttf\");")))
9785 #t))))))
9786 (inputs
9787 `(("boost" ,boost)
9788 ("boost_signals" ,boost-signals2)
9789 ("font-dejavu" ,font-dejavu)
9790 ("font-roboto" ,font-google-roboto)
9791 ("freetype2" ,freetype)
9792 ("glew" ,glew)
9793 ("glu" ,glu)
9794 ("libogg" ,libogg)
9795 ("libpng" ,libpng)
9796 ("libvorbis" ,libvorbis)
9797 ("openal" ,openal)
9798 ("python" ,python)
9799 ("sdl2" ,sdl2)
9800 ("zlib" ,zlib)))
9801 (home-page "https://www.freeorion.org/index.php/Main_Page")
9802 (synopsis "Turn-based space empire and galactic conquest computer game")
9803 (description
9804 "FreeOrion is a turn-based space empire and galactic conquest (4X)
9805 computer game being designed and built by the FreeOrion project. Control an
9806 empire with the goal of exploring the galaxy, expanding your territory,
9807 exploiting the resources, and exterminating rival alien empires. FreeOrion is
9808 inspired by the tradition of the Master of Orion games, but is not a clone or
9809 remake of that series or any other game.")
9810 ;; Source code is released under gpl2. Artwork, music and sounds, and
9811 ;; in-game text are released under cc-by-sa3.0. Game content scripts are
9812 ;; released under both gpl2 and cc-by-sa3.0. Bundled Gigi library is
9813 ;; released under lgpl2.1+.
9814 (license (list license:gpl2 license:cc-by-sa3.0 license:lgpl2.1+))))
9815
9816 (define-public leela-zero
9817 (package
9818 (name "leela-zero")
9819 (version "0.17")
9820 (source
9821 (origin
9822 (method git-fetch)
9823 (uri (git-reference
9824 (url "https://github.com/leela-zero/leela-zero")
9825 (commit (string-append "v" version))))
9826 (file-name (git-file-name name version))
9827 (sha256
9828 (base32
9829 "17px5iny8mql5c01bymcli7zfssswkzvb2i8gnsmjcck6i2n8srl"))
9830 (patches (search-patches "leela-zero-gtest.patch"))))
9831 (build-system cmake-build-system)
9832 (native-inputs
9833 `(("googletest" ,googletest)))
9834 (inputs
9835 `(("boost" ,boost)
9836 ("ocl-icd" ,ocl-icd)
9837 ("openblas" ,openblas)
9838 ("opencl-headers" ,opencl-headers)
9839 ("qtbase" ,qtbase)
9840 ("zlib" ,zlib)))
9841 (arguments
9842 '(#:configure-flags '("-DUSE_BLAS=YES")
9843 #:phases (modify-phases %standard-phases
9844 (add-before 'configure 'fix-tests
9845 (lambda* (#:key outputs #:allow-other-keys)
9846 (let ((home (getcwd)))
9847 (setenv "HOME" home)
9848 (substitute* "src/tests/gtests.cpp"
9849 (("\\.\\./src/tests/0k\\.txt")
9850 (string-append home "/src/tests/0k.txt"))
9851 (("cfg_gtp_mode = true;")
9852 "cfg_gtp_mode = true; cfg_cpu_only = true;")))
9853 #t))
9854 (replace 'check
9855 (lambda _
9856 (invoke "./tests"))))))
9857 (home-page "https://github.com/leela-zero/leela-zero")
9858 (synopsis "Program playing the game of Go")
9859 (description
9860 "Leela-zero is a Go engine with no human-provided knowledge, modeled after
9861 the AlphaGo Zero paper. The current best network weights file for the engine
9862 can be downloaded from @url{https://zero.sjeng.org/best-network}.")
9863 (license license:gpl3+)))
9864
9865 (define-public q5go
9866 (package
9867 (name "q5go")
9868 (version "1.0")
9869 (source (origin
9870 (method git-fetch)
9871 (uri (git-reference
9872 (url "https://github.com/bernds/q5Go")
9873 (commit (string-append "q5go-" version))))
9874 (file-name (git-file-name name version))
9875 (sha256
9876 (base32
9877 "1gdlfqcqkqv7vph3qwq78d0qz6dhmdsranxq9bmixiisbzkqby31"))))
9878 (build-system gnu-build-system)
9879 (native-inputs
9880 `(("pkg-config" ,pkg-config)))
9881 (inputs
9882 `(("qtbase" ,qtbase)
9883 ("qtmultimedia" ,qtmultimedia)
9884 ("qtsvg" ,qtsvg)))
9885 (arguments
9886 '(#:phases
9887 (modify-phases %standard-phases
9888 (add-after 'unpack 'fix-configure-script
9889 (lambda _
9890 ;; Bypass the unavailable qtchooser program.
9891 (substitute* "configure"
9892 (("test -z \"QTCHOOSER\"")
9893 "false")
9894 (("qtchooser -run-tool=(.*) -qt=qt5" _ command)
9895 command))
9896 #t))
9897 (add-after 'unpack 'fix-paths
9898 (lambda _
9899 (substitute* '("src/pics/Makefile.in"
9900 "src/translations/Makefile.in")
9901 (("\\$\\(datadir\\)/qGo/")
9902 "$(datadir)/q5go/"))
9903 #t))
9904 (add-after 'install 'install-desktop-file
9905 (lambda* (#:key outputs #:allow-other-keys)
9906 (let* ((out (assoc-ref outputs "out"))
9907 (apps (string-append out "/share/applications"))
9908 (pics (string-append out "/share/q5go/pics")))
9909 (delete-file-recursively (string-append out "/share/applnk"))
9910 (delete-file-recursively (string-append out "/share/mimelnk"))
9911 (install-file "../source/src/pics/Bowl.ico" pics)
9912 (mkdir-p apps)
9913 (with-output-to-file (string-append apps "/q5go.desktop")
9914 (lambda _
9915 (format #t
9916 "[Desktop Entry]~@
9917 Name=q5go~@
9918 Exec=~a/bin/q5go~@
9919 Icon=~a/Bowl.ico~@
9920 Categories=Game;~@
9921 Comment=Game of Go~@
9922 Comment[de]=Spiel des Go~@
9923 Comment[eo]=Goo~@
9924 Comment[es]=Juego de Go~@
9925 Comment[fr]=Jeu de Go~@
9926 Comment[ja]=囲碁~@
9927 Comment[ko]=바둑~@
9928 Comment[zh]=围棋~@
9929 Terminal=false~@
9930 Type=Application~%"
9931 out pics))))
9932 #t)))))
9933 (synopsis "Qt GUI to play the game of Go")
9934 (description
9935 "This a tool for Go players which performs the following functions:
9936 @itemize
9937 @item SGF editor,
9938 @item Analysis frontend for Leela Zero (or compatible engines),
9939 @item GTP interface (to play against an engine),
9940 @item IGS client (to play on the internet),
9941 @item Export games to a variety of formats.
9942 @end itemize")
9943 (home-page "https://github.com/bernds/q5Go")
9944 (license license:gpl2+)))
9945
9946 (define-public ktuberling
9947 (package
9948 (name "ktuberling")
9949 (version "20.12.0")
9950 (source
9951 (origin
9952 (method url-fetch)
9953 (uri (string-append "mirror://kde/stable/release-service/" version
9954 "/src/ktuberling-" version ".tar.xz"))
9955 (sha256
9956 (base32 "0mlv9qllg70p26dbrcsr820c70d3ib88hapc1z6wgjhdpmc12ni1"))))
9957 (build-system qt-build-system)
9958 (native-inputs
9959 `(("extra-cmake-modules" ,extra-cmake-modules)
9960 ("kdoctools" ,kdoctools)
9961 ("perl" ,perl)))
9962 (inputs
9963 `(("kcompletion" ,kcompletion)
9964 ("kconfigwidgets" ,kconfigwidgets)
9965 ("kcoreaddons" ,kcoreaddons)
9966 ("kcrash" ,kcrash)
9967 ("kdbusaddons" ,kdbusaddons)
9968 ("ki18n" ,ki18n)
9969 ("kio" ,kio)
9970 ("kwidgetsaddons" ,kwidgetsaddons)
9971 ("kxmlgui" ,kxmlgui)
9972 ("libkdegames" ,libkdegames)
9973 ("python" ,python-wrapper)
9974 ("qtbase" ,qtbase)
9975 ("qtmultimedia" ,qtmultimedia)
9976 ("qtdeclarative" ,qtdeclarative)
9977 ("qtsvg" ,qtsvg)))
9978 (home-page "https://games.kde.org/")
9979 (synopsis "Stamp drawing toy")
9980 (description "KTuberling is a drawing toy intended for small children and
9981 adults who remain young at heart. The game has no winner; the only purpose is
9982 to make the funniest faces you can. Several activities are possible, e.g.:
9983
9984 @itemize
9985 @item Give the potato a funny face, clothes, and other goodies
9986 @item Build a small town, complete with school, zoo, and fire department
9987 @item Create a fantastic moonscape with spaceships and aliens
9988 @item Top a pizza
9989 @end itemize
9990
9991 KTuberling can speak the name of each the object in several languages,
9992 to assist in learning basic vocabulary.
9993
9994 This package is part of the KDE games module.")
9995 (license (list license:gpl2+ license:fdl1.2+))))
9996
9997 (define-public picmi
9998 (package
9999 (name "picmi")
10000 (version "20.12.0")
10001 (source
10002 (origin
10003 (method url-fetch)
10004 (uri (string-append "mirror://kde/stable/release-service/" version
10005 "/src/picmi-" version ".tar.xz"))
10006 (sha256
10007 (base32 "1dfq9m4njh0czz8zws46rkz6xq2n6xra5w223m3s2f5civiw5msz"))))
10008 (build-system qt-build-system)
10009 (native-inputs
10010 `(("extra-cmake-modules" ,extra-cmake-modules)
10011 ("kdoctools" ,kdoctools)))
10012 (inputs
10013 `(("kcoreaddons" ,kcoreaddons)
10014 ("kcrash" ,kcrash)
10015 ("kdbusaddons" ,kdbusaddons)
10016 ("kdeclarative" ,kdeclarative)
10017 ("ki18n" ,ki18n)
10018 ("kio" ,kio)
10019 ("knewstuff" ,knewstuff)
10020 ("kxmlgui" ,kxmlgui)
10021 ("libkdegames" ,libkdegames)
10022 ("qtbase" ,qtbase)
10023 ("qtdeclarative" ,qtdeclarative)
10024 ("qtsvg" ,qtsvg)))
10025 (home-page "https://games.kde.org/")
10026 (synopsis "Number logic game")
10027 (description "Picmi is a number logic game in which cells in a grid have
10028 to be colored or left blank according to numbers given at the side of the
10029 grid. The aim is to reveal a hidden picture.
10030
10031 This package is part of the KDE games module.")
10032 (license (list license:gpl2+ license:fdl1.2+))))
10033
10034 (define-public kolf
10035 (package
10036 (name "kolf")
10037 (version "20.12.0")
10038 (source
10039 (origin
10040 (method url-fetch)
10041 (uri (string-append "mirror://kde/stable/release-service/" version
10042 "/src/kolf-" version ".tar.xz"))
10043 (sha256
10044 (base32 "1lpp6pzr5dgd4si4a8c7hcvgxgqy0bgyhkx9m6jqb0zhll6dxj10"))))
10045 (build-system qt-build-system)
10046 (native-inputs
10047 `(("extra-cmake-modules" ,extra-cmake-modules)
10048 ("kdoctools" ,kdoctools)))
10049 (inputs
10050 `(("kcompletion" ,kcompletion)
10051 ("kconfigwidgets" ,kconfigwidgets)
10052 ("kcoreaddons" ,kcoreaddons)
10053 ("kcrash" ,kcrash)
10054 ("kdbusaddons" ,kdbusaddons)
10055 ("ki18n" ,ki18n)
10056 ("kio" ,kio)
10057 ("kwidgetsaddons" ,kwidgetsaddons)
10058 ("kxmlgui" ,kxmlgui)
10059 ("ktextwidgets" ,ktextwidgets)
10060 ("libkdegames" ,libkdegames)
10061 ("qtbase" ,qtbase)
10062 ("qtdeclarative" ,qtdeclarative)))
10063 (home-page "https://games.kde.org/")
10064 (synopsis "Miniature golf game")
10065 (description "Kolf is a miniature golf game for one to ten players. The
10066 game is played from an overhead view, with a short bar representing the golf
10067 club. Kolf features many different types of objects, such as water hazards,
10068 slopes, sand traps, and black holes (warps), among others.
10069
10070 Features are:
10071 @itemize
10072 @item Single and Multi-player (up to ten players) modes
10073 @item High scores table
10074 @item Dynamic courses
10075 @item Third-party courses
10076 @item Course editor
10077 @end itemize
10078
10079 This package is part of the KDE games module.")
10080 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
10081
10082 (define-public libkmahjongg
10083 (package
10084 (name "libkmahjongg")
10085 (version "20.12.0")
10086 (source
10087 (origin
10088 (method url-fetch)
10089 (uri (string-append "mirror://kde/stable/release-service/"
10090 version "/src/libkmahjongg-" version ".tar.xz"))
10091 (sha256
10092 (base32 "10ljzbf7qki5flydankrbksaihhkqpfyljb8c71fbwqwmkr7rgfq"))))
10093 (build-system qt-build-system)
10094 (native-inputs
10095 `(("extra-cmake-modules" ,extra-cmake-modules)))
10096 (inputs
10097 `(("kauth" ,kauth)
10098 ("kcompletion" ,kcompletion)
10099 ;("kconfig" ,kconfig)
10100 ("kcodecs" ,kcodecs)
10101 ("kconfigwidgets" ,kconfigwidgets)
10102 ("kcoreaddons" ,kcoreaddons)
10103 ("ki18n" ,ki18n)
10104 ("kwidgetsaddons" ,kwidgetsaddons)
10105 ("qtbase" ,qtbase)
10106 ("qtsvg" ,qtsvg)))
10107 (home-page "https://games.kde.org/")
10108 (synopsis "Shared library for kmahjongg and kshisen")
10109 (description "Shared library and common files for kmahjongg, kshisen and
10110 other Mah Jongg like games.")
10111 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
10112
10113 (define-public kmahjongg
10114 (package
10115 (name "kmahjongg")
10116 (version "20.12.0")
10117 (source
10118 (origin
10119 (method url-fetch)
10120 (uri (string-append "mirror://kde/stable/release-service/"
10121 version "/src/kmahjongg-" version ".tar.xz"))
10122 (sha256
10123 (base32 "1fcj4jb2zzbaxp7cp04w36y0c7lh77yzin66fmvrcxkl11xi2wwd"))))
10124 (build-system qt-build-system)
10125 (native-inputs
10126 `(("extra-cmake-modules" ,extra-cmake-modules)
10127 ("kdoctools" ,kdoctools)))
10128 (inputs
10129 `(("kcompletion" ,kcompletion)
10130 ("kcrash" ,kcrash)
10131 ("kdbusaddons" ,kdbusaddons)
10132 ("kdeclarative" ,kdeclarative)
10133 ("ki18n" ,ki18n)
10134 ("knewstuff" ,knewstuff)
10135 ("kxmlgui" ,kxmlgui)
10136 ("libkdegames" ,libkdegames)
10137 ("libkmahjongg" ,libkmahjongg)
10138 ("qtbase" ,qtbase)
10139 ("qtdeclarative" ,qtdeclarative)
10140 ("qtsvg" ,qtsvg)))
10141 (home-page "https://games.kde.org/")
10142 (synopsis "Tile laying patience")
10143 (description "In KMahjongg the tiles are scrambled and staked on top of
10144 each other to resemble a certain shape. The player is then expected to remove
10145 all the tiles off the game board by locating each tile's matching pair.
10146
10147 A variety of tile layouts are included, as well as an editor to create new
10148 layouts.
10149
10150 This package is part of the KDE games module.")
10151 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
10152
10153 (define-public kshisen
10154 (package
10155 (name "kshisen")
10156 (version "20.12.0")
10157 (source
10158 (origin
10159 (method url-fetch)
10160 (uri (string-append "mirror://kde/stable/release-service/"
10161 version "/src/kshisen-" version ".tar.xz"))
10162 (sha256
10163 (base32 "1hrwr0f1kidivsp8lnwdbqz3xxagjvjwh72r3gma8smfilybygfb"))))
10164 (build-system qt-build-system)
10165 (native-inputs
10166 `(("extra-cmake-modules" ,extra-cmake-modules)
10167 ;("perl" ,perl)
10168 ;("pkg-config" ,pkg-config)
10169 ("kdoctools" ,kdoctools)))
10170 (inputs
10171 `(("kauth" ,kauth)
10172 ("kcompletion" ,kcompletion)
10173 ("kconfigwidgets" ,kconfigwidgets)
10174 ("kcoreaddons" ,kcoreaddons)
10175 ("kcrash" ,kcrash)
10176 ("kdbusaddons" ,kdbusaddons)
10177 ("ki18n" ,ki18n)
10178 ("kxmlgui" ,kxmlgui)
10179 ("libkdegames" ,libkdegames)
10180 ("libkmahjongg" ,libkmahjongg)
10181 ("qtbase" ,qtbase)
10182 ("qtdeclarative" ,qtdeclarative)))
10183 (home-page "https://games.kde.org/")
10184 (synopsis "Shisen-Sho solitaire game")
10185 (description "KShisen is a solitaire-like game played using the standard
10186 set of Mahjong tiles. Unlike Mahjong however, KShisen has only one layer of
10187 scrambled tiles
10188
10189 This package is part of the KDE games module.")
10190 (license license:gpl2+)))
10191
10192 (define-public kajongg
10193 (package
10194 (name "kajongg")
10195 (version "20.12.0")
10196 (source
10197 (origin
10198 (method url-fetch)
10199 (uri (string-append "mirror://kde/stable/release-service/"
10200 version "/src/kajongg-" version ".tar.xz"))
10201 (sha256
10202 (base32 "03fdbnx7zx7vgcxvwd1h1098ks9gq162bwz35fhpyzpynr667m5r"))))
10203 (build-system qt-build-system)
10204 (arguments
10205 `(#:phases
10206 (modify-phases %standard-phases
10207 (add-after 'install 'wrap
10208 (lambda* (#:key outputs #:allow-other-keys)
10209 (let ((out (assoc-ref outputs "out")))
10210 (wrap-program (string-append out "/bin/kajongg")
10211 `("PYTHONPATH" ":" prefix (,(getenv "PYTHONPATH"))))
10212 #t))))))
10213 (native-inputs
10214 `(("extra-cmake-modules" ,extra-cmake-modules)
10215 ;("perl" ,perl)
10216 ("kdoctools" ,kdoctools)))
10217 (inputs
10218 `(("kconfig" ,kconfig)
10219 ("kconfigwidgets" ,kconfigwidgets)
10220 ("kcoreaddons" ,kcoreaddons)
10221 ("ki18n" ,ki18n)
10222 ("libkmahjongg" ,libkmahjongg)
10223 ("python" ,python)
10224 ("python-twisted" ,python-twisted)
10225 ("python-pyqt" ,python-pyqt)
10226 ("qtbase" ,qtbase)
10227 ("qtsvg" ,qtsvg)))
10228 (home-page "https://games.kde.org/")
10229 (synopsis "Classical Mah Jongg game for 4 players")
10230 (description "Kajongg is the ancient Chinese board game for 4 players.
10231
10232 If you are looking for the Mah Jongg solitaire please use the application
10233 kmahjongg.
10234
10235 Kajongg can be used in two different ways: Scoring a manual game where you
10236 play as always and use Kajongg for the computation of scores and for
10237 bookkeeping. Or you can use Kajongg to play against any combination of other
10238 human players or computer players.
10239
10240 This package is part of the KDE games module.")
10241 (license (list license:gpl2+ license:fdl1.2+))))
10242
10243 (define-public kbreakout
10244 (package
10245 (name "kbreakout")
10246 (version "20.12.0")
10247 (source
10248 (origin
10249 (method url-fetch)
10250 (uri (string-append "mirror://kde/stable/release-service/" version
10251 "/src/kbreakout-" version ".tar.xz"))
10252 (sha256
10253 (base32 "0kqj2cx0ny3qq65c6w5fpnzmrwl9irg8slzvpd3anck5cnvma3j4"))))
10254 (build-system qt-build-system)
10255 (native-inputs
10256 `(("extra-cmake-modules" ,extra-cmake-modules)
10257 ("kdoctools" ,kdoctools)))
10258 (inputs
10259 `(("kcompletion" ,kcompletion)
10260 ("kconfig" ,kconfig)
10261 ("kconfigwidgets" ,kconfigwidgets)
10262 ("kcoreaddons" ,kcoreaddons)
10263 ("kcrash" ,kcrash)
10264 ("kdbusaddons" ,kdbusaddons)
10265 ("ki18n" ,ki18n)
10266 ("kwidgetsaddons" ,kwidgetsaddons)
10267 ("kxmlgui" ,kxmlgui)
10268 ("libkdegames" ,libkdegames)
10269 ("qtbase" ,qtbase)
10270 ("qtdeclarative" ,qtdeclarative)))
10271 (home-page "https://games.kde.org/")
10272 (synopsis "Breakout like game")
10273 (description "KBreakout is similar to the classics breakout and xboing,
10274 featuring a number of added graphical enhancements and effects. You control a
10275 paddle at the bottom of the playing-field, and must destroy bricks at the top
10276 by bouncing balls against them.
10277
10278 This package is part of the KDE games module.")
10279 (license (list license:gpl2+ license:fdl1.2+))))
10280
10281 (define-public kmines
10282 (package
10283 (name "kmines")
10284 (version "20.12.0")
10285 (source
10286 (origin
10287 (method url-fetch)
10288 (uri (string-append "mirror://kde/stable/release-service/" version
10289 "/src/kmines-" version ".tar.xz"))
10290 (sha256
10291 (base32 "0hqjwh3jq2npqwkvh67fyn2xnq8swiasdw5jz8f0ikl0k28id775"))))
10292 (build-system qt-build-system)
10293 (native-inputs
10294 `(("extra-cmake-modules" ,extra-cmake-modules)
10295 ("kdoctools" ,kdoctools)))
10296 (inputs
10297 `(("kcompletion" ,kcompletion)
10298 ("kconfig" ,kconfig)
10299 ("kconfigwidgets" ,kconfigwidgets)
10300 ("kcoreaddons" ,kcoreaddons)
10301 ("kcrash" ,kcrash)
10302 ("kdbusaddons" ,kdbusaddons)
10303 ("ki18n" ,ki18n)
10304 ("ktextwidgets" ,ktextwidgets)
10305 ("kwidgetsaddons" ,kwidgetsaddons)
10306 ("kxmlgui" ,kxmlgui)
10307 ("libkdegames" ,libkdegames)
10308 ("qtbase" ,qtbase)
10309 ("qtdeclarative" ,qtdeclarative)))
10310 (home-page "https://games.kde.org/")
10311 (synopsis "Classical mine sweeper game")
10312 (description "KMines is a classic Minesweeper game. The idea is to
10313 uncover all the squares without blowing up any mines. When a mine is blown
10314 up, the game is over.
10315
10316 This package is part of the KDE games module.")
10317 (license (list license:gpl2+ license:fdl1.2+))))
10318
10319 (define-public konquest
10320 (package
10321 (name "konquest")
10322 (version "20.12.0")
10323 (source
10324 (origin
10325 (method url-fetch)
10326 (uri (string-append "mirror://kde/stable/release-service/"
10327 version "/src/konquest-" version ".tar.xz"))
10328 (sha256
10329 (base32 "0lnwj06vv4qx05hr8pzysnvrxh8y04asajrph0rsj37v8hs9g5lh"))))
10330 (build-system qt-build-system)
10331 (native-inputs
10332 `(("extra-cmake-modules" ,extra-cmake-modules)
10333 ("kdoctools" ,kdoctools)))
10334 (inputs
10335 `(("kcompletion" ,kcompletion)
10336 ("kconfig" ,kconfig)
10337 ("kcoreaddons" ,kcoreaddons)
10338 ("kcrash" ,kcrash)
10339 ("kdbusaddons" ,kdbusaddons)
10340 ("kguiaddons" ,kguiaddons)
10341 ("ki18n" ,ki18n)
10342 ("kwidgetsaddons" ,kwidgetsaddons)
10343 ("kxmlgui" ,kxmlgui)
10344 ("libkdegames" ,libkdegames)
10345 ("qtbase" ,qtbase)
10346 ("qtdeclarative" ,qtdeclarative)
10347 ("qtsvg" ,qtsvg)))
10348 (home-page "https://games.kde.org/")
10349 (synopsis "Simple turn-based strategy game")
10350 (description "Konquest is the KDE version of Gnu-Lactic Konquest. Players
10351 conquer other planets by sending ships to them. The goal is to build an
10352 interstellar empire and ultimately conquer all other player's planets. The
10353 game can be played with up to nine empires, commanded either by the computer
10354 or by puny earthlings.
10355
10356 This package is part of the KDE games module.")
10357 (license (list license:gpl2+ license:fdl1.2+))))
10358
10359 (define-public kbounce
10360 (package
10361 (name "kbounce")
10362 (version "20.12.0")
10363 (source
10364 (origin
10365 (method url-fetch)
10366 (uri (string-append "mirror://kde/stable/release-service/"
10367 version "/src/kbounce-" version ".tar.xz"))
10368 (sha256
10369 (base32 "0ymy0z1qlw3n653xs3dsa1xm78q4xaj09dnnci4km77rzis26vb6"))))
10370 (build-system qt-build-system)
10371 (native-inputs
10372 `(("extra-cmake-modules" ,extra-cmake-modules)
10373 ("kdoctools" ,kdoctools)))
10374 (inputs
10375 `(("kcompletion" ,kcompletion)
10376 ("kconfigwidgets" ,kconfigwidgets)
10377 ("kcoreaddons" ,kcoreaddons)
10378 ("kcrash" ,kcrash)
10379 ("kdbusaddons" ,kdbusaddons)
10380 ("ki18n" ,ki18n)
10381 ("kio" ,kio)
10382 ("kwidgetsaddons" ,kwidgetsaddons)
10383 ("kxmlgui" ,kxmlgui)
10384 ("libkdegames" ,libkdegames)
10385 ("qtbase" ,qtbase)
10386 ("qtdeclarative" ,qtdeclarative)
10387 ("qtsvg" ,qtsvg)))
10388 (home-page "https://games.kde.org/")
10389 (synopsis "Jezzball arcade game")
10390 (description "KBounce is a single player arcade game with the elements of
10391 puzzle. It is played on a field, surrounded by wall, with two or more balls
10392 bouncing around within the walls. The object of the game is to build new
10393 walls to decrease the size of the active field.
10394
10395 This package is part of the KDE games module.")
10396 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
10397
10398 (define-public kblocks
10399 (package
10400 (name "kblocks")
10401 (version "20.12.0")
10402 (source
10403 (origin
10404 (method url-fetch)
10405 (uri (string-append "mirror://kde/stable/release-service/"
10406 version "/src/kblocks-" version ".tar.xz"))
10407 (sha256
10408 (base32 "09yfm9mzbamp294cvc5finq6ilxvxr68i0dnb0m72pa4sfzmij32"))))
10409 (build-system qt-build-system)
10410 (native-inputs
10411 `(("extra-cmake-modules" ,extra-cmake-modules)
10412 ("kdoctools" ,kdoctools)))
10413 (inputs
10414 `(("kcompletion" ,kcompletion)
10415 ("kconfig" ,kconfig)
10416 ("kconfigwidgets" ,kconfigwidgets)
10417 ("kcoreaddons" ,kcoreaddons)
10418 ("kcrash" ,kcrash)
10419 ("kdbusaddons" ,kdbusaddons)
10420 ("ki18n" ,ki18n)
10421 ("kwidgetsaddons" ,kwidgetsaddons)
10422 ("kxmlgui" ,kxmlgui)
10423 ("libkdegames" ,libkdegames)
10424 ("qtbase" ,qtbase)
10425 ("qtdeclarative" ,qtdeclarative)
10426 ("qtsvg" ,qtsvg)))
10427 (home-page "https://games.kde.org/")
10428 (synopsis "Single player falling blocks puzzle game")
10429 (description "KBlocks is the classic Tetris-like falling blocks game.
10430
10431 The idea is to stack the falling blocks to create horizontal lines without any
10432 gaps. When a line is completed it is removed, and more space is available in
10433 the play area. When there is not enough space for blocks to fall, the game is
10434 over.
10435
10436 This package is part of the KDE games module.")
10437 (license (list license:gpl2+ license:fdl1.2+))))
10438
10439 (define-public ksudoku
10440 (package
10441 (name "ksudoku")
10442 (version "20.12.0")
10443 (source
10444 (origin
10445 (method url-fetch)
10446 (uri (string-append "mirror://kde/stable/release-service/"
10447 version "/src/ksudoku-" version ".tar.xz"))
10448 (sha256
10449 (base32 "0pj6ry7ak1rnpb93mqypaxrcbmrhwg9ir6zhb3ybzfkfcrh67g12"))))
10450 (build-system qt-build-system)
10451 (native-inputs
10452 `(("extra-cmake-modules" ,extra-cmake-modules)
10453 ("kdoctools" ,kdoctools)))
10454 (inputs
10455 `(("karchive" ,karchive)
10456 ("kconfig" ,kconfig)
10457 ("kconfigwidgets" ,kconfigwidgets)
10458 ("kcoreaddons" ,kcoreaddons)
10459 ("kcrash" ,kcrash)
10460 ("kguiaddons" ,kguiaddons)
10461 ("ki18n" ,ki18n)
10462 ("kiconthemes" ,kiconthemes)
10463 ("kio" ,kio)
10464 ("kwidgetsaddons" ,kwidgetsaddons)
10465 ("kxmlgui" ,kxmlgui)
10466 ("libkdegames" ,libkdegames)
10467 ("glu" ,glu)
10468 ("qtbase" ,qtbase)
10469 ("qtdeclarative" ,qtdeclarative)
10470 ("qtsvg" ,qtsvg)))
10471 (home-page "https://games.kde.org/")
10472 (synopsis "Sudoku puzzle game and solver")
10473 (description "KSudoku is a Sudoku game and solver, supporting a range of
10474 2D and 3D Sudoku variants. In addition to playing Sudoku, it can print Sudoku
10475 puzzle sheets and find the solution to any Sudoku puzzle.
10476
10477 The word Sudoku means \"single number in an allotted place\" in Japanese.
10478 These are the basic rules: Every Sudoku is a square divided into 3x3
10479 subsquares with 3x3 cells each.
10480
10481 Some cells are filled with a number at the beginning. The remaining ones are
10482 to be filled by the player using numbers from 1 to 9, without repeating a
10483 number twice on each column, row or subsquare (each of them must contain only
10484 one 1, one 2, one 3, and so on). The game requires logic and patience.
10485 Solving takes usually 10 to 30 minutes, depending on puzzle level, your skill
10486 and experience.
10487
10488 The numerals in Sudoku puzzles are used for convenience (for example in 16x16
10489 board we use letters): arithmetic relationships between numbers are
10490 irrelevant.
10491
10492 This program supports also 16x16 games with numbers from 1 to 16 and 256
10493 cells with 16 cols, rows and subsquares!
10494
10495 More information at http://en.wikipedia.org/wiki/Sudoku
10496
10497 This package is part of the KDE games module.")
10498 (license (list license:gpl2+ license:fdl1.2+))))
10499
10500 (define-public klines
10501 (package
10502 (name "klines")
10503 (version "20.12.0")
10504 (source
10505 (origin
10506 (method url-fetch)
10507 (uri (string-append "mirror://kde/stable/release-service/" version
10508 "/src/klines-" version ".tar.xz"))
10509 (sha256
10510 (base32 "0y8lnwawrkl4ixn7v4dg48k2zpr083krv7dv4d94b2dpkh7xfvih"))))
10511 (build-system qt-build-system)
10512 (native-inputs
10513 `(("extra-cmake-modules" ,extra-cmake-modules)
10514 ("kdoctools" ,kdoctools)))
10515 (inputs
10516 `(("kcompletion" ,kcompletion)
10517 ("kconfigwidgets" ,kconfigwidgets)
10518 ("kcoreaddons" ,kcoreaddons)
10519 ("kcrash" ,kcrash)
10520 ("kdbusaddons" ,kdbusaddons)
10521 ("ki18n" ,ki18n)
10522 ("kwidgetsaddons" ,kwidgetsaddons)
10523 ("kxmlgui" ,kxmlgui)
10524 ("libkdegames" ,libkdegames)
10525 ("qtbase" ,qtbase)
10526 ("qtdeclarative" ,qtdeclarative)))
10527 (home-page "https://games.kde.org/")
10528 (synopsis "Place 5 equal pieces together, but wait, there are 3 new ones")
10529 (description "KLines is a simple but highly addictive one player game.
10530
10531 The player has to move the colored balls around the game board, gathering them
10532 into the lines of the same color by five. Once the line is complete it is
10533 removed from the board, therefore freeing precious space. In the same time
10534 the new balls keep arriving by three after each move, filling up the game
10535 board.
10536
10537 KLines is a single-player game where the player removes colored balls from the
10538 board by arranging them into lines of five or more. However, every time the
10539 player moves a ball, three more balls are added to the board.
10540
10541 This package is part of the KDE games module.")
10542 (license (list license:gpl2+ license:fdl1.2+))))
10543
10544 (define-public kgoldrunner
10545 (package
10546 (name "kgoldrunner")
10547 (version "20.12.0")
10548 (source
10549 (origin
10550 (method url-fetch)
10551 (uri (string-append "mirror://kde/stable/release-service/" version
10552 "/src/kgoldrunner-" version ".tar.xz"))
10553 (sha256
10554 (base32 "17ra5d3r9ajy2inj17gwd5xphzhvbzx5kpvdwyj6msx4dd9wxgfi"))))
10555 (build-system qt-build-system)
10556 (native-inputs
10557 `(("extra-cmake-modules" ,extra-cmake-modules)
10558 ("kdoctools" ,kdoctools)))
10559 (inputs
10560 `(("kcompletion" ,kcompletion)
10561 ("kcoreaddons" ,kcoreaddons)
10562 ("kcrash" ,kcrash)
10563 ("kdbusaddons" ,kdbusaddons)
10564 ("ki18n" ,ki18n)
10565 ("kio" ,kio)
10566 ("kwidgetsaddons" ,kwidgetsaddons)
10567 ("kxmlgui" ,kxmlgui)
10568 ("libkdegames" ,libkdegames)
10569 ("qtbase" ,qtbase)
10570 ("qtdeclarative" ,qtdeclarative)))
10571 (home-page "https://games.kde.org/")
10572 (synopsis "Action and puzzle solving game")
10573 (description "KGoldrunner is an action game where the hero runs through a
10574 maze, climbs stairs, dig holes and dodges enemies in order to collect all the
10575 gold nuggets and escape to the next level. Your enemies are also after the
10576 gold. Worse still, they are after you!.
10577
10578 KGoldrunner is a fast-paced platform game where the player must navigate a
10579 maze while collecting gold nuggets and avoiding enemies. A variety of level
10580 packs are included, as well as an editor to create new levels.
10581
10582 This package is part of the KDE games module.")
10583 (license (list license:gpl2+ license:fdl1.2+))))
10584
10585 (define-public kdiamond
10586 (package
10587 (name "kdiamond")
10588 (version "20.12.0")
10589 (source
10590 (origin
10591 (method url-fetch)
10592 (uri (string-append "mirror://kde/stable/release-service/" version
10593 "/src/kdiamond-" version ".tar.xz"))
10594 (sha256
10595 (base32 "1iyxrx3422asa58kh0siwvi1svds5kccrym6gdfpdhlmhmciqlzi"))))
10596 (build-system qt-build-system)
10597 (native-inputs
10598 `(("extra-cmake-modules" ,extra-cmake-modules)
10599 ("kdoctools" ,kdoctools)))
10600 (inputs
10601 `(("kcompletion" ,kcompletion)
10602 ("kconfig" ,kconfig)
10603 ("kconfigwidgets" ,kconfigwidgets)
10604 ("kcoreaddons" ,kcoreaddons)
10605 ("kcrash" ,kcrash)
10606 ("kdbusaddons" ,kdbusaddons)
10607 ("ki18n" ,ki18n)
10608 ("knotifications" ,knotifications)
10609 ("knotifyconfig" ,knotifyconfig)
10610 ("kwidgetsaddons" ,kwidgetsaddons)
10611 ("kxmlgui" ,kxmlgui)
10612 ("libkdegames" ,libkdegames)
10613 ("qtbase" ,qtbase)
10614 ("qtdeclarative" ,qtdeclarative)))
10615 (home-page "https://games.kde.org/")
10616 (synopsis "Three-in-a-row game")
10617 (description "KDiamond is a three-in-a-row game like Bejeweled. It
10618 features unlimited fun with randomly generated games and five difficulty
10619 levels with varying number of diamond colors and board sizes.
10620
10621 This package is part of the KDE games module.")
10622 (license (list license:gpl2+ license:fdl1.2+))))
10623
10624 (define-public kfourinline
10625 (package
10626 (name "kfourinline")
10627 (version "20.12.0")
10628 (source
10629 (origin
10630 (method url-fetch)
10631 (uri (string-append "mirror://kde/stable/release-service/" version
10632 "/src/kfourinline-" version ".tar.xz"))
10633 (sha256
10634 (base32 "0plx3lv35fc8q9svbyl71mms3ji6zn58j306bvm1f8kkgg0x395b"))))
10635 (build-system qt-build-system)
10636 (native-inputs
10637 `(("extra-cmake-modules" ,extra-cmake-modules)
10638 ("kdoctools" ,kdoctools)))
10639 (inputs
10640 `(("kcompletion" ,kcompletion)
10641 ("kconfig" ,kconfig)
10642 ("kconfigwidgets" ,kconfigwidgets)
10643 ("kcoreaddons" ,kcoreaddons)
10644 ("kcrash" ,kcrash)
10645 ("kdnssd" ,kdnssd)
10646 ("ki18n" ,ki18n)
10647 ("kxmlgui" ,kxmlgui)
10648 ("libkdegames" ,libkdegames)
10649 ("qtbase" ,qtbase)
10650 ("qtdeclarative" ,qtdeclarative)
10651 ("qtsvg" ,qtsvg)))
10652 (home-page "https://games.kde.org/")
10653 (synopsis "Place 4 pieces in a row")
10654 (description "KFourInLine is a board game for two players based on the
10655 Connect-Four game.
10656
10657 KFourInLine is a game where two players take turns dropping pieces into a
10658 grid, the winner being the first to place four pieces in a line.
10659
10660 This package is part of the KDE games module.")
10661 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
10662
10663 (define-public kblackbox
10664 (package
10665 (name "kblackbox")
10666 (version "20.12.0")
10667 (source
10668 (origin
10669 (method url-fetch)
10670 (uri (string-append "mirror://kde/stable/release-service/" version
10671 "/src/kblackbox-" version ".tar.xz"))
10672 (sha256
10673 (base32 "0la5w44b0gl72g3wfp0pw8gwnm287lh7nd9k5ikpszw5nn49db0h"))))
10674 (build-system qt-build-system)
10675 (native-inputs
10676 `(("extra-cmake-modules" ,extra-cmake-modules)
10677 ("kdoctools" ,kdoctools)))
10678 (inputs
10679 `(("karchive" ,karchive)
10680 ("kcompletion" ,kcompletion)
10681 ("kconfig" ,kconfig)
10682 ("kcoreaddons" ,kcoreaddons)
10683 ("kcrash" ,kcrash)
10684 ("kdbusaddons" ,kdbusaddons)
10685 ("ki18n" ,ki18n)
10686 ("ktextwidgets" ,ktextwidgets)
10687 ("kxmlgui" ,kxmlgui)
10688 ("libkdegames" ,libkdegames)
10689 ("qtbase" ,qtbase)
10690 ("qtdeclarative" ,qtdeclarative)
10691 ("qtsvg" ,qtsvg)))
10692 (home-page "https://games.kde.org/")
10693 (synopsis "Find atoms in a grid by shooting electrons")
10694 (description "KBlackbox is a game of hide and seek played on a grid of
10695 boxes where the computer has hidden several balls. The position of the hidden
10696 balls can be deduced by shooting beams into the box
10697
10698 KBlackBox is a game of hide and seek played on an grid of boxes, where the
10699 player shoots rays into the grid to deduce the positions of hidden objects.
10700
10701 This package is part of the KDE games module.")
10702 (license (list license:gpl2+ license:fdl1.2+))))
10703
10704 (define-public knetwalk
10705 (package
10706 (name "knetwalk")
10707 (version "20.12.0")
10708 (source
10709 (origin
10710 (method url-fetch)
10711 (uri (string-append "mirror://kde/stable/release-service/" version
10712 "/src/knetwalk-" version ".tar.xz"))
10713 (sha256
10714 (base32 "060kj06vpigdy570izsjfgnmqqrpmb8bkr9arqc109hg3avl5wjz"))))
10715 (build-system qt-build-system)
10716 (native-inputs
10717 `(("extra-cmake-modules" ,extra-cmake-modules)
10718 ("kdoctools" ,kdoctools)))
10719 (inputs
10720 `(("kcompletion" ,kcompletion)
10721 ("kconfig" ,kconfig)
10722 ("kconfigwidgets" ,kconfigwidgets)
10723 ("kcoreaddons" ,kcoreaddons)
10724 ("kcrash" ,kcrash)
10725 ("kdbusaddons" ,kdbusaddons)
10726 ("ki18n" ,ki18n)
10727 ("ktextwidgets" ,ktextwidgets)
10728 ("kwidgetsaddons" ,kwidgetsaddons)
10729 ("kxmlgui" ,kxmlgui)
10730 ("libkdegames" ,libkdegames)
10731 ("qtbase" ,qtbase)
10732 ("qtdeclarative" ,qtdeclarative)))
10733 (home-page "https://games.kde.org/")
10734 (synopsis "Turn the board pieces to get all computers connected")
10735 (description "KNetWalk is a small game where you have to build up a
10736 computer network by rotating the wires to connect the terminals to the server.
10737 When the network is build, a highscore-list comes up where competitions can be
10738 fought out.
10739
10740 KNetwalk is a puzzle game where the player arranges sections of wire to
10741 connect all the computers on the board.
10742
10743 This package is part of the KDE games module.")
10744 (license (list license:gpl2+ license:fdl1.2+))))
10745
10746 (define-public bomber
10747 (package
10748 (name "bomber")
10749 (version "20.12.0")
10750 (source
10751 (origin
10752 (method url-fetch)
10753 (uri (string-append "mirror://kde/stable/release-service/" version
10754 "/src/bomber-" version ".tar.xz"))
10755 (sha256
10756 (base32 "1fjcwm591jgx3bgqpi0j5fnb2l2r2h3r6lav3vhaxz4rkf56pg2a"))))
10757 (build-system qt-build-system)
10758 (native-inputs
10759 `(("extra-cmake-modules" ,extra-cmake-modules)
10760 ("kdoctools" ,kdoctools)))
10761 (inputs
10762 `(("kcompletiom" ,kcompletion)
10763 ("kconfig" ,kconfig)
10764 ("kcoreaddons" ,kcoreaddons)
10765 ("kcrash" ,kcrash)
10766 ("kdbusaddons" ,kdbusaddons)
10767 ("ki18n" ,ki18n)
10768 ("kxmlgui" ,kxmlgui)
10769 ("libkdegames" ,libkdegames)
10770 ("qtbase" ,qtbase)
10771 ("qtdeclarative" ,qtdeclarative)))
10772 (home-page "https://games.kde.org/")
10773 (synopsis "Arcade bombing game")
10774 (description "Bomber is a single player arcade game.
10775
10776 The player is invading various cities in a plane that is decreasing in height.
10777 The goal of the game is to destroy all the buildings and advance to the next
10778 level. Each level gets a bit harder by increasing the speed of the plane and
10779 the height of the buildings.
10780
10781 Bomber is a game where you fly a spaceship and attempt to bomb the buildings
10782 below you. Each pass the spaceship makes, it gets lower and lower. If you've
10783 not destroyed a building in your path, you will crash into it.
10784
10785 This package is part of the KDE games module.")
10786 (license (list license:gpl2+ license:fdl1.2+))))
10787
10788 (define-public granatier
10789 (package
10790 (name "granatier")
10791 (version "20.12.0")
10792 (source
10793 (origin
10794 (method url-fetch)
10795 (uri (string-append "mirror://kde/stable/release-service/" version
10796 "/src/granatier-" version ".tar.xz"))
10797 (sha256
10798 (base32 "1fyh7zyacb3pnlfd29jw2jmyl8a7sjw354pi234nd5x5999xw5z6"))))
10799 (build-system qt-build-system)
10800 (native-inputs
10801 `(("extra-cmake-modules" ,extra-cmake-modules)
10802 ("kdoctools" ,kdoctools)))
10803 (inputs
10804 `(("kcompletion" ,kcompletion)
10805 ("kconfig" ,kconfig)
10806 ("kconfigwidgets" ,kconfigwidgets)
10807 ("kcoreaddons" ,kcoreaddons)
10808 ("kcrash" ,kcrash)
10809 ("kdbusaddons" ,kdbusaddons)
10810 ("ki18n" ,ki18n)
10811 ("knewstuff" ,knewstuff)
10812 ("kwidgetsaddons" ,kwidgetsaddons)
10813 ("kxmlgui" ,kxmlgui)
10814 ("libkdegames" ,libkdegames)
10815 ("qtbase" ,qtbase)
10816 ("qtdeclarative" ,qtdeclarative)
10817 ("qtsvg" ,qtsvg)))
10818 (home-page "https://games.kde.org/")
10819 (synopsis "Bomberman clone")
10820 (description "Granatier is a clone of the classic Bomberman game,
10821 inspired by the work of the Clanbomber clone.
10822
10823 This package is part of the KDE games module.")
10824 (license (list license:gpl2+ license:fdl1.2+))))
10825
10826 (define-public ksirk
10827 (package
10828 (name "ksirk")
10829 (version "20.12.0")
10830 (source
10831 (origin
10832 (method url-fetch)
10833 (uri (string-append "mirror://kde/stable/release-service/" version
10834 "/src/ksirk-" version ".tar.xz"))
10835 (sha256
10836 (base32 "10y7nm0x6zcc0gh3am69bbxyyb8azbbfyrdqsa023ggr7n04cn21"))))
10837 (build-system qt-build-system)
10838 (native-inputs
10839 `(("extra-cmake-modules" ,extra-cmake-modules)
10840 ("kdoctools" ,kdoctools)))
10841 (inputs
10842 `(("kcrash" ,kcrash)
10843 ("ki18n" ,ki18n)
10844 ("kiconthemes" ,kiconthemes)
10845 ("kio" ,kio)
10846 ("knewstuff" ,knewstuff)
10847 ("kwallet" ,kwallet)
10848 ("kxmlgui" ,kxmlgui)
10849 ("libkdegames" ,libkdegames)
10850 ("phonon" ,phonon)
10851 ("qca" ,qca)
10852 ("qtbase" ,qtbase)
10853 ("qtdeclarative" ,qtdeclarative)
10854 ("qtsvg" ,qtsvg)
10855 ("zlib" ,zlib)))
10856 (home-page "https://games.kde.org/")
10857 (synopsis "Computerized version of the well known strategy board game
10858 'Risk'")
10859 (description "KsirK is a multi-player network-enabled game. The goal of
10860 the game is simply to conquer the world by attacking your neighbors with your
10861 armies.
10862
10863 At the beginning of the game, countries are distributed to all the players.
10864 Each country contains one army represented by an infantryman. Each player has
10865 some armies to distribute to his countries. On each turn, each player can
10866 attack his neighbours, eventually conquering one or more countries. At the
10867 end of each turn, some bonus armies are distributed to the players in function
10868 of the number of countries they own. The winner is the player that conquered
10869 all the world.
10870
10871 Features:
10872 @itemize
10873 @item Support for 1-6 human or computer players
10874 @item Multi-player gaming over a network
10875 @item You can easily create new skins with SVG graphics and the skin editor
10876 @item Hot New Stuff support. You can easily download and install new skins
10877 @end itemize
10878
10879 This package is part of the KDE games module.")
10880 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
10881
10882 (define-public palapeli
10883 (package
10884 (name "palapeli")
10885 (version "20.12.0")
10886 (source
10887 (origin
10888 (method url-fetch)
10889 (uri (string-append "mirror://kde/stable/release-service/" version
10890 "/src/palapeli-" version ".tar.xz"))
10891 (sha256
10892 (base32 "0xxz9g4zxljlg20g88a5lkbwzzm9yg4vxnrfigk8m018cz0nqd5b"))))
10893 (build-system qt-build-system)
10894 (native-inputs
10895 `(("extra-cmake-modules" ,extra-cmake-modules)
10896 ("kdoctools" ,kdoctools)))
10897 (inputs
10898 `(("karchive" ,karchive)
10899 ("kcompletion" ,kcompletion)
10900 ("kconfig" ,kconfig)
10901 ("kconfigwidgets" ,kconfigwidgets)
10902 ("kcoreaddons" ,kcoreaddons)
10903 ("kcrash" ,kcrash)
10904 ("kcrash" ,kcrash)
10905 ("ki18n" ,ki18n)
10906 ("ki18n" ,ki18n)
10907 ("kio" ,kio)
10908 ("kitemviews" ,kitemviews)
10909 ("knotifications" ,knotifications)
10910 ("kservice" ,kservice)
10911 ("kwidgetsaddons" ,kwidgetsaddons)
10912 ("kxmlgui" ,kxmlgui)
10913 ("libkdegames" ,libkdegames)
10914 ("qtbase" ,qtbase)
10915 ("qtdeclarative" ,qtdeclarative)
10916 ("qtsvg" ,qtsvg)
10917 ("shared-mime-info" ,shared-mime-info)))
10918 (home-page "https://games.kde.org/")
10919 (synopsis "Jigsaw puzzle game")
10920 (description "Palapeli is a jigsaw puzzle game. Unlike other games in
10921 that genre, you are not limited to aligning pieces on imaginary grids. The
10922 pieces are freely moveable. Also, Palapeli features real persistency, i.e.
10923 everything you do is saved on your disk immediately.
10924
10925 Palapeli is the Finnish word for jigsaw puzzle.
10926
10927 This package is part of the KDE games module.")
10928 (license license:gpl2+)))
10929
10930 (define-public kiriki
10931 (package
10932 (name "kiriki")
10933 (version "20.12.0")
10934 (source
10935 (origin
10936 (method url-fetch)
10937 (uri (string-append "mirror://kde/stable/release-service/" version
10938 "/src/kiriki-" version ".tar.xz"))
10939 (sha256
10940 (base32 "0milc8fl1rj4yrwdvm60ampd47dyiys1xvqi5f0g7y6mgymgyk4x"))))
10941 (build-system qt-build-system)
10942 (native-inputs
10943 `(("extra-cmake-modules" ,extra-cmake-modules)
10944 ("kdoctools" ,kdoctools)))
10945 (inputs
10946 `(("kcompletion" ,kcompletion)
10947 ("kconfig" ,kconfig)
10948 ("kconfigwidgets" ,kconfigwidgets)
10949 ("kcoreaddons" ,kcoreaddons)
10950 ("kcrash" ,kcrash)
10951 ("kdbusaddons" ,kdbusaddons)
10952 ("ki18n" ,ki18n)
10953 ("kiconthemes" ,kiconthemes)
10954 ("kxmlgui" ,kxmlgui)
10955 ("libkdegames" ,libkdegames)
10956 ("qtbase" ,qtbase)
10957 ("qtdeclarative" ,qtdeclarative)))
10958 (home-page "https://games.kde.org/")
10959 (synopsis "Yahtzee dice game")
10960 (description "Kiriki is an addictive and fun dice game, designed to be
10961 played by as many as six players.
10962
10963 Participants have to collect points by rolling five dice for up to three times
10964 per single turn to make combinations with the highest score.
10965
10966 This package is part of the KDE games module.")
10967 (license (list license:gpl2+ license:fdl1.2+))))
10968
10969 (define-public kigo
10970 (package
10971 (name "kigo")
10972 (version "20.12.0")
10973 (source
10974 (origin
10975 (method url-fetch)
10976 (uri (string-append "mirror://kde/stable/release-service/" version
10977 "/src/kigo-" version ".tar.xz"))
10978 (sha256
10979 (base32 "088752yzmfsnppd27p8hld4x5s7sw5fagm08024l5ra1mlicdfz9"))))
10980 (build-system qt-build-system)
10981 (native-inputs
10982 `(("extra-cmake-modules" ,extra-cmake-modules)
10983 ("kdoctools" ,kdoctools)))
10984 (inputs
10985 `(("kconfig" ,kconfig)
10986 ("kconfigwidgets" ,kconfigwidgets)
10987 ("kcoreaddons" ,kcoreaddons)
10988 ("kcrash" ,kcrash)
10989 ("kdbusaddons" ,kdbusaddons)
10990 ("ki18n" ,ki18n)
10991 ("kio" ,kio)
10992 ("knewstuff" ,knewstuff)
10993 ("ktextwidgets" ,ktextwidgets)
10994 ("kxmlgui" ,kxmlgui)
10995 ("libkdegames" ,libkdegames)
10996 ("qtbase" ,qtbase)
10997 ("qtdeclarative" ,qtdeclarative)
10998 ("qtsvg" ,qtsvg)))
10999 (home-page "https://games.kde.org/")
11000 (synopsis "Go board game")
11001 (description "Kigo is an open-source implementation of the popular Go
11002 game.
11003
11004 Go is a strategic board game for two players. It is also known as
11005 igo (Japanese), weiqi or wei ch'i (Chinese) or baduk (Korean). Go is noted
11006 for being rich in strategic complexity despite its simple rules. The game is
11007 played by two players who alternately place black and white stones (playing
11008 pieces, now usually made of glass or plastic) on the vacant intersections of a
11009 grid of 19x19 lines (9x9 or 13x13 for easier games).
11010
11011 You also need to install a go engine, e.g. @code{gnugo}.
11012
11013 This package is part of the KDE games module.")
11014 (license license:gpl3+)))
11015
11016 (define-public kubrick
11017 (package
11018 (name "kubrick")
11019 (version "20.12.0")
11020 (source
11021 (origin
11022 (method url-fetch)
11023 (uri (string-append "mirror://kde/stable/release-service/" version
11024 "/src/kubrick-" version ".tar.xz"))
11025 (sha256
11026 (base32 "0h3mypwd67sss08j5vvrih5f5ss85m9kax6412y40xmsm51lz2pq"))))
11027 (build-system qt-build-system)
11028 (native-inputs
11029 `(("extra-cmake-modules" ,extra-cmake-modules)
11030 ("kdoctools" ,kdoctools)))
11031 (inputs
11032 `(("glu" ,glu)
11033 ("kconfig" ,kconfig)
11034 ("kconfigwidgets" ,kconfigwidgets)
11035 ("kcoreaddons" ,kcoreaddons)
11036 ("kcrash" ,kcrash)
11037 ("ki18n" ,ki18n)
11038 ("kio" ,kio)
11039 ("kwidgetsaddons" ,kwidgetsaddons)
11040 ("kxmlgui" ,kxmlgui)
11041 ("libkdegames" ,libkdegames)
11042 ("qtbase" ,qtbase)
11043 ("qtdeclarative" ,qtdeclarative)
11044 ("qtsvg" ,qtsvg)))
11045 (home-page "https://games.kde.org/")
11046 (synopsis "Game based on Rubik's Cube")
11047 (description "Kubrick is a game based on the Rubik's Cube puzzle.
11048
11049 The cube sizes range from 2x2x2 up to 6x6x6, or you can play with irregular
11050 \"bricks\" such as 5x3x2 or \"mats\" such as 6x4x1 or 2x2x1. The game has a
11051 selection of puzzles at several levels of difficulty, as well as demos of
11052 pretty patterns and solution moves, or you can make up your own puzzles. The
11053 game has unlimited undo, redo, save and reload capabilities.
11054
11055 This package is part of the KDE games module.")
11056 (license (list license:gpl2+ license:fdl1.2+))))
11057
11058 (define-public lskat
11059 (package
11060 (name "lskat")
11061 (version "20.12.0")
11062 (source
11063 (origin
11064 (method url-fetch)
11065 (uri (string-append "mirror://kde/stable/release-service/" version
11066 "/src/lskat-" version ".tar.xz"))
11067 (sha256
11068 (base32 "1wg9zxp64kwjxqs4qw0h7j8yhgffbmvh8j9d4dgmz45dscngnjli"))))
11069 (build-system qt-build-system)
11070 (native-inputs
11071 `(("extra-cmake-modules" ,extra-cmake-modules)
11072 ("kdoctools" ,kdoctools)))
11073 (inputs
11074 `(("kcompletion" ,kcompletion)
11075 ("kconfig" ,kconfig)
11076 ("kcoreaddons" ,kcoreaddons)
11077 ("kcrash" ,kcrash)
11078 ("kguiaddons" ,kguiaddons)
11079 ("ki18n" ,ki18n)
11080 ("kwidgetsaddons" ,kwidgetsaddons)
11081 ("kxmlgui" ,kxmlgui)
11082 ("libkdegames" ,libkdegames)
11083 ("qtbase" ,qtbase)
11084 ("qtdeclarative" ,qtdeclarative)
11085 ("qtsvg" ,qtsvg)))
11086 (home-page "https://games.kde.org/")
11087 (synopsis "Lieutnant Skat card game")
11088 (description "Lieutnant Skat (from German \"Offiziersskat\") is a fun and
11089 engaging card game for two players, where the second player is either live
11090 opponent, or a built in artificial intelligence.
11091
11092 Lieutnant Skat is a simplified variant of the Skat card game for two players.
11093
11094 This package is part of the KDE games module.")
11095 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
11096
11097 (define-public kapman
11098 (package
11099 (name "kapman")
11100 (version "20.12.0")
11101 (source
11102 (origin
11103 (method url-fetch)
11104 (uri (string-append "mirror://kde/stable/release-service/" version
11105 "/src/kapman-" version ".tar.xz"))
11106 (sha256
11107 (base32 "14x3v6li4r3gzzwfd6ar9saq2rhc7yxs0sp9ygalzq8vq4d7i1kh"))))
11108 (build-system qt-build-system)
11109 (native-inputs
11110 `(("extra-cmake-modules" ,extra-cmake-modules)
11111 ("kdoctools" ,kdoctools)))
11112 (inputs
11113 `(("kcompletion" ,kcompletion)
11114 ("kconfig" ,kconfig)
11115 ("kconfigwidgets" ,kconfigwidgets)
11116 ("kcoreaddons" ,kcoreaddons)
11117 ("kcrash" ,kcrash)
11118 ("kdbusaddons" ,kdbusaddons)
11119 ("ki18n" ,ki18n)
11120 ("kxmlgui" ,kxmlgui)
11121 ("libkdegames" ,libkdegames)
11122 ("qtbase" ,qtbase)
11123 ("qtdeclarative" ,qtdeclarative)
11124 ("qtsvg" ,qtsvg)))
11125 (home-page "https://games.kde.org/")
11126 (synopsis "Pac-Man clone")
11127 (description "Kapman is a clone of the well known game Pac-Man.
11128
11129 You must run through the maze to eat all pills without being captured by a
11130 ghost. By eating an energizer, Kapman gets the ability to eat ghosts for a
11131 few seconds. When a stage is cleared of pills and energizer the player is
11132 taken to the next stage with slightly increased game speed
11133
11134 This package is part of the KDE games module.")
11135 (license (list license:gpl2+ license:fdl1.2+))))
11136
11137 (define-public kspaceduel
11138 (package
11139 (name "kspaceduel")
11140 (version "20.12.0")
11141 (source
11142 (origin
11143 (method url-fetch)
11144 (uri (string-append "mirror://kde/stable/release-service/" version
11145 "/src/kspaceduel-" version ".tar.xz"))
11146 (sha256
11147 (base32 "1aixh6ygif2cm1a5g32sl5y6b5x68139pzihaxq4334c6avamdai"))))
11148 (build-system qt-build-system)
11149 (native-inputs
11150 `(("extra-cmake-modules" ,extra-cmake-modules)
11151 ("kdoctools" ,kdoctools)))
11152 (inputs
11153 `(("kcompletion" ,kcompletion)
11154 ("kconfig" ,kconfig)
11155 ("kconfigwidgets" ,kconfigwidgets)
11156 ("kcoreaddons" ,kcoreaddons)
11157 ("kcrash" ,kcrash)
11158 ("kdbusaddons" ,kdbusaddons)
11159 ("ki18n" ,ki18n)
11160 ("kxmlgui" ,kxmlgui)
11161 ("libkdegames" ,libkdegames)
11162 ("qtbase" ,qtbase)
11163 ("qtdeclarative" ,qtdeclarative)
11164 ("qtsvg" ,qtsvg)))
11165 (home-page "https://games.kde.org/")
11166 (synopsis "Two player game with shooting spaceships flying around a sun")
11167 (description "KSpaceduel is a space battle game for one or two players,
11168 where two ships fly around a star in a struggle to be the only survivor.
11169
11170 This package is part of the KDE games module.")
11171 (license (list license:gpl2+ license:fdl1.2+))))
11172
11173 (define-public bovo
11174 (package
11175 (name "bovo")
11176 (version "20.12.0")
11177 (source
11178 (origin
11179 (method url-fetch)
11180 (uri (string-append "mirror://kde/stable/release-service/" version
11181 "/src/bovo-" version ".tar.xz"))
11182 (sha256
11183 (base32 "18qbac366m0xma3ary11q9zxz0wgnysppcl7kpypl6ic3nf61wqz"))))
11184 (build-system qt-build-system)
11185 (native-inputs
11186 `(("extra-cmake-modules" ,extra-cmake-modules)
11187 ("kdoctools" ,kdoctools)))
11188 (inputs
11189 `(("kcompletion" ,kcompletion)
11190 ("kcoreaddons" ,kcoreaddons)
11191 ("kcrash" ,kcrash)
11192 ("kdbusaddons" ,kdbusaddons)
11193 ("ki18n" ,ki18n)
11194 ("kxmlgui" ,kxmlgui)
11195 ("libkdegames" ,libkdegames)
11196 ("qtbase" ,qtbase)
11197 ("qtdeclarative" ,qtdeclarative)
11198 ("qtsvg" ,qtsvg)))
11199 (home-page "https://games.kde.org/")
11200 (synopsis "Classic pen and paper game: five in a line")
11201 (description "Bovo is a Gomoku (from Japanese 五目並べ - lit. \"five
11202 points\") like game for two players, where the opponents alternate in placing
11203 their respective pictogram on the game board. The winner is the first to
11204 complete a line of five markers. (Also known as: Connect Five, Five in a row,
11205 X and O, Naughts and Crosses)
11206
11207 This package is part of the KDE games module.")
11208 (license (list license:gpl2+ license:fdl1.2+))))
11209
11210 (define-public killbots
11211 (package
11212 (name "killbots")
11213 (version "20.12.0")
11214 (source
11215 (origin
11216 (method url-fetch)
11217 (uri (string-append "mirror://kde/stable/release-service/" version
11218 "/src/killbots-" version ".tar.xz"))
11219 (sha256
11220 (base32 "1296gww42nwnai7y6m2qpjqpyc30p7z9chfv5rv0n48jvdhva88y"))))
11221 (build-system qt-build-system)
11222 (native-inputs
11223 `(("extra-cmake-modules" ,extra-cmake-modules)
11224 ("kdoctools" ,kdoctools)))
11225 (inputs
11226 `(("kcompletion" ,kcompletion)
11227 ("kconfig" ,kconfig)
11228 ("kconfigwidgets" ,kconfigwidgets)
11229 ("kcoreaddons" ,kcoreaddons)
11230 ("kcrash" ,kcrash)
11231 ("kdbusaddons" ,kdbusaddons)
11232 ("ki18n" ,ki18n)
11233 ("kwidgetsaddons" ,kwidgetsaddons)
11234 ("kxmlgui" ,kxmlgui)
11235 ("libkdegames" ,libkdegames)
11236 ("qtbase" ,qtbase)
11237 ("qtdeclarative" ,qtdeclarative)))
11238 (home-page "https://games.kde.org/")
11239 (synopsis "Port of the classic BSD console game robots")
11240 (description "Killbots is a simple game of evading killer robots.
11241
11242 Who created the robots and why they have been programmed to destroy, no one
11243 knows. All that is known is that the robots are numerous and their sole
11244 objective is to destroy you. Fortunately for you, their creator has focused
11245 on quantity rather than quality and as a result the robots are severely
11246 lacking in intelligence. Your superior wit and a fancy teleportation device
11247 are your only weapons against the never-ending stream of mindless automatons.
11248
11249 This package is part of the KDE games module.")
11250 (license (list license:gpl2+ license:fdl1.2+))))
11251
11252 (define-public ksnakeduel
11253 (package
11254 (name "ksnakeduel")
11255 (version "20.12.0")
11256 (source
11257 (origin
11258 (method url-fetch)
11259 (uri (string-append "mirror://kde/stable/release-service/" version
11260 "/src/ksnakeduel-" version ".tar.xz"))
11261 (sha256
11262 (base32 "0mp6g258n3xzvgf23jnhkw10xgwqwqdzqfdc6r9jq6a6m8v77swz"))))
11263 (build-system qt-build-system)
11264 (native-inputs
11265 `(("extra-cmake-modules" ,extra-cmake-modules)
11266 ("kdoctools" ,kdoctools)))
11267 (inputs
11268 `(("kcompletion" ,kcompletion)
11269 ("kconfig" ,kconfig)
11270 ("kconfigwidgets" ,kconfigwidgets)
11271 ("kcoreaddons" ,kcoreaddons)
11272 ("kcrash" ,kcrash)
11273 ("kdbusaddons" ,kdbusaddons)
11274 ("kguiaddons" ,kguiaddons)
11275 ("ki18n" ,ki18n)
11276 ("kxmlgui" ,kxmlgui)
11277 ("libkdegames" ,libkdegames)
11278 ("qtbase" ,qtbase)
11279 ("qtdeclarative" ,qtdeclarative)
11280 ("qtsvg" ,qtsvg)))
11281 (home-page "https://games.kde.org/")
11282 (synopsis "Snake race played against the computer")
11283 (description "KSnakeDuel is a fast action game where you steer a snake
11284 which has to eat food. While eating the snake grows. But once a player
11285 collides with the other snake or the wall the game is lost. This becomes of
11286 course more and more difficult the longer the snakes grow.
11287
11288 This package is part of the KDE games module.")
11289 (license (list license:gpl2+ license:fdl1.2+))))
11290
11291 (define-public kollision
11292 (package
11293 (name "kollision")
11294 (version "20.12.0")
11295 (source
11296 (origin
11297 (method url-fetch)
11298 (uri (string-append "mirror://kde/stable/release-service/" version
11299 "/src/kollision-" version ".tar.xz"))
11300 (sha256
11301 (base32 "180ybafizpwjsg80npy0l9142cjsnlyxwv9dz3bq6r8v4smn2g6b"))))
11302 (build-system qt-build-system)
11303 (native-inputs
11304 `(("extra-cmake-modules" ,extra-cmake-modules)
11305 ("kdoctools" ,kdoctools)))
11306 (inputs
11307 `(("kcompletion" ,kcompletion)
11308 ("kconfig" ,kconfig)
11309 ("kcoreaddons" ,kcoreaddons)
11310 ("kcrash" ,kcrash)
11311 ("kdbusaddons" ,kdbusaddons)
11312 ("ki18n" ,ki18n)
11313 ("kwidgetsaddons" ,kwidgetsaddons)
11314 ("kxmlgui" ,kxmlgui)
11315 ("libkdegames" ,libkdegames)
11316 ("qtbase" ,qtbase)
11317 ("qtdeclarative" ,qtdeclarative)))
11318 (home-page "https://games.kde.org/")
11319 (synopsis "Simple ball dodging game")
11320 (description "In Kollision you use mouse to control a small blue ball in a
11321 closed space environment filled with small red balls, which move about
11322 chaotically. Your goal is to avoid touching any of those red balls with your
11323 blue one, because the moment you do the game will be over. The longer you can
11324 stay in game the higher will your score be.
11325
11326 This package is part of the KDE games module.")
11327 (license (list license:gpl2+ license:fdl1.2+))))
11328
11329 (define-public knavalbattle
11330 (package
11331 (name "knavalbattle")
11332 (version "20.12.0")
11333 (source
11334 (origin
11335 (method url-fetch)
11336 (uri (string-append "mirror://kde/stable/release-service/" version
11337 "/src/knavalbattle-" version ".tar.xz"))
11338 (sha256
11339 (base32 "03rqf4avn61b0v340ymmzgp7s0axygjgxq1nlp5aaqbx70zcb4lq"))))
11340 (build-system qt-build-system)
11341 (native-inputs
11342 `(("extra-cmake-modules" ,extra-cmake-modules)
11343 ("kdoctools" ,kdoctools)))
11344 (inputs
11345 `(("kauth" ,kauth)
11346 ("kcompletion" ,kcompletion)
11347 ("kconfig" ,kconfig)
11348 ("kconfigwidgets" ,kconfigwidgets)
11349 ("kcoreaddons" ,kcoreaddons)
11350 ("kcrash" ,kcrash)
11351 ("kdbusaddons" ,kdbusaddons)
11352 ("kdnssd" ,kdnssd)
11353 ("ki18n" ,ki18n)
11354 ("ktextwidgets" ,ktextwidgets)
11355 ("kxmlgui" ,kxmlgui)
11356 ("libkdegames" ,libkdegames)
11357 ("qtbase" ,qtbase)
11358 ("qtdeclarative" ,qtdeclarative)))
11359 (home-page "https://games.kde.org/")
11360 (synopsis "Battleship board game with built-in game server")
11361 (description "KBattleship is a Battle Ship game for KDE.
11362
11363 Ships are placed on a board which represents the sea. Players try to hit each
11364 others ships in turns without knowing where they are placed. The first player
11365 to destroy all ships wins the game.
11366
11367 This package is part of the KDE games module.")
11368 (license (list license:gpl2+ license:fdl1.2+))))
11369
11370 (define-public kreversi
11371 (package
11372 (name "kreversi")
11373 (version "20.08.3")
11374 (source
11375 (origin
11376 (method url-fetch)
11377 (uri (string-append "mirror://kde/stable/release-service/" version
11378 "/src/kreversi-" version ".tar.xz"))
11379 (sha256
11380 (base32 "0d3y072q61xcik9lf0pz0c9njvarwlvf6hqv5fp5jyqaf2902pmi"))))
11381 (build-system qt-build-system)
11382 (native-inputs
11383 `(("extra-cmake-modules" ,extra-cmake-modules)
11384 ("kdoctools" ,kdoctools)))
11385 (inputs
11386 `(("kconfig" ,kconfig)
11387 ("kconfigwidgets" ,kconfigwidgets)
11388 ("kcoreaddons" ,kcoreaddons)
11389 ("kcrash" ,kcrash)
11390 ("kdbusaddons" ,kdbusaddons)
11391 ("kdeclarative" ,kdeclarative)
11392 ("ki18n" ,ki18n)
11393 ("kiconthemes" ,kiconthemes)
11394 ("kio" ,kio)
11395 ("kxmlgui" ,kxmlgui)
11396 ("libkdegames" ,libkdegames)
11397 ("qtbase" ,qtbase)
11398 ("qtdeclarative" ,qtdeclarative)
11399 ("qtsvg" ,qtsvg)))
11400 (home-page "https://games.kde.org/")
11401 (synopsis "Old reversi board game, also known as othello")
11402 (description "KReversi is a simple one player strategy game played
11403 against the computer.
11404
11405 If a player's piece is captured by an opposing player, that piece is turned
11406 over to reveal the color of that player. A winner is declared when one player
11407 has more pieces of his own color on the board and there are no more possible
11408 moves.
11409
11410 This package is part of the KDE games module.")
11411 (license (list license:gpl2+ license:fdl1.2+))))
11412
11413 (define-public ksquares
11414 (package
11415 (name "ksquares")
11416 (version "20.12.0")
11417 (source
11418 (origin
11419 (method url-fetch)
11420 (uri (string-append "mirror://kde/stable/release-service/" version
11421 "/src/ksquares-" version ".tar.xz"))
11422 (sha256
11423 (base32 "0chd30byl2kww1k699vkygrxq2wdyvi84m2bimk23q96fl8h831y"))))
11424 (build-system qt-build-system)
11425 (native-inputs
11426 `(("extra-cmake-modules" ,extra-cmake-modules)
11427 ("kdoctools" ,kdoctools)))
11428 (inputs
11429 `(("kcompletion" ,kcompletion)
11430 ("kconfig" ,kconfig)
11431 ("kconfigwidgets" ,kconfigwidgets)
11432 ("kcoreaddons" ,kcoreaddons)
11433 ("kcrash" ,kcrash)
11434 ("kdbusaddons" ,kdbusaddons)
11435 ("ki18n" ,ki18n)
11436 ("kwidgetsaddons" ,kwidgetsaddons)
11437 ("kxmlgui" ,kxmlgui)
11438 ("libkdegames" ,libkdegames)
11439 ("qtbase" ,qtbase)
11440 ("qtdeclarative" ,qtdeclarative)))
11441 (home-page "https://games.kde.org/")
11442 (synopsis "Dots and Boxes game")
11443 (description "KSquares is an implementation of the popular paper based
11444 game Squares. Two players take turns connecting dots on a grid to complete
11445 squares, the player with the most squares wins.
11446
11447 This package is part of the KDE games module.")
11448 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
11449
11450 (define-public kjumpingcube
11451 (package
11452 (name "kjumpingcube")
11453 (version "20.12.0")
11454 (source
11455 (origin
11456 (method url-fetch)
11457 (uri (string-append "mirror://kde/stable/release-service/" version
11458 "/src/kjumpingcube-" version ".tar.xz"))
11459 (sha256
11460 (base32 "1mk73il4jh15z5pm3fp65hsyvmrga11c3h7w96yamy2n2bbniapq"))))
11461 (build-system qt-build-system)
11462 (native-inputs
11463 `(("extra-cmake-modules" ,extra-cmake-modules)
11464 ("kdoctools" ,kdoctools)))
11465 (inputs
11466 `(("kconfig" ,kconfig)
11467 ("kconfigwidgets" ,kconfigwidgets)
11468 ("kcoreaddons" ,kcoreaddons)
11469 ("kcrash" ,kcrash)
11470 ("kdbusaddons" ,kdbusaddons)
11471 ("ki18n" ,ki18n)
11472 ("kio" ,kio)
11473 ("kwidgetsaddons" ,kwidgetsaddons)
11474 ("kxmlgui" ,kxmlgui)
11475 ("libkdegames" ,libkdegames)
11476 ("qtbase" ,qtbase)
11477 ("qtdeclarative" ,qtdeclarative)
11478 ("qtsvg" ,qtsvg)))
11479 (home-page "https://games.kde.org/")
11480 (synopsis "Simple tactical game for number-crunchers")
11481 (description "KJumpingcube is a simple tactical game for one or two
11482 players, played on a grid of numbered squares. Each turn, players compete for
11483 control of the board by capturing or adding to one square.
11484
11485 This package is part of the KDE games module.")
11486 (license (list license:gpl2+ license:fdl1.2+))))
11487
11488 (define-public xmoto
11489 (package
11490 (name "xmoto")
11491 (version "0.6.1")
11492 (source
11493 (origin
11494 (method git-fetch)
11495 (uri (git-reference
11496 (url "https://github.com/xmoto/xmoto")
11497 (commit version)))
11498 (file-name (git-file-name name version))
11499 (sha256
11500 (base32 "00f5ha79lfa2iiaz66wl0hl5dapa1l15qdr7m7knzi0ll7j6z66n"))
11501 (modules '((guix build utils)
11502 (ice-9 ftw)
11503 (srfi srfi-1)))
11504 ;; XXX: Remove some bundled libraries. Guix provides Chipmunk, but
11505 ;; it appears to be incompatible with the (older) one bundled.
11506 (snippet
11507 `(begin
11508 (let ((keep '("chipmunk" "glad" "md5sum")))
11509 (with-directory-excursion "vendor"
11510 (for-each delete-file-recursively
11511 (lset-difference string=?
11512 (scandir ".")
11513 (cons* "." ".." keep))))
11514 (substitute* "src/CMakeLists.txt"
11515 (("add_subdirectory\\(.*?/vendor/(.+?)\".*" line library)
11516 (if (member library keep) line ""))))
11517 #t))))
11518 (build-system cmake-build-system)
11519 (arguments
11520 `(#:tests? #f ;no test
11521 #:phases
11522 (modify-phases %standard-phases
11523 (add-after 'unpack 'fix-hard-coded-directory
11524 (lambda* (#:key outputs #:allow-other-keys)
11525 (substitute* "src/common/VFileIO.cpp"
11526 (("/usr/share")
11527 (string-append (assoc-ref outputs "out") "/share")))
11528 #t))
11529 (add-before 'build 'set-SDL
11530 ;; Set correct environment for SDL.
11531 (lambda* (#:key inputs #:allow-other-keys)
11532 (setenv "CPATH"
11533 (string-append
11534 (assoc-ref inputs "sdl") "/include/SDL:"
11535 (or (getenv "CPATH") "")))
11536 #t))
11537 (add-after 'install 'unbundle-fonts
11538 ;; Unbundle DejaVuSans TTF files.
11539 (lambda* (#:key outputs inputs #:allow-other-keys)
11540 (let ((font-dir (string-append (assoc-ref inputs "font-dejavu")
11541 "/share/fonts/truetype/"))
11542 (target-dir (string-append (assoc-ref outputs "out")
11543 "/share/xmoto/Textures/Fonts/")))
11544 (for-each (lambda (f)
11545 (let ((font (string-append font-dir f))
11546 (target (string-append target-dir f)))
11547 (delete-file target)
11548 (symlink font target)))
11549 '("DejaVuSans.ttf" "DejaVuSansMono.ttf"))
11550 #t))))))
11551 (native-inputs
11552 `(("gettext" ,gettext-minimal)
11553 ("pkg-config" ,pkg-config)))
11554 (inputs
11555 `(("bzip2" ,bzip2)
11556 ("curl" ,curl)
11557 ("font-dejavu" ,font-dejavu)
11558 ("glu" ,glu)
11559 ("libjpeg" ,libjpeg-turbo)
11560 ("libpng" ,libpng)
11561 ("libxdg-basedir" ,libxdg-basedir)
11562 ("libxml2" ,libxml2)
11563 ("lua" ,lua-5.1)
11564 ("ode" ,ode)
11565 ("sdl" ,(sdl-union (list sdl sdl-mixer sdl-net sdl-ttf)))
11566 ("sqlite" ,sqlite)
11567 ("zlib" ,zlib)))
11568 (home-page "https://xmoto.tuxfamily.org/")
11569 (synopsis "2D motocross platform game")
11570 (description
11571 "X-Moto is a challenging 2D motocross platform game, where
11572 physics play an all important role in the gameplay. You need to
11573 control your bike to its limit, if you want to have a chance finishing
11574 the more difficult challenges.")
11575 (license (list license:gpl2+ ;whole project
11576 license:bsd-3 ;vendor/md5sum
11577 license:lgpl2.1+
11578 license:expat))))
11579
11580 (define-public eboard
11581 (package
11582 (name "eboard")
11583 (version "1.1.3")
11584 (source
11585 (origin
11586 (method git-fetch)
11587 (uri (git-reference
11588 (url "https://github.com/fbergo/eboard")
11589 (commit (string-append "v" version))))
11590 (file-name (git-file-name name version))
11591 (sha256
11592 (base32 "1z4pwpqyvxhlda99h6arh2rjk90fbms9q29fqizjblrdn01dlxn1"))))
11593 (build-system gnu-build-system)
11594 (native-inputs
11595 `(("perl" ,perl)
11596 ("pkg-config" ,pkg-config)))
11597 (inputs
11598 `(("gtk+" ,gtk+-2)
11599 ("libpng" ,libpng)
11600 ("gstreamer" ,gstreamer)))
11601 (arguments
11602 `(#:tests? #f
11603 #:phases
11604 (modify-phases %standard-phases
11605 (replace 'configure
11606 (lambda* (#:key outputs #:allow-other-keys)
11607 (make-file-writable "eboard-config")
11608 (setenv "CC" "gcc")
11609 (invoke "./configure"
11610 (string-append "--prefix=" (assoc-ref outputs "out")))
11611 #t))
11612 (add-before 'install 'make-required-directories
11613 (lambda* (#:key outputs #:allow-other-keys)
11614 (mkdir-p (string-append (assoc-ref outputs "out")
11615 "/share/eboard"))
11616 #t)))))
11617 (synopsis "Graphical user interface to play chess")
11618 (description
11619 "Eboard is a chess board interface for ICS (Internet Chess Servers)
11620 and chess engines.")
11621 (home-page "https://www.bergo.eng.br/eboard/")
11622 (license license:gpl2+)))
11623
11624 (define-public chessx
11625 (package
11626 (name "chessx")
11627 (version "1.5.4")
11628 (source
11629 (origin
11630 (method url-fetch)
11631 (uri (string-append "mirror://sourceforge/chessx/chessx/"
11632 version "/chessx-" version ".tgz"))
11633 (sha256
11634 (base32 "1a3541vl5hp6jllgx998w9kjh9kp3wrl80yfwkxmq1bc5bzsrnz2"))))
11635 (build-system qt-build-system)
11636 (native-inputs
11637 `(("qttools" ,qttools)))
11638 (inputs
11639 `(("qtbase" ,qtbase)
11640 ("qtmultimedia" ,qtmultimedia)
11641 ("qtspeech" ,qtspeech)
11642 ("qtsvg" ,qtsvg)
11643 ("zlib" ,zlib)))
11644 (arguments
11645 `(#:tests? #f
11646 #:phases
11647 (modify-phases %standard-phases
11648 (add-after 'unpack 'fix-paths
11649 (lambda* (#:key inputs #:allow-other-keys)
11650 (substitute* "chessx.pro"
11651 (("\\$\\$\\[QT_INSTALL_BINS\\]/lrelease")
11652 (string-append (assoc-ref inputs "qttools") "/bin/lrelease"))
11653 ;; Fix missing translations.
11654 (("TRANSLATIONS = i18n/chessx_de.ts")
11655 "TRANSLATIONS = i18n/chessx_de.ts i18n/chessx_da.ts \\
11656 i18n/chessx_fr.ts i18n/chessx_it.ts i18n/chessx_cz.ts i18n/chessx_ru.ts \\
11657 i18n/chessx_es.ts"))
11658 #t))
11659 (add-after 'fix-paths 'make-qt-deterministic
11660 (lambda _
11661 (setenv "QT_RCC_SOURCE_DATE_OVERRIDE" "1")
11662 #t))
11663 (replace 'configure
11664 (lambda _
11665 (invoke "qmake")
11666 #t))
11667 (replace 'install
11668 (lambda* (#:key outputs #:allow-other-keys)
11669 (let ((out (assoc-ref outputs "out")))
11670 (install-file "release/chessx" (string-append out "/bin"))
11671 (install-file "unix/chessx.desktop"
11672 (string-append out "/share/applications")))
11673 #t)))))
11674 (synopsis "Chess game database")
11675 (description
11676 "ChessX is a chess database. With ChessX you can operate on your
11677 collection of chess games in many ways: browse, edit, add, organize, analyze,
11678 etc. You can also play games on FICS or against an engine.")
11679 (home-page "http://chessx.sourceforge.net/")
11680 (license license:gpl2+)))
11681
11682 (define-public stockfish
11683 (package
11684 (name "stockfish")
11685 (version "12")
11686 (source
11687 (origin
11688 (method git-fetch)
11689 (uri (git-reference
11690 (url "https://github.com/official-stockfish/Stockfish")
11691 (commit (string-append "sf_" version))))
11692 (file-name (git-file-name name version))
11693 (sha256
11694 (base32 "0vcymbwp5nf114pp3ax40s21ki5dckda15vmhr77d1mnq3fn0l32"))))
11695 (build-system gnu-build-system)
11696 (inputs
11697 `(("neural-network"
11698 ,(origin
11699 (method url-fetch)
11700 (uri "https://tests.stockfishchess.org/api/nn/nn-82215d0fd0df.nnue")
11701 (sha256
11702 (base32 "1r4yqrh4di05syyhl84hqcz84djpbd605b27zhbxwg6zs07ms8c2"))))))
11703 (arguments
11704 `(#:tests? #f
11705 #:make-flags (list "-C" "src"
11706 "build"
11707 (string-append "PREFIX="
11708 (assoc-ref %outputs "out"))
11709 (string-append "ARCH="
11710 ,(match (%current-system)
11711 ("x86_64-linux" "x86-64")
11712 ("i686-linux" "x86-32")
11713 ("aarch64-linux" "general-64")
11714 ("armhf-linux" "armv7")
11715 ("mips64el-linux" "general-64")
11716 (_ "general-32"))))
11717 #:phases (modify-phases %standard-phases
11718 (delete 'configure)
11719 ;; The official neural network file is needed for building
11720 ;; and is embedded in the resulting binary.
11721 (add-after 'unpack 'copy-net
11722 (lambda* (#:key inputs #:allow-other-keys)
11723 (copy-file (assoc-ref inputs "neural-network")
11724 "src/nn-82215d0fd0df.nnue")
11725 #t)))))
11726 (synopsis "Strong chess engine")
11727 (description
11728 "Stockfish is a very strong chess engine. It is much stronger than the
11729 best human chess grandmasters. It can be used with UCI-compatible GUIs like
11730 ChessX.")
11731 (home-page "https://stockfishchess.org/")
11732 (license license:gpl3+)))
11733
11734 (define-public barrage
11735 (package
11736 (name "barrage")
11737 (version "1.0.5")
11738 (source
11739 (origin
11740 (method url-fetch)
11741 (uri (string-append "mirror://sourceforge/lgames/barrage/"
11742 "barrage-" version ".tar.gz"))
11743 (sha256
11744 (base32 "0139wxyrir10cbkvkjn548xgmp84wax8mfwk80yxbxlcdamrg257"))))
11745 (build-system gnu-build-system)
11746 (inputs
11747 `(("hicolor-icon-theme" ,hicolor-icon-theme)
11748 ("sdl" ,sdl)
11749 ("sdl-mixer" ,sdl-mixer)))
11750 (arguments
11751 `(#:configure-flags
11752 (list
11753 (string-append "CFLAGS="
11754 "-I" (assoc-ref %build-inputs "sdl-mixer")
11755 "/include/SDL"))))
11756 (home-page "http://lgames.sourceforge.net/Barrage/")
11757 (synopsis "Violent point-and-click shooting game with nice effects")
11758 (description
11759 "Barrage is a rather destructive action game that puts you on a shooting
11760 range with the objective to hit as many dummy targets as possible within
11761 3 minutes. You control a gun that may either fire small or large grenades at
11762 soldiers, jeeps and tanks. The gameplay is simple but it is not that easy to
11763 get high scores.")
11764 (license license:gpl2+)))
11765
11766 (define-public burgerspace
11767 (package
11768 (name "burgerspace")
11769 (version "1.9.3")
11770 (source
11771 (origin
11772 (method url-fetch)
11773 (uri (string-append "http://perso.b2b2c.ca/~sarrazip/dev/"
11774 "burgerspace-" version ".tar.gz"))
11775 (sha256
11776 (base32 "1005a04rbn4lzjrpfg0m394k2mfaji63fm2qhdqdsxila8a6kjbv"))))
11777 (build-system gnu-build-system)
11778 (native-inputs
11779 `(("pkg-config" ,pkg-config)))
11780 (inputs
11781 `(("flatzebra" ,flatzebra)))
11782 (home-page "http://perso.b2b2c.ca/~sarrazip/dev/burgerspace.html")
11783 (synopsis "Avoid evil foodstuffs and make burgers")
11784 (description
11785 "This is a clone of the classic game BurgerTime. In it, you play
11786 the part of a chef who must create burgers by stepping repeatedly on
11787 the ingredients until they fall into place. And to make things more
11788 complicated, you also must avoid evil animate food items while
11789 performing this task, with nothing but your trusty pepper shaker to
11790 protect you.")
11791 (license license:gpl2+)))
11792
11793 (define-public 7kaa
11794 (package
11795 (name "7kaa")
11796 (version "2.15.4p1")
11797 (source
11798 (origin
11799 (method url-fetch)
11800 (uri (string-append "https://github.com/the3dfxdude/7kaa/"
11801 "releases/download/v" version "/"
11802 "7kaa-" version ".tar.xz"))
11803 (sha256
11804 (base32 "1y7v0jhp3apb619p7asikqr1dnwb2yxbh40wbx1ppmr5f03mq9ph"))))
11805 (build-system gnu-build-system)
11806 (native-inputs
11807 `(("gettext" ,gettext-minimal)
11808 ("pkg-config" ,pkg-config)))
11809 (inputs
11810 `(("curl" ,curl)
11811 ("enet" ,enet)
11812 ("openal" ,openal)
11813 ("sdl2" ,sdl2)))
11814 (home-page "https://7kfans.com/")
11815 (synopsis "Seven Kingdoms Ancient Adversaries: real-time strategy game")
11816 (description
11817 "Seven Kingdoms, designed by Trevor Chan, brings a blend of Real-Time
11818 Strategy with the addition of trade, diplomacy, and espionage. The game
11819 enables players to compete against up to six other kingdoms allowing players
11820 to conquer opponents by defeating them in war (with troops or machines),
11821 capturing their buildings with spies, or offering opponents money for their
11822 kingdom.")
11823 (license license:gpl2+)))
11824
11825 (define-public neverball
11826 ;; Git version is 6-years younger than latest release.
11827 (let ((commit "760a25d32a5fb0661b99426d4ddcb9ac9f3d1644")
11828 (revision "1"))
11829 (package
11830 (name "neverball")
11831 (version (git-version "1.6.0" revision commit))
11832 (source
11833 (origin
11834 (method git-fetch)
11835 (uri (git-reference
11836 (url "https://github.com/Neverball/neverball")
11837 (commit commit)))
11838 (sha256
11839 (base32
11840 "0bwh67df3lyf33bv710y25l3frjdd34j9b7gsjadwxviz6r1vpj5"))
11841 (file-name (git-file-name name version))
11842 (modules '((guix build utils)))
11843 (snippet
11844 '(begin
11845 ;; Octocat seems to be non-free. Oddly, Debian doesn't strip it.
11846 (delete-file-recursively "data/ball/octocat")
11847 #t))))
11848 (build-system copy-build-system)
11849 (arguments
11850 `(#:install-plan
11851 '(("neverball" "bin/")
11852 ("neverputt" "bin/")
11853 ("mapc" "bin/")
11854 ("data" "share/games/neverball/")
11855 ("locale" "share/")
11856 ("dist/" "share/games/neverball" #:include ("neverball_replay.png"
11857 "neverlogos.svg"
11858 "svg readme.txt"))
11859 ("dist/" "share/applications" #:include ("neverball.desktop"
11860 "neverputt.desktop"))
11861 ("dist/neverball_16.png"
11862 "/share/icons/hicolor/16x16/apps/neverball.png")
11863 ("dist/neverball_24.png"
11864 "/share/icons/hicolor/24x24/apps/neverball.png")
11865 ("dist/neverball_32.png"
11866 "/share/icons/hicolor/32x32/apps/neverball.png")
11867 ("dist/neverball_48.png"
11868 "/share/icons/hicolor/48x48/apps/neverball.png")
11869 ("dist/neverball_64.png"
11870 "/share/icons/hicolor/64x64/apps/neverball.png")
11871 ("dist/neverball_128.png"
11872 "/share/icons/hicolor/128x128/apps/neverball.png")
11873 ("dist/neverball_256.png"
11874 "/share/icons/hicolor/256x256/apps/neverball.png")
11875 ("dist/neverball_512.png"
11876 "/share/icons/hicolor/512x512/apps/neverball.png")
11877 ("dist/neverputt_16.png"
11878 "/share/icons/hicolor/16x16/apps/neverputt.png")
11879 ("dist/neverputt_24.png"
11880 "/share/icons/hicolor/24x24/apps/neverputt.png")
11881 ("dist/neverputt_32.png"
11882 "/share/icons/hicolor/32x32/apps/neverputt.png")
11883 ("dist/neverputt_48.png"
11884 "/share/icons/hicolor/48x48/apps/neverputt.png")
11885 ("dist/neverputt_64.png"
11886 "/share/icons/hicolor/64x64/apps/neverputt.png")
11887 ("dist/neverputt_128.png"
11888 "/share/icons/hicolor/128x128/apps/neverputt.png")
11889 ("dist/neverputt_256.png"
11890 "/share/icons/hicolor/256x256/apps/neverputt.png")
11891 ("dist/neverputt_512.png"
11892 "/share/icons/hicolor/512x512/apps/neverputt.png")
11893 ("dist/" "share/man/man1" #:include ("mapc.1"))
11894 ("dist/" "share/man/man6" #:include ("neverball.6" "neverputt.6"))
11895 ("doc/" "share/doc/neverball")
11896 ("README.md" "share/doc/neverball/"))
11897 #:phases
11898 (modify-phases %standard-phases
11899 (add-before 'install 'build
11900 (lambda* (#:key inputs outputs #:allow-other-keys)
11901 (let* ((out (assoc-ref outputs "out"))
11902 (sdl (assoc-ref inputs "sdl")))
11903 (invoke "make" "-j" (number->string (parallel-job-count))
11904 "--environment-overrides"
11905 "CC=gcc" "BUILD=release"
11906 (string-append "DATADIR="
11907 out
11908 "/share/games/neverball/data")
11909 (string-append "LOCALEDIR=" out "/share/locale")
11910 (string-append "SDL_CPPFLAGS=-I"
11911 sdl
11912 "/include/SDL2/")))
11913 #t))
11914 (add-after 'install 'fix-some-broken-fonts
11915 (lambda* (#:key outputs #:allow-other-keys)
11916 (let* ((out (assoc-ref outputs "out")))
11917 (wrap-program (string-append out "/bin/neverball")
11918 `("LANG" = ("en_US.utf8")))
11919 (wrap-program (string-append out "/bin/neverputt")
11920 `("LANG" = ("en_US.utf8"))))
11921 #t)))))
11922 (native-inputs
11923 `(("gettext" ,gettext-minimal))) ;for msgfmt
11924 (inputs
11925 `(("libjpeg" ,libjpeg-turbo)
11926 ("libpng" ,libpng)
11927 ("libvorbis" ,libvorbis)
11928 ("physfs" ,physfs)
11929 ("sdl" ,(sdl-union (list sdl2 sdl2-ttf)))))
11930 (home-page "https://neverball.org/")
11931 (synopsis "3D floor-tilting game")
11932 (description
11933 "In the grand tradition of Marble Madness and Super Monkey Ball,
11934 Neverball has you guide a rolling ball through dangerous territory. Balance
11935 on narrow bridges, navigate mazes, ride moving platforms, and dodge pushers
11936 and shovers to get to the goal. Race against the clock to collect coins to
11937 earn extra balls. Also included is Neverputt, which is a 3D miniature golf
11938 game.") ;thanks to Debian for description
11939 (license license:gpl2+))))
11940
11941 (define-public pokerth
11942 (package
11943 (name "pokerth")
11944 (version "1.1.2")
11945 (source
11946 (origin
11947 (method url-fetch)
11948 (uri (string-append "mirror://sourceforge/pokerth/pokerth/"
11949 version "/pokerth-" version ".tar.gz"))
11950 (sha256
11951 (base32 "0yi9bj3k8yc1gkwmaf14zbbvvn13n54n1dli8k6j1pkph3p3vjq2"))
11952 (modules '((guix build utils)))
11953 (snippet
11954 '(begin
11955 ;; Remove bundled websocketpp.
11956 (delete-file-recursively "src/third_party/websocketpp")
11957 (substitute* "pokerth_lib.pro"
11958 (("src/third_party/websocketpp")
11959 ""))
11960 #t))))
11961 (build-system qt-build-system)
11962 (inputs
11963 `(("boost" ,boost)
11964 ("curl" ,curl)
11965 ("gsasl" ,gsasl)
11966 ("libgcrypt" ,libgcrypt)
11967 ("libircclient" ,libircclient)
11968 ("protobuf" ,protobuf-2) ; remove package when no longer needed
11969 ("qtbase" ,qtbase)
11970 ("sdl" ,(sdl-union (list sdl sdl-mixer)))
11971 ("sqlite" ,sqlite)
11972 ("tinyxml" ,tinyxml)
11973 ("websocketpp" ,websocketpp)
11974 ("zlib" ,zlib)))
11975 (arguments
11976 `(#:tests? #f ; No test suite
11977 #:phases
11978 (modify-phases %standard-phases
11979 (add-after 'unpack 'fix-paths
11980 (lambda* (#:key inputs #:allow-other-keys)
11981 (substitute* (find-files "." "\\.pro$")
11982 (("/opt/gsasl")
11983 (assoc-ref inputs "gsasl"))
11984 (("\\$\\$\\{PREFIX\\}/include/libircclient")
11985 (string-append (assoc-ref inputs "libircclient")
11986 "/include/libircclient"))
11987 (("LIB_DIRS =")
11988 (string-append "LIB_DIRS = "
11989 (assoc-ref inputs "boost") "/lib")))
11990 #t))
11991 (add-after 'unpack 'fix-build
11992 (lambda _
11993 ;; Fixes for Boost versions >= 1.66.
11994 (substitute* '("src/net/common/clientthread.cpp"
11995 "src/net/serveraccepthelper.h")
11996 (("boost::asio::socket_base::non_blocking_io command\\(true\\);")
11997 "")
11998 (("newSock->io_control\\(command\\);")
11999 "newSock->non_blocking(true);")
12000 (("acceptedSocket->io_control\\(command\\);")
12001 "acceptedSocket->non_blocking(true);"))
12002 #t))
12003 (replace 'configure
12004 (lambda* (#:key outputs #:allow-other-keys)
12005 (invoke "qmake" "pokerth.pro" "CONFIG+=client"
12006 (string-append "PREFIX=" (assoc-ref outputs "out"))))))))
12007 (home-page "https://www.pokerth.net")
12008 (synopsis "Texas holdem poker game")
12009 (description
12010 "With PokerTH you can play the Texas holdem poker game, either against
12011 computer opponents or against real players online.")
12012 (license license:agpl3+)))
12013
12014 (define-public azimuth
12015 (package
12016 (name "azimuth")
12017 ;; Not marked as latest release, but it fixes a compiling issue
12018 ;; and adds the install target.
12019 (version "1.0.3")
12020 (source
12021 (origin
12022 (method git-fetch)
12023 (uri (git-reference
12024 (url "https://github.com/mdsteele/azimuth")
12025 (commit (string-append "v" version))))
12026 (file-name (git-file-name name version))
12027 (sha256
12028 (base32
12029 "1znfvpmqiixd977jv748glk5zc4cmhw5813zp81waj07r9b0828r"))))
12030 (build-system gnu-build-system)
12031 (arguments
12032 `(#:test-target "test"
12033 #:phases
12034 (modify-phases %standard-phases
12035 (delete 'configure) ; no configure script
12036 ;; Build release version instead of debug version.
12037 (add-after 'unpack 'set-release
12038 (lambda _
12039 (setenv "BUILDTYPE" "release") #t))
12040 (add-after 'unpack 'fix-install ; set install directory
12041 (lambda* (#:key outputs #:allow-other-keys)
12042 (substitute* "Makefile" (("/usr") (assoc-ref outputs "out"))) #t)))))
12043 (inputs `(("sdl" ,sdl)))
12044 (home-page "https://mdsteele.games/azimuth/")
12045 (synopsis "Metroidvania game with vector graphics")
12046 (description
12047 "Pilot your ship inside a planet to find and rescue the colonists trapped
12048 inside the Zenith Colony.")
12049 (license license:gpl3+)))
12050
12051 (define-public cgoban
12052 (package
12053 (name "cgoban")
12054 (version "1.9.14")
12055 (source
12056 (origin
12057 (method url-fetch)
12058 (uri (string-append "mirror://sourceforge/cgoban1/cgoban1/"
12059 version "/cgoban-" version ".tar.gz"))
12060 (sha256
12061 (base32 "0qlvkiaglqq0izfph3l04mp4rqqqm9ks6rcsrmzrggw9x706z2iv"))))
12062 (build-system gnu-build-system)
12063 (inputs
12064 `(("libx11" ,libx11)
12065 ("libxt" ,libxt)
12066 ("xorgproto" ,xorgproto)))
12067 (home-page "http://cgoban1.sourceforge.net/")
12068 (synopsis "Go client for X11")
12069 (description "Provides a large set of Go-related services for X11:
12070 @itemize
12071 @item Local games with precise implementation of the Chinese and Japanese rulesets
12072 @item Edition and visualization of SGF files-Connection to the NNGS or IGS Go servers
12073 @item Bridge to Go modem protocol, allowing to play against Go modem-capable AIs
12074 such as GnuGo.
12075 @end itemize")
12076 (license license:gpl2+)))
12077
12078 (define-public paperview
12079 (let ((commit "9f8538eb6734c76877b878b8f1e52587f2ae19e6")
12080 (revision "1"))
12081 (package
12082 (name "paperview")
12083 (version (git-version "0.0.1" revision commit)) ;no upstream release
12084 (source (origin
12085 (method git-fetch)
12086 (uri (git-reference
12087 (url "https://github.com/glouw/paperview")
12088 (commit commit)))
12089 (file-name (git-file-name name version))
12090 (sha256
12091 (base32
12092 "09sb9sg44fvkgfdyycrm1ndpx7cnkrglxhci41y8f3gpagnvi7jk"))))
12093 (build-system gnu-build-system)
12094 (inputs
12095 `(("sdl2" ,sdl2)))
12096 (arguments
12097 '(#:tests? #f ;no tests
12098 #:make-flags
12099 (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
12100 #:phases
12101 (modify-phases %standard-phases
12102 (delete 'configure))))
12103 (home-page "https://github.com/glouw/paperview/")
12104 (synopsis "High performance X11 animated wallpaper setter")
12105 (description "High performance animated desktop background setter for
12106 X11 that won't set your CPU on fire, drain your laptop battery, or lower video
12107 game FPS.")
12108 (license license:unlicense))))
12109
12110 (define-public curseofwar
12111 (package
12112 (name "curseofwar")
12113 (version "1.3.0")
12114 (source
12115 (origin
12116 (method git-fetch)
12117 (uri (git-reference
12118 (url "https://github.com/a-nikolaev/curseofwar")
12119 (commit (string-append "v" version))))
12120 (file-name (git-file-name name version))
12121 (sha256
12122 (base32 "1wd71wdnj9izg5d95m81yx3684g4zdi7fsy0j5wwnbd9j34ilz1i"))))
12123 (build-system gnu-build-system)
12124 (arguments
12125 `(#:tests? #f ; no tests
12126 #:make-flags
12127 (list (string-append "CC=" ,(cc-for-target))
12128 (string-append "PREFIX=" (assoc-ref %outputs "out")))
12129 #:phases
12130 (modify-phases %standard-phases
12131 (delete 'configure))))
12132 (inputs `(("ncurses" ,ncurses)))
12133 (home-page "https://a-nikolaev.github.io/curseofwar/")
12134 (synopsis "Fast-paced action strategy game")
12135 (description "Curse of War is a fast-paced action strategy game originally
12136 implemented using ncurses user interface. An SDL graphical version is also
12137 available.")
12138 (license license:gpl3+)))