gnu: python-lxml: Use HTTPS home page.
[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 Eric Bavier <bavier@member.fsf.org>
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 ng0 <ng0@n0.is>
19 ;;; Copyright © 2016 Albin Söderqvist <albin@fripost.org>
20 ;;; Copyright © 2016, 2017, 2018, 2019 Kei Kebreau <kkebreau@posteo.net>
21 ;;; Copyright © 2016 Alex Griffin <a@ajgrf.com>
22 ;;; Copyright © 2016, 2017, 2018, 2019 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 Arun Isaac <arunisaac@systemreboot.net>
27 ;;; Copyright © 2017, 2018, 2019, 2020 Tobias Geerinckx-Rice <me@tobias.gr>
28 ;;; Copyright © 2017, 2019 nee <nee-git@hidamari.blue>
29 ;;; Copyright © 2017 Clément Lassieur <clement@lassieur.org>
30 ;;; Copyright © 2017, 2019 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 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 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 Jesse Gibbons <jgibbons2357+guix@gmail.com>
44 ;;; Copyright © 2019 Dan Frumin <dfrumin@cs.ru.nl>
45 ;;; Copyright © 2019 Guillaume Le Vaillant <glv@posteo.net>
46 ;;; Copyright © 2019 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 ;;;
50 ;;; This file is part of GNU Guix.
51 ;;;
52 ;;; GNU Guix is free software; you can redistribute it and/or modify it
53 ;;; under the terms of the GNU General Public License as published by
54 ;;; the Free Software Foundation; either version 3 of the License, or (at
55 ;;; your option) any later version.
56 ;;;
57 ;;; GNU Guix is distributed in the hope that it will be useful, but
58 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
59 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
60 ;;; GNU General Public License for more details.
61 ;;;
62 ;;; You should have received a copy of the GNU General Public License
63 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
64
65 (define-module (gnu packages games)
66 #:use-module (ice-9 match)
67 #:use-module ((guix licenses) #:prefix license:)
68 #:use-module (guix utils)
69 #:use-module (guix packages)
70 #:use-module (guix download)
71 #:use-module (guix git-download)
72 #:use-module (guix svn-download)
73 #:use-module (guix gexp)
74 #:use-module (gnu packages)
75 #:use-module (gnu packages algebra)
76 #:use-module (gnu packages autotools)
77 #:use-module (gnu packages backup)
78 #:use-module (gnu packages base)
79 #:use-module (gnu packages build-tools)
80 #:use-module (gnu packages admin)
81 #:use-module (gnu packages audio)
82 #:use-module (gnu packages avahi)
83 #:use-module (gnu packages assembly)
84 #:use-module (gnu packages bash)
85 #:use-module (gnu packages bison)
86 #:use-module (gnu packages boost)
87 #:use-module (gnu packages check)
88 #:use-module (gnu packages cmake)
89 #:use-module (gnu packages compression)
90 #:use-module (gnu packages curl)
91 #:use-module (gnu packages crypto)
92 #:use-module (gnu packages cyrus-sasl)
93 #:use-module (gnu packages documentation)
94 #:use-module (gnu packages docbook)
95 #:use-module (gnu packages emulators)
96 #:use-module (gnu packages flex)
97 #:use-module (gnu packages fltk)
98 #:use-module (gnu packages fonts)
99 #:use-module (gnu packages fontutils)
100 #:use-module (gnu packages freedesktop)
101 #:use-module (gnu packages fribidi)
102 #:use-module (gnu packages game-development)
103 #:use-module (gnu packages gcc)
104 #:use-module (gnu packages gettext)
105 #:use-module (gnu packages ghostscript)
106 #:use-module (gnu packages gimp)
107 #:use-module (gnu packages gl)
108 #:use-module (gnu packages glib)
109 #:use-module (gnu packages gnome)
110 #:use-module (gnu packages gnuzilla)
111 #:use-module (gnu packages gperf)
112 #:use-module (gnu packages graphics)
113 #:use-module (gnu packages gstreamer)
114 #:use-module (gnu packages gtk)
115 #:use-module (gnu packages guile)
116 #:use-module (gnu packages haskell)
117 #:use-module (gnu packages haskell-crypto)
118 #:use-module (gnu packages haskell-xyz)
119 #:use-module (gnu packages icu4c)
120 #:use-module (gnu packages image)
121 #:use-module (gnu packages imagemagick)
122 #:use-module (gnu packages kde)
123 #:use-module (gnu packages kde-frameworks)
124 #:use-module (gnu packages less)
125 #:use-module (gnu packages libcanberra)
126 #:use-module (gnu packages libedit)
127 #:use-module (gnu packages libunwind)
128 #:use-module (gnu packages linux)
129 #:use-module (gnu packages llvm)
130 #:use-module (gnu packages lua)
131 #:use-module (gnu packages man)
132 #:use-module (gnu packages maths)
133 #:use-module (gnu packages mp3)
134 #:use-module (gnu packages music)
135 #:use-module (gnu packages multiprecision)
136 #:use-module (gnu packages ncurses)
137 #:use-module (gnu packages netpbm)
138 #:use-module (gnu packages networking)
139 #:use-module (gnu packages ocaml)
140 #:use-module (gnu packages opencl)
141 #:use-module (gnu packages pcre)
142 #:use-module (gnu packages perl)
143 #:use-module (gnu packages perl-check)
144 #:use-module (gnu packages pkg-config)
145 #:use-module (gnu packages pulseaudio)
146 #:use-module (gnu packages python)
147 #:use-module (gnu packages python-xyz)
148 #:use-module (gnu packages qt)
149 #:use-module (gnu packages readline)
150 #:use-module (gnu packages shells)
151 #:use-module (gnu packages sdl)
152 #:use-module (gnu packages serialization)
153 #:use-module (gnu packages sqlite)
154 #:use-module (gnu packages squirrel)
155 #:use-module (gnu packages swig)
156 #:use-module (gnu packages tcl)
157 #:use-module (gnu packages terminals)
158 #:use-module (gnu packages texinfo)
159 #:use-module (gnu packages textutils)
160 #:use-module (gnu packages tls)
161 #:use-module (gnu packages upnp)
162 #:use-module (gnu packages video)
163 #:use-module (gnu packages vulkan)
164 #:use-module (gnu packages web)
165 #:use-module (gnu packages wget)
166 #:use-module (gnu packages wxwidgets)
167 #:use-module (gnu packages xdisorg)
168 #:use-module (gnu packages xorg)
169 #:use-module (gnu packages xiph)
170 #:use-module (gnu packages xml)
171 #:use-module (gnu packages messaging)
172 #:use-module (gnu packages networking)
173 #:use-module (guix build-system glib-or-gtk)
174 #:use-module (guix build-system gnu)
175 #:use-module (guix build-system go)
176 #:use-module (guix build-system meson)
177 #:use-module (guix build-system scons)
178 #:use-module (guix build-system python)
179 #:use-module (guix build-system cmake)
180 #:use-module (guix build-system qt)
181 #:use-module (guix build-system trivial)
182 #:use-module ((srfi srfi-1) #:hide (zip))
183 #:use-module (srfi srfi-26))
184
185 ;; Data package for adanaxisgpl.
186 (define adanaxis-mush
187 (let ((version "1.1.0"))
188 (origin
189 (method url-fetch)
190 (uri (string-append "http://www.mushware.com/files/adanaxis-mush-"
191 version ".tar.gz"))
192 (sha256
193 (base32 "0mk9ibis5nkdcalcg1lkgnsdxxbw4g5w2i3icjzy667hqirsng03")))))
194
195 (define-public adanaxisgpl
196 (package
197 (name "adanaxisgpl")
198 (version "1.2.5")
199 (source
200 (origin
201 (method url-fetch)
202 (uri (string-append "http://www.mushware.com/files/adanaxisgpl-"
203 version ".tar.gz"))
204 (sha256
205 (base32 "0jkn637jaabvlhd6hpvzb57vvjph94l6fbf7qxbjlw9zpr19dw1f"))
206 (modules '((guix build utils)))
207 (snippet
208 '(begin
209 ;; Necessary for building with gcc >=4.7.
210 (substitute* "src/Mushcore/MushcoreSingleton.h"
211 (("SingletonPtrSet\\(new SingletonType\\);")
212 "MushcoreSingleton::SingletonPtrSet(new SingletonType);"))
213 ;; Avoid an "invalid conversion from const char* to char*" error.
214 (substitute* "src/Platform/X11/PlatformMiscUtils.cpp"
215 (("char \\*end, \\*result;")
216 (string-append "const char *end;"
217 "\n"
218 "char *result;")))
219 #t))))
220 (build-system gnu-build-system)
221 (arguments
222 `(#:tests? #f ; no check target
223 #:phases
224 (modify-phases %standard-phases
225 (add-after 'install 'install-data
226 (lambda* (#:key inputs outputs #:allow-other-keys)
227 (let ((data (assoc-ref inputs "adanaxis-mush"))
228 (share (string-append (assoc-ref outputs "out")
229 "/share/" ,name "-" ,version)))
230 (mkdir-p share)
231 (invoke "tar" "xvf" data "-C" share)))))))
232 (native-inputs
233 `(("adanaxis-mush" ,adanaxis-mush))) ; game data
234 (inputs
235 `(("expat" ,expat)
236 ("freeglut" ,freeglut)
237 ("glu" ,glu)
238 ("libjpeg" ,libjpeg)
239 ("libogg" ,libogg)
240 ("libtiff" ,libtiff)
241 ("libvorbis" ,libvorbis)
242 ("libx11" ,libx11)
243 ("libxext" ,libxext)
244 ("pcre" ,pcre)
245 ("sdl" ,sdl)
246 ("sdl-mixer" ,sdl-mixer)))
247 (home-page "https://www.mushware.com")
248 (synopsis "Action game in four spatial dimensions")
249 (description
250 "Adanaxis is a fast-moving first person shooter set in deep space, where
251 the fundamentals of space itself are changed. By adding another dimension to
252 space this game provides an environment with movement in four directions and
253 six planes of rotation. Initially the game explains the 4D control system via
254 a graphical sequence, before moving on to 30 levels of gameplay with numerous
255 enemy, ally, weapon and mission types. Features include simulated 4D texturing,
256 mouse and joystick control, and original music.")
257 (license license:gpl2)))
258
259 (define-public alex4
260 (package
261 (name "alex4")
262 (version "1.2.1")
263 (source
264 (origin
265 (method git-fetch)
266 (uri (git-reference
267 (url "https://github.com/carstene1ns/alex4.git")
268 (commit version)))
269 (file-name (git-file-name name version))
270 (sha256
271 (base32 "098wy72mh4lsvq3gm0rhamjssf9l1hp6hhkpzrv7klpb97cwwc3h"))))
272 (build-system gnu-build-system)
273 (arguments
274 `(#:tests? #f ; no check target
275 #:make-flags
276 (list "CC=gcc"
277 "CFLAGS=-D_FILE_OFFSET_BITS=64"
278 (string-append "PREFIX=" (assoc-ref %outputs "out")))
279 #:phases
280 (modify-phases %standard-phases
281 (delete 'configure) ; no configure script
282 (add-after 'install 'install-data
283 (lambda* (#:key outputs #:allow-other-keys)
284 (let ((share (string-append (assoc-ref outputs "out")
285 "/share/" ,name)))
286 (install-file "alex4.ini" share)
287 #t))))))
288 (inputs
289 `(("allegro" ,allegro-4)
290 ("dumb" ,dumb-allegro4)))
291 (home-page "http://allegator.sourceforge.net/")
292 (synopsis "Retro platform game")
293 (description
294 "Guide Alex the Allegator through the jungle in order to save his
295 girlfriend Lola from evil humans who want to make a pair of shoes out of her.
296 Plenty of classic platforming in four nice colors guaranteed!
297
298 The game includes a built-in editor so you can design and share your own maps.")
299 (license license:gpl2+)))
300
301 (define-public armagetronad
302 (package
303 (name "armagetronad")
304 (version "0.2.8.3.4")
305 (source (origin
306 (method url-fetch)
307 (uri (string-append "mirror://sourceforge/armagetronad/stable/"
308 version "/armagetronad-" version ".src.tar.gz"))
309 (sha256
310 (base32
311 "1pgy0r80z702qdv94aw3ywdn4ynnr4cdi86ml558pljfc5ygasj4"))))
312 (build-system gnu-build-system)
313 (inputs
314 `(("libxml2" ,libxml2)
315 ("sdl" ,sdl)
316 ("sdl-image" ,sdl-image)
317 ("freeglut" ,freeglut)
318 ("libpng" ,libpng)
319 ("libjpeg-turbo" ,libjpeg-turbo)))
320 (home-page "http://www.armagetronad.org")
321 (synopsis "Tron clone in 3D")
322 (description "Armagetron Advanced is a multiplayer game in 3d that
323 attempts to emulate and expand on the lightcycle sequence from the movie Tron.
324 It's an old school arcade game slung into the 21st century. Highlights
325 include a customizable playing arena, HUD, unique graphics, and AI bots. For
326 the more advanced player there are new game modes and a wide variety of
327 physics settings to tweak as well.")
328 (license license:gpl2+)))
329
330 (define-public armagetron-advanced
331 (deprecated-package "armagetron-advanced" armagetronad))
332
333 (define-public bastet
334 (package
335 (name "bastet")
336 (version "0.43.2")
337 (source
338 (origin
339 (method git-fetch)
340 (uri (git-reference
341 (url "https://github.com/fph/bastet.git")
342 (commit version)))
343 (file-name (git-file-name name version))
344 (sha256
345 (base32 "09kamxapm9jw9przpsgjfg33n9k94bccv65w95dakj0br33a75wn"))
346 (patches
347 (search-patches "bastet-change-source-of-unordered_set.patch"))))
348 (build-system gnu-build-system)
349 (arguments
350 `(#:make-flags
351 (list (string-append "CXXFLAGS=-I"
352 (assoc-ref %build-inputs "boost") "/include"))
353 #:phases
354 (modify-phases %standard-phases
355 (delete 'configure) ; no configure script
356 (replace 'check
357 ;; The 'Test' target builds the tests, but doesn't actually run them.
358 (lambda* (#:key make-flags #:allow-other-keys)
359 (apply invoke "make" "Test" make-flags)
360 (setenv "HOME" ".")
361 (invoke "./Test")))
362 (replace 'install
363 (lambda* (#:key outputs #:allow-other-keys)
364 (let* ((out (assoc-ref outputs "out"))
365 (share (string-append out "/share"))
366 (hicolor (string-append share "/icons/hicolor")))
367 (install-file "bastet"
368 (string-append out "/bin"))
369
370 (install-file "bastet.desktop"
371 (string-append share "/applications"))
372 (install-file "bastet.svg"
373 (string-append hicolor "/scalable/apps"))
374
375 (install-file "bastet.appdata.xml"
376 (string-append share "/appdata"))
377
378 (install-file "bastet.6"
379 (string-append out "/share/man/man6"))
380 #t))))))
381 (native-inputs
382 `(("hicolor-icon-theme" ,hicolor-icon-theme)))
383 (inputs
384 `(("boost" ,boost)
385 ("ncurses" ,ncurses)))
386 (home-page "http://fph.altervista.org/prog/bastet.html")
387 (synopsis "Antagonistic Tetris-style falling brick game for text terminals")
388 (description
389 "Bastet (short for Bastard Tetris) is a simple ncurses-based falling brick
390 game. Unlike normal Tetris, Bastet does not choose the next brick at random.
391 Instead, it uses a special algorithm to choose the worst brick possible.
392
393 Playing bastet can be a painful experience, especially if you usually make
394 canyons and wait for the long I-shaped block to clear four rows at a time.")
395 (license license:gpl3+)))
396
397 (define-public cataclysm-dda
398 (let ((commit "9c732a5de48928691ab863d3ab275ca7b0e522fc"))
399 (package
400 (name "cataclysm-dda")
401 (version "0.D")
402 (source (origin
403 (method git-fetch)
404 (uri (git-reference
405 (url "https://github.com/CleverRaven/Cataclysm-DDA.git")
406 (commit commit)))
407 (sha256
408 (base32
409 "00zzhx1mh1qjq668cga5nbrxp2qk6b82j5ak65skhgnlr6ii4ysc"))
410 (file-name (git-file-name name version))))
411 (build-system gnu-build-system)
412 (arguments
413 '(#:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
414 "USE_HOME_DIR=1" "DYNAMIC_LINKING=1" "RELEASE=1"
415 "LOCALIZE=1" "LANGUAGES=all")
416 #:phases
417 (modify-phases %standard-phases
418 (delete 'configure)
419 (add-after 'build 'build-tiles
420 (lambda* (#:key make-flags outputs #:allow-other-keys)
421 ;; Change prefix directory and enable tile graphics and sound.
422 (apply invoke "make" "TILES=1" "SOUND=1"
423 (string-append "PREFIX="
424 (assoc-ref outputs "tiles"))
425 (cdr make-flags))))
426 (add-after 'install 'install-tiles
427 (lambda* (#:key make-flags outputs #:allow-other-keys)
428 (apply invoke "make" "install" "TILES=1" "SOUND=1"
429 (string-append "PREFIX="
430 (assoc-ref outputs "tiles"))
431 (cdr make-flags)))))
432 ;; TODO: Add libtap++ from https://github.com/cbab/libtappp as a native
433 ;; input in order to support tests.
434 #:tests? #f))
435 (outputs '("out"
436 "tiles")) ; For tile graphics and sound support.
437 (native-inputs
438 `(("gettext" ,gettext-minimal)
439 ("pkg-config" ,pkg-config)))
440 (inputs
441 `(("freetype" ,freetype)
442 ("libogg" ,libogg)
443 ("libvorbis" ,libvorbis)
444 ("ncurses" ,ncurses)
445 ("sdl2" ,sdl2)
446 ("sdl2-image" ,sdl2-image)
447 ("sdl2-ttf" ,sdl2-ttf)
448 ("sdl2-mixer" ,sdl2-mixer)))
449 (home-page "http://en.cataclysmdda.com/")
450 (synopsis "Survival horror roguelike video game")
451 (description
452 "Cataclysm: Dark Days Ahead (or \"DDA\" for short) is a roguelike set
453 in a post-apocalyptic world. Struggle to survive in a harsh, persistent,
454 procedurally generated world. Scavenge the remnants of a dead civilization
455 for food, equipment, or, if you are lucky, a vehicle with a full tank of gas
456 to get you out of Dodge. Fight to defeat or escape from a wide variety of
457 powerful monstrosities, from zombies to giant insects to killer robots and
458 things far stranger and deadlier, and against the others like yourself, that
459 want what you have.")
460 (license license:cc-by-sa3.0))))
461
462 (define-public cataclysm-dark-days-ahead
463 (deprecated-package "cataclysm-dark-days-ahead" cataclysm-dda))
464
465 (define-public cowsay
466 (package
467 (name "cowsay")
468 (version "3.04")
469 (source (origin
470 (method git-fetch)
471 (uri (git-reference
472 (url "https://github.com/tnalpgge/rank-amateur-cowsay.git")
473 (commit (string-append name "-" version))))
474 (file-name (git-file-name name version))
475 (sha256
476 (base32
477 "06455kq37hvq1xb7adyiwrx0djs50arsxvjgixyxks16lm1rlc7n"))))
478 (build-system gnu-build-system)
479 (arguments
480 `(#:phases
481 (modify-phases %standard-phases
482 (delete 'configure) ; no configure script
483 (delete 'build) ; nothing to be built
484 (replace 'install
485 (lambda* (#:key outputs #:allow-other-keys)
486 (invoke "sh" "install.sh"
487 (assoc-ref outputs "out"))))
488 (delete 'check)
489 (add-after 'install 'check
490 (lambda* (#:key outputs #:allow-other-keys)
491 (invoke (string-append (assoc-ref outputs "out")
492 "/bin/cowsay")
493 "We're done!"))))))
494 (inputs
495 `(("perl" ,perl)))
496 (home-page (string-append "https://web.archive.org/web/20071026043648/"
497 "http://www.nog.net:80/~tony/warez/cowsay.shtml"))
498 (synopsis "Speaking cow text filter")
499 (description "Cowsay is basically a text filter. Send some text into it,
500 and you get a cow saying your text. If you think a talking cow isn't enough,
501 cows can think too: all you have to do is run @command{cowthink}. If you're
502 tired of cows, a variety of other ASCII-art messengers are available.")
503 (license license:gpl3+)))
504
505 (define-public lolcat
506 (let ((commit "35dca3d0a381496d7195cd78f5b24aa7b62f2154")
507 (revision "0"))
508 (package
509 (name "lolcat")
510 (version (git-version "1.0" revision commit))
511 (source
512 (origin
513 (method git-fetch)
514 (uri (git-reference
515 (url "https://github.com/jaseg/lolcat.git")
516 (commit commit)))
517 (sha256
518 (base32
519 "0jjbkqcc2ikjxd1xgdyv4rb0vsw218181h89f2ywg29ffs3ypd8g"))
520 (file-name (git-file-name name version))))
521 (build-system gnu-build-system)
522 (arguments
523 `(#:tests? #f ;; no check target
524 #:make-flags (list "CC=gcc")
525 #:phases
526 (modify-phases %standard-phases
527 (delete 'bootstrap)
528 (delete 'configure)
529 (replace 'install
530 (lambda* (#:key outputs #:allow-other-keys)
531 (let* ((out (assoc-ref outputs "out"))
532 (dest (string-append out "/bin")))
533 (mkdir-p dest)
534 (install-file "lolcat" dest)
535 (install-file "censor" dest)
536 #t))))))
537 (home-page "https://github.com/jaseg/lolcat")
538 (synopsis "Rainbow coloring effect for text console display")
539 (description "@command{lolcat} concatenates files and streams like
540 regular @command{cat}, but it also adds terminal escape codes between
541 characters and lines resulting in a rainbow effect.")
542 (license license:wtfpl2))))
543
544 (define-public freedoom
545 (package
546 (name "freedoom")
547 (version "0.12.1")
548 (source
549 (origin
550 (method git-fetch)
551 (uri (git-reference
552 (url "https://github.com/freedoom/freedoom.git")
553 (commit (string-append "v" version))))
554 (file-name (git-file-name name version))
555 (sha256
556 (base32 "1mq60lfwaaxmch7hsz8403pwafnlsmsd5z2df2j77ppwndwcrypb"))))
557 (build-system gnu-build-system)
558 (arguments
559 '(#:make-flags
560 (list (string-append "prefix=" (assoc-ref %outputs "out")))
561 #:tests? #f ; no check target
562 #:phases
563 (modify-phases %standard-phases
564 (delete 'bootstrap)
565 (replace 'configure
566 (lambda* (#:key inputs outputs #:allow-other-keys)
567 (let* ((freedoom (assoc-ref outputs "out"))
568 (wad-dir (string-append freedoom "/share/games/doom")))
569 ;; Make sure that the install scripts know where to find
570 ;; the appropriate WAD files.
571 (substitute* "dist/freedoom"
572 (("IWAD=freedm.wad")
573 (string-append "IWAD=" wad-dir "/freedm.wad"))
574 (("IWAD=freedoom1.wad")
575 (string-append "IWAD=" wad-dir "/freedoom1.wad"))
576 (("IWAD=freedoom2.wad")
577 (string-append "IWAD=" wad-dir "/freedoom2.wad")))
578 #t))))))
579 (native-inputs
580 `(("asciidoc" ,asciidoc)
581 ("deutex" ,deutex)
582 ("python" ,python)
583 ("python-pillow" ,python-pillow)))
584 (home-page "https://freedoom.github.io/")
585 (synopsis "Free content game based on the Doom engine")
586 (native-search-paths
587 (list (search-path-specification
588 (variable "DOOMWADDIR")
589 (files '("share/games/doom")))
590 (search-path-specification
591 (variable "DOOMWADPATH")
592 (files '("share/games/doom")))))
593 (description
594 "The Freedoom project aims to create a complete free content first person
595 shooter game. Freedoom by itself is just the raw material for a game: it must
596 be paired with a compatible game engine (such as @code{prboom-plus}) to be
597 played. Freedoom complements the Doom engine with free levels, artwork, sound
598 effects and music to make a completely free game.")
599 (license license:bsd-3)))
600
601 (define-public freedroidrpg
602 (package
603 (name "freedroidrpg")
604 (version "0.16.1")
605 (source
606 (origin
607 (method url-fetch)
608 (uri (string-append "http://ftp.osuosl.org/pub/freedroid/"
609 "freedroidRPG-" (version-major+minor version) "/"
610 "freedroidRPG-" version ".tar.gz"))
611 (sha256
612 (base32 "0n4kn38ncmcy3lrxmq8fjry6c1z50z4q1zcqfig0j4jb0dsz2va2"))))
613 (build-system gnu-build-system)
614 (arguments
615 `(#:configure-flags
616 (list
617 (string-append "CFLAGS="
618 "-I" (assoc-ref %build-inputs "sdl-gfx") "/include/SDL "
619 "-I" (assoc-ref %build-inputs "sdl-image") "/include/SDL "
620 "-I" (assoc-ref %build-inputs "sdl-mixer") "/include/SDL")
621 "--enable-opengl")
622 ;; FIXME: the test suite fails with the following error output:
623 ;; 4586 Segmentation fault env SDL_VIDEODRIVER=dummy \
624 ;; SDL_AUDIODRIVER=dummy ./src/freedroidRPG -nb text
625 #:tests? #f))
626 (native-inputs
627 `(("pkg-config" ,pkg-config)))
628 (inputs
629 `(("glu" ,glu)
630 ("libjpeg" ,libjpeg)
631 ("libogg" ,libogg)
632 ("libpng" ,libpng)
633 ("libvorbis" ,libvorbis)
634 ("mesa" ,mesa)
635 ("python" ,python-wrapper)
636 ("sdl" ,sdl)
637 ("sdl-gfx" ,sdl-gfx)
638 ("sdl-image" ,sdl-image)
639 ("sdl-mixer" ,sdl-mixer)
640 ("zlib" ,zlib)))
641 (home-page "http://www.freedroid.org/")
642 (synopsis "Isometric role-playing game against killer robots")
643 (description
644 "Freedroid RPG is an @dfn{RPG} (Role-Playing Game) with isometric graphics.
645 The game tells the story of a world destroyed by a conflict between robots and
646 their human masters. To restore peace to humankind, the player must complete
647 numerous quests while fighting off rebelling robots---either by taking control
648 of them, or by simply blasting them to pieces with melee and ranged weapons in
649 real-time combat.")
650 (license (list license:expat ; lua/
651 license:gpl3 ; src/gen_savestruct.py
652 license:gpl2+)))) ; the rest
653
654 (define-public golly
655 (package
656 (name "golly")
657 (version "3.2")
658 (source (origin
659 (method url-fetch)
660 (uri (string-append "mirror://sourceforge/golly/golly/golly-"
661 version "/golly-" version
662 "-src.tar.gz"))
663 (sha256
664 (base32
665 "0cg9mbwmf4q6qxhqlnzrxh9y047banxdb8pd3hgj3smmja2zf0jd"))))
666 (build-system gnu-build-system)
667 (arguments
668 '(#:make-flags (list "CC=gcc"
669 (string-append "GOLLYDIR="
670 (assoc-ref %outputs "out")
671 "/share/golly"))
672 #:tests? #f ; no check target
673 #:phases
674 (modify-phases %standard-phases
675 (replace 'configure
676 (lambda* (#:key inputs #:allow-other-keys)
677 ;; For some reason, setting the PYTHON_SHLIB make flag doesn't
678 ;; properly set the path to the Python shared library. This
679 ;; substitution acheives the same end by different means.
680 (substitute* "gui-wx/wxprefs.cpp"
681 (("pythonlib = wxT\\(STRINGIFY\\(PYTHON_SHLIB\\)\\)")
682 (string-append "pythonlib = \""
683 (assoc-ref inputs "python")
684 "/lib/libpython-2.7.so\"")))
685 #t))
686 (replace 'build
687 (lambda* (#:key make-flags outputs #:allow-other-keys)
688 (with-directory-excursion "gui-wx"
689 (apply invoke `("make" ,@make-flags "-f" "makefile-gtk")))))
690 (replace 'install
691 (lambda* (#:key outputs #:allow-other-keys)
692 (let* ((out (assoc-ref outputs "out"))
693 (bin (string-append out "/bin"))
694 (doc (string-append out "/share/doc/golly"))
695 (pixmaps (string-append out "/share/pixmaps"))
696 (share (string-append out "/share/golly")))
697 (for-each (lambda (binary)
698 (install-file binary bin))
699 '("bgolly" "golly"))
700 (for-each (lambda (document)
701 (install-file
702 (string-append "docs/" document ".html")
703 doc))
704 '("License" "ReadMe" "ToDo"))
705 (install-file "gui-wx/icons/appicon.xpm" pixmaps)
706 (for-each (lambda (folder)
707 (copy-recursively
708 folder
709 (string-append share "/" folder)))
710 '("Help" "Patterns" "Rules" "Scripts")))
711 #t)))))
712 (native-inputs
713 `(("lua" ,lua)))
714 (inputs
715 `(("glu" ,glu)
716 ("mesa" ,mesa)
717 ("python" ,python-2)
718 ("wxwidgets" ,wxwidgets-gtk2)
719 ("zlib" ,zlib)))
720 (home-page "http://golly.sourceforge.net/")
721 (synopsis "Software for exploring cellular automata")
722 (description
723 "Golly simulates Conway's Game of Life and many other types of cellular
724 automata. The following features are available:
725 @enumerate
726 @item Support for bounded and unbounded universes, with cells of up to 256
727 states.
728 @item Support for multiple algorithms, including Bill Gosper's Hashlife
729 algorithm.
730 @item Loading patterns from BMP, PNG, GIF and TIFF image files.
731 @item Reading RLE, macrocell, Life 1.05/1.06, dblife and MCell files.
732 @item Scriptable via Lua or Python.
733 @item Extracting patterns, rules and scripts from zip files.
734 @item Downloading patterns, rules and scripts from online archives.
735 @item Pasting patterns from the clipboard.
736 @item Unlimited undo/redo.
737 @item Configurable keyboard shortcuts.
738 @item Auto fit option to keep patterns within the view.
739 @end enumerate")
740 (license license:gpl2+)))
741
742 (define-public meandmyshadow
743 (package
744 (name "meandmyshadow")
745 (version "0.5a")
746 (source (origin
747 (method url-fetch)
748 (uri (string-append "mirror://sourceforge/meandmyshadow/"
749 version "/meandmyshadow-" version
750 "-src.tar.gz"))
751 (sha256
752 (base32
753 "0i98v6cgmpsxy7mbb0s2y6f6qq6mkwzk2nrv1nz39ncf948aky2h"))))
754 (build-system cmake-build-system)
755 (arguments
756 `(#:tests? #f)) ; there are no tests
757 (native-inputs
758 `(("pkg-config" ,pkg-config)))
759 (inputs
760 `(("curl" ,curl)
761 ("libarchive" ,libarchive)
762 ("lua" ,lua)
763 ("sdl" ,(sdl-union (list sdl2
764 sdl2-image
765 sdl2-mixer
766 sdl2-ttf)))))
767 (home-page "https://acmepjz.github.io/meandmyshadow/")
768 (synopsis "Puzzle/platform game")
769 (description "Me and My Shadow is a puzzle/platform game in which you try
770 to reach the exit by solving puzzles. Spikes, moving blocks, fragile blocks
771 and much more stand between you and the exit. Record your moves and let your
772 shadow mimic them to reach blocks you couldn't reach alone.")
773 (license license:gpl3+)))
774
775 (define-public knights
776 (package
777 (name "knights")
778 (version "025")
779 (source (origin
780 (method url-fetch)
781 (uri (string-append "http://www.knightsgame.org.uk/files/knights_"
782 version "_src.tar.gz"))
783 (sha256
784 (base32
785 "18vp2ygvn0s0jz8rm585jqf6hjqkam1ximq81k0r9hpmfj7wb88f"))))
786 (build-system gnu-build-system)
787 (arguments
788 '(#:make-flags
789 (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
790 #:phases
791 (modify-phases %standard-phases
792 ;; No configure script.
793 (delete 'configure))
794 #:tests? #f)) ;; No check target.
795 (inputs
796 `(("boost" ,boost)
797 ("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer)))
798 ("freetype" ,freetype)
799 ("fontconfig" ,fontconfig)
800 ("curl" ,curl)))
801 (native-inputs
802 `(("pkg-config" ,pkg-config)))
803 (home-page "http://www.knightsgame.org.uk/")
804 (synopsis "Multiplayer dungeon game involving knights and quests")
805 (description "Knights is a multiplayer game involving several knights who
806 must run around a dungeon and complete various quests. Each game revolves
807 around a quest – for example, you might have to find some items and carry them
808 back to your starting point. This may sound easy, but as there are only
809 enough items in the dungeon for one player to win, you may end up having to
810 kill your opponents to get their stuff! Other quests involve escaping from
811 the dungeon, fighting a duel to the death against the enemy knights, or
812 destroying an ancient book using a special wand.")
813 ;; This package includes modified sources of lua (X11), enet (Expat), and
814 ;; guichan (BSD-3). The "Coercri" library is released under the Boost
815 ;; license. The whole package is released under GPLv3+.
816 (license license:gpl3+)))
817
818 (define-public gnubg
819 (package
820 (name "gnubg")
821 (version "1.06.002")
822 (source
823 (origin
824 (method url-fetch)
825 (uri (string-append "http://files.gnubg.org/media/sources/gnubg-release-"
826 version "-sources." "tar.gz"))
827 (sha256
828 (base32
829 "11xwhcli1h12k6rnhhyq4jphzrhfik7i8ah3k32pqw803460n6yf"))))
830 (build-system gnu-build-system)
831 (inputs `(("glib" ,glib)
832 ("readline" ,readline)
833 ("gtk+" ,gtk+-2)
834 ("mesa" ,mesa)
835 ("glu" ,glu)
836 ("gtkglext" ,gtkglext)
837 ("sqlite" ,sqlite)
838 ("libcanberra" ,libcanberra)))
839 (native-inputs `(("python-2" ,python-2)
840 ("pkg-config" ,pkg-config)))
841 (home-page "http://gnubg.org")
842 (synopsis "Backgammon game")
843 (description "The GNU backgammon application (also known as \"gnubg\") can
844 be used for playing, analyzing and teaching the game. It has an advanced
845 evaluation engine based on artificial neural networks suitable for both
846 beginners and advanced players. In addition to a command-line interface, it
847 also features an attractive, 3D representation of the playing board.")
848 (license license:gpl3+)))
849
850 (define-public gnubackgammon
851 (deprecated-package "gnubackgammon" gnubg))
852
853 (define-public gnubik
854 (package
855 (name "gnubik")
856 (version "2.4.3")
857 (source
858 (origin
859 (method url-fetch)
860 (uri (string-append "mirror://gnu/gnubik/gnubik-"
861 version ".tar.gz"))
862 (sha256
863 (base32
864 "1vlf924mq8hg93bsjj0rzvs0crc6psmlxyc6zn0fr7msnmpx6gib"))))
865 (build-system gnu-build-system)
866 (inputs `(("gtk+" ,gtk+-2)
867 ("mesa" ,mesa)
868 ("glu" ,glu)
869 ("libx11" ,libx11)
870 ("guile" ,guile-2.0)
871 ("gtkglext" ,gtkglext)))
872 (native-inputs `(("gettext" ,gettext-minimal)
873 ("pkg-config" ,pkg-config)))
874 (home-page "https://www.gnu.org/software/gnubik/")
875 (synopsis "3d Rubik's cube game")
876 (description
877 "GNUbik is a puzzle game in which you must manipulate a cube to make
878 each of its faces have a uniform color. The game is customizable, allowing
879 you to set the size of the cube (the default is 3x3) or to change the colors.
880 You may even apply photos to the faces instead of colors. The game is
881 scriptable with Guile.")
882 (license license:gpl3+)))
883
884 (define-public gnushogi
885 (package
886 (name "gnushogi")
887 (version "1.4.2")
888 (source
889 (origin
890 (method url-fetch)
891 (uri (string-append "mirror://gnu/gnushogi/gnushogi-"
892 version ".tar.gz"))
893 (sha256
894 (base32
895 "0a9bsl2nbnb138lq0h14jfc5xvz7hpb2bcsj4mjn6g1hcsl4ik0y"))))
896 (arguments `(#:tests? #f)) ;; No check target.
897 (build-system gnu-build-system)
898 (home-page "https://www.gnu.org/software/gnushogi/")
899 (synopsis "The game of Shogi (Japanese chess)")
900 (description "GNU Shogi is a program that plays the game Shogi (Japanese
901 Chess). It is similar to standard chess but this variant is far more complicated.")
902 (license license:gpl3+)))
903
904 (define-public ltris
905 (package
906 (name "ltris")
907 (version "1.0.19")
908 (source
909 (origin
910 (method url-fetch)
911 (uri (string-append "http://prdownloads.sourceforge.net/lgames/"
912 "ltris-" version ".tar.gz"))
913 (sha256
914 (base32
915 "1895wv1fqklrj4apkz47rnkcfhfav7zjknskw6p0886j35vrwslg"))))
916 (build-system gnu-build-system)
917 (arguments
918 '(;; The code in LTris uses traditional GNU semantics for inline functions
919 #:configure-flags '("CFLAGS=-fgnu89-inline")
920 #:phases
921 (modify-phases %standard-phases
922 (add-after 'set-paths 'set-sdl-paths
923 (lambda* (#:key inputs #:allow-other-keys)
924 (setenv "CPATH"
925 (string-append (assoc-ref inputs "sdl-union")
926 "/include/SDL:"
927 (or (getenv "CPATH") "")))
928 #t)))))
929 (inputs
930 `(("sdl-union" ,(sdl-union (list sdl sdl-mixer)))))
931 (home-page "http://lgames.sourceforge.net/LTris/")
932 (synopsis "Tetris clone based on the SDL library")
933 (description
934 "LTris is a tetris clone: differently shaped blocks are falling down the
935 rectangular playing field and can be moved sideways or rotated by 90 degree
936 units with the aim of building lines without gaps which then disappear (causing
937 any block above the deleted line to fall down). LTris has three game modes: In
938 Classic you play until the stack of blocks reaches the top of the playing field
939 and no new blocks can enter. In Figures the playing field is reset to a new
940 figure each level and later on tiles and lines suddenly appear. In Multiplayer
941 up to three players (either human or CPU) compete with each other sending
942 removed lines to all opponents. There is also a Demo mode in which you can
943 watch your CPU playing while enjoying a cup of tea!")
944 (license license:gpl2+)))
945
946 (define-public nethack
947 (package
948 (name "nethack")
949 (version "3.6.4")
950 (source
951 (origin
952 (method url-fetch)
953 (uri
954 (string-append "https://www.nethack.org/download/" version "/nethack-"
955 (string-join (string-split version #\.) "") "-src.tgz"))
956 (sha256
957 (base32 "0ndxgnsprwgjnk0qb24iljkpijnfncgvfb3h3zb129h3cs2anc85"))))
958 (inputs
959 `(("ncurses" ,ncurses)
960 ("bison" ,bison)
961 ("flex" ,flex)
962 ("less" ,less)))
963 (build-system gnu-build-system)
964 (arguments
965 '(#:make-flags
966 `(,(string-append "PREFIX=" (assoc-ref %outputs "out")))
967 #:phases
968 (modify-phases %standard-phases
969 (add-before 'configure 'patch-paths
970 (lambda _
971 (substitute* "sys/unix/nethack.sh"
972 (("^ *cd .*$") ""))
973 (substitute* "sys/unix/Makefile.utl"
974 (("^YACC *=.*$") "YACC = bison -y\n")
975 (("^LEX *=.*$") "LEX = flex\n")
976 (("^# CC = gcc") "CC = gcc"))
977 (substitute* "sys/unix/hints/linux"
978 (("/bin/gzip") (string-append
979 (assoc-ref %build-inputs "gzip")
980 "/bin/gzip"))
981 (("^WINTTYLIB=.*") "WINTTYLIB=-lncurses"))
982 (substitute* "include/config.h"
983 (("^.*define CHDIR.*$") "")
984 (("^/\\* *#*define *REPRODUCIBLE_BUILD *\\*/")
985 ;; Honor SOURCE_DATE_EPOCH.
986 "#define REPRODUCIBLE_BUILD"))
987
988 ;; Note: 'makedefs' rejects and ignores dates that are too old
989 ;; or too new, so we must choose something reasonable here.
990 (setenv "SOURCE_DATE_EPOCH" "1531865062")
991
992 (substitute* "sys/unix/Makefile.src"
993 (("^# CC = gcc") "CC = gcc"))
994 #t))
995 (replace 'configure
996 (lambda _
997 (let ((bash (string-append
998 (assoc-ref %build-inputs "bash")
999 "/bin/bash")))
1000 (with-directory-excursion "sys/unix"
1001 (substitute* "setup.sh" (("/bin/sh") bash))
1002 (invoke bash "setup.sh" "hints/linux"))
1003 #t)))
1004 (add-after 'install 'fixup-paths
1005 (lambda _
1006 (let* ((output (assoc-ref %outputs "out"))
1007 (nethack-script (string-append output "/bin/nethack")))
1008 (mkdir-p (string-append output "/games/lib/nethackuserdir"))
1009 (for-each
1010 (lambda (file)
1011 (rename-file
1012 (string-append output "/games/lib/nethackdir/" file)
1013 (string-append output "/games/lib/nethackuserdir/"
1014 file)))
1015 '("xlogfile" "logfile" "perm" "record" "save"))
1016 (mkdir-p (string-append output "/bin"))
1017 (call-with-output-file nethack-script
1018 (lambda (port)
1019 (format port "#!~a/bin/sh
1020 PATH=~a:$PATH
1021 if [ ! -d ~~/.config/nethack ]; then
1022 mkdir -p ~~/.config/nethack
1023 cp -r ~a/games/lib/nethackuserdir/* ~~/.config/nethack
1024 chmod -R +w ~~/.config/nethack
1025 fi
1026
1027 RUNDIR=$(mktemp -d)
1028
1029 cleanup() {
1030 rm -rf $RUNDIR
1031 }
1032 trap cleanup EXIT
1033
1034 cd $RUNDIR
1035 for i in ~~/.config/nethack/*; do
1036 ln -s $i $(basename $i)
1037 done
1038 for i in ~a/games/lib/nethackdir/*; do
1039 ln -s $i $(basename $i)
1040 done
1041 ~a/games/nethack"
1042 (assoc-ref %build-inputs "bash")
1043 (list->search-path-as-string
1044 (list
1045 (string-append
1046 (assoc-ref %build-inputs "coreutils") "/bin")
1047 (string-append
1048 (assoc-ref %build-inputs "less") "/bin"))
1049 ":")
1050 output
1051 output
1052 output)))
1053 (chmod nethack-script #o555)
1054 #t)))
1055 (delete 'check))))
1056 (home-page "https://nethack.org")
1057 (synopsis "Classic dungeon crawl game")
1058 (description "NetHack is a single player dungeon exploration game that runs
1059 on a wide variety of computer systems, with a variety of graphical and text
1060 interfaces all using the same game engine. Unlike many other Dungeons &
1061 Dragons-inspired games, the emphasis in NetHack is on discovering the detail of
1062 the dungeon and not simply killing everything in sight - in fact, killing
1063 everything in sight is a good way to die quickly. Each game presents a
1064 different landscape - the random number generator provides an essentially
1065 unlimited number of variations of the dungeon and its denizens to be discovered
1066 by the player in one of a number of characters: you can pick your race, your
1067 role, and your gender.")
1068 (license
1069 (license:fsdg-compatible
1070 "https://nethack.org/common/license.html"))))
1071
1072 (define-public pipewalker
1073 (package
1074 (name "pipewalker")
1075 (version "0.9.4")
1076 (source
1077 (origin
1078 (method url-fetch)
1079 (uri (string-append "http://downloads.sourceforge.net/pipewalker/"
1080 "pipewalker-" version ".tar.gz"))
1081 (sha256
1082 (base32 "1x46wgk0s55562pd96cxagxkn6wpgglq779f9b64ff1k3xzp3myn"))))
1083 (build-system gnu-build-system)
1084 (arguments
1085 `(#:configure-flags
1086 (list (string-append "--docdir=" (assoc-ref %outputs "out")
1087 "/share/doc/" ,name "-" ,version))
1088 #:phases
1089 (modify-phases %standard-phases
1090 (add-after 'configure 'patch-docdir
1091 ;; Makefile.in ignores configure's ‘--docdir=...’ option. Fix that.
1092 (lambda _
1093 (substitute* "Makefile"
1094 (("(pkgdocdatadir = ).*" _ assignment)
1095 (string-append assignment "$(docdir)\n")))
1096 #t)))))
1097 (inputs
1098 `(("libpng" ,libpng)
1099 ("mesa" ,mesa)
1100 ("sdl" ,sdl)))
1101 (home-page "http://pipewalker.sourceforge.net/")
1102 (synopsis "Logical tile puzzle")
1103 (description
1104 "PipeWalker is a simple puzzle game with many diffent themes: connect all
1105 computers to one network server, bring water from a source to the taps, etc.
1106 The underlying mechanism is always the same: you must turn each tile in the
1107 grid in the right direction to combine all components into a single circuit.
1108 Every puzzle has a complete solution, although there may be more than one.")
1109 (license license:gpl3+)))
1110
1111 (define-public prboom-plus
1112 (package
1113 (name "prboom-plus")
1114 (version "2.5.1.4")
1115 (source (origin
1116 (method url-fetch)
1117 (uri (string-append "mirror://sourceforge/prboom-plus/prboom-plus/"
1118 version "/prboom-plus-" version ".tar.gz"))
1119 (sha256
1120 (base32 "151v6nign86m1a2vqz27krsccpc9m4d1jax4y43v2fa82wfj9qp0"))
1121 (modules '((guix build utils)))
1122 (snippet
1123 '(begin
1124 (substitute* "src/version.c"
1125 (("__DATE__") "")
1126 (("__TIME__") ""))
1127 #t))))
1128 (build-system gnu-build-system)
1129 (arguments
1130 '(#:configure-flags '("--disable-cpu-opt")
1131 #:make-flags `(,(string-append "gamesdir="
1132 (assoc-ref %outputs "out") "/bin"))
1133 #:phases
1134 (modify-phases %standard-phases
1135 (add-after 'set-paths 'set-sdl'paths
1136 (lambda* (#:key inputs #:allow-other-keys)
1137 (setenv "CPATH"
1138 (string-append (assoc-ref inputs "sdl-union")
1139 "/include/SDL:"
1140 (or (getenv "CPATH") "")))
1141 #t)))))
1142 (inputs
1143 `(("fluidsynth" ,fluidsynth)
1144 ("glu" ,glu)
1145 ("libmad" ,libmad)
1146 ("libpng" ,libpng)
1147 ("libvorbis" ,libvorbis)
1148 ("pcre" ,pcre)
1149 ("portmidi" ,portmidi)
1150 ("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer sdl-net)))))
1151 (home-page "http://prboom-plus.sourceforge.net/")
1152 (synopsis "Version of the classic 3D shoot'em'up game Doom")
1153 (description
1154 "PrBoom+ is a Doom source port developed from the original PrBoom project.")
1155 (license license:gpl2+)))
1156
1157 (define-public retux
1158 (package
1159 (name "retux")
1160 (version "1.3.6")
1161 (source (origin
1162 (method url-fetch)
1163 (uri (string-append "mirror://savannah/retux/"
1164 (version-major+minor version) "/retux-"
1165 version "-src.tar.gz"))
1166 (sha256
1167 (base32
1168 "01bidh4zisjp3nc436x0g85v60dvwb3ig37i7y01sa71j8fm4fmb"))))
1169 (build-system python-build-system)
1170 (arguments
1171 `(#:tests? #f ; no check target
1172 #:phases
1173 (modify-phases %standard-phases
1174 ;; no setup.py script
1175 (delete 'build)
1176 (replace 'install
1177 (lambda* (#:key outputs #:allow-other-keys)
1178 (let* ((out (assoc-ref outputs "out"))
1179 (bin (string-append out "/bin"))
1180 (data (string-append out "/share/retux"))
1181 (doc (string-append out "/share/doc/retux")))
1182 (mkdir-p bin)
1183
1184 (substitute* "retux.py"
1185 ;; Use the correct data directory.
1186 (("os\\.path\\.join\\(os\\.path\\.dirname\\(__file__\\), \"data\"\\),")
1187 (string-append "\"" data "\","))
1188 ;; Use Python 3 so the patch-shebangs phase works properly.
1189 ((".*python2.*") "#!/usr/bin/python3"))
1190
1191 (copy-file "retux.py" (string-append bin "/retux"))
1192
1193 (copy-recursively "data" data)
1194
1195 (install-file "COPYING" doc)
1196 #t))))))
1197 (inputs
1198 `(("python-sge-pygame" ,python-sge-pygame)
1199 ("python-six" ,python-six)
1200 ("python-xsge" ,python-xsge)))
1201 (home-page "http://retux.nongnu.org")
1202 (synopsis "Action platformer game")
1203 (description
1204 "ReTux is an action platformer loosely inspired by the Mario games,
1205 utilizing the art assets from the @code{SuperTux} project.")
1206 ;; GPL version 3 or later is the license for the code and some art.
1207 ;; The rest of the licenses are for the art exclusively, as listed in
1208 ;; data/LICENSES.
1209 (license (list license:cc0
1210 license:cc-by3.0
1211 license:cc-by-sa3.0
1212 license:cc-by-sa4.0
1213 license:gpl2+
1214 license:gpl3+))))
1215
1216 (define-public roguebox-adventures
1217 (package
1218 (name "roguebox-adventures")
1219 (version "2.2.1")
1220 (source
1221 (origin
1222 (method url-fetch)
1223 (uri (string-append
1224 "http://download.tuxfamily.org/rba/RogueBoxAdventures_v"
1225 (string-join (string-split version #\.) "_") "_Source.zip"))
1226 (file-name (string-append name "-" version ".zip"))
1227 (sha256
1228 (base32
1229 "0kmzdgnik8fsf3bg55546l77p3mfxn2awkzfzzdn20n82rd2babw"))))
1230 (build-system python-build-system)
1231 (arguments
1232 `(#:tests? #f ; no check target
1233 #:phases
1234 (modify-phases %standard-phases
1235 (replace 'unpack
1236 (lambda* (#:key source #:allow-other-keys)
1237 (and (invoke "unzip" source)
1238 ;; The actual source is buried a few directories deep.
1239 (chdir (string-append "RogueBoxAdventures_v"
1240 (string-join
1241 (string-split ,version #\.) "_")
1242 "_Source")))))
1243 ;; no setup.py script
1244 (replace 'build
1245 (lambda* (#:key outputs #:allow-other-keys)
1246 (let* ((out (assoc-ref outputs "out"))
1247 (data (string-append
1248 out "/share/games/roguebox-adventures")))
1249 ;; Use the correct data directory.
1250 (substitute* '("main.py" "LIB/getch.py" "LIB/getch_gcwz.py")
1251 (("basic_path + os\\.sep + 'DATA'")
1252 (string-append "'" data "'"))
1253 (("^basic_path.*$")
1254 (string-append "basic_path ='" data "'\n")))
1255 (substitute* "LIB/gra_files.py"
1256 (("basic_path = b_path\\.replace\\('/LIB',''\\)")
1257 (string-append "basic_path ='" data "'\n")))
1258
1259 ;; The game must save in the user's home directory because
1260 ;; the store is read-only.
1261 (substitute* "main.py"
1262 (("home_save = False") "home_save = True")
1263 (("'icon_small.png'")
1264 (string-append "'" data "/icon_small.png'"))))
1265 #t))
1266 (replace 'install
1267 (lambda* (#:key outputs #:allow-other-keys)
1268 (let* ((out (assoc-ref outputs "out"))
1269 (bin (string-append out "/bin"))
1270 (roguebox-adventures
1271 (string-append bin "/roguebox-adventures"))
1272 (data (string-append
1273 out "/share/games/roguebox-adventures"))
1274 (lib (string-append data "/LIB"))
1275 (doc (string-append
1276 out "/share/doc/roguebox-adventures")))
1277 (mkdir-p bin)
1278 (mkdir-p doc)
1279
1280 (for-each (lambda (file)
1281 (copy-recursively file
1282 (string-append data "/" file)))
1283 '("AUDIO" "FONT" "GRAPHIC" "LIB" "LICENSE"
1284 "icon_big.png" "icon_small.png"))
1285 (for-each (lambda (file)
1286 (chmod file #o555)
1287 (install-file file lib))
1288 '("main.py" "run.py"))
1289
1290 (copy-recursively "DOC" doc)
1291
1292 (call-with-output-file
1293 roguebox-adventures
1294 (lambda (p)
1295 (format p "\
1296 #!~a
1297 export PYTHONPATH=~a/LIB:~a
1298 exec -a \"~a\" ~a \"$@\"\n"
1299 (which "bash") data (getenv "PYTHONPATH")
1300 (which "python3")
1301 (string-append lib "/main.py"))))
1302 (chmod roguebox-adventures #o555))
1303 #t)))))
1304 (native-inputs
1305 `(("unzip" ,unzip)))
1306 (inputs
1307 `(("python-pygame" ,python-pygame)
1308 ("python-tmx" ,python-tmx)))
1309 (home-page "https://rogueboxadventures.tuxfamily.org")
1310 (synopsis "A classical roguelike/sandbox game")
1311 (description
1312 "RogueBox Adventures is a graphical roguelike with strong influences
1313 from sandbox games like Minecraft or Terraria. The main idea of RogueBox
1314 Adventures is to offer the player a kind of roguelike toy-world. This world
1315 can be explored and changed freely.")
1316 ;; The GPL3+ is for code, the rest are for art.
1317 (license (list license:cc0
1318 license:cc-by3.0
1319 license:gpl3+
1320 license:silofl1.1))))
1321
1322 (define-public xshogi
1323 (package
1324 (name "xshogi")
1325 (version "1.4.2")
1326 (source
1327 (origin
1328 (method url-fetch)
1329 (uri (string-append "mirror://gnu/gnushogi/xshogi-"
1330 version ".tar.gz"))
1331 (sha256
1332 (base32
1333 "1dns0nhymak44by18sv48m4xb2skiwbi2i3nb9hl6w9iwd2i2brf"))))
1334 (build-system gnu-build-system)
1335 (inputs
1336 `(("libxaw" ,libxaw)
1337 ("libxt" ,libxt)))
1338 (home-page "https://www.gnu.org/software/gnushogi/")
1339 (synopsis "User interface for gnushogi")
1340 (description "A graphical user interface for the package @code{gnushogi}.")
1341 ;; Contains a copy of GPLv3 but the licence notices simply
1342 ;; state "GNU General Public Licence" without specifying a version.
1343 (license license:gpl1+)))
1344
1345 (define-public abbaye
1346 (package
1347 (name "abbaye")
1348 (version "2.0.1")
1349 (source
1350 (origin
1351 (method git-fetch)
1352 (uri (git-reference
1353 (url "https://github.com/nevat/abbayedesmorts-gpl.git")
1354 (commit (string-append "v" version))))
1355 (file-name (git-file-name name version))
1356 (sha256
1357 (base32 "1pwqf7r9bqb2p3xrw9i7y8pgr1401fy3mnnqpb1qkhmdl3gqi9hb"))
1358 (modules '((guix build utils)))
1359 (snippet
1360 ;; Unbundle fonts.
1361 '(begin
1362 (delete-file-recursively "fonts")
1363 #t))))
1364 (build-system gnu-build-system)
1365 (arguments
1366 '(#:make-flags '("CC=gcc")
1367 #:phases (modify-phases %standard-phases
1368 (add-after 'set-paths 'set-sdl-paths
1369 (lambda* (#:key inputs #:allow-other-keys)
1370 (setenv "CPATH"
1371 (string-append (assoc-ref inputs "sdl-union")
1372 "/include/SDL:"
1373 (or (getenv "CPATH") "")))))
1374 (add-after 'patch-source-shebangs 'patch-makefile
1375 (lambda* (#:key outputs #:allow-other-keys)
1376 ;; Replace /usr with package output directory.
1377 (substitute* "Makefile"
1378 (("/usr") (assoc-ref outputs "out")))))
1379 (add-before 'install 'make-install-dirs
1380 (lambda* (#:key outputs #:allow-other-keys)
1381 (let ((prefix (assoc-ref outputs "out")))
1382 ;; Create directories that the makefile assumes exist.
1383 (mkdir-p (string-append prefix "/bin"))
1384 (mkdir-p (string-append prefix "/share/applications"))
1385 (mkdir-p (string-append prefix "/share/pixmaps")))))
1386 ;; No configure script.
1387 (delete 'configure))
1388 #:tests? #f)) ;; No check target.
1389 (native-inputs `(("pkg-config" ,pkg-config)))
1390 (inputs `(("sdl-union" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer)))))
1391 (home-page "https://github.com/nevat/abbayedesmorts-gpl")
1392 (synopsis "GNU/Linux port of the indie game \"l'Abbaye des Morts\"")
1393 (description "L'Abbaye des Morts is a 2D platform game set in 13th century
1394 France. The Cathars, who preach about good Christian beliefs, were being
1395 expelled by the Catholic Church out of the Languedoc region in France. One of
1396 them, called Jean Raymond, found an old church in which to hide, not knowing
1397 that beneath its ruins lay buried an ancient evil.")
1398 (license license:gpl3)))
1399
1400 (define-public l-abbaye-des-morts
1401 (deprecated-package "l-abbaye-des-morts" abbaye))
1402
1403 (define-public angband
1404 (package
1405 (name "angband")
1406 (version "4.2.0")
1407 (source
1408 (origin
1409 (method url-fetch)
1410 (uri (string-append "http://rephial.org/downloads/"
1411 (version-major+minor version)
1412 "/angband-" version ".tar.gz"))
1413 (sha256
1414 (base32
1415 "0vdm1ymm28wawp94nl1p5q3lhc0k7cnn2kkvvrkfx962gif4kqfk"))
1416 (modules '((guix build utils)))
1417 (snippet
1418 ;; So, some of the sounds/graphics/tilesets are under different
1419 ;; licenses... some of them even nonfree! This is a console-only
1420 ;; version of this package so we just remove them.
1421 ;; In the future, if someone tries to make a graphical variant of
1422 ;; this package, they can deal with that mess themselves. :)
1423 '(begin
1424 (for-each (lambda (subdir)
1425 (let ((lib-subdir (string-append "lib/" subdir)))
1426 (delete-file-recursively lib-subdir)))
1427 '("fonts" "icons" "sounds" "tiles"))
1428 (substitute* "lib/Makefile"
1429 ;; And don't try to invoke makefiles in the directories we removed.
1430 (("gamedata customize help screens fonts tiles sounds icons user")
1431 "gamedata customize help screens user"))
1432 #t))))
1433 (build-system gnu-build-system)
1434 (arguments
1435 `(#:tests? #f ; no check target
1436 #:configure-flags (list (string-append "--bindir=" %output "/bin"))
1437 #:phases
1438 (modify-phases %standard-phases
1439 (replace 'bootstrap
1440 (lambda _
1441 (substitute* "acinclude.m4"
1442 (("ncursesw5-config") "ncursesw6-config"))
1443 (invoke "sh" "autogen.sh"))))))
1444 (native-inputs
1445 `(("autoconf" ,autoconf)
1446 ("automake" ,automake)))
1447 (inputs `(("ncurses" ,ncurses)))
1448 (home-page "http://rephial.org/")
1449 (synopsis "Dungeon exploration roguelike")
1450 (description "Angband is a Classic dungeon exploration roguelike. Explore
1451 the depths below Angband, seeking riches, fighting monsters, and preparing to
1452 fight Morgoth, the Lord of Darkness.")
1453 (license license:gpl2)))
1454
1455 (define-public pingus
1456 (package
1457 (name "pingus")
1458 (version "0.7.6")
1459 (source
1460 (origin
1461 (method git-fetch)
1462 (uri (git-reference
1463 (url "https://gitlab.com/pingus/pingus.git")
1464 (commit (string-append "v" version))))
1465 (file-name (git-file-name name version))
1466 (sha256
1467 (base32
1468 "0wp06kcmknsnxz7bjnsndb8x062z7r23fb3yrnbfnj68qhz18y74"))
1469 (patches (search-patches "pingus-boost-headers.patch"
1470 "pingus-sdl-libs-config.patch"))
1471 (modules '((guix build utils)))
1472 (snippet
1473 '(begin
1474 (substitute* "src/pingus/screens/demo_session.cpp"
1475 (("#include <iostream>")
1476 ;; std::function moved to <functional> with C++ 11.
1477 ;; Remove this for versions newer than 0.7.6.
1478 "#include <iostream>\n#include <functional>"))
1479 #t))))
1480 (build-system gnu-build-system)
1481 (native-inputs `(("pkg-config" ,pkg-config)
1482 ("scons-python2" ,scons-python2)))
1483 (inputs `(("sdl" ,sdl)
1484 ("sdl-image" ,sdl-image)
1485 ("sdl-mixer" ,sdl-mixer)
1486 ("mesa" ,mesa)
1487 ("glu" ,glu)
1488 ("libpng" ,libpng)
1489 ("boost" ,boost)))
1490 (arguments
1491 '(#:make-flags (list (string-append "PREFIX=" %output))
1492 #:tests? #f ; no check target
1493 #:phases
1494 (modify-phases %standard-phases
1495 (delete 'configure)))) ; no configure script
1496 (home-page "https://pingus.seul.org/")
1497 (synopsis "Lemmings clone")
1498 (description
1499 "Pingus is a free Lemmings-like puzzle game in which the player takes
1500 command of a bunch of small animals and has to guide them through levels.
1501 Since the animals walk on their own, the player can only influence them by
1502 giving them commands, like build a bridge, dig a hole, or redirect all animals
1503 in the other direction. Multiple such commands are necessary to reach the
1504 level's exit. The game is presented in a 2D side view.")
1505 ;; Some source files are under bsd-3 and gpl2+ licenses.
1506 (license license:gpl3+)))
1507
1508 (define-public talkfilters
1509 (package
1510 (name "talkfilters")
1511 (version "2.3.8")
1512 (source
1513 (origin
1514 (method url-fetch)
1515 (uri (string-append "http://www.hyperrealm.com/" name "/"
1516 name "-" version ".tar.gz"))
1517 (sha256
1518 (base32 "19nc5vq4bnkjvhk8srqddzhcs93jyvpm9r6lzjzwc1mgf08yg0a6"))))
1519 (build-system gnu-build-system)
1520 (home-page "https://www.gnu.org/software/talkfilters/")
1521 (synopsis "Convert English text to humorous dialects")
1522 (description "The GNU Talk Filters are programs that convert English text
1523 into stereotyped or otherwise humorous dialects. The filters are provided as
1524 a C library, so they can easily be integrated into other programs.")
1525 (license license:gpl2+)))
1526
1527 (define-public cmatrix
1528 (package
1529 (name "cmatrix")
1530 (version "1.2a")
1531 (source
1532 (origin
1533 (method url-fetch)
1534 (uri (string-append "http://www.asty.org/cmatrix/dist/cmatrix-" version
1535 ".tar.gz"))
1536 (sha256
1537 (base32
1538 "0k06fw2n8nzp1pcdynhajp5prba03gfgsbj91bknyjr5xb5fd9hz"))))
1539 (build-system gnu-build-system)
1540 (arguments
1541 '(#:phases
1542 (modify-phases %standard-phases
1543 (replace 'configure
1544 (lambda* (#:key outputs #:allow-other-keys)
1545 ;; This old ‘configure’ script doesn't support
1546 ;; variables passed as arguments.
1547 (let ((out (assoc-ref outputs "out")))
1548 (setenv "CONFIG_SHELL" (which "bash"))
1549 (invoke "./configure"
1550 (string-append "--prefix=" out))))))))
1551 (inputs `(("ncurses" ,ncurses)))
1552 (home-page "http://www.asty.org/cmatrix")
1553 (synopsis "Simulate the display from \"The Matrix\"")
1554 (description "CMatrix simulates the display from \"The Matrix\" and is
1555 based on the screensaver from the movie's website. It works with terminal
1556 settings up to 132x300 and can scroll lines all at the same rate or
1557 asynchronously and at a user-defined speed.")
1558 (license license:gpl2+)))
1559
1560 (define-public chess
1561 (package
1562 (name "chess")
1563 (version "6.2.5")
1564 (source
1565 (origin
1566 (method url-fetch)
1567 (uri (string-append "mirror://gnu/chess/gnuchess-" version
1568 ".tar.gz"))
1569 (sha256
1570 (base32
1571 "00j8s0npgfdi41a0mr5w9qbdxagdk2v41lcr42rwl1jp6miyk6cs"))))
1572 (build-system gnu-build-system)
1573 (home-page "https://www.gnu.org/software/chess/")
1574 (synopsis "Full chess implementation")
1575 (description "GNU Chess is a chess engine. It allows you to compete
1576 against the computer in a game of chess, either through the default terminal
1577 interface or via an external visual interface such as GNU XBoard.")
1578 (license license:gpl3+)))
1579
1580 (define freedink-engine
1581 (package
1582 (name "freedink-engine")
1583 (version "109.6")
1584 (source (origin
1585 (method url-fetch)
1586 (uri (string-append "mirror://gnu/freedink/freedink-" version
1587 ".tar.gz"))
1588 (sha256
1589 (base32
1590 "00hhk1bjdrc1np2qz44sa5n1mb62qzwxbvsnws3vpms6iyn3a2sy"))))
1591 (build-system gnu-build-system)
1592 (arguments
1593 `(#:configure-flags '("--disable-embedded-resources")
1594 #:phases
1595 (modify-phases %standard-phases
1596 (add-after 'unpack 'disable-graphical-tests
1597 (lambda _
1598 ;; These tests require a graphical interface.
1599 (substitute* "src/Makefile.am"
1600 (("test_gfx_fonts TestIOGfxDisplay") ""))
1601 #t)))))
1602 (native-inputs `(("autoconf" ,autoconf)
1603 ("automake" ,automake)
1604 ("cxxtest" ,cxxtest)
1605 ("gettext" ,gettext-minimal)
1606 ("help2man" ,help2man)
1607 ("pkg-config" ,pkg-config)))
1608 (inputs `(("sdl-union" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer
1609 sdl2-ttf sdl2-gfx)))
1610 ("fontconfig" ,fontconfig)
1611 ("glm" ,glm)))
1612 (properties '((ftp-directory . "/freedink")
1613 (upstream-name . "freedink")))
1614 (home-page "https://www.gnu.org/software/freedink/")
1615 (synopsis "Twisted adventures of young pig farmer Dink Smallwood")
1616 (description
1617 "GNU FreeDink is a free and portable re-implementation of the engine
1618 for the role-playing game Dink Smallwood. It supports not only the original
1619 game data files but it also supports user-produced game mods or \"D-Mods\".
1620 To that extent, it also includes a front-end for managing all of your D-Mods.")
1621 (license license:gpl3+)))
1622
1623 (define freedink-data
1624 (package
1625 (name "freedink-data")
1626 (version "1.08.20190120")
1627 (source (origin
1628 (method url-fetch)
1629 (uri (string-append "mirror://gnu/freedink/freedink-data-"
1630 version ".tar.gz"))
1631 (sha256
1632 (base32
1633 "17gvryadlxk172mblbsil7hina1z5wahwaxnr6g3mdq57dvl8pvi"))))
1634 (build-system gnu-build-system)
1635 (arguments
1636 `(#:phases
1637 (modify-phases %standard-phases
1638 (delete 'configure) ; no configure script
1639 (delete 'check)) ; no tests
1640 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))))
1641 (properties '((ftp-directory . "/freedink")))
1642 (home-page "https://www.gnu.org/software/freedink/")
1643 (synopsis "Game data for GNU Freedink")
1644 (description
1645 "This package contains the game data of GNU Freedink.")
1646 (license license:gpl3+)))
1647
1648 (define-public freedink-dfarc
1649 (package
1650 (name "freedink-dfarc")
1651 (version "3.14")
1652 (source (origin
1653 (method url-fetch)
1654 (uri (string-append "mirror://gnu/freedink/dfarc-"
1655 version ".tar.gz"))
1656 (sha256
1657 (base32
1658 "1yp8n3w426xnlp10xk06vfi2y3k9xrcfyck7s7qs1v0ys7n284d5"))))
1659 (build-system gnu-build-system)
1660 (native-inputs
1661 `(("intltool" ,intltool)))
1662 (inputs
1663 `(("bzip2" ,bzip2)
1664 ("wxwidgets" ,wxwidgets)))
1665 (properties '((ftp-directory . "/freedink")
1666 (upstream-name . "dfarc")))
1667 (home-page "https://www.gnu.org/software/freedink/")
1668 (synopsis "Front-end for managing and playing Dink Modules")
1669 (description "DFArc makes it easy to play and manage the GNU FreeDink game
1670 and its numerous D-Mods.")
1671 (license license:gpl3+)))
1672
1673 (define-public freedink
1674 ;; This is a wrapper that tells the engine where to find the data.
1675 (package (inherit freedink-engine)
1676 (name "freedink")
1677 (build-system trivial-build-system)
1678 (arguments
1679 '(#:builder (begin
1680 (use-modules (guix build utils))
1681
1682 (let* ((output (assoc-ref %outputs "out"))
1683 (bin (string-append output "/bin"))
1684 (executable (string-append bin "/freedink")))
1685 (mkdir-p bin)
1686 (call-with-output-file executable
1687 (lambda (port)
1688 (format port "#!~a/bin/sh
1689 exec ~a/bin/freedink -refdir ~a/share/dink\n"
1690 (assoc-ref %build-inputs "bash")
1691 (assoc-ref %build-inputs "engine")
1692 (assoc-ref %build-inputs "data"))
1693 (chmod port #o777)))
1694 #t))
1695 #:modules ((guix build utils))))
1696 (inputs `(("engine" ,freedink-engine)
1697 ("data" ,freedink-data)
1698 ("bash" ,bash)))
1699 (native-inputs '())))
1700
1701 (define-public xboard
1702 (package
1703 (name "xboard")
1704 (version "4.9.1")
1705 (source
1706 (origin
1707 (method url-fetch)
1708 (uri (string-append "mirror://gnu/xboard/xboard-" version
1709 ".tar.gz"))
1710 (sha256
1711 (base32
1712 "1mkh36xnnacnz9r00b5f9ld9309k32jv6mcavklbdnca8bl56bib"))))
1713 (build-system gnu-build-system)
1714 (inputs
1715 `(("gtk+" ,gtk+-2)
1716 ("librsvg" ,librsvg)))
1717 (native-inputs
1718 `(("texinfo" ,texinfo)
1719 ("pkg-config" ,pkg-config)))
1720 (home-page "https://www.gnu.org/software/xboard/")
1721 (synopsis "Graphical user interface for chess programs")
1722 (description "GNU XBoard is a graphical board for all varieties of chess,
1723 including international chess, xiangqi (Chinese chess), shogi (Japanese chess)
1724 and Makruk. Several lesser-known variants are also supported. It presents a
1725 fully interactive graphical interface and it can load and save games in the
1726 Portable Game Notation.")
1727 (license license:gpl3+)))
1728
1729 (define-public gtypist
1730 (package
1731 (name "gtypist")
1732 (version "2.9.5")
1733 (source (origin
1734 (method url-fetch)
1735 (uri (string-append "mirror://gnu/gtypist/gtypist-"
1736 version ".tar.xz"))
1737 (sha256
1738 (base32
1739 "0xzrkkmj0b1dw3yr0m9hml2y634cc4h61im6zwcq57s7285z8fn1"))
1740 (modules '((guix build utils)))
1741 (snippet
1742 ;; We do not provide `ncurses.h' within an `ncursesw'
1743 ;; sub-directory, so patch the source accordingly. See
1744 ;; <http://bugs.gnu.org/19018>.
1745 '(begin
1746 (for-each (lambda (file)
1747 (substitute* file
1748 (("ncursesw/ncurses.h")
1749 "ncurses.h")))
1750 (find-files "." "configure$|\\.c$"))
1751 #t))))
1752 (build-system gnu-build-system)
1753 (inputs `(("ncurses" ,ncurses)
1754 ("perl" ,perl)))
1755 (home-page "https://www.gnu.org/software/gtypist/")
1756 (synopsis "Typing tutor")
1757 (description
1758 "GNU Typist is a universal typing tutor. It can be used to learn and
1759 practice touch-typing. Several tutorials are included; in addition to
1760 tutorials for the standard QWERTY layout, there are also tutorials for the
1761 alternative layouts Dvorak and Colemak, as well as for the numpad. Tutorials
1762 are primarily in English, however some in other languages are provided.")
1763 (license license:gpl3+)))
1764
1765 (define-public irrlicht
1766 (package
1767 (name "irrlicht")
1768 (version "1.8.4")
1769 (source (origin
1770 (method url-fetch)
1771 (uri (string-append
1772 "mirror://sourceforge/irrlicht/Irrlicht%20SDK/"
1773 (version-major+minor version)
1774 "/" version "/irrlicht-" version ".zip"))
1775 (sha256
1776 (base32
1777 "0cz4z4dwrv5ypl19ll67wl6jjpy5k6ly4vr042w4br88qq5jhazl"))
1778 (patches (search-patches "irrlicht-use-system-libs.patch"))
1779 (modules '((guix build utils)))
1780 (snippet
1781 '(begin
1782 (for-each delete-file-recursively
1783 '("bin" ; bundled compiled Windows binaries"
1784 "source/Irrlicht/MacOSX"
1785 "source/Irrlicht/bzip2"
1786 "source/Irrlicht/jpeglib"
1787 "source/Irrlicht/libpng"
1788 "source/Irrlicht/lzma"
1789 "source/Irrlicht/zlib"))
1790 (delete-file "source/Irrlicht/glext.h")
1791 (delete-file "source/Irrlicht/glxext.h")
1792 (delete-file "source/Irrlicht/wglext.h")
1793 #t))))
1794 (build-system gnu-build-system)
1795 (arguments
1796 `(#:phases
1797 (modify-phases %standard-phases
1798 (add-after 'unpack 'chdir-to-source
1799 (lambda _
1800 ;; The actual source is buried a few directories deep.
1801 (chdir "source/Irrlicht/")
1802 #t))
1803 (add-after 'chdir-to-source 'fix-build-env
1804 (lambda* (#:key outputs #:allow-other-keys)
1805 (let ((out (assoc-ref outputs "out")))
1806 (substitute* "Makefile"
1807 (("INSTALL_DIR = /usr/local/lib")
1808 (string-append "INSTALL_DIR = " out "/lib"))
1809 ;; Add '-fpermissive' to the CXXFLAGS
1810 (("-Wall") "-Wall -fpermissive")) ; CImageLoaderJPG.cpp
1811 ;; The Makefile assumes these directories exist.
1812 (mkdir-p (string-append out "/lib"))
1813 (mkdir-p (string-append out "/include")))))
1814 (delete 'configure)) ; no configure script
1815 #:tests? #f ; no check target
1816 #:make-flags '("CC=gcc" "sharedlib")))
1817 (inputs
1818 `(("bzip2" ,bzip2)
1819 ("libjpeg" ,libjpeg)
1820 ("libpng" ,libpng)
1821 ("libx11" ,libx11)
1822 ("libxxf86vm" ,libxxf86vm)
1823 ("mesa" ,mesa)))
1824 (synopsis "3D game engine written in C++")
1825 (description
1826 "The Irrlicht Engine is a high performance realtime 3D engine written in
1827 C++. Features include an OpenGL renderer, extensible materials, scene graph
1828 management, character animation, particle and other special effects, support
1829 for common mesh file formats, and collision detection.")
1830 (home-page "http://irrlicht.sourceforge.net/")
1831 (license license:zlib)))
1832
1833 (define-public mars
1834 ;; The latest release on SourceForge relies on an unreleased version of SFML
1835 ;; with a different API, so we take the latest version from the official
1836 ;; repository on Github.
1837 (let ((commit "c855d044094a1d92317e38935d81ba938946132e")
1838 (revision "1"))
1839 (package
1840 (name "mars")
1841 (version (string-append "0.7.5." revision "." (string-take commit 7) ))
1842 (source (origin
1843 (method git-fetch)
1844 (uri (git-reference
1845 (url "https://github.com/thelaui/M.A.R.S..git")
1846 (commit commit)))
1847 (file-name (git-file-name name version))
1848 (sha256
1849 (base32
1850 "1r4c5gap1z2zsv4yjd34qriqkxaq4lb4rykapyzkkdf4g36lc3nh"))
1851 (patches (search-patches "mars-sfml-2.3.patch"
1852 "mars-install.patch"))))
1853 (build-system cmake-build-system)
1854 (arguments
1855 `(#:tests? #f ; There are no tests
1856 #:phases
1857 (modify-phases %standard-phases
1858 (add-after 'unpack 'fix-install-path
1859 (lambda _
1860 (substitute* "src/CMakeLists.txt"
1861 (("\\$\\{CMAKE_INSTALL_PREFIX\\}/games")
1862 "${CMAKE_INSTALL_PREFIX}/bin"))
1863 #t))
1864 (add-after 'unpack 'fix-data-path
1865 (lambda* (#:key outputs #:allow-other-keys)
1866 (substitute* "src/System/settings.cpp"
1867 (("C_dataPath = \"./data/\";")
1868 (string-append "C_dataPath = \""
1869 (assoc-ref outputs "out")
1870 "/share/games/marsshooter/\";")))
1871 #t)))))
1872 (inputs
1873 `(("mesa" ,mesa)
1874 ("fribidi" ,fribidi)
1875 ("taglib" ,taglib)
1876 ("sfml" ,sfml)))
1877 (home-page "http://marsshooter.org")
1878 (synopsis "2D space shooter")
1879 (description
1880 "M.A.R.S. is a 2D space shooter with pretty visual effects and
1881 attractive physics. Players can battle each other or computer controlled
1882 enemies in different game modes such as space ball, death match, team death
1883 match, cannon keep, and grave-itation pit.")
1884 (license license:gpl3+))))
1885
1886 (define minetest-data
1887 (package
1888 (name "minetest-data")
1889 (version "5.1.0")
1890 (source (origin
1891 (method git-fetch)
1892 (uri (git-reference
1893 (url "https://github.com/minetest/minetest_game")
1894 (commit version)))
1895 (file-name (git-file-name name version))
1896 (sha256
1897 (base32
1898 "1r9fxz2j24q74a9injvbxbf2xk67fzabv616i676zw2cvgv9hn39"))))
1899 (build-system trivial-build-system)
1900 (native-inputs
1901 `(("source" ,source)))
1902 (arguments
1903 `(#:modules ((guix build utils))
1904 #:builder (begin
1905 (use-modules (guix build utils))
1906 (let ((install-dir (string-append
1907 %output
1908 "/share/minetest/games/minetest_game")))
1909 (mkdir-p install-dir)
1910 (copy-recursively
1911 (assoc-ref %build-inputs "source")
1912 install-dir)
1913 #t))))
1914 (synopsis "Main game data for the Minetest game engine")
1915 (description
1916 "Game data for the Minetest infinite-world block sandbox game.")
1917 (home-page "http://minetest.net")
1918 (license license:lgpl2.1+)))
1919
1920 (define-public minetest
1921 (package
1922 (name "minetest")
1923 (version "5.1.0")
1924 (source (origin
1925 (method git-fetch)
1926 (uri (git-reference
1927 (url "https://github.com/minetest/minetest")
1928 (commit version)))
1929 (file-name (git-file-name name version))
1930 (sha256
1931 (base32
1932 "184n9gxfa7yr0j85z2x736maaymsnppd5jzm326wlqri3c0qqy3z"))
1933 (modules '((guix build utils)))
1934 (snippet
1935 '(begin
1936 ;; Mimic upstream commit 706b6aad06, for compatibility with
1937 ;; newer jsoncpp. Remove this for > 5.1.0.
1938 (substitute* "cmake/Modules/FindJson.cmake"
1939 (("features\\.h")
1940 "allocator.h"))
1941
1942 ;; Delete bundled libraries.
1943 (delete-file-recursively "lib")
1944 #t))))
1945 (build-system cmake-build-system)
1946 (arguments
1947 '(#:configure-flags
1948 (list "-DRUN_IN_PLACE=0"
1949 "-DENABLE_FREETYPE=1"
1950 "-DENABLE_GETTEXT=1"
1951 "-DENABLE_SYSTEM_JSONCPP=TRUE"
1952 (string-append "-DIRRLICHT_INCLUDE_DIR="
1953 (assoc-ref %build-inputs "irrlicht")
1954 "/include/irrlicht")
1955 (string-append "-DCURL_INCLUDE_DIR="
1956 (assoc-ref %build-inputs "curl")
1957 "/include/curl"))
1958 #:tests? #f)) ;no check target
1959 (native-search-paths
1960 (list (search-path-specification
1961 (variable "MINETEST_SUBGAME_PATH")
1962 (files '("share/minetest/games")))))
1963 (native-inputs
1964 `(("pkg-config" ,pkg-config)))
1965 (inputs
1966 `(("curl" ,curl)
1967 ("freetype" ,freetype)
1968 ("gettext" ,gettext-minimal)
1969 ("gmp" ,gmp)
1970 ("irrlicht" ,irrlicht)
1971 ("jsoncpp" ,jsoncpp)
1972 ("libjpeg" ,libjpeg)
1973 ("libpng" ,libpng)
1974 ("libogg" ,libogg)
1975 ("libvorbis" ,libvorbis)
1976 ("libxxf86vm" ,libxxf86vm)
1977 ("luajit" ,luajit)
1978 ("mesa" ,mesa)
1979 ("ncurses" ,ncurses)
1980 ("openal" ,openal)
1981 ("sqlite" ,sqlite)))
1982 (propagated-inputs
1983 `(("minetest-data" ,minetest-data)))
1984 (synopsis "Infinite-world block sandbox game")
1985 (description
1986 "Minetest is a sandbox construction game. Players can create and destroy
1987 various types of blocks in a three-dimensional open world. This allows
1988 forming structures in every possible creation, on multiplayer servers or as a
1989 single player. Mods and texture packs allow players to personalize the game
1990 in different ways.")
1991 (home-page "http://minetest.net")
1992 (license license:lgpl2.1+)))
1993
1994 (define glkterm
1995 (package
1996 (name "glkterm")
1997 (version "1.0.4")
1998 (source
1999 (origin
2000 (method url-fetch)
2001 (uri (string-append "http://www.ifarchive.org/if-archive/programming/"
2002 "glk/implementations/glkterm-104.tar.gz"))
2003 (sha256
2004 (base32
2005 "0zlj9nlnkdlvgbiliczinirqygiq8ikg5hzh5vgcmnpg9pvnwga7"))))
2006 (build-system gnu-build-system)
2007 (propagated-inputs `(("ncurses" ,ncurses))) ; required by Make.glkterm
2008 (arguments
2009 '(#:tests? #f ; no check target
2010 #:phases
2011 (modify-phases %standard-phases
2012 (replace 'install
2013 (lambda* (#:key outputs #:allow-other-keys)
2014 (let* ((out (assoc-ref outputs "out"))
2015 (inc (string-append out "/include"))
2016 (lib (string-append out "/lib")))
2017 (for-each
2018 (lambda (file)
2019 (install-file file inc))
2020 '("glk.h" "glkstart.h" "gi_blorb.h" "gi_dispa.h" "Make.glkterm"))
2021 (install-file "libglkterm.a" lib))
2022 #t))
2023 (delete 'configure)))) ; no configure script
2024 (home-page "http://www.eblong.com/zarf/glk/")
2025 (synopsis "Curses Implementation of the Glk API")
2026 (description
2027 "Glk defines a portable API for applications with text UIs. It was
2028 primarily designed for interactive fiction, but it should be suitable for many
2029 interactive text utilities, particularly those based on a command line.
2030 This is an implementation of the Glk library which runs in a terminal window,
2031 using the @code{curses.h} library for screen control.")
2032 (license (license:fsf-free "file://README"))))
2033
2034 (define-public glulxe
2035 (package
2036 (name "glulxe")
2037 (version "0.5.4")
2038 (source
2039 (origin
2040 (method url-fetch)
2041 (uri (string-append "http://www.ifarchive.org/if-archive/programming/"
2042 "glulx/interpreters/glulxe/glulxe-054.tar.gz"))
2043 (sha256
2044 (base32
2045 "0vipydg6ra90yf9b3ipgppwxyb2xdhcxwvirgjy0v20wlf56zhhz"))))
2046 (build-system gnu-build-system)
2047 (inputs `(("glk" ,glkterm)))
2048 (arguments
2049 '(#:tests? #f ; no check target
2050 #:make-flags
2051 (let* ((glk (assoc-ref %build-inputs "glk")))
2052 (list (string-append "GLKINCLUDEDIR=" glk "/include")
2053 (string-append "GLKLIBDIR=" glk "/lib")
2054 (string-append "GLKMAKEFILE=" "Make.glkterm")))
2055 #:phases
2056 (modify-phases %standard-phases
2057 (replace 'install
2058 (lambda* (#:key outputs #:allow-other-keys)
2059 (let* ((out (assoc-ref outputs "out"))
2060 (bin (string-append out "/bin")))
2061 (install-file "glulxe" bin))
2062 #t))
2063 (delete 'configure)))) ; no configure script
2064 (home-page "http://www.eblong.com/zarf/glulx/")
2065 (synopsis "Interpreter for Glulx VM")
2066 (description
2067 "Glulx is a 32-bit portable virtual machine intended for writing and
2068 playing interactive fiction. It was designed by Andrew Plotkin to relieve
2069 some of the restrictions in the venerable Z-machine format. This is the
2070 reference interpreter, using the Glk API.")
2071 (license license:expat)))
2072
2073 (define-public fifechan
2074 (package
2075 (name "fifechan")
2076 (version "0.1.5")
2077 (source (origin
2078 (method url-fetch)
2079 (uri (string-append "https://codeload.github.com/fifengine/"
2080 "fifechan/tar.gz/" version))
2081 (file-name (string-append name "-" version ".tar.gz"))
2082 (sha256
2083 (base32
2084 "0wxs9vz5x9y8chghd8vp7vfk089lfb0qnzggi17zrqkrngs5zgi9"))))
2085 (build-system cmake-build-system)
2086 (inputs
2087 `(("sdl2" ,sdl2)
2088 ("sdl2-image" ,sdl2-image)
2089 ("mesa" ,mesa)))
2090 (arguments
2091 '(#:tests? #f)) ; No included tests
2092 (home-page "https://fifengine.github.io/fifechan/")
2093 (synopsis "Cross platform GUI library specifically for games")
2094 (description
2095 "Fifechan is a lightweight cross platform GUI library written in C++
2096 specifically designed for games. It has a built in set of extendable GUI
2097 Widgets, and allows users to create more.")
2098 (license license:lgpl2.1+)))
2099
2100 (define-public fifengine
2101 (package
2102 (name "fifengine")
2103 (version "0.4.2")
2104 (source (origin
2105 (method url-fetch)
2106 (uri (string-append "https://codeload.github.com/fifengine/"
2107 "fifengine/tar.gz/" version))
2108 (file-name (string-append name "-" version ".tar.gz"))
2109 (sha256
2110 (base32
2111 "1y4grw25cq5iqlg05rnbyxw1njl11ypidnlsm3qy4sm3xxdvb0p8"))))
2112 (build-system cmake-build-system)
2113 (arguments
2114 `(#:tests? #f ; TODO The test running fails to run some tests.
2115 #:modules ((srfi srfi-1)
2116 (guix build cmake-build-system)
2117 (guix build utils))
2118 #:configure-flags
2119 (list
2120 (string-append "-DOPENALSOFT_INCLUDE_DIR="
2121 (assoc-ref %build-inputs "openal")
2122 "/include/AL")
2123 (string-append "-DPYTHON_SITE_PACKAGES="
2124 (assoc-ref %outputs "out")
2125 "/lib/python3.7/site-packages"))
2126 #:phases
2127 (modify-phases %standard-phases
2128 (add-after 'unpack 'patch-run_tests.py
2129 (lambda _
2130 ;; Patch the test runner to exit with a status of 1 if any test
2131 ;; fails, to allow detecting failures.
2132 (substitute* "run_tests.py"
2133 (("ERROR\\. One or more tests failed!'\\)")
2134 "ERROR. One or more tests failed!')
2135 \t\texit(1)"))
2136 #t))
2137 ;; Run tests after installation so that we can make use of the built
2138 ;; python modules.
2139 (delete 'check)
2140 (add-after 'install 'check
2141 (lambda* (#:key inputs outputs tests? #:allow-other-keys)
2142 (define python-version
2143 (let* ((version (last (string-split
2144 (assoc-ref inputs "python")
2145 #\-)))
2146 (components (string-split version #\.))
2147 (major+minor (take components 2)))
2148 (string-join major+minor ".")))
2149
2150 (when tests?
2151 ;; Set PYTHONPATH so that python finds the installed modules.
2152 (setenv "PYTHONPATH"
2153 (string-append (getenv "PYTHONPATH") ":"
2154 (assoc-ref outputs "out")
2155 "/lib/python"
2156 python-version
2157 "/site-packages"))
2158 ;; The tests require an X server.
2159 (system "Xvfb :1 &")
2160 (setenv "DISPLAY" ":1")
2161 (setenv "XDG_RUNTIME_DIR" "/tmp")
2162 ;; Run tests
2163 (chdir ,(string-append "../" name "-" version))
2164 (invoke "python3" "run_tests.py" "-a"))
2165 #t)))))
2166 (inputs
2167 `(("sdl2" ,sdl2)
2168 ("sdl2-image" ,sdl2-image)
2169 ("sdl2-ttf" ,sdl2-ttf)
2170 ("tinyxml" ,tinyxml)
2171 ("openal" ,openal)
2172 ("libogg" ,libogg)
2173 ("glew" ,glew)
2174 ("libvorbis" ,libvorbis)
2175 ("boost" ,boost)
2176 ("fifechan" ,fifechan)
2177 ("swig" ,swig)
2178 ("python" ,python)))
2179 (native-inputs
2180 `(("python" ,python)
2181 ("swig" ,swig)
2182 ("xvfb" ,xorg-server)))
2183 (propagated-inputs
2184 `(("python-future" ,python-future)))
2185 (home-page "https://www.fifengine.net/")
2186 (synopsis "FIFE is a multi-platform isometric game engine written in C++")
2187 (description
2188 "@acronym{FIFE, Flexible Isometric Free Engine} is a multi-platform
2189 isometric game engine. Python bindings are included allowing users to create
2190 games using Python as well as C++.")
2191 (license license:lgpl2.1+)))
2192
2193 (define-public fizmo
2194 (package
2195 (name "fizmo")
2196 (version "0.8.5")
2197 (source (origin
2198 (method url-fetch)
2199 (uri (string-append "https://fizmo.spellbreaker.org/source/"
2200 "fizmo-" version ".tar.gz"))
2201 (sha256
2202 (base32
2203 "1amyc4n41jf08kxmdgkk30bzzx54miaxa97w28f417qwn8lrl98w"))))
2204 (build-system gnu-build-system)
2205 (arguments
2206 '(#:configure-flags
2207 (let ((libjpeg (assoc-ref %build-inputs "libjpeg"))
2208 (ncurses (assoc-ref %build-inputs "ncurses")))
2209 (list (string-append "--with-jpeg-includedir=" libjpeg "/include")))))
2210 (native-inputs
2211 `(("pkg-config" ,pkg-config)))
2212 (inputs
2213 `(("freetype" ,freetype)
2214 ("libjpeg" ,libjpeg)
2215 ("libpng" ,libpng)
2216 ("libsndfile" ,libsndfile)
2217 ("libxml2" ,libxml2)
2218 ("ncurses" ,ncurses)
2219 ("sdl2" ,sdl2)))
2220 (home-page "https://fizmo.spellbreaker.org/")
2221 (synopsis "Z-machine interpreter")
2222 (description
2223 "Fizmo is a console-based Z-machine interpreter. It is used to play
2224 interactive fiction, also known as text adventures, which were implemented
2225 either by Infocom or created using the Inform compiler.")
2226 (license license:bsd-3)))
2227
2228 (define-public gnugo
2229 (package
2230 (name "gnugo")
2231 (version "3.8")
2232 (source (origin
2233 (method url-fetch)
2234 (uri (string-append "mirror://gnu/gnugo/gnugo-" version
2235 ".tar.gz"))
2236 (sha256
2237 (base32
2238 "0wkahvqpzq6lzl5r49a4sd4p52frdmphnqsfdv7gdp24bykdfs6s"))))
2239 (build-system gnu-build-system)
2240 (inputs `(("readline" ,readline)))
2241 (synopsis "Play the game of Go")
2242 (description
2243 "GNU Go is a program that plays the game of Go, in which players
2244 place stones on a grid to form territory or capture other stones. While
2245 it can be played directly from the terminal, rendered in ASCII characters,
2246 it is also possible to play GNU Go with 3rd party graphical interfaces or
2247 even in Emacs. It supports the standard game storage format (SGF, Smart
2248 Game Format) and inter-process communication format (GMP, Go Modem
2249 Protocol).")
2250 (home-page "https://www.gnu.org/software/gnugo/")
2251 (license license:gpl3+)))
2252
2253 (define-public extremetuxracer
2254 (package
2255 (name "extremetuxracer")
2256 (version "0.7.5")
2257 (source (origin
2258 (method url-fetch)
2259 (uri (string-append
2260 "mirror://sourceforge/extremetuxracer/releases/"
2261 version "/etr-" version ".tar.xz"))
2262 (sha256
2263 (base32
2264 "1ly63316c07i0gyqqmyzsyvygsvygn0fpk3bnbg25fi6li99rlsg"))))
2265 (build-system gnu-build-system)
2266 (native-inputs
2267 `(("pkg-config" ,pkg-config)))
2268 (inputs
2269 `(("glu" ,glu)
2270 ("sfml" ,sfml)))
2271 (synopsis "High-speed arctic racing game based on Tux Racer")
2272 ;; Snarfed straight from Debian.
2273 (description "Extreme Tux Racer, or etracer as it is called for short, is
2274 a simple OpenGL racing game featuring Tux, the Linux mascot. The goal of the
2275 game is to slide down a snow- and ice-covered mountain as quickly as possible,
2276 avoiding the trees and rocks that will slow you down.
2277
2278 Collect herrings and other goodies while sliding down the hill, but avoid fish
2279 bones.
2280
2281 This game is based on the GPL version of the famous game TuxRacer.")
2282 (home-page "https://sourceforge.net/projects/extremetuxracer/")
2283 (license license:gpl2+)))
2284
2285 (define-public supertuxkart
2286 (package
2287 (name "supertuxkart")
2288 (version "1.0")
2289 (source
2290 (origin
2291 (method url-fetch)
2292 (uri (string-append "mirror://sourceforge/supertuxkart/SuperTuxKart/"
2293 version "/supertuxkart-" version "-src.tar.xz"))
2294 (sha256
2295 (base32
2296 "106rlp99hq18b4q1kdri3pl06cc4v7iqfp1hp9k2f8751lzz923d"))
2297 (modules '((guix build utils)))
2298 (snippet
2299 ;; Delete bundled library sources
2300 '(begin
2301 ;; Supertuxkart uses modified versions of the Irrlicht engine
2302 ;; and the bullet library. The developers gave an explanation
2303 ;; here: http://forum.freegamedev.net/viewtopic.php?f=17&t=3906
2304 ;; FIXME: try to unbundle angelscript
2305 (for-each delete-file-recursively
2306 '("lib/zlib"
2307 "lib/libpng"
2308 "lib/jpeglib"
2309 "lib/glew"
2310 "lib/wiiuse"
2311 "lib/enet"))
2312 #t))))
2313 (build-system cmake-build-system)
2314 (arguments
2315 `(#:tests? #f ; no check target
2316 #:configure-flags
2317 (list "-DUSE_WIIUSE=0"
2318 ;; Do not use the bundled zlib, glew and enet.
2319 "-DNO_IRR_COMPILE_WITH_ZLIB_=TRUE"
2320 "-DUSE_SYSTEM_GLEW=TRUE"
2321 "-DUSE_SYSTEM_ENET=TRUE"
2322 ;; FIXME: needs libopenglrecorder
2323 "-DBUILD_RECORDER=0"
2324 ;; Irrlicht returns an integer instead of a boolean
2325 "-DCMAKE_C_FLAGS=-fpermissive")))
2326 (inputs
2327 `(("glew" ,glew)
2328 ("zlib" ,zlib)
2329 ("openal" ,openal)
2330 ("libvorbis" ,libvorbis)
2331 ("freetype" ,freetype)
2332 ("fribidi" ,fribidi)
2333 ("mesa" ,mesa)
2334 ("libx11" ,libx11)
2335 ("libxrandr" ,libxrandr)
2336 ("curl" ,curl)
2337 ;; The following input is needed to build the bundled and modified
2338 ;; version of irrlicht.
2339 ("libjpeg" ,libjpeg)
2340 ("openssl" ,openssl)
2341 ("enet" ,enet)))
2342 (native-inputs
2343 `(("pkg-config" ,pkg-config)))
2344 (home-page "https://supertuxkart.net/")
2345 (synopsis "3D kart racing game")
2346 (description "SuperTuxKart is a 3D kart racing game, with a focus on
2347 having fun over realism. You can play with up to 4 friends on one PC, racing
2348 against each other or just trying to beat the computer; single-player mode is
2349 also available.")
2350 (license license:gpl3+)))
2351
2352 (define-public unknown-horizons
2353 (package
2354 (name "unknown-horizons")
2355 (version "2019.1")
2356 (source (origin
2357 (method url-fetch)
2358 (uri (string-append "https://codeload.github.com/unknown-horizons/"
2359 "unknown-horizons/tar.gz/" version))
2360 (file-name (string-append name "-" version ".tar.gz"))
2361 (sha256
2362 (base32
2363 "1n747p7h0qp48szgp262swg0xh8kxy1bw8ag1qczs4i26hyzs5x4"))))
2364 (build-system python-build-system)
2365 (arguments
2366 '(#:phases
2367 (modify-phases %standard-phases
2368 (add-before 'build 'set-HOME
2369 (lambda _
2370 (setenv "HOME" "/tmp")))
2371 (add-after 'build 'build-extra
2372 (lambda _
2373 (invoke "python3" "./setup.py" "build_i18n")
2374 (invoke "python3" "horizons/engine/generate_atlases.py" "2048")
2375 #t))
2376 (add-after 'install 'patch
2377 (lambda* (#:key outputs #:allow-other-keys)
2378 (let ((out (assoc-ref outputs "out")))
2379 (substitute* (string-append out "/bin/unknown-horizons")
2380 (("os\\.chdir\\(get\\_content\\_dir\\_parent_path\\(\\)\\)")
2381 (string-append "os.chdir(\""
2382 (assoc-ref outputs "out")
2383 "/share/unknown-horizons\")"))))
2384 #t))
2385 ;; TODO: Run GUI tests as well
2386 (replace 'check
2387 (lambda _
2388 (substitute* "horizons/constants.py"
2389 (("IS_DEV_VERSION = False")
2390 "IS_DEV_VERSION = True"))
2391 (invoke "pytest" "tests")
2392 (substitute* "horizons/constants.py"
2393 (("IS_DEV_VERSION = True")
2394 "IS_DEV_VERSION = False"))
2395 #t)))))
2396 (inputs
2397 `(("fifengine" ,fifengine)
2398 ("python:tk" ,python "tk")
2399 ("python-pillow" ,python-pillow)
2400 ("python-pyyaml" ,python-pyyaml)))
2401 (native-inputs
2402 `(("intltool" ,intltool)
2403
2404 ;; Required for tests
2405 ("python-greenlet" ,python-greenlet)
2406 ("python-polib" ,python-polib)
2407 ("python-pytest" ,python-pytest)
2408 ("python-pytest-mock" ,python-pytest-mock)))
2409 (home-page "http://unknown-horizons.org/")
2410 (synopsis "Isometric realtime strategy, economy and city building simulation")
2411 (description
2412 "Unknown Horizons is a 2D realtime strategy simulation with an emphasis
2413 on economy and city building. Expand your small settlement to a strong and
2414 wealthy colony, collect taxes and supply your inhabitants with valuable
2415 goods. Increase your power with a well balanced economy and with strategic
2416 trade and diplomacy.")
2417 (license (list
2418 license:gpl2+ ; Covers code
2419 license:expat ; tests/dummy.py, ext/polib.py
2420 license:cc-by-sa3.0 ; Covers some media content
2421 license:cc-by3.0 ; Covers some media content
2422 license:bsd-3)))) ; horizons/ext/speaklater.py
2423
2424 (define-public gnujump
2425 (package
2426 (name "gnujump")
2427 (version "1.0.8")
2428 (source (origin
2429 (method url-fetch)
2430 (uri (string-append "mirror://gnu/gnujump/gnujump-"
2431 version ".tar.gz"))
2432 (sha256
2433 (base32
2434 "05syy9mzbyqcfnm0hrswlmhwlwx54f0l6zhcaq8c1c0f8dgzxhqk"))))
2435 (build-system gnu-build-system)
2436 (arguments
2437 '(#:phases
2438 (modify-phases %standard-phases
2439 (add-before
2440 'configure 'link-libm
2441 (lambda _ (setenv "LIBS" "-lm")))
2442 (add-after 'install 'create-desktop-entry
2443 (lambda* (#:key outputs #:allow-other-keys)
2444 (let* ((out (assoc-ref outputs "out"))
2445 (apps (string-append out "/share/applications")))
2446 (mkdir-p apps)
2447 (with-output-to-file
2448 (string-append apps "/gnujump.desktop")
2449 (lambda _
2450 (format #t
2451 "[Desktop Entry]~@
2452 Name=GNUjump~@
2453 Comment=Jump up the tower to survive~@
2454 Exec=~a/bin/gnujump~@
2455 Terminal=false~@
2456 Type=Application~@
2457 Categories=Game;ArcadeGame~%"
2458 out)))))))))
2459 (inputs
2460 `(("glu" ,glu)
2461 ("mesa" ,mesa)
2462 ("sdl" ,sdl)
2463 ("sdl-image" ,sdl-image)
2464 ("sdl-mixer" ,sdl-mixer)))
2465 (home-page "http://gnujump.es.gnu.org/")
2466 (synopsis
2467 "Game of jumping to the next floor, trying not to fall")
2468 (description
2469 "GNUjump is a simple, yet addictive game in which you must jump from
2470 platform to platform to avoid falling, while the platforms drop at faster rates
2471 the higher you go. The game features multiplayer, unlimited FPS, smooth floor
2472 falling, themeable graphics and sounds, and replays.")
2473 (license license:gpl3+)))
2474
2475 (define-public wesnoth
2476 (package
2477 (name "wesnoth")
2478 (version "1.14.9")
2479 (source (origin
2480 (method url-fetch)
2481 (uri (string-append "mirror://sourceforge/wesnoth/wesnoth-"
2482 (version-major+minor version)
2483 "/wesnoth-" version "/"
2484 "wesnoth-" version ".tar.bz2"))
2485 (sha256
2486 (base32
2487 "1mhdrlflxxyknf54lwdbvs7fazlc1scf7z6vxxa3j746fks533ga"))))
2488 (build-system cmake-build-system)
2489 (arguments
2490 `(#:tests? #f ;no check target
2491 #:phases (modify-phases %standard-phases
2492 (add-before 'configure 'treat-boost-as-system-header
2493 (lambda* (#:key inputs #:allow-other-keys)
2494 (let ((boost (assoc-ref inputs "boost")))
2495 ;; Ensure Boost is treated as "system headers" to
2496 ;; pacify compiler warnings induced by Boost headers.
2497 (for-each (lambda (variable)
2498 (setenv variable
2499 (string-append boost "/include:"
2500 (or (getenv variable)
2501 ""))))
2502 '("C_INCLUDE_PATH" "CPLUS_INCLUDE_PATH"))
2503 #t))))))
2504 (native-inputs
2505 `(("gettext" ,gettext-minimal)
2506 ("pkg-config" ,pkg-config)))
2507 (inputs
2508 `(("boost" ,boost)
2509 ("dbus" ,dbus)
2510 ("fribidi" ,fribidi)
2511 ("libvorbis" ,libvorbis)
2512 ("openssl" ,openssl)
2513 ("pango" ,pango)
2514 ("sdl-union" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer sdl2-ttf)))))
2515 (home-page "https://www.wesnoth.org/")
2516 (synopsis "Turn-based strategy game")
2517 (description
2518 "The Battle for Wesnoth is a fantasy, turn based tactical strategy game,
2519 with several single player campaigns, and multiplayer games (both networked and
2520 local).
2521
2522 Battle for control on a range of maps, using variety of units which have
2523 advantages and disadvantages against different types of attacks. Units gain
2524 experience and advance levels, and are carried over from one scenario to the
2525 next campaign.")
2526 (license license:gpl2+)))
2527
2528 (define-public the-battle-for-wesnoth
2529 (deprecated-package "the-battle-for-wesnoth" wesnoth))
2530
2531 (define-public wesnoth-server
2532 (package
2533 (inherit wesnoth)
2534 (name "wesnoth-server")
2535 (inputs
2536 `(("boost" ,boost)
2537 ("icu4c" ,icu4c)
2538 ("openssl" ,openssl)
2539 ("sdl2" ,sdl2)))
2540 (arguments
2541 `(#:configure-flags '("-DENABLE_GAME=OFF")
2542 ,@(package-arguments wesnoth)))
2543 (synopsis "Dedicated @emph{Battle for Wesnoth} server")
2544 (description "This package contains a dedicated server for @emph{The
2545 Battle for Wesnoth}.")))
2546
2547 (define-public the-battle-for-wesnoth-server
2548 (deprecated-package "the-battle-for-wesnoth-server" wesnoth-server))
2549
2550 (define-public gamine
2551 (package
2552 (name "gamine")
2553 (version "1.6")
2554 (source (origin
2555 (method url-fetch)
2556 (uri (string-append "mirror://sourceforge/gamine-game/"
2557 "gamine-" version ".tar.gz"))
2558 (sha256
2559 (base32
2560 "1sc6f4445ciigd6yw0ri92746k4hk6ps0bvj9fm1gbp3c3fslk5n"))))
2561 (build-system gnu-build-system)
2562 (native-inputs
2563 `(("pkg-config" ,pkg-config)
2564 ("intltool" ,intltool)))
2565 (inputs
2566 `(("gstreamer" ,gstreamer)
2567 ("gst-plugins-base" ,gst-plugins-base) ; playbin plugin
2568 ("gst-plugins-good" ,gst-plugins-good) ; for wav playback
2569 ("gtk+" ,gtk+)))
2570 (arguments
2571 `(#:tests? #f
2572 #:make-flags
2573 (let ((out (assoc-ref %outputs "out")))
2574 (list (string-append "PREFIX=" out)
2575 (string-append "SYSCONFDIR=" out "/etc")))
2576 #:phases
2577 (modify-phases %standard-phases
2578 (delete 'configure)
2579 (add-after
2580 'install 'wrap-gamine
2581 (lambda* (#:key outputs #:allow-other-keys)
2582 (let ((out (assoc-ref outputs "out"))
2583 (gst-plugin-path (getenv "GST_PLUGIN_SYSTEM_PATH")))
2584 (wrap-program (string-append out "/bin/gamine")
2585 `("GST_PLUGIN_SYSTEM_PATH" ":" prefix (,gst-plugin-path))))
2586 #t)))))
2587 (home-page "http://gamine-game.sourceforge.net/")
2588 (synopsis "Mouse and keyboard discovery for children")
2589 (description
2590 "Gamine is a game designed for young children who are learning to use the
2591 mouse and keyboard. The child uses the mouse to draw colored dots and lines
2592 on the screen and keyboard to display letters.")
2593 ;; Most files under gpl2+ or gpl3+, but eat.wav under gpl3
2594 (license license:gpl3)))
2595
2596 (define-public manaplus
2597 (package
2598 (name "manaplus")
2599 (version "1.9.3.23")
2600 (source (origin
2601 (method url-fetch)
2602 (uri (string-append
2603 "https://repo.manaplus.org/manaplus/download/"
2604 version "/manaplus-" version ".tar.xz"))
2605 (sha256
2606 (base32
2607 "1ky182p4svwdqm6cf7jbns85hidkhkhq4s17cs2p381f0klapfjz"))))
2608 (build-system gnu-build-system)
2609 (arguments
2610 '(#:configure-flags
2611 (list (string-append "CPPFLAGS=-I"
2612 (assoc-ref %build-inputs "sdl-union")
2613 "/include/SDL"))))
2614 (native-inputs
2615 `(("pkg-config" ,pkg-config)))
2616 (inputs
2617 `(("glu" ,glu)
2618 ("curl" ,curl)
2619 ("libxml2" ,libxml2)
2620 ("mesa" ,mesa)
2621 ("sdl-union" ,(sdl-union))))
2622 (home-page "https://manaplus.org")
2623 (synopsis "Client for 'The Mana World' and similar games")
2624 (description
2625 "ManaPlus is a 2D MMORPG client for game servers. It is the only
2626 fully supported client for @uref{http://www.themanaworld.org, The mana
2627 world}, @uref{http://evolonline.org, Evol Online} and
2628 @uref{http://landoffire.org, Land of fire}.")
2629 ;; "src/debug/*" and "src/sdl2gfx/*" are under Zlib.
2630 ;; "data/themes/{golden-delicious,jewelry}/*" are under CC-BY-SA.
2631 ;; The rest is under GPL2+.
2632 (license (list license:gpl2+ license:zlib license:cc-by-sa4.0))))
2633
2634 (define openttd-engine
2635 (package
2636 (name "openttd-engine")
2637 (version "1.9.3")
2638 (source
2639 (origin (method url-fetch)
2640 (uri (string-append "https://proxy.binaries.openttd.org/openttd-releases/"
2641 version "/openttd-" version "-source.tar.xz"))
2642 (sha256
2643 (base32
2644 "0ijq72kgx997ggw40i5f4a3nf7y2g72z37l47i18yjvgbdzy320r"))
2645 (modules '((guix build utils)))
2646 (snippet
2647 ;; The DOS port contains proprietary software.
2648 '(begin
2649 (delete-file-recursively "os/dos")
2650 #t))))
2651 (build-system gnu-build-system)
2652 (arguments
2653 `(#:tests? #f ; no "check" target
2654 #:phases
2655 (modify-phases %standard-phases
2656 ;; The build process fails if the configure script is passed the
2657 ;; option "--enable-fast-install".
2658 (replace 'configure
2659 (lambda* (#:key inputs outputs (configure-flags '())
2660 #:allow-other-keys)
2661 (let ((out (assoc-ref outputs "out"))
2662 (lzo (assoc-ref inputs "lzo")))
2663 (apply invoke "./configure"
2664 (string-append "--prefix=" out)
2665 ;; Provide the "lzo" path.
2666 (string-append "--with-liblzo2="
2667 lzo "/lib/liblzo2.a")
2668 ;; Put the binary in 'bin' instead of 'games'.
2669 "--binary-dir=bin"
2670 configure-flags)))))))
2671 (native-inputs `(("pkg-config" ,pkg-config)))
2672 (inputs
2673 `(("allegro" ,allegro)
2674 ("fontconfig" ,fontconfig)
2675 ("freetype" ,freetype)
2676 ("icu4c" ,icu4c)
2677 ("libpng" ,libpng)
2678 ("lzo" ,lzo)
2679 ("sdl" ,sdl)
2680 ("xz" ,xz)
2681 ("zlib" ,zlib)))
2682 (synopsis "Transportation economics simulator game")
2683 (description "OpenTTD is a game in which you transport goods and
2684 passengers by land, water and air. It is a re-implementation of Transport
2685 Tycoon Deluxe with many enhancements including multiplayer mode,
2686 internationalization support, conditional orders and the ability to clone,
2687 autoreplace and autoupdate vehicles. This package only includes the game
2688 engine. When you start it you will be prompted to download a graphics set.")
2689 (home-page "https://www.openttd.org/")
2690 ;; This package is GPLv2, except for a few files located in
2691 ;; "src/3rdparty/" which are under the 3-clause BSD, LGPLv2.1+ and Zlib
2692 ;; licenses. In addition, this software contains an in-game downloader
2693 ;; from which the user may find non-functional data licensed under
2694 ;; different terms.
2695 (license (list license:bsd-3 license:gpl2 license:lgpl2.1+ license:zlib))))
2696
2697 (define openttd-opengfx
2698 (package
2699 (name "openttd-opengfx")
2700 (version "0.5.5")
2701 (source
2702 (origin
2703 (method url-fetch)
2704 (uri (string-append "http://binaries.openttd.org/extra/opengfx/"
2705 version "/opengfx-" version "-source.tar.xz"))
2706 (sha256
2707 (base32
2708 "009fa1bdin1bk0ynzhzc30hzkmmwzmwkk6j591ax3f6w75l28n49"))))
2709 (build-system gnu-build-system)
2710 (arguments
2711 '(#:make-flags (list "CC=gcc"
2712 (string-append "INSTALL_DIR="
2713 (assoc-ref %outputs "out")
2714 "/share/games/openttd/baseset/opengfx"))
2715 #:phases
2716 (modify-phases %standard-phases
2717 (replace 'configure
2718 (lambda _
2719 ;; Make sure HOME is writable for GIMP.
2720 (setenv "HOME" (getcwd))
2721
2722 ;; Redirect stdout, not stderr, to /dev/null. This prevents
2723 ;; dos2unix from receiving its version information as a flag.
2724 (substitute* "Makefile"
2725 (("\\$\\(UNIX2DOS\\) -q --version 2>/dev/null")
2726 "$(UNIX2DOS) -q --version 1>/dev/null")))))
2727 ;; The check phase for this package only checks the md5sums of the built
2728 ;; GRF files against the md5sums of the release versions. Because we use
2729 ;; different software versions than upstream does, some of the md5sums
2730 ;; are different. However, the package is still reproducible, it's safe
2731 ;; to disable this test.
2732 #:tests? #f
2733 #:parallel-build? #f))
2734 (native-inputs `(("dos2unix" ,dos2unix)
2735 ("gimp" ,gimp)
2736 ("grfcodec" ,grfcodec)
2737 ("nml" ,nml)
2738 ("python" ,python-2)))
2739 (home-page "http://dev.openttdcoop.org/projects/opengfx")
2740 (synopsis "Base graphics set for OpenTTD")
2741 (description
2742 "The OpenGFX projects is an implementation of the OpenTTD base grahics
2743 set that aims to ensure the best possible out-of-the-box experience.
2744
2745 OpenGFX provides you with...
2746 @enumerate
2747 @item All graphics you need to enjoy OpenTTD.
2748 @item Uniquely drawn rail vehicles for every climate.
2749 @item Completely snow-aware rivers.
2750 @item Different river and sea water.
2751 @item Snow-aware buoys.
2752 @end enumerate")
2753 (license license:gpl2)))
2754
2755 (define openttd-opensfx
2756 (package
2757 (name "openttd-opensfx")
2758 (version "0.2.3")
2759 (source
2760 (origin
2761 (method url-fetch)
2762 (uri (string-append
2763 "https://binaries.openttd.org/extra/opensfx/"
2764 version "/opensfx-" version "-source.tar.gz"))
2765 (sha256
2766 (base32
2767 "03jxgp02ks31hmsdh4xh0xcpkb70ds8jakc9pfc1y9vdrdavh4p5"))))
2768 (build-system gnu-build-system)
2769 (native-inputs
2770 `(("catcodec" ,catcodec)
2771 ("python" ,python-2)))
2772 (arguments
2773 `(#:make-flags
2774 (list (string-append "INSTALL_DIR=" %output
2775 "/share/games/openttd/baseset/opensfx"))
2776 #:phases
2777 (modify-phases %standard-phases
2778 (add-after 'unpack 'make-reproducible
2779 (lambda _
2780 ;; Remove the time dependency of the installed tarball by setting
2781 ;; the modification times if its members to 0.
2782 (substitute* "scripts/Makefile.def"
2783 (("-cf") " --mtime=@0 -cf"))
2784 #t))
2785 (delete 'configure))))
2786 (home-page "http://dev.openttdcoop.org/projects/opensfx")
2787 (synopsis "Base sounds for OpenTTD")
2788 (description "OpenSFX is a set of free base sounds for OpenTTD which make
2789 it possible to play OpenTTD without requiring the proprietary sound files from
2790 the original Transport Tycoon Deluxe.")
2791 (license license:cc-sampling-plus-1.0)))
2792
2793 (define openttd-openmsx
2794 (package
2795 (name "openttd-openmsx")
2796 (version "0.3.1")
2797 (source
2798 (origin
2799 (method url-fetch)
2800 (uri (string-append
2801 "https://binaries.openttd.org/extra/openmsx/"
2802 version "/openmsx-" version "-source.tar.gz"))
2803 (sha256
2804 (base32
2805 "0nskq97a6fsv1v6d62zf3yb8whzhqnlh3lap3va3nzvj7csjgf7c"))))
2806 (build-system gnu-build-system)
2807 (native-inputs
2808 `(("python" ,python-2)))
2809 (arguments
2810 `(#:make-flags
2811 (list (string-append "INSTALL_DIR=" %output
2812 "/share/games/openttd/baseset"))
2813 #:phases
2814 (modify-phases %standard-phases
2815 (delete 'configure)
2816 (add-after 'install 'post-install
2817 ;; Rename openmsx-version to openmsx
2818 (lambda* (#:key outputs #:allow-other-keys)
2819 (let ((install-directory (string-append (assoc-ref outputs "out")
2820 "/share/games/openttd/baseset")))
2821 (rename-file (string-append install-directory "/openmsx-" ,version)
2822 (string-append install-directory "/openmsx"))
2823 #t))))))
2824 (home-page "http://dev.openttdcoop.org/projects/openmsx")
2825 (synopsis "Music set for OpenTTD")
2826 (description "OpenMSX is a music set for OpenTTD which makes it possible
2827 to play OpenTTD without requiring the proprietary music from the original
2828 Transport Tycoon Deluxe.")
2829 (license license:gpl2)))
2830
2831 (define-public openttd
2832 (package
2833 (inherit openttd-engine)
2834 (name "openttd")
2835 (arguments
2836 `(#:configure-flags
2837 (list (string-append "--with-midi=" (assoc-ref %build-inputs "timidity++")
2838 "/bin/timidity"))
2839 ,@(substitute-keyword-arguments (package-arguments openttd-engine)
2840 ((#:phases phases)
2841 `(modify-phases ,phases
2842 (add-after 'install 'install-data
2843 (lambda* (#:key inputs outputs #:allow-other-keys)
2844 (for-each
2845 (lambda (input)
2846 (copy-recursively (assoc-ref inputs input)
2847 (assoc-ref outputs "out")))
2848 (list "opengfx" "openmsx" "opensfx"))
2849 #t)))))))
2850 (inputs
2851 `(("timidity++" ,timidity++)
2852 ,@(package-inputs openttd-engine)))
2853 (native-inputs
2854 `(("opengfx" ,openttd-opengfx)
2855 ("openmsx" ,openttd-openmsx)
2856 ("opensfx" ,openttd-opensfx)
2857 ,@(package-native-inputs openttd-engine)))))
2858
2859 (define openrct2-title-sequences
2860 (package
2861 (name "openrct2-title-sequences")
2862 (version "0.1.2")
2863 (source
2864 (origin
2865 (method url-fetch)
2866 (uri (string-append "https://github.com/OpenRCT2/title-sequences/releases/download/v"
2867 version "/title-sequence-v" version ".zip"))
2868 (file-name (string-append name "-" version ".zip"))
2869 (sha256
2870 (base32
2871 "0qbyxrsw8hlgaq0r5d7lx7an3idy4qbfv7yiw9byhldk763n9cfw"))))
2872 (build-system trivial-build-system)
2873 (native-inputs
2874 `(("bash" ,bash)
2875 ("coreutils" ,coreutils)
2876 ("unzip" ,unzip)))
2877 (arguments
2878 `(#:modules ((guix build utils))
2879 #:builder
2880 (begin
2881 (use-modules (guix build utils))
2882 (let* ((out (assoc-ref %outputs "out"))
2883 (openrct2-title-sequences (string-append out
2884 "/share/openrct2/title-sequences"))
2885 (source (assoc-ref %build-inputs "source"))
2886 (unzip (string-append (assoc-ref %build-inputs "unzip") "/bin/unzip")))
2887 (copy-file source (string-append ,name "-" ,version ".zip"))
2888 (invoke unzip (string-append ,name "-" ,version ".zip"))
2889 (delete-file (string-append ,name "-" ,version ".zip"))
2890 (mkdir-p openrct2-title-sequences)
2891 (copy-recursively "."
2892 openrct2-title-sequences)
2893 #t))))
2894 (home-page "https://github.com/OpenRCT2/OpenRCT2")
2895 (synopsis "Title sequences for OpenRCT2")
2896 (description
2897 "openrct2-title-sequences is a set of title sequences for OpenRCT2.")
2898 (license license:gpl3+)))
2899
2900 (define openrct2-objects
2901 (package
2902 (name "openrct2-objects")
2903 (version "1.0.9")
2904 (source
2905 (origin
2906 (method url-fetch)
2907 (uri (string-append "https://github.com/OpenRCT2/objects/releases/download/v"
2908 version "/objects.zip"))
2909 (file-name (string-append name "-" version ".zip"))
2910 (sha256
2911 (base32 "02apb8h553m7d6jvysgb1zahvxc1yzyygfca2iclb21b3fhpsas4"))))
2912 (build-system trivial-build-system)
2913 (native-inputs
2914 `(("bash" ,bash)
2915 ("coreutils" ,coreutils)
2916 ("unzip" ,unzip)))
2917 (arguments
2918 `(#:modules ((guix build utils))
2919 #:builder
2920 (begin
2921 (use-modules (guix build utils))
2922 (let* ((out (assoc-ref %outputs "out"))
2923 (openrct2-objects (string-append out
2924 "/share/openrct2/objects"))
2925 (source (assoc-ref %build-inputs "source"))
2926 (unzip (string-append (assoc-ref %build-inputs "unzip") "/bin/unzip")))
2927 (copy-file source (string-append ,name "-" ,version ".zip"))
2928 (invoke unzip (string-append ,name "-" ,version ".zip"))
2929 (delete-file (string-append ,name "-" ,version ".zip"))
2930 (mkdir-p openrct2-objects)
2931 (copy-recursively "."
2932 openrct2-objects)
2933 #t))))
2934 (home-page "https://github.com/OpenRCT2/OpenRCT2")
2935 (synopsis "Objects for OpenRCT2")
2936 (description
2937 "openrct2-objects is a set of objects for OpenRCT2.")
2938 (license license:gpl3+)))
2939
2940 (define-public openrct2
2941 (package
2942 (name "openrct2")
2943 (version "0.2.4")
2944 (source
2945 (origin
2946 (method git-fetch)
2947 (uri (git-reference
2948 (url "https://github.com/OpenRCT2/OpenRCT2.git")
2949 (commit (string-append "v" version))))
2950 (file-name (git-file-name name version))
2951 (sha256
2952 (base32 "1rlw3w20llg36sj3bk50g661qw766ng8ma3p42sdkj8br9dw800h"))))
2953 (build-system cmake-build-system)
2954 (arguments
2955 `(#:configure-flags (list "-DDOWNLOAD_OBJECTS=OFF"
2956 "-DDOWNLOAD_TITLE_SEQUENCES=OFF")
2957 #:tests? #f ; tests require network access
2958 #:phases
2959 (modify-phases %standard-phases
2960 (add-after 'unpack 'fix-usr-share-paths&add-data
2961 (lambda* (#:key inputs outputs #:allow-other-keys)
2962 (let ((titles (assoc-ref inputs "openrct2-title-sequences"))
2963 (objects (assoc-ref inputs "openrct2-objects")))
2964 ;; Fix some references to /usr/share.
2965 (substitute* "src/openrct2/platform/Platform.Linux.cpp"
2966 (("/usr/share")
2967 (string-append (assoc-ref %outputs "out") "/share")))
2968 (copy-recursively
2969 (string-append titles "/share/openrct2/title-sequences")
2970 "data/title")
2971 (copy-recursively
2972 (string-append objects "/share/openrct2/objects")
2973 "data/object"))))
2974 (add-before 'configure 'get-rid-of-errors
2975 (lambda _
2976 ;; Don't treat warnings as errors.
2977 (substitute* "CMakeLists.txt"
2978 (("-Werror") ""))
2979 #t)))))
2980 (inputs `(("curl" ,curl)
2981 ("fontconfig" ,fontconfig)
2982 ("freetype" ,freetype)
2983 ("icu4c" ,icu4c)
2984 ("jansson" ,jansson)
2985 ("libpng" ,libpng)
2986 ("libzip" ,libzip)
2987 ("mesa" ,mesa)
2988 ("openrct2-objects" ,openrct2-objects)
2989 ("openrct2-title-sequences" ,openrct2-title-sequences)
2990 ("openssl" ,openssl)
2991 ("sdl2" ,sdl2)
2992 ("speexdsp" ,speexdsp)
2993 ("zlib" ,zlib)))
2994 (native-inputs
2995 `(("pkg-config" ,pkg-config)))
2996 (home-page "https://github.com/OpenRCT2/OpenRCT2")
2997 (synopsis "Free software re-implementation of RollerCoaster Tycoon 2")
2998 (description "OpenRCT2 is a free software re-implementation of
2999 RollerCoaster Tycoon 2 (RCT2). The gameplay revolves around building and
3000 maintaining an amusement park containing attractions, shops and facilities.
3001
3002 Note that this package does @emph{not} provide the game assets (sounds,
3003 images, etc.)")
3004 ;; See <https://github.com/OpenRCT2/OpenRCT2/wiki/Required-RCT2-files>
3005 ;; regarding assets.
3006 (license license:gpl3+)))
3007
3008 (define-public pinball
3009 (package
3010 (name "pinball")
3011 (version "0.3.1")
3012 (source
3013 (origin (method url-fetch)
3014 (uri (string-append "mirror://sourceforge/pinball/pinball/"
3015 "pinball-" version "/"
3016 "pinball-" version ".tar.gz"))
3017 (sha256
3018 (base32
3019 "1f2whlrfidwfh8lvr8cspcyirc6840r5d1ajm7x99qmngygrhixs"))
3020 (patches (search-patches "pinball-const-fix.patch"
3021 "pinball-cstddef.patch"
3022 "pinball-missing-separators.patch"
3023 "pinball-src-deps.patch"
3024 "pinball-system-ltdl.patch"))))
3025 (build-system gnu-build-system)
3026 (inputs
3027 `(("glu" ,glu)
3028 ("mesa" ,mesa)
3029 ("sdl" ,sdl)
3030 ("sdl-image" ,sdl-image)
3031 ("sdl-mixer" ,sdl-mixer)))
3032 (arguments
3033 '(#:configure-flags
3034 (list (string-append "CPPFLAGS=-I"
3035 (assoc-ref %build-inputs "sdl-image")
3036 "/include/SDL -I"
3037 (assoc-ref %build-inputs "sdl-mixer")
3038 "/include/SDL"))))
3039 (home-page "http://pinball.sourceforge.net")
3040 (synopsis "Pinball simulator")
3041 (description "The Emilia Pinball Project is a pinball simulator. There
3042 are only two levels to play with, but they are very addictive.")
3043 (license license:gpl2)))
3044
3045 (define-public pioneers
3046 (package
3047 (name "pioneers")
3048 (version "15.5")
3049 (source (origin
3050 (method url-fetch)
3051 (uri (string-append "http://downloads.sourceforge.net/pio/"
3052 "pioneers-" version ".tar.gz"))
3053 (sha256
3054 (base32
3055 "037gdiiw690jw3wd1s9lxmkqx0caxyk0b4drpm7i9p28gig43q9y"))))
3056 (build-system gnu-build-system)
3057 (inputs `(("avahi" ,avahi)
3058 ("gtk+" ,gtk+)
3059 ("librsvg" ,librsvg)))
3060 (native-inputs `(("intltool" ,intltool)
3061 ("itstool" ,itstool)
3062 ("libxml2" ,libxml2)
3063 ("pkg-config" ,pkg-config)))
3064 (synopsis "Board game inspired by The Settlers of Catan")
3065 (description "Pioneers is an emulation of the board game The Settlers of
3066 Catan. It can be played on a local network, on the internet, and with AI
3067 players.")
3068 (home-page "http://pio.sourceforge.net/")
3069 (license license:gpl2+)))
3070
3071 (define-public einstein
3072 (package
3073 (name "einstein")
3074 (version "2.0")
3075 (source (origin
3076 (method url-fetch)
3077 (uri (string-append "mirror://debian/pool/main/e/"
3078 "einstein/einstein_2.0.dfsg.2.orig.tar.gz"))
3079 (sha256
3080 (base32
3081 "1hxrlv6n8py48j487i6wbb4n4vd55w0na69r7ccmmr9vmrsw5mlk"))
3082 (patches (search-patches "einstein-build.patch"))))
3083 (build-system gnu-build-system)
3084 (inputs
3085 `(("freetype" ,freetype)
3086 ("sdl" ,(sdl-union (list sdl sdl-mixer sdl-ttf)))
3087 ("zlib" ,zlib)))
3088 (native-inputs
3089 `(("font-dejavu" ,font-dejavu)))
3090 (arguments
3091 `(#:tests? #f ; no check target
3092 #:phases
3093 (modify-phases %standard-phases
3094 (replace 'configure
3095 (lambda* (#:key outputs inputs #:allow-other-keys)
3096 (let ((out (assoc-ref outputs "out"))
3097 (dejavu (string-append (assoc-ref inputs "font-dejavu")
3098 "/share/fonts/truetype/DejaVuSans.ttf")))
3099 (substitute* "Makefile"
3100 (("PREFIX=/usr/local") (string-append "PREFIX=" out)))
3101 ;; The patch above registers a free font for use by the binary,
3102 ;; but the font is copied during the compile phase into a
3103 ;; resources file, so we need to make the ttf file available.
3104 (symlink dejavu "res/DejaVuSans.ttf")
3105 #t))))))
3106 (synopsis "Logic puzzle game")
3107 (description "The goal of this logic game is to open all cards in a 6x6
3108 grid, using a number of hints as to their relative position. The game idea
3109 is attributed to Albert Einstein.")
3110 ;; The original home page has disappeared.
3111 (home-page (string-append "http://web.archive.org/web/20120521062745/"
3112 "http://games.flowix.com/en/index.html"))
3113 ;; License according to
3114 ;; http://web.archive.org/web/20150222180355/http://www.babichev.info/en/projects/index.html
3115 ;; The source code is a DFSG-sanitized tarball and does not contain any
3116 ;; license information.
3117 (license license:gpl3+)))
3118
3119 (define-public powwow
3120 (package
3121 (name "powwow")
3122 (version "1.2.19")
3123 (source (origin
3124 (method url-fetch)
3125 (uri (string-append
3126 "https://www.hoopajoo.net/static/projects/powwow-"
3127 version ".tar.gz"))
3128 (sha256
3129 (base32
3130 "10rjl63hmf62qslyhzqrbw3i2zf09dgxv65avhj0iiz0m4pbc9wy"))))
3131 (inputs
3132 `(("ncurses" ,ncurses)))
3133 (build-system gnu-build-system)
3134 (home-page "https://www.hoopajoo.net/projects/powwow.html")
3135 (synopsis "MUD and telnet client")
3136 (description
3137 "POWWOW is a client software which can be used for telnet as well as for
3138 @dfn{Multi-User Dungeon} (MUD). Additionally it can serve as a nice client for
3139 the chat server psyced with the specific config located at
3140 http://lavachat.symlynx.com/unix/")
3141 (license license:gpl2+)))
3142
3143 (define-public red-eclipse
3144 (let ((release "1.6.0")
3145 (revision 0)
3146 (data-sources
3147 '(("acerspyro" "12b0bngl7hlxw4iwdbn99jp081yl6z1ic0s788nm349drbr2pck8")
3148 ("actors" "0x7qqx67679q6ark9zz02skwhzgabid69kwi6zmhfpfgicn4927r")
3149 ("appleflap" "08xslwqfqz3j4m03pv5ry2gdzj5k2ns51z8n6sln3sa94i9x8qkm")
3150 ("blendbrush" "18zf5i2ax4p14x4c9nhk9fq6l1xgbxw62gm72vx59vbfdpjrw3cg")
3151 ("caustics" "172fxwx7kbz5nmbjq98kr52ips505wb99fibgnpg8cj02syrya8k")
3152 ("crosshairs" "14w8ysqzdsx9bzpfbl700jzngbh14rdghhjdf6zd6jlkvrl6754r")
3153 ("dziq" "056imqszvp90j7cgz52ly0f31px64gsrmvm9k2c78ldbx87jnhc3")
3154 ("elyvisions" "1bsgr0gr7njydj8fqclh0a27lrsyic3xfd5a4vwggw7g54azpgk2")
3155 ("fonts" "00ibisza1qci0ghf2rynyf28l6r3nqhfzjf80k6gg76q4v7p1myx")
3156 ("freezurbern" "07l9ldk9b82f12c13wcg5xxdf15bw0yjxk3vvk8v3ygrl2mwksyr")
3157 ("john" "1jdmwkrdi5b9pivkm22rxhmkk1db9dx6l54wzcc23cvdz04ij93k")
3158 ("jojo" "0f7kjy43fbk9kw8fip6bbw4gn3pryh0fndlahjfkaysrx98krdj3")
3159 ("jwin" "0nc8dndnpqk2ad6316a8k6kgzsrkpwvk8s4gyh7aqfi4axfclril")
3160 ("luckystrike" "04jiipqahphmvz5cd74dygr62dlvv6l4iglb8hzh4pp8frhls8bq")
3161 ("maps" "0an46ipjvw4h0nxvb6qvnzp1cdkzlkiinqz4zh9lmxy1ds0gclim")
3162 ("mayhem" "15k10imm2wr6c6fq35n4r99k7kz7n9zdnjlw6dmdq6fba67i6sbc")
3163 ("mikeplus64" "0v4wiiivm3829j4phlavy22n4c6k6ib9ixxpdz7r6ysg5cdkaw33")
3164 ("misc" "13rfgwrlfhflz6inbkg3fypyf8im0m49sw112b17qrw2zgp8i1rz")
3165 ("nieb" "0z0h9jdn2gkkjil3vsvwidb1p2k09pi5n3wjxza12hhvqmcs7q8f")
3166 ("nobiax" "08bfp4q6gbfis18bp1h4d0hqssk79jc4fhyjxnv21dbam4v4mnkn")
3167 ("particles" "1vsx3fgg19xggxfhz3vlrh6nqhmw7kl9kmxrvb2j84blp00vd6z2")
3168 ("philipk" "14irscg80607i5k5l2ci0n9nwibvda2f3xsykgv96d0vldrp5n5a")
3169 ("projectiles" "09bnfsrywirwgjm6d7ff5nicx6w6b7w9568x9pb5q0ncaps3l85s")
3170 ("props" "1dlabbprlkif8af3daf9nbgcwgxiymvj0yiphqhlri8ylfy2vpz4")
3171 ("skyboxes" "14bi3md5y47cvb9ybipdvksz40gqsqw2r0lh3zzqb4acq367w18y")
3172 ("snipergoth" "0m8rvvy5n8n9pm0b5cqvzsxsw51mqk8m7s1h3qc849b38isliwq2")
3173 ("sounds" "0ivf3w5bphz5pzzx6kwcb67vbly1l19cgv3s0cyp8n87afiqj5rd")
3174 ("textures" "0qdmgx7zbcqnb9rrga2izr93p5inirczhddfxs504rsnv0v8vyxm")
3175 ("torley" "05ppyhghq859cbbxzj3dnl9fcx3ghy04ds1pylypwg2hsxzbjwcd")
3176 ("trak" "0g3vq86q91a3syli38lwc8ca4ychfwsmmqf85kqzfzyd627ybclm")
3177 ("ulukai" "0asa5fz400impklcg6dy2f7jiaqfc1sn1c36fpg8jd01gw66lw93")
3178 ("unnamed" "0rz5683j7sfwkcycfypbv4b0ihp0qwn9rzskfsabwc1s5g324917")
3179 ("vanities" "13f18783rc8cjf22p61zr8m5g1migzlx05fzl8xnbjdkqq4cdyix")
3180 ("vegetation" "1y5d97nfmvax7y4fr0y5v0c8zb1ajkqwx76kjd4qc9n4spdsi5sc")
3181 ("weapons" "103g1dhxv5ffz4ddg2xcbshbgv9606chsbas3pzk6h9ybqsyjrqh")
3182 ("wicked" "1884rk34a2dj83gz82rc4zh3ch0dyj5221hvsr0a5h60578i7yj6"))))
3183 (package
3184 (name "red-eclipse")
3185 (version (if (zero? revision)
3186 release
3187 (string-append release "-"
3188 (number->string revision))))
3189 (source
3190 (origin
3191 (method git-fetch)
3192 (uri (git-reference
3193 (url "https://github.com/red-eclipse/base.git")
3194 (commit (string-append "v" release))))
3195 (file-name (git-file-name name version))
3196 (sha256
3197 (base32 "0qy9kmq21wc4bdhwifasxc5dv1y5c53sn7dfmyc5y3zyz8wjyij4"))
3198 (patches
3199 (search-patches "red-eclipse-remove-gamma-name-hack.patch"))))
3200 (build-system gnu-build-system)
3201 (arguments
3202 `(#:tests? #f ; no check target
3203 #:make-flags (list "CC=gcc" "-Csrc"
3204 (string-append "INSTDIR="
3205 (assoc-ref %outputs "out") "/bin")
3206 (string-append "prefix="
3207 (assoc-ref %outputs "out")))
3208 #:phases
3209 (modify-phases %standard-phases
3210 (add-after 'unpack 'unpack-data
3211 (lambda* (#:key inputs #:allow-other-keys)
3212 (delete-file-recursively "data")
3213 (mkdir "data")
3214 (with-directory-excursion "data"
3215 (for-each (lambda (name)
3216 (copy-recursively (assoc-ref inputs name) name))
3217 (list ,@(map car data-sources))))
3218 #t))
3219 (add-after 'unpack-data 'add-store-data-package-path-as-default
3220 (lambda* (#:key outputs #:allow-other-keys)
3221 (substitute* "src/engine/server.cpp"
3222 (("(else[[:space:]]*)((addpackagedir\\()\"data\"(\\);))"
3223 _
3224 else_part
3225 addpackagedir_original
3226 addpackagedir_open
3227 addpackagedir_close)
3228 (string-append else_part
3229 "{ "
3230 addpackagedir_open
3231 "\""
3232 (assoc-ref outputs "out")
3233 "/share/redeclipse/data\""
3234 addpackagedir_close
3235 " "
3236 addpackagedir_original
3237 " }")))
3238 #t))
3239 (delete 'configure) ; no configure script
3240 (add-after 'set-paths 'set-sdl-paths
3241 (lambda* (#:key inputs #:allow-other-keys)
3242 (setenv "CPATH"
3243 (string-append (assoc-ref inputs "sdl-union")
3244 "/include/SDL2:"
3245 (or (getenv "CPATH") "")))
3246 #t))
3247 (add-after 'install 'copy-data
3248 (lambda* (#:key outputs #:allow-other-keys)
3249 (let ((out (assoc-ref outputs "out")))
3250 (copy-recursively "config"
3251 (string-append out "/config"))
3252 (copy-file "doc/examples/servinit.cfg"
3253 (string-append out "/config/servinit.cfg"))
3254 (copy-recursively "data"
3255 (string-append out "/share/redeclipse/data"))
3256 (mkdir-p (string-append out "/lib/redeclipse"))
3257 (symlink (string-append out "/share/redeclipse/data")
3258 (string-append out "/lib/redeclipse/data")))
3259 #t))
3260 (add-after 'copy-data 'wrap-program
3261 (lambda* (#:key inputs outputs #:allow-other-keys)
3262 (let* ((out (assoc-ref outputs "out"))
3263 (bin (string-append out "/bin")))
3264 (with-directory-excursion bin
3265 (rename-file "redeclipse_linux"
3266 ".redeclipse_linux-real")
3267 (rename-file "redeclipse_server_linux"
3268 ".redeclipse_server_linux-real")
3269 (call-with-output-file "redeclipse_linux"
3270 (lambda (port)
3271 (format port "#!~a/bin/sh
3272 # Run the thing from its home, otherwise it just bails out.
3273 cd \"~a\"
3274 exec -a \"$0\" ~a/.redeclipse_linux-real~%"
3275 (assoc-ref inputs "bash") ;implicit input
3276 (string-append out)
3277 (string-append bin))))
3278 (call-with-output-file "redeclipse_server_linux"
3279 (lambda (port)
3280 (format port "#!~a/bin/sh
3281 # Run the thing from its home, otherwise it just bails out.
3282 cd \"~a\"
3283 exec -a \"$0\" ~a/.redeclipse_server_linux-real~%"
3284 (assoc-ref inputs "bash") ;implicit input
3285 (string-append out)
3286 (string-append bin))))
3287 (chmod "redeclipse_linux" #o555)
3288 (chmod "redeclipse_server_linux" #o555)))
3289 #t)))))
3290 (native-inputs
3291 `(("pkg-config" ,pkg-config)))
3292 (inputs
3293 `(("curl" ,curl)
3294 ("glu" ,glu)
3295 ("sdl-union" ,(sdl-union (list sdl2
3296 sdl2-image
3297 sdl2-mixer)))
3298 ;; Create origin records for the many separate data packages.
3299 ,@(map (match-lambda
3300 ((name hash)
3301 (list name
3302 (origin
3303 (method git-fetch)
3304 (uri
3305 (git-reference
3306 (url (string-append "https://github.com/"
3307 "red-eclipse/" name ".git"))
3308 (commit (string-append "v" release))))
3309 (sha256 (base32 hash))
3310 (file-name (git-file-name name version))))))
3311 data-sources)))
3312 (home-page "http://redeclipse.net/")
3313 (synopsis "Arena shooter derived from the Cube 2 engine")
3314 (description
3315 "Red Eclipse is an arena shooter, created from the Cube2 engine.
3316 Offering an innovative parkour system and distinct but all potent weapons,
3317 Red Eclipse provides fast paced and accessible gameplay.")
3318 ;; The engine is under Zlib; data files are covered by the other
3319 ;; licenses. More details at <http://redeclipse.net/wiki/License>.
3320 (license (list license:expat
3321 license:zlib
3322 license:cc-by-sa3.0
3323 license:cc-by3.0
3324 license:cc0)))))
3325
3326 (define-public grue-hunter
3327 (package
3328 (name "grue-hunter")
3329 (version "1.0")
3330 (source (origin
3331 (method url-fetch)
3332 (uri (string-append "https://jxself.org/grue-hunter.tar.gz"))
3333 (sha256
3334 (base32
3335 "1hjcpy5439qs3v2zykis7hsi0i17zjs62gks3zd8mnfw9ni4i2h3"))))
3336 (build-system trivial-build-system) ; no Makefile.PL
3337 (arguments `(#:modules ((guix build utils))
3338 #:builder
3339 (begin
3340 (use-modules (guix build utils))
3341 (use-modules (srfi srfi-1))
3342
3343 (let* ((tarball (assoc-ref %build-inputs "tarball"))
3344 (perl (string-append (assoc-ref %build-inputs
3345 "perl")
3346 "/bin"))
3347 (gzip (string-append (assoc-ref %build-inputs
3348 "gzip")
3349 "/bin/gzip"))
3350 (tar (string-append (assoc-ref %build-inputs
3351 "tar")
3352 "/bin/tar"))
3353 (out (assoc-ref %outputs "out"))
3354 (bin (string-append out "/bin"))
3355 (doc (string-append out
3356 "/share/doc/grue-hunter")))
3357 (copy-file tarball "grue-hunter.tar.gz")
3358 (invoke gzip "-d" "grue-hunter.tar.gz")
3359 (invoke tar "xvf" "grue-hunter.tar")
3360
3361 (mkdir-p bin)
3362 (copy-file "grue-hunter/gh.pl"
3363 (string-append bin "/grue-hunter"))
3364 (patch-shebang (string-append bin "/grue-hunter")
3365 (list perl))
3366
3367 (install-file "grue-hunter/AGPLv3.txt" doc)
3368
3369 #t))))
3370 (inputs `(("perl" ,perl)
3371 ("tar" ,tar)
3372 ("gzip" ,gzip)
3373 ("tarball" ,source)))
3374 (home-page "http://jxself.org/grue-hunter.shtml")
3375 (synopsis "Text adventure game")
3376 (description
3377 "Grue Hunter is a text adventure game written in Perl. You must make
3378 your way through an underground cave system in search of the Grue. Can you
3379 capture it and get out alive?")
3380 (license license:agpl3+)))
3381
3382 (define-public lierolibre
3383 (package
3384 (name "lierolibre")
3385 (version "0.5")
3386 (source (origin
3387 (method url-fetch)
3388 (uri (string-append "https://launchpad.net/lierolibre/trunk/"
3389 version "/+download/lierolibre-"
3390 version ".tar.xz"))
3391 (sha256
3392 (base32
3393 "1cf1gvsn4qq190lrf9k5bpjnqwlcfw7pajvdnh7z5r4jqw0rsbl9"))
3394 (patches
3395 (search-patches "lierolibre-check-unaligned-access.patch"
3396 "lierolibre-try-building-other-arch.patch"
3397 "lierolibre-remove-arch-warning.patch"
3398 "lierolibre-newer-libconfig.patch"
3399 "lierolibre-is-free-software.patch"))
3400 (modules '((guix build utils)))
3401 (snippet
3402 '(begin
3403 ;; Delete pre-compiled files.
3404 (delete-file "data/LIERO.CHR")
3405 (delete-file "data/LIERO.SND")
3406 #t))))
3407 (build-system gnu-build-system)
3408 (native-inputs
3409 `(("imagemagick" ,imagemagick)
3410 ("pkg-config" ,pkg-config)
3411 ("util-linux" ,util-linux)
3412 ("sox" ,sox)))
3413 (inputs
3414 `(("boost" ,boost)
3415 ("libconfig" ,libconfig)
3416 ("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer)))
3417 ("zlib" ,zlib)))
3418 (home-page "https://gitlab.com/lierolibre/lierolibre")
3419 (synopsis "Old-school earthworm action game")
3420 (description
3421 "lierolibre is an earthworm action game where you fight another player
3422 (or the computer) underground using a wide array of weapons.
3423
3424 Features:
3425 @itemize
3426 @item 2 worms, 40 weapons, great playability, two game modes: Kill'em All
3427 and Game of Tag, plus AI-players without true intelligence!
3428 @item Dat nostalgia.
3429 @item Extensions via a hidden F1 menu:
3430 @itemize
3431 @item Replays
3432 @item Game controller support
3433 @item Powerlevel palettes
3434 @end itemize
3435 @item Ability to write game variables to plain text files.
3436 @item Ability to load game variables from both EXE and plain text files.
3437 @item Scripts to extract and repack graphics, sounds and levels.
3438 @end itemize
3439
3440 To switch between different window sizes, use F6, F7 and F8, to switch to
3441 fullscreen, use F5 or Alt+Enter.")
3442 ;; Code mainly BSD-2, some parts under Boost 1.0. All assets are WTFPL2.
3443 (license (list license:bsd-2 license:boost1.0 license:wtfpl2))))
3444
3445 (define-public warzone2100
3446 (package
3447 (name "warzone2100")
3448 (version "3.2.3")
3449 (source
3450 (origin
3451 (method url-fetch)
3452 (uri (string-append "mirror://sourceforge/warzone2100/archives/"
3453 "unsupported/Warzone2100-"
3454 (version-major+minor version) "/" version
3455 "/warzone2100-" version ".tar.xz"))
3456 (sha256
3457 (base32 "10kmpr4cby95zwqsl1zwx95d9achli6khq7flv6xmrq30a39xazw"))))
3458 (build-system gnu-build-system)
3459 (arguments
3460 `(#:configure-flags '("--with-distributor=Guix")
3461 #:phases
3462 (modify-phases %standard-phases
3463 (add-after 'unpack 'link-tests-with-qt
3464 (lambda _
3465 (substitute* "tests/Makefile.in"
3466 (("(framework_linktest_LDADD|maptest_LDADD) = " prefix)
3467 (string-append prefix "$(QT5_LIBS) ")))
3468 #t))
3469 (add-after 'unpack 'fix-ivis-linktest
3470 (lambda _
3471 (substitute* "tests/ivis_linktest.cpp"
3472 (("iV_DrawTextRotated.*;")
3473 (string-append "iV_DrawTextRotated(\"Press ESC to exit.\", "
3474 "100, 100, 0.0f, font_regular);")))
3475 #t)))))
3476 (native-inputs `(("gettext" ,gettext-minimal)
3477 ("pkg-config" ,pkg-config)
3478 ("unzip" ,unzip)
3479 ("zip" ,zip)))
3480 (inputs `(("fontconfig" ,fontconfig)
3481 ("freetype" ,freetype)
3482 ("fribidi" ,fribidi)
3483 ("glew" ,glew)
3484 ("harfbuzz" ,harfbuzz)
3485 ("libtheora" ,libtheora)
3486 ("libvorbis" ,libvorbis)
3487 ("libxrandr" ,libxrandr)
3488 ("openal" ,openal)
3489 ("physfs" ,physfs)
3490 ("qtbase" ,qtbase)
3491 ("qtscript" ,qtscript)
3492 ("openssl" ,openssl)
3493 ("sdl2" ,sdl2)))
3494 (home-page "http://wz2100.net")
3495 (synopsis "3D Real-time strategy and real-time tactics game")
3496 (description
3497 "Warzone 2100 offers campaign, multi-player, and single-player skirmish
3498 modes. An extensive tech tree with over 400 different technologies, combined
3499 with the unit design system, allows for a wide variety of possible units and
3500 tactics.")
3501 ; Everything is GPLv2+ unless otherwise specified in COPYING.NONGPL
3502 (license (list license:bsd-3
3503 license:cc0
3504 license:cc-by-sa3.0
3505 license:expat
3506 license:gpl2+
3507 license:lgpl2.1+))))
3508
3509 (define-public starfighter
3510 (package
3511 (name "starfighter")
3512 (version "2.0.0.3")
3513 (source (origin
3514 (method url-fetch)
3515 (uri (string-append
3516 "https://github.com/pr-starfighter/starfighter/releases"
3517 "/download/v" version "/starfighter-"
3518 (version-major+minor version) "-src.tar.gz"))
3519 (sha256
3520 (base32
3521 "13vi5kh9ahws4f52421cbyw0jn7pmbnld358lqfmr6flql7ilj3b"))))
3522 (build-system gnu-build-system)
3523 (native-inputs
3524 `(("pkg-config" ,pkg-config)))
3525 (inputs
3526 `(("pango" ,pango)
3527 ("sdl2" ,sdl2)
3528 ("sdl2-image" ,sdl2-image)
3529 ("sdl2-mixer" ,sdl2-mixer)
3530 ("sdl2-ttf" ,sdl2-ttf)))
3531 (home-page "https://pr-starfighter.github.io/")
3532 (synopsis "2D scrolling shooter game")
3533 (description
3534 "In the year 2579, the intergalactic weapons corporation, WEAPCO, has
3535 dominated the galaxy. Guide Chris Bainfield and his friend Sid Wilson on
3536 their quest to liberate the galaxy from the clutches of WEAPCO. Along the
3537 way, you will encounter new foes, make new allies, and assist local rebels
3538 in strikes against the evil corporation.")
3539 ;; gfx and music are under CC-BY 3.0, CC-BY-SA 3.0, CC0 or Public Domain.
3540 (license (list license:gpl3+
3541 license:cc-by3.0
3542 license:cc-by-sa3.0
3543 license:cc0
3544 license:public-domain))))
3545
3546 (define-public project-starfighter
3547 (deprecated-package "project-starfighter" starfighter))
3548
3549 (define-public chromium-bsu
3550 (package
3551 (name "chromium-bsu")
3552 (version "0.9.16.1")
3553 (source (origin
3554 (method url-fetch)
3555 (uri (string-append "mirror://sourceforge/chromium-bsu"
3556 "/Chromium B.S.U. source code/"
3557 "chromium-bsu-" version ".tar.gz"))
3558 (sha256
3559 (base32
3560 "0jk2w5b6s6nkzri585bbz16cif2fhqcnl5l1mq3rd98r9nil3hd1"))))
3561 (build-system gnu-build-system)
3562 (native-inputs `(("pkg-config" ,pkg-config)))
3563 (inputs `(("gettext" ,gettext-minimal)
3564 ("glu" ,glu)
3565 ("quesoglc" ,quesoglc)
3566 ("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer)))))
3567 (home-page "http://chromium-bsu.sourceforge.net/")
3568 (synopsis "Fast-paced, arcade-style, top-scrolling space shooter")
3569 (description
3570 "In this game you are the captain of the cargo ship Chromium B.S.U. and
3571 are responsible for delivering supplies to the troops on the front line. Your
3572 ship has a small fleet of robotic fighters which you control from the relative
3573 safety of the Chromium vessel.")
3574 ;; Clarified Artistic License for everything but sound, which is covered
3575 ;; by the Expat License.
3576 (license (list license:clarified-artistic license:expat))))
3577
3578 (define-public tuxpaint
3579 (package
3580 (name "tuxpaint")
3581 (version "0.9.23") ;keep VER_DATE below in sync
3582 (source
3583 (origin
3584 (method url-fetch)
3585 (uri (string-append "mirror://sourceforge/tuxpaint/tuxpaint/"
3586 version "/tuxpaint-" version ".tar.gz"))
3587 (sha256
3588 (base32
3589 "09k9pxi88r3dx6dyjwf9h85d4qpva4i29qz63dc558hg9v21k69l"))
3590 (modules '((guix build utils)))
3591 (snippet
3592 '(begin
3593 ;; Remove win32 directory which contains binary dll's and the
3594 ;; deprecated visualc directory.
3595 (for-each delete-file-recursively '("win32" "visualc"))
3596 (substitute* "Makefile"
3597 ;; Do not rely on $(GPERF) being an absolute file name
3598 (("\\[ -x \\$\\(GPERF\\) \\]")
3599 "$(GPERF) --version >/dev/null 2>&1"))
3600 #t))
3601 (patches (search-patches "tuxpaint-stamps-path.patch"))))
3602 (build-system gnu-build-system)
3603 (native-inputs
3604 `(("gperf" ,gperf)
3605 ("pkg-config" ,pkg-config)))
3606 (inputs
3607 `(("cairo" ,cairo)
3608 ("fribidi" ,fribidi)
3609 ("gettext" ,gettext-minimal)
3610 ("libpng" ,libpng)
3611 ("librsvg" ,librsvg)
3612 ("libpaper" ,libpaper)
3613 ("netpbm" ,netpbm)
3614 ("sdl" ,(sdl-union (list sdl sdl-mixer sdl-ttf sdl-image)))))
3615 ;; TODO: Use system fonts rather than those in data/fonts
3616 (arguments
3617 `(#:make-flags `("VER_DATE=2018-09-02"
3618 "GPERF=gperf" "CC=gcc"
3619 "SDL_PCNAME=sdl SDL_image SDL_mixer SDL_ttf"
3620 ,(string-append "PREFIX=" %output)
3621 "KDE_PREFIX=$(PREFIX)/share/applications"
3622 "KDE_ICON_PREFIX=$(PREFIX)/share/icons/"
3623 "COMPLETIONDIR=$(PREFIX)/etc/bash_completion.d")
3624 #:parallel-build? #f ;fails on some systems
3625 #:tests? #f ;No tests
3626 #:phases (modify-phases %standard-phases
3627 (delete 'configure) ;no configure phase
3628 (add-before 'install 'no-sys-cache
3629 (lambda _ ;do not rebuild system conf cache
3630 (substitute* "Makefile"
3631 (("kbuildsycoca4") ""))
3632 #t))
3633 (add-after 'install 'fix-import
3634 (lambda* (#:key inputs outputs #:allow-other-keys)
3635 (let* ((out (assoc-ref outputs "out"))
3636 (net (assoc-ref inputs "netpbm"))
3637 (tpi (string-append out "/bin/tuxpaint-import")))
3638 (substitute* tpi
3639 ;; Point to installation prefix so that the default
3640 ;; configure file is found.
3641 (("/usr/local") out))
3642 ;; tuxpaint-import uses a bunch of programs from
3643 ;; netpbm, so make sure it knows where those are
3644 (wrap-program tpi
3645 `("PATH" ":" prefix
3646 (,(string-append net "/bin"))))))))))
3647 (native-search-paths
3648 (list (search-path-specification
3649 (variable "TUXPAINT_STAMPS_PATH")
3650 (files '("share/tuxpaint/stamps")))))
3651 (home-page "http://www.tuxpaint.org")
3652 (synopsis "Drawing software for children")
3653 (description
3654 "Tux Paint is a free drawing program designed for young children (kids
3655 ages 3 and up). It has a simple, easy-to-use interface; fun sound effects;
3656 and an encouraging cartoon mascot who helps guide children as they use the
3657 program. It provides a blank canvas and a variety of drawing tools to help
3658 your child be creative.")
3659 (license license:gpl2+)))
3660
3661 (define-public tuxpaint-stamps
3662 (package
3663 (name "tuxpaint-stamps")
3664 (version "2018.09.01")
3665 (source
3666 (origin
3667 (method url-fetch)
3668 (uri (string-append "mirror://sourceforge/tuxpaint/tuxpaint-stamps/"
3669 (string-map (λ (x) (if (eq? x #\.) #\- x)) version)
3670 "/tuxpaint-stamps-" version ".tar.gz"))
3671 (sha256
3672 (base32
3673 "1skr23k27yj3vgwfazpzxp90lb2a278gxrkr3bxw7az6zpkmb3yp"))))
3674 (build-system trivial-build-system)
3675 (native-inputs
3676 `(("tar" ,tar)
3677 ("gzip" ,gzip)))
3678 (arguments
3679 `(#:modules ((guix build utils))
3680 #:builder (begin
3681 (use-modules (guix build utils))
3682 (setenv "PATH"
3683 (string-append
3684 (assoc-ref %build-inputs "tar") "/bin" ":"
3685 (assoc-ref %build-inputs "gzip") "/bin"))
3686 (invoke "tar" "xvf" (assoc-ref %build-inputs "source"))
3687 (chdir (string-append ,name "-" ,version))
3688 (let ((dir (string-append %output "/share/tuxpaint/stamps")))
3689 (mkdir-p dir)
3690 (copy-recursively "stamps" dir))
3691 #t)))
3692 (home-page (package-home-page tuxpaint))
3693 (synopsis "Stamp images for Tux Paint")
3694 (description
3695 "This package contains a set of \"Rubber Stamp\" images which can be used
3696 with the \"Stamp\" tool within Tux Paint.")
3697 (license license:gpl2+)))
3698
3699 (define-public tuxpaint-config
3700 (package
3701 (name "tuxpaint-config")
3702 (version "0.0.14") ;keep VER_DATE below in sync
3703 (source
3704 (origin
3705 (method url-fetch)
3706 (uri (string-append "mirror://sourceforge/tuxpaint/tuxpaint-config/"
3707 version "/tuxpaint-config-" version ".tar.gz"))
3708 (sha256
3709 (base32
3710 "0zkgxk436nqcp43zghkfmh397c7dvh5bwn2as7gwvv208bzyij6g"))))
3711 (build-system gnu-build-system)
3712 (native-inputs
3713 `(("gettext" ,gettext-minimal)))
3714 (inputs
3715 `(("fltk" ,fltk)
3716 ("libpaper" ,libpaper)
3717 ;; TODO: Should the following be propagated by fltk?
3718 ("libx11" ,libx11)
3719 ("libxft" ,libxft)
3720 ("mesa" ,mesa)))
3721 (arguments
3722 `(#:make-flags `("VER_DATE=2018-09-01"
3723 "CONFDIR=/etc/tuxpaint" ;don't write to store
3724 ,(string-append "PREFIX=" %output)
3725 "GNOME_PREFIX=$(PREFIX)")
3726 #:parallel-build? #f ;race conditions
3727 #:tests? #f ;no tests
3728 #:phases (modify-phases %standard-phases
3729 (delete 'configure) ;no configure phase
3730 (add-before 'install 'gzip-no-name
3731 (lambda* _
3732 (substitute* "Makefile"
3733 ;; tuxpaint-config compresses its own documentation;
3734 ;; make sure it uses flags for reproducibility.
3735 (("gzip") "gzip --no-name"))))
3736 (add-before 'install 'make-install-dirs
3737 (lambda* (#:key outputs #:allow-other-keys)
3738 (let ((out (assoc-ref outputs "out")))
3739 (mkdir-p (string-append out "/bin"))
3740 #t))))))
3741 (home-page (package-home-page tuxpaint))
3742 (synopsis "Configure Tux Paint")
3743 (description
3744 "Tux Paint Config is a graphical configuration editor for Tux Paint.")
3745 (license license:gpl2))) ;no "or later" present
3746
3747 (define-public supertux
3748 (package
3749 (name "supertux")
3750 (version "0.6.1")
3751 (source (origin
3752 (method url-fetch)
3753 (uri (string-append "https://github.com/SuperTux/supertux/"
3754 "releases/download/v" version "/SuperTux-v"
3755 version "-Source.tar.gz"))
3756 (file-name (string-append name "-" version ".tar.gz"))
3757 (sha256
3758 (base32
3759 "0lqch5gcq6ccnspy93z9r13bp8w2j1vrd8jhvk5kp4qhrd1f069s"))
3760 (patches
3761 (search-patches "supertux-unbundle-squirrel.patch"))))
3762 (arguments
3763 '(#:tests? #f
3764 #:configure-flags '("-DINSTALL_SUBDIR_BIN=bin"
3765 "-DUSE_SYSTEM_PHYSFS=ON")
3766 #:phases
3767 (modify-phases %standard-phases
3768 (add-after 'unpack 'patch-squirrel-path
3769 (lambda* (#:key inputs #:allow-other-keys)
3770 (let ((squirrel (assoc-ref inputs "squirrel")))
3771 (substitute* "CMakeLists.txt"
3772 (("set\\(SQUIRREL_PREFIX.*")
3773 (string-append "set(SQUIRREL_PREFIX " squirrel ")"))
3774 (("add_dependencies\\(supertux2_lib squirrel\\)") "")
3775 (("\\$\\{SQUIRREL_PREFIX\\}/include")
3776 (string-append "${SQUIRREL_PREFIX}/include/squirrel"))))
3777 #t)))))
3778 (build-system cmake-build-system)
3779 (inputs `(("sdl2" ,sdl2)
3780 ("sdl2-image" ,sdl2-image)
3781 ("sdl2-mixer" ,sdl2-mixer)
3782 ("openal" ,openal)
3783 ("mesa" ,mesa)
3784 ("glew" ,glew)
3785 ("libvorbis" ,libvorbis)
3786 ("libogg" ,libogg)
3787 ("physfs" ,physfs)
3788 ("curl" ,curl)
3789 ("boost" ,boost)
3790 ("freetype" ,freetype)
3791 ("squirrel" ,squirrel)))
3792 (native-inputs
3793 `(("pkg-config" ,pkg-config)))
3794 (synopsis "2D platformer game")
3795 (description "SuperTux is a classic 2D jump'n run sidescroller game in
3796 a style similar to the original Super Mario games.")
3797 (home-page "https://supertux.org/")
3798 (license license:gpl3+)))
3799
3800 (define-public tintin++
3801 (package
3802 (name "tintin++")
3803 (version "2.01.7")
3804 (source
3805 (origin
3806 (method url-fetch)
3807 (uri (string-append "mirror://sourceforge/tintin/TinTin++ Source Code/"
3808 (version-major+minor version)
3809 "/tintin-" version ".tar.gz"))
3810 (sha256
3811 (base32
3812 "033n84pyxml3n3gd4dq0497n9w331bnrr1gppwipz9ashmq8jz7v"))))
3813 (inputs
3814 `(("gnutls" ,gnutls)
3815 ("pcre" ,pcre)
3816 ("readline" ,readline)
3817 ("zlib" ,zlib)))
3818 (arguments
3819 '(#:tests? #f ; no test suite
3820 #:phases
3821 (modify-phases %standard-phases
3822 ;; The source is in tt/src.
3823 (add-before 'configure 'chdir
3824 (lambda _
3825 (chdir "src")
3826 #t)))))
3827 (build-system gnu-build-system)
3828 (home-page "http://tintin.sourceforge.net/")
3829 (synopsis "MUD client")
3830 (description
3831 "TinTin++ is a MUD client which supports MCCP (Mud Client Compression
3832 Protocol), MMCP (Mud Master Chat Protocol), xterm 256 colors, most TELNET
3833 options used by MUDs, as well as those required to login via telnet on
3834 Linux / Mac OS X servers, and an auto mapper with a VT100 map display.")
3835 (license license:gpl2+)))
3836
3837 (define-public laby
3838 (package
3839 (name "laby")
3840 (version "0.6.4")
3841 (source
3842 (origin (method git-fetch)
3843 (uri (git-reference
3844 (url "https://github.com/sgimenez/laby.git")
3845 (commit (string-append name "-" version))))
3846 (file-name (git-file-name name version))
3847 (sha256
3848 (base32
3849 "12fq9hhrxpzgfinmj9ra9ckss9yficwdlrmgjvvsq7agvh3sgyl1"))
3850 (patches (search-patches "laby-make-install.patch"))))
3851 (build-system gnu-build-system)
3852 (inputs
3853 `(("lablgtk" ,lablgtk)
3854 ("ocaml" ,ocaml)
3855 ("ocaml-findlib" ,ocaml-findlib)
3856 ("ocamlbuild" ,ocamlbuild)))
3857 (arguments
3858 '(#:phases
3859 (modify-phases %standard-phases
3860 (delete 'configure)
3861 (add-before 'build 'allow-unsafe-strings
3862 ;; Fix a build failure with ocaml >=4.06.0.
3863 ;; See <https://github.com/sgimenez/laby/issues/53>.
3864 (lambda _
3865 (setenv "OCAMLPARAM" "safe-string=0,_")
3866 #t))
3867 (add-before 'build 'set-library-path
3868 (lambda* (#:key inputs #:allow-other-keys)
3869 (let ((lablgtk (assoc-ref inputs "lablgtk")))
3870 (setenv "LD_LIBRARY_PATH"
3871 (string-append lablgtk "/lib/ocaml/stublibs"))))))
3872 #:tests? #f ; no 'check' target
3873 #:make-flags
3874 (list (string-append "PREFIX=" (assoc-ref %outputs "out")) "all")))
3875 (home-page "https://sgimenez.github.io/laby/")
3876 (synopsis "Programming game")
3877 (description "Learn programming, playing with ants and spider webs ;-)
3878 Your robot ant can be programmed in many languages: OCaml, Python, C, C++,
3879 Java, Ruby, Lua, JavaScript, Pascal, Perl, Scheme, Vala, Prolog. Experienced
3880 programmers may also add their own favorite language.")
3881 (license license:gpl3+)))
3882
3883 (define-public bambam
3884 (package
3885 (name "bambam")
3886 (version "1.0.0")
3887 (source
3888 (origin
3889 (method git-fetch)
3890 (uri (git-reference
3891 (url "https://github.com/porridge/bambam")
3892 (commit (string-append "v" version))))
3893 (file-name (git-file-name name version))
3894 (sha256
3895 (base32 "18cwd1wpyyx8y61cags9bkdhx9x858xicc4y1c9c2s0xjmgzhl3i"))))
3896 (build-system python-build-system)
3897 (arguments
3898 `(#:tests? #f ; no tests
3899 #:phases
3900 (modify-phases %standard-phases
3901 (delete 'build) ; nothing to build
3902 (replace 'install
3903 (lambda* (#:key outputs #:allow-other-keys)
3904 (let* ((out (assoc-ref outputs "out"))
3905 (bin (string-append out "/bin"))
3906 (share (string-append out "/share")))
3907 (mkdir-p bin)
3908 (copy-file "bambam.py" (string-append bin "/bambam"))
3909 (install-file "bambam.6" (string-append share "/man/man6"))
3910 (copy-recursively "data" (string-append share "/bambam/data")))
3911 #t)))))
3912 (inputs
3913 `(("python-pygame" ,python-pygame)))
3914 (home-page "https://github.com/porridge/bambam")
3915 (synopsis "Keyboard mashing and doodling game for babies")
3916 (description "Bambam is a simple baby keyboard (and gamepad) masher
3917 application that locks the keyboard and mouse and instead displays bright
3918 colors, pictures, and sounds.")
3919 (license license:gpl3+)))
3920
3921 (define-public mrrescue
3922 (package
3923 (name "mrrescue")
3924 (version "1.02e")
3925 (source (origin
3926 (method url-fetch)
3927 (uri (string-append
3928 "https://github.com/SimonLarsen/mrrescue/releases/"
3929 "download/" version "/mrrescue" version ".love"))
3930 (file-name (string-append name "-" version ".love"))
3931 (sha256
3932 (base32
3933 "0jwzbwkgp1l5ia6c7s760gmdirbsncp6nfqp7vqdqsfb63la9gl2"))))
3934 (build-system trivial-build-system)
3935 (arguments
3936 `(#:modules ((guix build utils))
3937 #:builder
3938 (begin
3939 (use-modules (guix build utils))
3940 (let* ((out (assoc-ref %outputs "out"))
3941 (script (string-append out "/bin/" ,name))
3942 (data (string-append out "/share/" ,name))
3943 (source (assoc-ref %build-inputs "source"))
3944 (unzip (string-append (assoc-ref %build-inputs "unzip")
3945 "/bin/unzip"))
3946 (patch (string-append (assoc-ref %build-inputs "patch")
3947 "/bin/patch"))
3948 (bash (string-append (assoc-ref %build-inputs "bash")
3949 "/bin/bash"))
3950 (love (string-append (assoc-ref %build-inputs "love")
3951 "/bin/love")))
3952
3953 (mkdir-p (dirname script))
3954 (with-output-to-file script
3955 (lambda ()
3956 (format #t "#!~a~%" bash)
3957 (format #t "exec -a ~a \"~a\" \"~a\"~%" ,name love data)))
3958 (chmod script #o755)
3959
3960 ;; The better way to package this game would be to install *only* the
3961 ;; script above, pointing to the unextracted .love file in the store.
3962 ;; However, mrrescue 1.02e needs to be patched to work with Love 11.
3963 ;; Instead of extracting the .love file, patching it, and re-zipping
3964 ;; it to the store, simply point the script to the extracted patched
3965 ;; data directory directly.
3966 (mkdir-p data)
3967 (with-directory-excursion data
3968 (invoke unzip source)
3969 (invoke patch "-p1" "-i"
3970 (assoc-ref %build-inputs "love-11.patch")))
3971 #t))))
3972 (native-inputs
3973 `(("unzip" ,unzip)
3974 ("patch" ,patch)
3975 ("love-11.patch" ,(search-patch "mrrescue-support-love-11.patch"))))
3976 (inputs
3977 `(("bash" ,bash)
3978 ("love" ,love)))
3979 (home-page "http://tangramgames.dk/games/mrrescue")
3980 (synopsis "Arcade-style fire fighting game")
3981 (description
3982 "Mr. Rescue is an arcade styled 2d action game centered around evacuating
3983 civilians from burning buildings. The game features fast-paced fire
3984 extinguishing action, intense boss battles, a catchy soundtrack, and lots of
3985 throwing people around in pseudo-randomly generated buildings.")
3986 (license (list license:zlib ; for source code
3987 license:cc-by-sa3.0)))) ; for graphics and music assets
3988
3989 (define-public hyperrogue
3990 (package
3991 (name "hyperrogue")
3992 (version "11.2d")
3993 ;; When updating this package, be sure to update the "hyperrogue-data"
3994 ;; origin in native-inputs.
3995 (source (origin
3996 (method url-fetch)
3997 (uri (string-append
3998 "https://www.roguetemple.com/z/hyper/hyperrogue"
3999 (string-join (string-split version #\.) "")
4000 "-src.tgz"))
4001 (sha256
4002 (base32
4003 "1b532s94zv1jsni7bvh848m42arxcclsr0x3n7c689iamwqzrxmn"))))
4004 (build-system gnu-build-system)
4005 (arguments
4006 `(#:tests? #f ; no check target
4007 #:make-flags '("HYPERROGUE_USE_GLEW=1"
4008 "HYPERROGUE_USE_PNG=1")
4009 #:phases
4010 (modify-phases %standard-phases
4011 (add-after 'set-paths 'set-sdl-paths
4012 (lambda* (#:key inputs #:allow-other-keys)
4013 (setenv "CPATH"
4014 (string-append (getenv "CPATH") ":"
4015 (assoc-ref inputs "sdl-union")
4016 "/include/SDL"))))
4017 (replace 'configure
4018 (lambda* (#:key inputs outputs #:allow-other-keys)
4019 (let* ((out (assoc-ref outputs "out"))
4020 (share-dir (string-append out "/share/hyperrogue"))
4021 (dejavu-dir (string-append
4022 (assoc-ref inputs "font-dejavu")
4023 "/share/fonts/truetype"))
4024 (dejavu-font "DejaVuSans-Bold.ttf")
4025 (music-file "hyperrogue-music.txt"))
4026 ;; Fix font and music paths.
4027 (substitute* "basegraph.cpp"
4028 ((dejavu-font)
4029 (string-append dejavu-dir "/" dejavu-font)))
4030 (substitute* music-file
4031 (("\\*/")
4032 (string-append share-dir "/sounds/")))
4033 (substitute* "sound.cpp"
4034 (("musicfile = \"\"")
4035 (string-append "musicfile = \""
4036 share-dir "/" music-file "\"")))
4037 ;; Disable build machine CPU optimizations and warnings treated
4038 ;; as errors.
4039 (substitute* "Makefile"
4040 (("-march=native") "")
4041 (("-Werror") "")))
4042 #t))
4043 (replace 'install
4044 (lambda* (#:key inputs outputs #:allow-other-keys)
4045 (let* ((out (assoc-ref outputs "out"))
4046 (bin (string-append out "/bin"))
4047 (share-dir (string-append out "/share/hyperrogue")))
4048 (mkdir-p bin)
4049 (install-file "hyperrogue" bin)
4050 (install-file "hyperrogue-music.txt" share-dir))
4051 #t))
4052 (add-after 'install 'install-data
4053 (lambda* (#:key inputs outputs #:allow-other-keys)
4054 (let* ((data (assoc-ref inputs "hyperrogue-data"))
4055 (out (assoc-ref outputs "out"))
4056 (sounds (string-append out "/share/hyperrogue/sounds"))
4057 (unzip (string-append (assoc-ref inputs "unzip") "/bin/unzip")))
4058 ;; Extract media license information into sounds directory.
4059 (invoke unzip "-j" data
4060 (string-append
4061 "hyperrogue"
4062 (string-join (string-split ,version #\.) "")
4063 "/sounds/credits.txt") "-d" sounds)
4064 ;; Extract sounds and music into sounds directory.
4065 (invoke "unzip" "-j" data
4066 (string-append
4067 "hyperrogue"
4068 (string-join (string-split ,version #\.) "")
4069 "/*.ogg") "-d" sounds)))))))
4070 (native-inputs
4071 `(("hyperrogue-data"
4072 ,(origin
4073 (method url-fetch)
4074 (uri
4075 (string-append
4076 "https://www.roguetemple.com/z/hyper/hyperrogue"
4077 (string-join (string-split version #\.) "")
4078 "-win.zip"))
4079 (sha256
4080 (base32
4081 "0vq4l1xaqpjj3hmxn1vn2b3bbkn1hrag42ck9f30blinv347bwhf"))))
4082 ("unzip" ,unzip)))
4083 (inputs
4084 `(("font-dejavu" ,font-dejavu)
4085 ("glew" ,glew)
4086 ("libpng" ,libpng)
4087 ("sdl-union" ,(sdl-union (list sdl
4088 sdl-gfx
4089 sdl-mixer
4090 sdl-ttf)))))
4091 (home-page "https://www.roguetemple.com/z/hyper/")
4092 (synopsis "Non-euclidean graphical rogue-like game")
4093 (description
4094 "HyperRogue is a game in which the player collects treasures and fights
4095 monsters -- rogue-like but for the fact that it is played on the hyperbolic
4096 plane and not in euclidean space.
4097
4098 In HyperRogue, the player can move through different parts of the world, which
4099 are home to particular creatures and may be subject to their own rules of
4100 \"physics\".
4101
4102 While the game can use ASCII characters to display the the classical rogue
4103 symbols, it still needs graphics to render the non-euclidean world.")
4104 (license (list license:bsd-3 ; glew.c, mtrand.*
4105 license:cc-by-sa3.0 ; music
4106 license:cc-by-sa4.0 ; sounds
4107 license:cc0
4108 license:public-domain ; direntx.*, some sounds
4109 license:zlib ; savepng.*
4110 license:gpl2+)))) ; remaining files
4111
4112 (define-public kobodeluxe
4113 (package
4114 (name "kobodeluxe")
4115 (version "0.5.1")
4116 (source (origin
4117 (method url-fetch)
4118 (uri (string-append "http://olofson.net/kobodl/download/KoboDeluxe-"
4119 version ".tar.bz2"))
4120 (sha256
4121 (base32
4122 "0b2wvdpnmaibsy419c16dfwj5kvd3pccby2aaqvm964x74592yqg"))
4123 (patches (search-patches
4124 "kobodeluxe-const-charp-conversion.patch"
4125 "kobodeluxe-enemies-pipe-decl.patch"
4126 "kobodeluxe-graphics-window-signed-char.patch"
4127 "kobodeluxe-manpage-minus-not-hyphen.patch"
4128 "kobodeluxe-midicon-segmentation-fault.patch"
4129 "kobodeluxe-paths.patch"))))
4130 (build-system gnu-build-system)
4131 (arguments
4132 '(#:configure-flags
4133 (list (string-append "CPPFLAGS=-I"
4134 (assoc-ref %build-inputs "sdl-union")
4135 "/include/SDL"))))
4136 (inputs `(("sdl-union" ,(sdl-union (list sdl sdl-image)))))
4137 (synopsis "Shooter with space station destruction")
4138 (description
4139 "Kobo Deluxe is an enhanced version of Akira Higuchi's XKobo graphical game
4140 for Un*x systems with X11.")
4141 (home-page "http://olofson.net/kobodl/")
4142 (license license:gpl2+)))
4143
4144 (define-public freeciv
4145 (package
4146 (name "freeciv")
4147 (version "2.6.1")
4148 (source
4149 (origin
4150 (method url-fetch)
4151 (uri (list (string-append
4152 "http://files.freeciv.org/stable/freeciv-"
4153 version ".tar.bz2")
4154 (string-append
4155 "mirror://sourceforge/freeciv/Freeciv%20"
4156 (version-major+minor version) "/" version
4157 "/freeciv-" version ".tar.bz2")))
4158 (sha256
4159 (base32 "1qmrhrwm0ryvsh1zsxcxj128lhyvaxap7k39sam3hh8rl0fq9rnc"))))
4160 (build-system gnu-build-system)
4161 (inputs
4162 `(("curl" ,curl)
4163 ("cyrus-sasl" ,cyrus-sasl)
4164 ("gtk+" ,gtk+)
4165 ("sdl-mixer" ,sdl-mixer)
4166 ("zlib" ,zlib)))
4167 (native-inputs
4168 `(("pkg-config" ,pkg-config)))
4169 (home-page "http://www.freeciv.org/")
4170 (synopsis "Turn-based empire building strategy game")
4171 (description "Freeciv is a turn-based empire building strategy game
4172 inspired by the history of human civilization. The game commences in
4173 prehistory and your mission is to lead your tribe from the Stone Age
4174 into the Space Age.")
4175 (license license:gpl2+)))
4176
4177 (define-public no-more-secrets
4178 (package
4179 (name "no-more-secrets")
4180 (version "0.3.3")
4181 (source
4182 (origin
4183 (method git-fetch)
4184 (uri (git-reference
4185 (url "https://github.com/bartobri/no-more-secrets.git")
4186 (commit (string-append "v" version))))
4187 (file-name (git-file-name name version))
4188 (sha256
4189 (base32 "1zfv4qabikf8w9winsr4brxrdvs3f0d7xvydksyx8bydadsm2v2h"))))
4190 (build-system gnu-build-system)
4191 (arguments
4192 `(#:tests? #f
4193 #:make-flags (list "CC=gcc" "all-ncurses"
4194 (string-append "prefix="
4195 (assoc-ref %outputs "out")))
4196 #:phases
4197 (modify-phases %standard-phases
4198 (delete 'configure))))
4199 (inputs
4200 `(("ncurses" ,ncurses)))
4201 (home-page "https://github.com/bartobri/no-more-secrets")
4202 (synopsis "Recreation of data decryption effect in \"Sneakers\"")
4203 (description
4204 "@code{No More Secrets} provides a command line tool called \"nms\"
4205 that recreates the famous data decryption effect seen on screen in the 1992
4206 movie \"Sneakers\".
4207
4208 This command works on piped data. Pipe any ASCII or UTF-8 text to nms, and
4209 it will apply the hollywood effect, initially showing encrypted data, then
4210 starting a decryption sequence to reveal the original plaintext characters.")
4211 (license license:expat)))
4212
4213 (define-public megaglest-data
4214 (package
4215 (name "megaglest-data")
4216 (version "3.13.0")
4217 (source
4218 (origin
4219 (method url-fetch)
4220 (uri (string-append
4221 "https://github.com/MegaGlest/megaglest-data"
4222 "/releases/download/" version "/megaglest-data-"
4223 version ".tar.xz"))
4224 (sha256
4225 (base32
4226 "0ipgza33z89fw3si32iafm981f3fvm0zldvbxj29whghd2k3rpj3"))))
4227 (build-system cmake-build-system)
4228 (arguments
4229 `(#:tests? #f))
4230 (home-page "https://megaglest.org/")
4231 (synopsis "Data files for MegaGlest")
4232 (description "This package contains the data files required for MegaGlest.")
4233 (license license:cc-by-sa3.0)))
4234
4235 (define-public megaglest
4236 (package
4237 (name "megaglest")
4238 (version "3.13.0")
4239 (source
4240 (origin
4241 (method url-fetch)
4242 (uri (string-append
4243 "https://github.com/MegaGlest/megaglest-source"
4244 "/releases/download/" version "/megaglest-source-"
4245 version ".tar.xz"))
4246 (sha256
4247 (base32
4248 "1ffck3ii1wp5k3nn5p0ga06jgp7pzk4zw0xln3xim2w7qrxzdzh9"))))
4249 (build-system cmake-build-system)
4250 (inputs
4251 `(("curl" ,curl)
4252 ("fontconfig" ,fontconfig)
4253 ("ftgl" ,ftgl)
4254 ("glew" ,glew)
4255 ("libjpeg-turbo" ,libjpeg-turbo)
4256 ("megaglest-data" ,megaglest-data)
4257 ("mesa" ,mesa)
4258 ("miniupnpc" ,miniupnpc)
4259 ("openal" ,openal)
4260 ("libircclient" ,libircclient)
4261 ("libpng" ,libpng)
4262 ("libvorbis" ,libvorbis)
4263 ("lua" ,lua)
4264 ("sdl2" ,sdl2)
4265 ("wxwidgets" ,wxwidgets)))
4266 (native-inputs
4267 `(("cppunit" ,cppunit)
4268 ("pkg-config" ,pkg-config)))
4269 (arguments
4270 `(#:configure-flags
4271 (list (string-append "-DCUSTOM_DATA_INSTALL_PATH="
4272 (assoc-ref %build-inputs "megaglest-data")
4273 "/share/megaglest")
4274 "-DBUILD_MEGAGLEST_TESTS=ON")
4275 #:phases
4276 (modify-phases %standard-phases
4277 (add-after 'unpack 'fix-ini-search-path
4278 (lambda* (#:key outputs #:allow-other-keys)
4279 (substitute* "source/glest_game/global/config.cpp"
4280 (("/usr/share/megaglest/")
4281 (string-append (assoc-ref outputs "out")
4282 "/share/megaglest/"))))))
4283 #:test-target "megaglest_tests"))
4284 (home-page "https://megaglest.org/")
4285 (synopsis "3D real-time strategy (RTS) game")
4286 (description "MegaGlest is a cross-platform 3D real-time strategy (RTS)
4287 game, where you control the armies of one of seven different factions: Tech,
4288 Magic, Egypt, Indians, Norsemen, Persian or Romans.")
4289 (license license:gpl2+)))
4290
4291 (define-public freegish
4292 (let ((commit "8795cd7adc95957883f2d3465eb9036a774667a7")
4293 (revision "1"))
4294 (package
4295 (name "freegish")
4296 (version (string-append "0-" revision "." (string-take commit 9)))
4297 (source (origin
4298 (method git-fetch)
4299 (uri (git-reference
4300 (url "https://github.com/freegish/freegish.git")
4301 (commit commit)))
4302 (file-name (git-file-name name version))
4303 (sha256
4304 (base32
4305 "1p1zf5qqagmcpi1db2bs02cnalpy3qiymp6yzan7k1bhmv859gsx"))
4306 (modules '((guix build utils)))
4307 ;; The audio files in the "music" directory are licensed under
4308 ;; CC-BY-NC, so we delete them.
4309 (snippet
4310 '(begin
4311 (delete-file-recursively "music")
4312 #t))))
4313 (build-system cmake-build-system)
4314 (arguments
4315 `(#:tests? #f ; no tests included
4316 #:configure-flags
4317 (list "-DCMAKE_INSTALL_FHS=ON")
4318 #:phases
4319 (modify-phases %standard-phases
4320 (add-after 'unpack 'set-DATAPATH
4321 (lambda* (#:key outputs #:allow-other-keys)
4322 (substitute* "CMakeLists.txt"
4323 (("^option\\(INSTALL_FHS" line)
4324 (string-append "add_definitions(-DDATAPATH=\""
4325 (assoc-ref outputs "out") "/share/freegish\")\n"
4326 line)))
4327 #t)))))
4328 (inputs
4329 `(("sdl-union" ,(sdl-union (list sdl sdl-mixer)))
4330 ("openal" ,openal)
4331 ("libvorbis" ,libvorbis)
4332 ("libogg" ,libogg)
4333 ("mesa" ,mesa)
4334 ("libpng" ,libpng)
4335 ("zlib" ,zlib)))
4336 (home-page "https://github.com/freegish/freegish")
4337 (synopsis "Side-scrolling physics platformer with a ball of tar")
4338 (description "In FreeGish you control Gish, a ball of tar who lives
4339 happily with his girlfriend Brea, until one day a mysterious dark creature
4340 emerges from a sewer hole and pulls her below ground.")
4341 ;; The textures are available under the Expat license. All other assets
4342 ;; (including levels) are covered under CC-BY-SA or public domain. The
4343 ;; source code is under GPLv2+.
4344 (license (list license:gpl2+
4345 license:expat
4346 license:public-domain
4347 license:cc-by-sa3.0)))))
4348
4349 (define-public cdogs-sdl
4350 (package
4351 (name "cdogs-sdl")
4352 (version "0.6.9")
4353 (source (origin
4354 (method git-fetch)
4355 (uri (git-reference
4356 (url "https://github.com/cxong/cdogs-sdl.git")
4357 (commit version)))
4358 (file-name (git-file-name name version))
4359 (sha256
4360 (base32
4361 "13gyv2hzk43za1n3lsjnd5v64xlzfzq7n10scd1rcbsnk1n007zr"))))
4362 (build-system cmake-build-system)
4363 (arguments
4364 `(#:configure-flags
4365 (list (string-append "-DCDOGS_DATA_DIR="
4366 (assoc-ref %outputs "out")
4367 "/share/cdogs-sdl/"))))
4368 (inputs
4369 `(("mesa" ,mesa)
4370 ("sdl2" ,sdl2)
4371 ("sdl2-image" ,sdl2-image)
4372 ("sdl2-mixer" ,sdl2-mixer)))
4373 (home-page "https://cxong.github.io/cdogs-sdl/")
4374 (synopsis "Classic overhead run-and-gun game")
4375 (description "C-Dogs SDL is a classic overhead run-and-gun game,
4376 supporting up to 4 players in co-op and deathmatch modes. Customize your
4377 player, choose from many weapons, and blast, slide and slash your way through
4378 over 100 user-created campaigns.")
4379 ;; GPLv2+ for code (includes files under BSD-2 and BSD-3),
4380 ;; CC0/CC-BY/CC-BY-SA for assets.
4381 (license (list license:gpl2+
4382 license:bsd-2
4383 license:bsd-3
4384 license:cc0
4385 license:cc-by3.0
4386 license:cc-by-sa3.0))))
4387
4388 (define-public kiki
4389 (package
4390 (name "kiki")
4391 (version "1.0.2")
4392 (source (origin
4393 (method url-fetch)
4394 (uri (string-append "mirror://sourceforge/kiki/kiki-src/"
4395 version "/kiki-" version "-src.tgz"))
4396 (sha256
4397 (base32
4398 "0ihjdsxbn8z3cz0gpcprafiipcqaiskgdnh1rhmw4qff8dszalbn"))
4399 (modules '((guix build utils)))
4400 (snippet
4401 '(begin
4402 (for-each delete-file (find-files "." "\\.dll$"))
4403 #t))
4404 (patches
4405 (search-patches "kiki-level-selection-crash.patch"
4406 "kiki-makefile.patch"
4407 "kiki-missing-includes.patch"
4408 "kiki-portability-64bit.patch"))))
4409 (build-system gnu-build-system)
4410 (arguments
4411 `(#:tests? #f ; there are no tests
4412 #:make-flags '("CXX=g++")
4413 #:phases
4414 (modify-phases %standard-phases
4415 (replace 'configure
4416 (lambda* (#:key inputs outputs #:allow-other-keys)
4417 (setenv "CPLUS_INCLUDE_PATH"
4418 (string-append (assoc-ref inputs "sdl-union")
4419 "/include/SDL:"
4420 (assoc-ref inputs "python")
4421 "/include/python2.7"))
4422 (substitute* "src/main/main.cpp"
4423 (("#include <SDL.h>" line)
4424 (string-append line "
4425 #define K_INCLUDE_GLUT
4426 #include \"KIncludeTools.h\""))
4427 (("// initialize SDL" line)
4428 (string-append "glutInit(&argc,argv);\n" line)))
4429 (substitute* "src/main/KikiController.cpp"
4430 (("getenv\\(\"KIKI_HOME\"\\)")
4431 (string-append "\"" (assoc-ref outputs "out") "/share/kiki/\"")))
4432 (substitute* "linux/Makefile"
4433 (("CXXOPTS =" line)
4434 (string-append line " -fpermissive"))
4435 (("PYTHON_VERSION=.*") "PYTHON_VERSION=2.7")
4436 (("PYTHONHOME =.*")
4437 (string-append "PYTHONHOME = "
4438 (assoc-ref inputs "python")
4439 "/lib/python2.7/"))
4440 (("\\$\\(GLLIBS\\)" line)
4441 (string-append line " -lm -lpython2.7")))
4442 (substitute* "src/main/KikiPythonWidget.h"
4443 (("#define __KikiPythonWidget" line)
4444 (string-append line "\n#include \"KikiPython.h\"")))
4445 #t))
4446 (add-before 'build 'build-kodilib
4447 (lambda* (#:key make-flags #:allow-other-keys)
4448 (with-directory-excursion "kodilib/linux"
4449 (apply invoke "make" make-flags))))
4450 (add-after 'build-kodilib 'chdir
4451 (lambda _ (chdir "linux") #t))
4452 (replace 'install
4453 (lambda* (#:key outputs #:allow-other-keys)
4454 (let* ((out (assoc-ref outputs "out"))
4455 (bin (string-append out "/bin"))
4456 (share (string-append out "/share/kiki")))
4457 (mkdir-p bin)
4458 (mkdir-p share)
4459 (install-file "kiki" bin)
4460 (copy-recursively "../py" (string-append share "/py"))
4461 (copy-recursively "../sound" (string-append share "/sound"))
4462 #t))))))
4463 (inputs
4464 `(("glu" ,glu)
4465 ;; Kiki builds fine with freeglut 3.0.0 but segfaults on start.
4466 ("freeglut" ,freeglut-2.8)
4467 ("sdl-union" ,(sdl-union (list sdl
4468 sdl-mixer
4469 sdl-image)))
4470 ("python" ,python-2)))
4471 (native-inputs
4472 `(("swig" ,swig)))
4473 (home-page "http://kiki.sourceforge.net/")
4474 (synopsis "3D puzzle game")
4475 (description "Kiki the nano bot is a 3D puzzle game. It is basically a
4476 mixture of the games Sokoban and Kula-World. Your task is to help Kiki, a
4477 small robot living in the nano world, repair its maker.")
4478 ;; See <http://metadata.ftp-master.debian.org/changelogs/main/k/
4479 ;; kiki-the-nano-bot/kiki-the-nano-bot_1.0.2+dfsg1-4_copyright>
4480 ;; for a statement from the author.
4481 (license license:public-domain)))
4482
4483 (define-public kiki-the-nano-bot
4484 (deprecated-package "kiki-the-nano-bot" kiki))
4485
4486 (define-public teeworlds
4487 (package
4488 (name "teeworlds")
4489 (version "0.7.2")
4490 (source (origin
4491 (method git-fetch)
4492 (uri (git-reference
4493 (url "https://github.com/teeworlds/teeworlds.git")
4494 (commit version)))
4495 (file-name (git-file-name name version))
4496 (sha256
4497 (base32
4498 "15l988qcsqgb6rjais0qd5sd2rjanm2708jmzvkariqzz0d6pb93"))
4499 (modules '((guix build utils)
4500 (ice-9 ftw)
4501 (ice-9 regex)
4502 (srfi srfi-1)
4503 (srfi srfi-26)))
4504 (snippet ; remove bundled libraries except md5
4505 '(let ((base-dir "src/engine/external/"))
4506 (for-each (compose (cut delete-file-recursively <>)
4507 (cut string-append base-dir <>))
4508 (remove (cut string-match "(^.)|(^md5$)" <>)
4509 (scandir base-dir)))
4510 #t))
4511 (patches
4512 (search-patches "teeworlds-use-latest-wavpack.patch"))))
4513 (build-system gnu-build-system)
4514 (arguments
4515 `(#:tests? #f ; no tests included
4516 #:modules ((guix build gnu-build-system)
4517 (guix build utils)
4518 (srfi srfi-26))
4519 #:phases
4520 (modify-phases %standard-phases
4521 (replace 'configure
4522 (lambda* (#:key outputs #:allow-other-keys)
4523 ;; The bundled json-parser uses an old API.
4524 ;; To use the latest non-bundled version, we need to pass the
4525 ;; length of the data in all 'json_parse_ex' calls.
4526 (define (use-latest-json-parser file)
4527 (substitute* file
4528 (("engine/external/json-parser/json\\.h")
4529 "json-parser/json.h")
4530 (("json_parse_ex\\(&JsonSettings, pFileData, aError\\);")
4531 "json_parse_ex(&JsonSettings,
4532 pFileData,
4533 strlen(pFileData),
4534 aError);")))
4535
4536 ;; Embed path to assets.
4537 (substitute* "src/engine/shared/storage.cpp"
4538 (("#define DATA_DIR.*")
4539 (string-append "#define DATA_DIR \""
4540 (assoc-ref outputs "out")
4541 "/share/teeworlds/data"
4542 "\"")))
4543
4544 ;; Bam expects all files to have a recent time stamp.
4545 (for-each (cut utime <> 1 1)
4546 (find-files "."))
4547
4548 ;; Do not use bundled libraries.
4549 (substitute* "bam.lua"
4550 (("local json = Compile.+$")
4551 "local json = nil
4552 settings.link.libs:Add(\"jsonparser\")")
4553 (("local png = Compile.+$")
4554 "local png = nil
4555 settings.link.libs:Add(\"pnglite\")")
4556 (("local wavpack = Compile.+$")
4557 "local wavpack = nil
4558 settings.link.libs:Add(\"wavpack\")")
4559 (("if config\\.zlib\\.value == 1")
4560 "if config.zlib.value"))
4561 (substitute* "src/engine/client/graphics_threaded.cpp"
4562 (("engine/external/pnglite/pnglite\\.h")
4563 "pnglite.h"))
4564 (substitute* "src/engine/client/sound.cpp"
4565 (("engine/external/wavpack/wavpack\\.h")
4566 "wavpack/wavpack.h"))
4567 (for-each use-latest-json-parser
4568 '("src/game/client/components/countryflags.cpp"
4569 "src/game/client/components/menus_settings.cpp"
4570 "src/game/client/components/skins.cpp"
4571 "src/game/client/localization.cpp"
4572 "src/game/editor/auto_map.h"
4573 "src/game/editor/editor.cpp"))
4574 #t))
4575 (replace 'build
4576 (lambda _
4577 (invoke "bam" "-a" "-v" "conf=release")))
4578 (replace 'install
4579 (lambda* (#:key outputs #:allow-other-keys)
4580 (let* ((arch ,(system->linux-architecture
4581 (or (%current-target-system)
4582 (%current-system))))
4583 (build (string-append "build/" (if (string=? arch "i386")
4584 "x86" arch)
4585 "/release/"))
4586 (data-built (string-append build "data/"))
4587 (out (assoc-ref outputs "out"))
4588 (bin (string-append out "/bin/"))
4589 (data (string-append out "/share/teeworlds/data/")))
4590 (for-each (cut install-file <> bin)
4591 (map (cut string-append build <>)
4592 '("teeworlds" "teeworlds_srv")))
4593 (copy-recursively data-built data)
4594 #t))))))
4595 (inputs
4596 `(("freetype" ,freetype)
4597 ("glu" ,glu)
4598 ("json-parser" ,json-parser)
4599 ("mesa" ,mesa)
4600 ("pnglite" ,pnglite)
4601 ("sdl2" ,sdl2)
4602 ("sdl2-image" ,sdl2-image)
4603 ("sdl2-mixer" ,sdl2-mixer)
4604 ("wavpack" ,wavpack)
4605 ("zlib" ,zlib)))
4606 (native-inputs
4607 `(("bam" ,bam)
4608 ("python" ,python-wrapper)
4609 ("pkg-config" ,pkg-config)))
4610 (home-page "https://www.teeworlds.com")
4611 (synopsis "2D retro multiplayer shooter game")
4612 (description "Teeworlds is an online multiplayer game. Battle with up to
4613 16 players in a variety of game modes, including Team Deathmatch and Capture
4614 The Flag. You can even design your own maps!")
4615 (license license:bsd-3)))
4616
4617 (define-public enigma
4618 (package
4619 (name "enigma")
4620 (version "1.21")
4621 (source (origin
4622 (method url-fetch)
4623 (uri (string-append "mirror://sourceforge/enigma-game/"
4624 "Release%20" version "/enigma-"
4625 version ".tar.gz"))
4626 (sha256
4627 (base32
4628 "00ffh9pypj1948pg3q9sjp1nmiabh52p5c8wpg9n1dcfgl3cywnq"))))
4629 (build-system gnu-build-system)
4630 (arguments
4631 `(#:configure-flags
4632 (list "--with-system-enet")
4633 #:phases
4634 (modify-phases %standard-phases
4635 (add-after 'unpack 'find-sdl
4636 (lambda _
4637 (substitute* "configure"
4638 (("SDL_ttf.h") "SDL/SDL_ttf.h"))
4639 (substitute* '("tools/ttf2bmf.cc"
4640 "lib-src/enigma-core/ecl_font.cc"
4641 "lib-src/enigma-core/ecl_video.cc"
4642 "lib-src/enigma-core/ecl_buffer.hh"
4643 "src/SoundEngine.cc"
4644 "src/SoundEngine.hh"
4645 "src/MusicManager.cc"
4646 "src/MusicManager.hh"
4647 "src/d_models.cc"
4648 "src/main.cc"
4649 "src/network.cc")
4650 (("#include \"SDL_(image|ttf|mixer|types|syswm|mutex).h\"" line header)
4651 (string-append "#include \"SDL/SDL_" header ".h\"")))
4652 (substitute* "src/main.cc"
4653 (("#include <SDL_(image|ttf|mixer).h>" line header)
4654 (string-append "#include \"SDL/SDL_" header ".h\"")))
4655 #t)))))
4656 (inputs
4657 `(("xerces-c" ,xerces-c)
4658 ("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer sdl-ttf)))
4659 ("curl" ,curl)
4660 ("enet" ,enet)))
4661 (native-inputs
4662 `(("pkg-config" ,pkg-config)
4663 ("imagemagick" ,imagemagick)))
4664 (home-page "https://www.nongnu.org/enigma")
4665 (synopsis "Puzzle game with a dexterity component")
4666 (description "Enigma is a puzzle game with 550 unique levels. The object
4667 of the game is to find and uncover pairs of identically colored ‘Oxyd’ stones.
4668 Simple? Yes. Easy? Certainly not! Hidden traps, vast mazes, laser beams,
4669 and most of all, countless hairy puzzles usually block your direct way to the
4670 Oxyd stones. Enigma’s game objects (and there are hundreds of them, lest you
4671 get bored) interact in many unexpected ways, and since many of them follow the
4672 laws of physics (Enigma’s special laws of physics, that is), controlling them
4673 with the mouse isn’t always trivial.")
4674 (license license:gpl2+)))
4675
4676 (define-public chroma
4677 (package
4678 (name "chroma")
4679 (version "1.17")
4680 (source (origin
4681 (method url-fetch)
4682 (uri (string-append "http://level7.org.uk/chroma/download/chroma-"
4683 version ".tar.bz2"))
4684 (sha256
4685 (base32
4686 "047sf00x71xbmi8bqrhfbmr9bk89l2gbykkqsfpw4wz6yfjscs6y"))))
4687 (build-system gnu-build-system)
4688 (arguments
4689 `(#:tests? #f)) ; no tests included
4690 (inputs
4691 `(("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer sdl-ttf)))
4692 ("freetype" ,freetype)
4693 ("ncurses" ,ncurses)
4694 ("fontconfig" ,fontconfig)
4695 ("libxft" ,libxft)))
4696 (native-inputs
4697 `(("pkg-config" ,pkg-config)))
4698 (home-page "http://level7.org.uk/chroma/")
4699 (synopsis "Abstract puzzle game")
4700 (description "Chroma is an abstract puzzle game. A variety of colourful
4701 shapes are arranged in a series of increasingly complex patterns, forming
4702 fiendish traps that must be disarmed and mysterious puzzles that must be
4703 manipulated in order to give up their subtle secrets. Initially so
4704 straightforward that anyone can pick it up and begin to play, yet gradually
4705 becoming difficult enough to tax even the brightest of minds.")
4706 (license license:gpl2+)))
4707
4708 (define-public fillets-ng
4709 (package
4710 (name "fillets-ng")
4711 (version "1.0.1")
4712 (source (origin
4713 (method url-fetch)
4714 (uri (string-append "mirror://sourceforge/fillets/"
4715 "Fish%20Fillets%20-%20Next%20Generation/"
4716 version "/fillets-ng-" version ".tar.gz"))
4717 (sha256
4718 (base32
4719 "1nljp75aqqb35qq3x7abhs2kp69vjcj0h1vxcpdyn2yn2nalv6ij"))))
4720 (build-system gnu-build-system)
4721 (arguments
4722 `(#:configure-flags
4723 (list (string-append "--with-lua="
4724 (assoc-ref %build-inputs "lua")))
4725 #:make-flags
4726 (list (string-append "CFLAGS=-I"
4727 (assoc-ref %build-inputs "sdl-union")
4728 "/include/SDL")
4729 (string-append "CXXFLAGS=-I"
4730 (assoc-ref %build-inputs "sdl-union")
4731 "/include/SDL"))
4732 #:phases
4733 (modify-phases %standard-phases
4734 ;; Lua 5.1 does not provide it.
4735 (add-after 'unpack 'do-not-link-with-lualib
4736 (lambda _
4737 (substitute* "configure"
4738 (("-llualib") ""))
4739 #t))
4740 (add-after 'install 'install-data
4741 (lambda* (#:key inputs outputs #:allow-other-keys)
4742 (let ((data (string-append (assoc-ref outputs "out")
4743 "/share/games/fillets-ng")))
4744 (mkdir-p data)
4745 (invoke "tar" "-xvf"
4746 (assoc-ref inputs "fillets-ng-data")
4747 "--strip-components=1"
4748 "-C" data)))))))
4749 (inputs
4750 `(("sdl-union" ,(sdl-union (list sdl
4751 sdl-mixer
4752 sdl-image
4753 sdl-ttf)))
4754 ("fribidi" ,fribidi)
4755 ("libx11" ,libx11)
4756 ("lua" ,lua-5.1)))
4757 (native-inputs
4758 `(("pkg-config" ,pkg-config)
4759 ("fillets-ng-data"
4760 ,(origin
4761 (method url-fetch)
4762 (uri (string-append "mirror://sourceforge/fillets/"
4763 "Fish%20Fillets%20-%20Next%20Generation/"
4764 version "/fillets-ng-data-" version ".tar.gz"))
4765 (sha256
4766 (base32
4767 "169p0yqh2gxvhdilvjc2ld8aap7lv2nhkhkg4i1hlmgc6pxpkjgh"))))))
4768 (home-page "http://fillets.sourceforge.net/")
4769 (synopsis "Puzzle game")
4770 (description "Fish Fillets NG is strictly a puzzle game. The goal in
4771 every of the seventy levels is always the same: find a safe way out. The fish
4772 utter witty remarks about their surroundings, the various inhabitants of their
4773 underwater realm quarrel among themselves or comment on the efforts of your
4774 fish. The whole game is accompanied by quiet, comforting music.")
4775 (license license:gpl2+)))
4776
4777 (define-public fish-fillets-ng
4778 (deprecated-package "fish-fillets-ng" fillets-ng))
4779
4780 (define-public crawl
4781 (package
4782 (name "crawl")
4783 (version "0.24.0")
4784 (source
4785 (origin
4786 (method url-fetch)
4787 (uri (list
4788 ;; Older releases get moved into a versioned directory
4789 (string-append "http://crawl.develz.org/release/"
4790 (version-major+minor version) "/stone_soup-"
4791 version "-nodeps.tar.xz")
4792 ;; Only the latest release is in this directory
4793 (string-append "http://crawl.develz.org/release/stone_soup-"
4794 version "-nodeps.tar.xz")))
4795 (sha256
4796 (base32 "0kdq6s12myxfdg75ma9x3ys2nd0xwb3xm2ynlmhg4628va0pnixr"))
4797 (patches (search-patches "crawl-upgrade-saves.patch"))))
4798 (build-system gnu-build-system)
4799 (inputs
4800 `(("lua51" ,lua-5.1)
4801 ("ncurses" ,ncurses)
4802 ("sqlite" ,sqlite)
4803 ("zlib" ,zlib)))
4804 (native-inputs
4805 `(("bison" ,bison)
4806 ("flex" ,flex)
4807 ("perl" ,perl)
4808 ("python" ,python-wrapper)
4809 ("python-pyyaml" ,python-pyyaml)
4810 ("pkg-config" ,pkg-config)))
4811 (arguments
4812 `(#:make-flags
4813 (let* ((sqlite (assoc-ref %build-inputs "sqlite"))
4814 (out (assoc-ref %outputs "out")))
4815 (list (string-append "SQLITE_INCLUDE_DIR=" sqlite "/include")
4816 (string-append "prefix=" out)
4817 "SAVEDIR=~/.crawl"
4818 ;; Don't compile with SSE on systems which don't have it.
4819 ,@(match (%current-system)
4820 ((or "i686-linux" "x86_64-linux")
4821 '())
4822 (_ '("NOSSE=TRUE")))
4823 ;; don't build any bundled dependencies
4824 "BUILD_LUA="
4825 "BUILD_SQLITE="
4826 "BUILD_ZLIB="
4827 "-Csource"))
4828 #:phases
4829 (modify-phases %standard-phases
4830 (add-after 'unpack 'find-SDL-image
4831 (lambda _
4832 (substitute* "source/windowmanager-sdl.cc"
4833 (("SDL_image.h") "SDL2/SDL_image.h"))
4834 #t))
4835 (delete 'configure)
4836 (replace 'check
4837 (lambda* (#:key inputs outputs make-flags #:allow-other-keys)
4838 (setenv "HOME" (getcwd))
4839 ;; Fake a terminal for the test cases.
4840 (setenv "TERM" "xterm-256color")
4841 ;; Run the tests that don't require a debug build.
4842 (apply invoke "make" "nondebugtest"
4843 (format #f "-j~d" (parallel-job-count))
4844 ;; Force command line build for test cases.
4845 (append make-flags '("GAME=crawl" "TILES="))))))))
4846 (synopsis "Roguelike dungeon crawler game")
4847 (description "Dungeon Crawl Stone Soup (also known as \"Crawl\" or DCSS
4848 for short) is a roguelike adventure through dungeons filled with dangerous
4849 monsters in a quest to find the mystifyingly fabulous Orb of Zot.")
4850 (home-page "https://crawl.develz.org")
4851 (license (list license:gpl2+
4852 license:bsd-2
4853 license:bsd-3
4854 license:cc0
4855 license:expat
4856 license:zlib
4857 license:asl2.0))))
4858
4859 (define-public dungeon-crawl-stone-soup
4860 (deprecated-package "dungeon-crawl-stone-soup" crawl))
4861
4862 ;; The linter here claims that patch file names should start with the package
4863 ;; name. But, in this case, the patches are inherited from crawl with the
4864 ;; "crawl-" prefix instead of "crawl-tiles-".
4865 (define-public crawl-tiles
4866 (package
4867 (inherit crawl)
4868 (name "crawl-tiles")
4869 (arguments
4870 (substitute-keyword-arguments
4871 (package-arguments crawl)
4872 ((#:make-flags flags)
4873 `(let ((dejavu (assoc-ref %build-inputs "font-dejavu")))
4874 (cons*
4875 (string-append "PROPORTIONAL_FONT=" dejavu
4876 "/share/fonts/truetype/DejaVuSans.ttf")
4877 (string-append "MONOSPACED_FONT=" dejavu
4878 "/share/fonts/truetype/DejaVuSansMono.ttf")
4879 "TILES=y"
4880 ;; Rename the executable to allow parallel installation with crawl.
4881 "GAME=crawl-tiles"
4882 ,flags)))))
4883 (inputs
4884 `(,@(package-inputs crawl)
4885 ("font-dejavu" ,font-dejavu)
4886 ("freetype6" ,freetype)
4887 ("glu" ,glu)
4888 ("libpng" ,libpng)
4889 ("sdl2" ,sdl2)
4890 ("sdl2-image" ,sdl2-image)
4891 ("sdl2-mixer" ,sdl2-mixer)))
4892 (native-inputs
4893 `(,@(package-native-inputs crawl)
4894 ("pngcrush" ,pngcrush)
4895 ("which" ,which)))
4896 (synopsis "Graphical roguelike dungeon crawler game")))
4897
4898 (define-public dungeon-crawl-stone-soup-tiles
4899 (deprecated-package "dungeon-crawl-stone-soup-tiles" crawl-tiles))
4900
4901 (define-public lugaru
4902 (package
4903 (name "lugaru")
4904 (version "1.2")
4905 (source (origin
4906 (method url-fetch)
4907 (uri (string-append "https://bitbucket.org/osslugaru/lugaru/downloads/"
4908 "lugaru-" version ".tar.xz"))
4909 (sha256
4910 (base32
4911 "15zgcshy22q51rm72zi6y9z7qlgnz5iw3gczjdlir4bqmxy4gspk"))))
4912 (build-system cmake-build-system)
4913 (arguments
4914 `(#:configure-flags
4915 (list "-DSYSTEM_INSTALL=ON")
4916 ;; no test target
4917 #:tests? #f))
4918 (native-inputs
4919 `(("pkg-config" ,pkg-config)))
4920 (inputs
4921 `(("sdl2" ,sdl2)
4922 ("glu" ,glu)
4923 ("libjpeg" ,libjpeg-turbo)
4924 ("libpng" ,libpng)
4925 ("openal" ,openal)
4926 ("vorbis" ,libvorbis)
4927 ("zlib" ,zlib)))
4928 (home-page "https://osslugaru.gitlab.io")
4929 (synopsis "Cross-platform third-person action game")
4930 (description "Lugaru is a third-person action game. The main character,
4931 Turner, is an anthropomorphic rebel bunny rabbit with impressive combat skills.
4932 In his quest to find those responsible for slaughtering his village, he uncovers
4933 a far-reaching conspiracy involving the corrupt leaders of the rabbit republic
4934 and the starving wolves from a nearby den. Turner takes it upon himself to
4935 fight against their plot and save his fellow rabbits from slavery.")
4936 (license (list license:gpl2+ ; code
4937 ;; assets:
4938 license:cc-by-sa3.0
4939 license:cc-by-sa4.0))))
4940
4941 (define-public 0ad-data
4942 (package
4943 (name "0ad-data")
4944 (version "0.0.23b-alpha")
4945 (source
4946 (origin
4947 (method url-fetch)
4948 (uri (string-append "https://releases.wildfiregames.com/0ad-"
4949 version "-unix-data.tar.xz"))
4950 (file-name (string-append name "-" version ".tar.xz"))
4951 (sha256
4952 (base32
4953 "04x7729hk6zw1xj3n4s4lvaviijsnbjf5rhzvjxlr5fygvg4l6z1"))
4954 (modules '((guix build utils)))
4955 (snippet
4956 #~(begin
4957 (for-each (lambda (name)
4958 (let* ((dir (string-append "binaries/data/mods/" name))
4959 (file (string-append dir "/" name ".zip"))
4960 (unzip #$(file-append unzip "/bin/unzip")))
4961 (invoke unzip "-d" dir file)
4962 (delete-file file)))
4963 '("mod" "public"))
4964 #t))))
4965 (build-system trivial-build-system)
4966 (native-inputs `(("tar" ,tar)
4967 ("xz" ,xz)))
4968 (arguments
4969 `(#:modules ((guix build utils))
4970 #:builder
4971 (begin
4972 (use-modules (guix build utils))
4973 (let ((out (assoc-ref %outputs "out"))
4974 (source (assoc-ref %build-inputs "source"))
4975 (tar (string-append (assoc-ref %build-inputs "tar") "/bin/tar"))
4976 (xz-path (string-append (assoc-ref %build-inputs "xz") "/bin")))
4977 (setenv "PATH" xz-path)
4978 (mkdir out)
4979 (invoke tar "xvf" source "-C" out "--strip=3")))))
4980 (synopsis "Data files for 0ad")
4981 (description "0ad-data provides the data files required by the game 0ad.")
4982 (home-page "https://play0ad.com")
4983 (license (list (license:fsdg-compatible
4984 "http://tavmjong.free.fr/FONTS/ArevCopyright.txt"
4985 "Similar to the license of the Bitstream Vera fonts.")
4986 (license:fsdg-compatible
4987 "https://www.gnome.org/fonts/#Final_Bitstream_Vera_Fonts")
4988 license:cc-by-sa3.0
4989 license:expat
4990 license:gfl1.0
4991 license:gpl2+
4992 license:gpl3+))))
4993
4994 (define-public 0ad
4995 (package
4996 (name "0ad")
4997 (version "0.0.23b-alpha")
4998 (source
4999 (origin
5000 (method url-fetch)
5001 (uri (string-append "https://releases.wildfiregames.com/0ad-"
5002 version "-unix-build.tar.xz"))
5003 (file-name (string-append name "-" version ".tar.xz"))
5004 (sha256
5005 (base32
5006 "0draa53xg69i5qhqym85658m45xhwkbiimaldj4sr3703rjgggq1"))))
5007 ;; A snippet here would cause a build failure because of timestamps
5008 ;; reset. See https://bugs.gnu.org/26734.
5009 (inputs
5010 `(("0ad-data" ,0ad-data)
5011 ("curl" ,curl)
5012 ("enet" ,enet)
5013 ("gloox" ,gloox)
5014 ("icu4c" ,icu4c)
5015 ("libpng" ,libpng)
5016 ("libsodium" ,libsodium)
5017 ("libvorbis" ,libvorbis)
5018 ("libxcursor" ,libxcursor)
5019 ("libxml2" ,libxml2)
5020 ("miniupnpc" ,miniupnpc)
5021 ("mozjs-38" ,mozjs-38)
5022 ("openal" ,openal)
5023 ("sdl2" ,sdl2)
5024 ("wxwidgets" ,wxwidgets)
5025 ("zlib" ,zlib)))
5026 (native-inputs
5027 `(("boost" ,boost)
5028 ("cmake" ,cmake-minimal)
5029 ("mesa" ,mesa)
5030 ("pkg-config" ,pkg-config)
5031 ("python-2" ,python-2)))
5032 (build-system gnu-build-system)
5033 (arguments
5034 `(#:make-flags '("config=release" "verbose=1" "-C" "build/workspaces/gcc")
5035 #:phases
5036 (modify-phases %standard-phases
5037 (add-after 'unpack 'delete-bundles
5038 (lambda _
5039 (delete-file-recursively "libraries/source/spidermonkey")
5040 #t))
5041 (add-after 'unpack 'fix-x11-includes
5042 (lambda _
5043 (substitute* "source/lib/sysdep/os/unix/x/x.cpp"
5044 (("<Xlib.h>") "<X11/Xlib.h>"))
5045 (substitute* "source/lib/sysdep/os/unix/x/x.cpp"
5046 (("<Xatom.h>") "<X11/Xatom.h>"))
5047 (substitute* "source/lib/sysdep/os/unix/x/x.cpp"
5048 (("<Xcursor/Xcursor.h>") "<X11/Xcursor/Xcursor.h>"))
5049 #t))
5050 (replace 'configure
5051 (lambda* (#:key inputs outputs #:allow-other-keys)
5052 (let* ((jobs (number->string (parallel-job-count)))
5053 (out (assoc-ref outputs "out"))
5054 (lib (string-append out "/lib"))
5055 (data (string-append out "/share/0ad")))
5056 (setenv "JOBS" (string-append "-j" jobs))
5057 (setenv "CC" "gcc")
5058 (with-directory-excursion "build/workspaces"
5059 (invoke "./update-workspaces.sh"
5060 (string-append "--libdir=" lib)
5061 (string-append "--datadir=" data)
5062 ;; TODO: "--with-system-nvtt"
5063 "--with-system-mozjs38")))))
5064 (delete 'check)
5065 (replace 'install
5066 (lambda* (#:key inputs outputs #:allow-other-keys)
5067 (chdir "binaries")
5068 (let* ((out (assoc-ref outputs "out"))
5069 (bin (string-append out "/bin"))
5070 (lib (string-append out "/lib"))
5071 (data (string-append out "/share/0ad"))
5072 (applications (string-append out "/share/applications"))
5073 (pixmaps (string-append out "/share/pixmaps"))
5074 (0ad-data (assoc-ref inputs "0ad-data")))
5075 ;; data
5076 (copy-recursively "data" data)
5077 (for-each (lambda (file)
5078 (symlink (string-append 0ad-data "/" file)
5079 (string-append data "/" file)))
5080 '("config" "mods/mod" "mods/public" "tools"))
5081 ;; libraries
5082 (for-each (lambda (file)
5083 (install-file file lib))
5084 (find-files "system" "\\.so$"))
5085 ;; binaries
5086 (install-file "system/pyrogenesis" bin)
5087 (with-directory-excursion bin
5088 (symlink "pyrogenesis" "0ad"))
5089 ;; resources
5090 (with-directory-excursion "../build/resources"
5091 (install-file "0ad.desktop" applications)
5092 (install-file "0ad.png" pixmaps))
5093 #t)))
5094 (add-after 'install 'check
5095 (lambda _
5096 (with-directory-excursion "system"
5097 (invoke "./test")))))))
5098 (home-page "https://play0ad.com")
5099 (synopsis "3D real-time strategy game of ancient warfare")
5100 (description "0 A.D. is a real-time strategy (RTS) game of ancient
5101 warfare. It's a historically-based war/economy game that allows players to
5102 relive or rewrite the history of twelve ancient civilizations, each depicted
5103 at their peak of economic growth and military prowess.
5104
5105 0ad needs a window manager that supports 'Extended Window Manager Hints'.")
5106 (license (list license:bsd-2
5107 license:bsd-3
5108 license:expat
5109 license:gpl2+
5110 license:ibmpl1.0
5111 license:isc
5112 license:lgpl2.1
5113 license:lgpl3
5114 license:mpl2.0
5115 license:zlib))))
5116
5117 ;; There have been no official releases.
5118 (define-public open-adventure
5119 (let* ((commit "d43854f0f6bb8e9eea7fbce80348150e7e7fc34d")
5120 (revision "2"))
5121 (package
5122 (name "open-adventure")
5123 (version (string-append "2.5-" revision "." (string-take commit 7)))
5124 (source (origin
5125 (method git-fetch)
5126 (uri (git-reference
5127 (url "https://gitlab.com/esr/open-adventure")
5128 (commit commit)))
5129 (file-name (string-append name "-" version "-checkout"))
5130 (sha256
5131 (base32
5132 "08bwrvf4axb1rsfd6ia1fddsky9pc1p350vjskhaakg2czc6dsk0"))))
5133 (build-system gnu-build-system)
5134 (arguments
5135 `(#:make-flags (list "CC=gcc")
5136 #:parallel-build? #f ; not supported
5137 #:phases
5138 (modify-phases %standard-phases
5139 (replace 'configure
5140 (lambda* (#:key inputs outputs #:allow-other-keys)
5141 ;; Linenoise is meant to be included, so we have to
5142 ;; copy it into the working directory.
5143 (let* ((linenoise (assoc-ref inputs "linenoise"))
5144 (noisepath (string-append linenoise "/include/linenoise"))
5145 (out (assoc-ref outputs "out")))
5146 (copy-recursively noisepath "linenoise"))
5147 #t))
5148 (add-before 'build 'use-echo
5149 (lambda _
5150 (substitute* "tests/Makefile"
5151 (("/bin/echo") (which "echo")))
5152 #t))
5153 (add-after 'build 'build-manpage
5154 (lambda _
5155 ;; This target is missing a dependency
5156 (substitute* "Makefile"
5157 ((".adoc.6:" line)
5158 (string-append line " advent.adoc")))
5159 (invoke "make" ".adoc.6")))
5160 ;; There is no install target
5161 (replace 'install
5162 (lambda* (#:key outputs #:allow-other-keys)
5163 (let* ((out (assoc-ref outputs "out"))
5164 (bin (string-append out "/bin"))
5165 (man (string-append out "/share/man/man6")))
5166 (install-file "advent" bin)
5167 (install-file "advent.6" man))
5168 #t)))))
5169 (native-inputs
5170 `(("asciidoc" ,asciidoc)
5171 ("linenoise" ,linenoise)
5172 ("python" ,python)
5173 ("python-pyyaml" ,python-pyyaml)))
5174 (home-page "https://gitlab.com/esr/open-adventure")
5175 (synopsis "Colossal Cave Adventure")
5176 (description "The original Colossal Cave Adventure from 1976 was the
5177 origin of all text adventures, dungeon-crawl (computer) games, and
5178 computer-hosted roleplaying games. This is the last version released by
5179 Crowther & Woods, its original authors, in 1995. It has been known as
5180 \"adventure 2.5\" and \"430-point adventure\".")
5181 (license license:bsd-2))))
5182
5183 (define-public tome4
5184 (package
5185 (name "tome4")
5186 (version "1.6.6")
5187 (synopsis "Single-player, RPG roguelike game set in the world of Eyal")
5188 (source
5189 (origin
5190 (method url-fetch)
5191 (uri (string-append "https://te4.org/dl/t-engine/t-engine4-src-"
5192 version ".tar.bz2"))
5193 (sha256
5194 (base32
5195 "1amx0y49scy9hq71wjvkdzvgclwa2g54vkv4bf40mxyp4pl0bq7m"))
5196 (modules '((guix build utils)))
5197 (snippet
5198 '(begin
5199 (substitute* '("src/music.h" "src/tSDL.h")
5200 (("#elif defined(__FreeBSD__)" line)
5201 (string-append
5202 line " || defined(__GNUC__)")))
5203 (substitute* '("src/tgl.h")
5204 (("#include <GL/glext.h>") ""))
5205 #t))))
5206 (build-system gnu-build-system)
5207 (native-inputs
5208 `(("unzip" ,unzip)))
5209 (inputs
5210 `(("sdl-union" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer sdl2-ttf)))
5211 ("glu" ,glu)
5212 ("premake4" ,premake4)
5213 ("openal" ,openal)
5214 ("vorbis" ,libvorbis)
5215 ("luajit" ,luajit)))
5216 (arguments
5217 `(#:make-flags '("CC=gcc" "config=release")
5218 ;; XXX: Building in parallel occasionally causes this build failure:
5219 ;; ../src/luajit2/src/host/buildvm.c:73:10: fatal error: buildvm_arch.h:
5220 ;; No such file or directory
5221 #:parallel-build? #f
5222 #:phases (modify-phases %standard-phases
5223 (delete 'bootstrap)
5224 (replace 'configure
5225 (lambda _
5226 (invoke "premake4" "gmake")
5227 #t))
5228 (add-after 'set-paths 'set-sdl-paths
5229 (lambda* (#:key inputs #:allow-other-keys)
5230 (setenv "CPATH"
5231 (string-append (assoc-ref inputs "sdl-union")
5232 "/include/SDL2:"
5233 (getenv "CPATH")))
5234 #t))
5235 (delete 'check)
5236 ;; premake doesn't provide install target
5237 (replace 'install
5238 (lambda* (#:key inputs outputs #:allow-other-keys)
5239 (let* ((out (assoc-ref outputs "out"))
5240 (usr (string-append out "/usr"))
5241 (bin (string-append out "/bin"))
5242 (licenses (string-append out "/share/licenses"))
5243 (documents (string-append out "/share/doc"))
5244 (pixmaps (string-append out "/share/pixmaps"))
5245 (icon "te4-icon.png")
5246 (data (string-append out "/share/" ,name))
5247 (applications (string-append
5248 out "/share/applications"))
5249 (unzip (string-append
5250 (assoc-ref inputs "unzip") "/bin/unzip"))
5251 (wrapper (string-append bin "/" ,name)))
5252 ;; icon
5253 (mkdir-p pixmaps)
5254 (invoke unzip "-j"
5255 (string-append
5256 "game/engines/te4-" ,version ".teae")
5257 (string-append
5258 "data/gfx/" icon) "-d" pixmaps)
5259 ;; game executable
5260 (install-file "t-engine" data)
5261 (mkdir-p bin)
5262 (with-output-to-file wrapper
5263 (lambda ()
5264 (display
5265 (string-append
5266 "#!/bin/sh\n"
5267 ;; No bootstrap code found,
5268 ;; defaulting to working directory
5269 ;; for engine code!
5270 "cd " data "\n"
5271 "exec -a tome4 ./t-engine \"$@\"\n"))))
5272 (chmod wrapper #o555)
5273 ;; licenses
5274 (for-each (lambda (file)
5275 (install-file file licenses))
5276 '("COPYING" "COPYING-MEDIA"))
5277 ;; documents
5278 (for-each (lambda (file)
5279 (install-file file documents))
5280 '("CONTRIBUTING" "CREDITS"))
5281 ;; data
5282 (copy-recursively "bootstrap" (string-append
5283 data "/bootstrap"))
5284 (copy-recursively "game" (string-append data "/game"))
5285 ;; launcher
5286 (mkdir-p applications)
5287 (with-output-to-file (string-append applications "/"
5288 ,name ".desktop")
5289 (lambda ()
5290 (display
5291 (string-append
5292 "[Desktop Entry]
5293 Name=ToME4
5294 Comment=" ,synopsis "\n"
5295 "Exec=" ,name "\n"
5296 "Icon=" icon "\n"
5297 "Terminal=false
5298 Type=Application
5299 Categories=Game;RolePlaying;\n")))))
5300 #t)))))
5301 (home-page "https://te4.org")
5302 (description "Tales of Maj’Eyal (ToME) RPG, featuring tactical turn-based
5303 combat and advanced character building. Play as one of many unique races and
5304 classes in the lore-filled world of Eyal, exploring random dungeons, facing
5305 challenging battles, and developing characters with your own tailored mix of
5306 abilities and powers. With a modern graphical and customisable interface,
5307 intuitive mouse control, streamlined mechanics and deep, challenging combat,
5308 Tales of Maj’Eyal offers engaging roguelike gameplay for the 21st century.")
5309 (license license:gpl3+)))
5310
5311 (define-public tales-of-maj-eyal
5312 (deprecated-package "tales-of-maj-eyal" tome4))
5313
5314 (define-public quakespasm
5315 (package
5316 (name "quakespasm")
5317 (version "0.93.1")
5318 (source
5319 (origin
5320 (method url-fetch)
5321 (uri (string-append "mirror://sourceforge/quakespasm/Source/quakespasm-"
5322 version ".tgz"))
5323 (sha256
5324 (base32
5325 "1bimv18f6rzhyjz78yvw2vqr5n0kdqbcqmq7cb3m951xgsxfcgpd"))))
5326 (arguments
5327 `(#:tests? #f
5328 #:make-flags '("CC=gcc"
5329 "MP3LIB=mpg123"
5330 "USE_CODEC_FLAC=1"
5331 "USE_CODEC_MIKMOD=1"
5332 "USE_SDL2=1"
5333 "-CQuake")
5334 #:phases (modify-phases %standard-phases
5335 (delete 'configure)
5336 (add-after 'unpack 'fix-makefile-paths
5337 (lambda* (#:key outputs #:allow-other-keys)
5338 (let ((out (assoc-ref outputs "out")))
5339 (mkdir-p (string-append out "/bin"))
5340 (substitute* "Quake/Makefile"
5341 (("/usr/local/games")
5342 (string-append out "/bin")))
5343 #t))))))
5344 (build-system gnu-build-system)
5345 (inputs `(("libmikmod" ,libmikmod)
5346 ("libvorbis" ,libvorbis)
5347 ("flac" ,flac)
5348 ("mesa" ,mesa)
5349 ("mpg123" ,mpg123)
5350 ("sdl2" ,sdl2)))
5351 (synopsis "First person shooter engine for Quake 1")
5352 (description "Quakespasm is a modern engine for id software's Quake 1.
5353 It includes support for 64 bit CPUs, custom music playback, a new sound driver,
5354 some graphical niceities, and numerous bug-fixes and other improvements.")
5355 (home-page "http://quakespasm.sourceforge.net/")
5356 (license license:gpl2+)))
5357
5358 (define-public vkquake
5359 (package
5360 (inherit quakespasm)
5361 (name "vkquake")
5362 (version "1.01.0")
5363 (source
5364 (origin
5365 (method git-fetch)
5366 (uri (git-reference
5367 (url "https://github.com/Novum/vkQuake.git")
5368 (commit version)))
5369 (file-name (git-file-name name version))
5370 (sha256
5371 (base32 "1iwin8j5kbyrknbkhjgpy8nmm7pxqzr0daa9gn7p38qhg2mh0a39"))))
5372 (arguments
5373 `(#:make-flags
5374 (let ((vulkanlib (string-append (assoc-ref %build-inputs
5375 "vulkan-loader") "/lib")))
5376 (list "CC=gcc"
5377 "MP3LIB=mpg123"
5378 "USE_CODEC_FLAC=1"
5379 "USE_CODEC_MIKMOD=1"
5380 "USE_SDL2=1"
5381 (string-append "LDFLAGS=-Wl,-rpath=" vulkanlib)
5382 "-CQuake"))
5383 #:phases (modify-phases %standard-phases
5384 (delete 'configure)
5385 (add-after 'unpack 'fix-makefile-paths
5386 (lambda* (#:key outputs #:allow-other-keys)
5387 (let ((vulkan (assoc-ref %build-inputs
5388 "vulkan-loader"))
5389 (out (assoc-ref outputs "out")))
5390 (mkdir-p (string-append out "/bin"))
5391 (substitute* "Quake/Makefile" ((" /usr")
5392 (string-append " " out)))
5393 (substitute* "Quake/Makefile" (("/games")
5394 (string-append "/bin")))
5395 (substitute* "Quake/Makefile" (("..VULKAN_SDK.") vulkan))
5396 #t))))
5397 ,@(strip-keyword-arguments '(#:make-flags #:phases)
5398 (package-arguments quakespasm))))
5399 (inputs `(("vulkan-headers" ,vulkan-headers)
5400 ("vulkan-loader" ,vulkan-loader)
5401 ,@(package-inputs quakespasm)))
5402 (description "vkquake is a modern engine for id software's Quake 1.
5403 It includes support for 64 bit CPUs, custom music playback, a new sound driver,
5404 some graphical niceities, and numerous bug-fixes and other improvements.")
5405 (home-page "https://github.com/Novum/vkQuake")))
5406
5407 (define-public yamagi-quake2
5408 (package
5409 (name "yamagi-quake2")
5410 (version "7.10")
5411 (source
5412 (origin
5413 (method url-fetch)
5414 (uri (string-append "https://deponie.yamagi.org/quake2/quake2-"
5415 version ".tar.xz"))
5416 (sha256
5417 (base32
5418 "0psinbg25mysd58k99s1n34w31w5hj1vppb39gdjb0zqi6sl6cps"))))
5419 (build-system gnu-build-system)
5420 (arguments
5421 `(#:tests? #f
5422 #:make-flags
5423 (list "CC=gcc"
5424 ;; link openAL instead of using dlopen at runtime
5425 "DLOPEN_OPENAL=\"no\""
5426 ;; an optional directory where it will look for quake2 data files
5427 ;; in addition to the current working directory
5428 "WITH_SYSTEMWIDE=yes"
5429 "WITH_SYSTEMDIR=\"/opt/quake2\"")
5430 #:phases
5431 (modify-phases %standard-phases
5432 (delete 'configure)
5433 (replace 'install
5434 (lambda* (#:key outputs #:allow-other-keys)
5435 (let ((out (assoc-ref outputs "out")))
5436 (mkdir-p (string-append out "/lib"))
5437 (mkdir-p (string-append out "/bin"))
5438 ;; The yamagi-quake2 binary must be in the same directory
5439 ;; as it's engine libraries, but symlinking it to /bin is okay
5440 ;; https://github.com/yquake2/yquake2/blob/master/stuff/packaging.md
5441 (copy-recursively "release"
5442 (string-append out "/lib/yamagi-quake2"))
5443 (symlink (string-append out "/lib/yamagi-quake2/quake2")
5444 (string-append out "/bin/yamagi-quake2"))
5445 (symlink (string-append out "/lib/yamagi-quake2/q2ded")
5446 (string-append out "/bin/yamagi-q2ded"))))))))
5447 (inputs `(("sdl2" ,sdl2)
5448 ("mesa" ,mesa)
5449 ("libvorbis" ,libvorbis)
5450 ("zlib" ,zlib)
5451 ("openal" ,openal)))
5452 (native-inputs `(("pkg-config" ,pkg-config)))
5453 (synopsis "First person shooter engine based on quake2")
5454 (description "Yamagi Quake II is an enhanced client for id Software's Quake II.
5455 The main focus is an unchanged single player experience like back in 1997,
5456 thus the gameplay and the graphics are unaltered. However the user may use one
5457 of the unofficial retexturing packs. In comparison with the official client,
5458 over 1000 bugs were fixed and an extensive code audit done,
5459 making Yamagi Quake II one of the most solid Quake II implementations available.")
5460 (home-page "https://www.yamagi.org/quake2/")
5461 (license (list license:gpl2+ ; game and server
5462 (license:non-copyleft ; info-zip
5463 "file://LICENSE"
5464 "See Info-Zip section.")
5465 license:public-domain)))) ; stb
5466
5467 (define-public nudoku
5468 (package
5469 (name "nudoku")
5470 (version "1.0.0")
5471 (source (origin
5472 (method url-fetch)
5473 (uri (string-append "https://github.com/jubalh/nudoku/"
5474 "releases/download/" version
5475 "/nudoku-" version ".tar.xz"))
5476 (sha256
5477 (base32
5478 "0nr2j2z07nxk70s8xnmmpzccxicf7kn5mbwby2kg6aq8paarjm8k"))))
5479 (build-system gnu-build-system)
5480 (inputs `(("ncurses" ,ncurses)))
5481 (home-page "https://jubalh.github.io/nudoku/")
5482 (synopsis "Sudoku for your terminal")
5483 (description "Nudoku is a ncurses-based Sudoku game for your terminal.")
5484 (license license:gpl3+)))
5485
5486 (define-public the-butterfly-effect
5487 (package
5488 (name "the-butterfly-effect")
5489 (version "0.9.3.1")
5490 (source
5491 (origin
5492 (method git-fetch)
5493 (uri (git-reference
5494 (url "https://github.com/the-butterfly-effect/tbe.git")
5495 (commit (string-append "v" version))))
5496 (file-name (git-file-name name version))
5497 (sha256
5498 (base32
5499 "1ag2cp346f9bz9qy6za6q54id44d2ypvkyhvnjha14qzzapwaysj"))))
5500 (build-system gnu-build-system)
5501 (arguments
5502 `(#:phases
5503 (modify-phases %standard-phases
5504 (delete 'configure)
5505 ;; There is no "install" phase. By default, tbe is installed
5506 ;; in the build directory. Provide our own installation.
5507 (replace 'install
5508 (lambda* (#:key outputs #:allow-other-keys)
5509 (let* ((out (assoc-ref outputs "out"))
5510 (bin (string-append out "/bin"))
5511 (share (string-append out "/share")))
5512 (install-file "usr/games/tbe" bin)
5513 (mkdir-p share)
5514 (copy-recursively "usr/share" share)
5515 #t))))
5516 ;; Test suite requires a running Xorg server. Even when
5517 ;; provided, it fails with "D-Bus library appears to be
5518 ;; incorrectly set up; failed to read machine uuid: Failed to
5519 ;; open "/etc/machine-id": No such file or directory" along
5520 ;; with multiple "QPainter:: ... Painter not active" warnings.
5521 #:tests? #f))
5522 (inputs
5523 `(("qtbase" ,qtbase)
5524 ("qtsvg" ,qtsvg)))
5525 (native-inputs
5526 `(("cmake" ,cmake-minimal)
5527 ("gettext-minimal" ,gettext-minimal)
5528 ("qttools" ,qttools)))
5529 (synopsis "Realistic physics puzzle game")
5530 (description "The Butterfly Effect (tbe) is a game that uses
5531 realistic physics simulations to combine lots of simple mechanical
5532 elements to achieve a simple goal in the most complex way possible.")
5533 (home-page "http://the-butterfly-effect.org/")
5534 ;; Main license is GPL2-only. However, artwork is distributed
5535 ;; under various licenses, listed here.
5536 (license (list license:gpl2 license:public-domain license:expat
5537 license:cc-by-sa3.0 license:gpl3+ license:wtfpl2))))
5538
5539 (define-public pioneer
5540 (package
5541 (name "pioneer")
5542 (version "20190203")
5543 (source (origin
5544 (method git-fetch)
5545 (uri (git-reference
5546 (url "https://github.com/pioneerspacesim/pioneer.git")
5547 (commit version)))
5548 (file-name (git-file-name name version))
5549 (sha256
5550 (base32
5551 "1g34wvgyvz793dhm1k64kl82ib0cavkbg0f2p3fp05b457ycljff"))))
5552 (build-system cmake-build-system)
5553 (native-inputs
5554 `(("pkg-config" ,pkg-config)))
5555 (inputs
5556 `(("assimp" ,assimp)
5557 ("curl" ,curl)
5558 ("freetype" ,freetype)
5559 ("glew" ,glew)
5560 ("glu" ,glu)
5561 ("libpng" ,libpng)
5562 ("libsigc++" ,libsigc++)
5563 ("libvorbis" ,libvorbis)
5564 ("lua" ,lua-5.2) ;not compatible with 5.3
5565 ("mesa" ,mesa)
5566 ("sdl" ,(sdl-union (list sdl2 sdl2-image)))))
5567 (arguments
5568 `(#:tests? #f ;tests are broken
5569 #:configure-flags (list "-DUSE_SYSTEM_LIBLUA:BOOL=YES"
5570 (string-append "-DPIONEER_DATA_DIR="
5571 %output "/share/games/pioneer"))))
5572 (home-page "http://pioneerspacesim.net")
5573 (synopsis "Game of lonely space adventure")
5574 (description
5575 "Pioneer is a space adventure game set in our galaxy at the turn of the
5576 31st century. The game is open-ended, and you are free to eke out whatever
5577 kind of space-faring existence you can think of. Look for fame or fortune by
5578 exploring the millions of star systems. Turn to a life of crime as a pirate,
5579 smuggler or bounty hunter. Forge and break alliances with the various
5580 factions fighting for power, freedom or self-determination. The universe is
5581 whatever you make of it.")
5582 (license license:gpl3)))
5583
5584 (define-public badass
5585 (let ((commit "3c3cd669b4fc8f73a102e3702788f7b28dc47dbb")
5586 (revision "0"))
5587 (package
5588 (name "badass")
5589 (version (git-version "0.0" revision commit))
5590 (source (origin
5591 (method git-fetch)
5592 (uri (git-reference
5593 (url "https://github.com/umayr/badass.git")
5594 (commit commit)))
5595 (file-name (git-file-name name version))
5596 (sha256
5597 (base32
5598 "05c9vdcb5ym3z0n5ll3v39mw4yl9jcjnlydmn0yl89ai9pv71zb6"))))
5599 (build-system go-build-system)
5600 (arguments
5601 '(#:import-path "github.com/umayr/badass"))
5602 (synopsis "Hacking contribution graphs in git")
5603 (description
5604 "Badass generates false commits for a range of dates, essentially
5605 hacking the gamification of contribution graphs on platforms such as
5606 Github or Gitlab.")
5607 (home-page "https://github.com/umayr/badass")
5608 (license license:expat))))
5609
5610 (define-public colobot
5611 (package
5612 (name "colobot")
5613 (version "0.1.12-alpha")
5614 (source
5615 (origin
5616 (method git-fetch)
5617 (uri (git-reference
5618 (url "https://github.com/colobot/colobot.git")
5619 (commit (string-append "colobot-gold-" version))
5620 (recursive? #t))) ;for "data/" subdir
5621 (file-name (git-file-name name version))
5622 (sha256
5623 (base32
5624 "1c181cclkrnspgs07lvndg2c81cjq3smkv7qim8c470cj88rcrp2"))))
5625 (build-system cmake-build-system)
5626 (arguments
5627 `(#:tests? #f ;no test
5628 #:phases
5629 (modify-phases %standard-phases
5630 (add-after 'unpack 'make-git-checkout-writable
5631 (lambda _
5632 (for-each make-file-writable (find-files "."))
5633 #t))
5634 (add-after 'unpack 'fix-directories
5635 (lambda _
5636 (substitute* "CMakeLists.txt"
5637 (("(\\$\\{CMAKE_INSTALL_PREFIX\\})/games" _ prefix)
5638 (string-append prefix "/bin"))
5639 (("(\\$\\{CMAKE_INSTALL_PREFIX\\}/share)/games/colobot" _ prefix)
5640 (string-append prefix "/colobot")))
5641 #t))
5642 (add-after 'fix-directories 'install-music
5643 ;; Retrieve and install music files.
5644 (lambda* (#:key inputs #:allow-other-keys)
5645 ;; Installation process tries to download music files using
5646 ;; "wget" if not already present. Since we are going another
5647 ;; route, skip "wget" command check.
5648 (substitute* "data/music/CMakeLists.txt"
5649 (("find_program\\(WGET wget\\)") ""))
5650 ;; Populate "music/" directory.
5651 (let ((data (assoc-ref inputs "colobot-music")))
5652 (invoke "tar" "-xvf" data "-Cdata/music"))
5653 #t)))))
5654 (native-inputs
5655 `(("colobot-music"
5656 ,(origin
5657 (method url-fetch)
5658 (uri (string-append "https://colobot.info/files/music/"
5659 "colobot-music_ogg_" version ".tar.gz"))
5660 (sha256
5661 (base32
5662 "1s86cd36rwkff329mb1ay1wi5qqyi35564ppgr3f4qqz9wj9vs2m"))))
5663 ("gettext" ,gettext-minimal)
5664 ("librsvg" ,librsvg)
5665 ("po4a" ,po4a)
5666 ("python" ,python-wrapper)))
5667 (inputs
5668 `(("boost" ,boost)
5669 ("glew" ,glew)
5670 ("libogg" ,libogg)
5671 ("libpng" ,libpng)
5672 ("libsndfile" ,libsndfile)
5673 ("libvorbis" ,libvorbis)
5674 ("openal" ,openal)
5675 ("physfs" ,physfs)
5676 ("sdl" ,(sdl-union (list sdl2 sdl2-image sdl2-ttf)))))
5677 (synopsis "Educational programming strategy game")
5678 (description "Colobot: Gold Edition is a real-time strategy game, where
5679 you can program your units (bots) in a language called CBOT, which is similar
5680 to C++ and Java. Your mission is to find a new planet to live and survive.
5681 You can save humanity and get programming skills!")
5682 (home-page "https://colobot.info")
5683 (license license:gpl3+)))
5684
5685 (define-public gzdoom
5686 (package
5687 (name "gzdoom")
5688 (version "3.7.2")
5689 (source (origin
5690 (method url-fetch)
5691 (uri
5692 (string-append "https://zdoom.org/files/gzdoom/src/gzdoom-src-g"
5693 version ".zip"))
5694 (sha256
5695 (base32
5696 "0182f160m8d0c3nywjw3dxvnz93xjs4cn8akx7137cha4s05wdq7"))
5697 (patches (search-patches "gzdoom-search-in-installed-share.patch"))
5698 (modules '((guix build utils)))
5699 (snippet
5700 '(begin
5701 (delete-file-recursively "bzip2")
5702 (delete-file-recursively "game-music-emu")
5703 (delete-file-recursively "jpeg")
5704 (delete-file-recursively "zlib")
5705 #t))))
5706 (arguments
5707 '(#:tests? #f
5708 #:configure-flags
5709 (let ((out (assoc-ref %outputs "out")))
5710 (list
5711 (string-append
5712 "-DCMAKE_CXX_FLAGS:="
5713 "-DSHARE_DIR=\\\"" out "/share/\\\" "
5714 "-DGUIX_OUT_PK3=\\\"" out "/share/games/doom\\\"")
5715 ;; look for libraries at buildtime instead of
5716 ;; dynamically finding them at runtime
5717 "-DDYN_OPENAL=OFF"
5718 "-DDYN_FLUIDSYNTH=OFF"
5719 "-DDYN_GTK=OFF"
5720 "-DDYN_MPG123=OFF"
5721 "-DDYN_SNDFILE=OFF"))
5722 #:phases
5723 (modify-phases %standard-phases
5724 (add-before 'configure 'fix-referenced-paths
5725 (lambda* (#:key inputs outputs #:allow-other-keys)
5726 (let ((fluid-3 (assoc-ref inputs "fluid-3"))
5727 (timidity++ (assoc-ref inputs "timidity++"))
5728 (out (assoc-ref outputs "out")))
5729
5730 (substitute*
5731 "src/CMakeLists.txt"
5732 (("COMMAND /bin/sh")
5733 (string-append "COMMAND " (which "sh"))))
5734
5735 (substitute*
5736 "src/sound/mididevices/music_fluidsynth_mididevice.cpp"
5737 (("/usr/share/sounds/sf2/FluidR3_GM.sf2")
5738 (string-append fluid-3 "/share/soundfonts/FluidR3Mono_GM.sf3")))
5739
5740 (substitute*
5741 "src/sound/mididevices/music_timiditypp_mididevice.cpp"
5742 (("exename = \"timidity\"")
5743 (string-append "exename = \"" timidity++ "/bin/timidity\"")))
5744 #t))))))
5745 (build-system cmake-build-system)
5746 (inputs `(("bzip2" ,bzip2)
5747 ("fluid-3" ,fluid-3)
5748 ("fluidsynth" ,fluidsynth-1) ;XXX: try using 2.x when updating
5749 ("gtk+3" ,gtk+)
5750 ("libgme" ,libgme)
5751 ("libjpeg" ,libjpeg)
5752 ("libsndfile" ,libsndfile)
5753 ("mesa" ,mesa)
5754 ("mpg123" ,mpg123)
5755 ("openal" ,openal)
5756 ("sdl2" ,sdl2)
5757 ("timidity++" ,timidity++)
5758 ("zlib" ,zlib)))
5759 (native-inputs `(("pkg-config" ,pkg-config)
5760 ("unzip" ,unzip)))
5761 (synopsis "Modern Doom 2 source port")
5762 (description "GZdoom is a port of the Doom 2 game engine, with a modern
5763 renderer. It improves modding support with ZDoom's advanced mapping features
5764 and the new ZScript language. In addition to Doom, it supports Heretic, Hexen,
5765 Strife, Chex Quest, and fan-created games like Harmony, Hacx and Freedoom.")
5766 (home-page "https://zdoom.org/index")
5767 ;; The source uses x86 assembly
5768 (supported-systems '("x86_64-linux" "i686-linux"))
5769 (license (list license:gpl3+ ; gzdoom game
5770 license:lgpl3+ ; gzdoom renderer
5771 license:expat ; gdtoa
5772 (license:non-copyleft ; modified dumb
5773 "file://dumb/licence.txt"
5774 "Dumb license, explicitly GPL compatible.")))))
5775
5776 (define-public odamex
5777 (package
5778 (name "odamex")
5779 (version "0.8.0")
5780 (source
5781 (origin
5782 (method url-fetch)
5783 (uri (string-append
5784 "mirror://sourceforge/odamex/Odamex/" version "/"
5785 "odamex-src-" version ".tar.gz"))
5786 (sha256
5787 (base32
5788 "1sh6lqj7vsdmnqz17hw0b6vy7xx6dp41k2sdw99ympsfa2xd1d2j"))))
5789 (build-system cmake-build-system)
5790 (arguments `(#:tests? #f)) ; no tests.
5791 (inputs
5792 `(("sdl" ,sdl)
5793 ("sdl-mixer" ,sdl-mixer)
5794 ("zlib" ,zlib)
5795 ("libpng" ,libpng)
5796 ("alsa-lib" ,alsa-lib)))
5797 (home-page "https://odamex.net/")
5798 (synopsis "Multiplayer Doom port")
5799 (description "Odamex is a modification of the Doom engine that
5800 allows players to easily join servers dedicated to playing Doom
5801 online.")
5802 (license license:gpl2+)))
5803
5804 (define-public chocolate-doom
5805 (package
5806 (name "chocolate-doom")
5807 (version "3.0.0")
5808 (source (origin
5809 (method url-fetch)
5810 (uri (string-append "https://www.chocolate-doom.org/downloads/"
5811 version
5812 "/chocolate-doom-"
5813 version
5814 ".tar.gz"))
5815 (sha256
5816 (base32
5817 "1f6sw6qa9z0a70dsjh5cs45fkyyxw68s7vkqlykihz8cjcisdbkk"))))
5818 (build-system gnu-build-system)
5819 (inputs `(("sdl2-net" ,sdl2-net)
5820 ("sdl2-mixer" , sdl2-mixer)
5821 ("sdl2" ,sdl2)))
5822 (native-inputs
5823 `(("pkg-config" ,pkg-config)))
5824 (synopsis "Doom source port preserving the look, feel, and bugs of vanilla
5825 Doom")
5826 (description
5827 "Chocolate Doom takes a different approach to other source ports. Its
5828 aim is to accurately reproduce the experience of playing Vanilla Doom. It is
5829 a conservative, historically accurate Doom source port, which is compatible
5830 with the thousands of mods and levels that were made before the Doom source
5831 code was released. Rather than flashy new graphics, Chocolate Doom's main
5832 features are its accurate reproduction of the game as it was played in the
5833 1990s. The project is developed around a carefully-considered philosophy that
5834 intentionally restricts which features may be added (and rejects any that
5835 affect gameplay).")
5836 (home-page "https://www.chocolate-doom.org/wiki/index.php/Chocolate_Doom")
5837 (license license:gpl2)))
5838
5839 (define-public crispy-doom
5840 (package
5841 (inherit chocolate-doom)
5842 (name "crispy-doom")
5843 (version "5.6.3")
5844 (source (origin
5845 (method git-fetch)
5846 (uri (git-reference
5847 (url "https://github.com/fabiangreffrath/crispy-doom.git")
5848 (commit (string-append "crispy-doom-" version))))
5849 (file-name (git-file-name name version))
5850 (sha256
5851 (base32 "0f319979wqfgm4pvsa6y5clg30p55l441kmrr8db0p5smyv3x2s4"))))
5852 (native-inputs
5853 (append
5854 (package-native-inputs chocolate-doom)
5855 `(("automake" ,automake)
5856 ("autoreconf" ,autoconf))))
5857 (arguments
5858 `(#:phases
5859 (modify-phases %standard-phases
5860 (replace 'bootstrap
5861 ;; the autogen.sh script in the source tree doesn't work
5862 (lambda _ (invoke "autoreconf" "-vif"))))))
5863 (synopsis "Limit-removing enhanced-resolution Doom source port based on
5864 Chocolate Doom")
5865 (description
5866 "Crispy Doom is a friendly fork of Chocolate Doom that provides a higher
5867 display resolution, removes the static limits of the Doom engine and offers
5868 further optional visual, tactical and physical enhancements while remaining
5869 entirely config file, savegame, netplay and demo compatible with the
5870 original.")
5871 (home-page "https://www.chocolate-doom.org/wiki/index.php/Crispy_Doom")))
5872
5873 (define-public fortune-mod
5874 (package
5875 (name "fortune-mod")
5876 (version "2.6.2")
5877 (source
5878 (origin
5879 (method git-fetch)
5880 (uri (git-reference
5881 (url "https://github.com/shlomif/fortune-mod")
5882 (commit (string-append "fortune-mod-" version))))
5883 (file-name (git-file-name name version))
5884 (sha256
5885 (base32
5886 "11xff87s8ifw2dqs90n0rjq0psv4i7ykybygmibsqjj7id3xxw4c"))))
5887 (build-system cmake-build-system)
5888 (arguments
5889 `(#:test-target "check"
5890 #:phases
5891 (modify-phases %standard-phases
5892 (add-after 'unpack 'fix-build-env
5893 (lambda* (#:key inputs #:allow-other-keys)
5894 (use-modules (guix build utils))
5895 (let* ((cmake-rules (assoc-ref inputs "cmake-rules")))
5896 (copy-file cmake-rules
5897 (string-append "fortune-mod/cmake/"
5898 (strip-store-file-name cmake-rules)))
5899 (chdir "fortune-mod")
5900 ;; TODO: Valgrind tests fail for some reason.
5901 ;; Similar issue: https://github.com/shlomif/fortune-mod/issues/21 (?)
5902 (delete-file "tests/t/valgrind.t")
5903 #t)))
5904 (add-after 'install 'fix-install-directory
5905 (lambda* (#:key outputs #:allow-other-keys)
5906 ;; Move binary from "games/" to "bin/" and remove the latter. This
5907 ;; is easier than patching CMakeLists.txt since the tests hard-code
5908 ;; the location as well.
5909 (let* ((out (assoc-ref outputs "out"))
5910 (bin (string-append out "/bin"))
5911 (games (string-append out "/games")))
5912 (rename-file (string-append games "/fortune")
5913 (string-append bin "/fortune"))
5914 (rmdir games)
5915 #t))))))
5916 (inputs `(("recode" ,recode)))
5917 (native-inputs
5918 `(("perl" ,perl)
5919 ;; The following is only needed for tests.
5920 ("perl-file-find-object" ,perl-file-find-object)
5921 ("perl-test-differences" ,perl-test-differences)
5922 ("perl-class-xsaccessor" ,perl-class-xsaccessor)
5923 ("perl-io-all" ,perl-io-all)
5924 ("perl-test-runvalgrind" ,perl-test-runvalgrind)
5925 ("cmake-rules"
5926 ,(origin
5927 (method url-fetch)
5928 (uri (string-append "https://bitbucket.org/shlomif/shlomif-cmake-modules/"
5929 "raw/c505713d7a7cda608f97f01577e5868a711b883e/"
5930 "shlomif-cmake-modules/Shlomif_Common.cmake"))
5931 (sha256
5932 (base32 "0kx9s1qqhhzprp1w3b67xmsns0n0v506bg5hgrshxaxpy6lqiwb2"))))))
5933 (home-page "http://www.shlomifish.org/open-source/projects/fortune-mod/")
5934 (synopsis "The Fortune Cookie program from BSD games")
5935 (description "Fortune is a command-line utility which displays a random
5936 quotation from a collection of quotes.")
5937 (license license:bsd-4)))
5938
5939 (define xonotic-data
5940 (package
5941 (name "xonotic-data")
5942 (version "0.8.2")
5943 (source
5944 (origin
5945 (method url-fetch)
5946 (uri (string-append "http://dl.xonotic.org/xonotic-"
5947 version ".zip"))
5948 (file-name (string-append name "-" version ".zip"))
5949 (sha256
5950 (base32
5951 "1mcs6l4clvn7ibfq3q69k2p0z6ww75rxvnngamdq5ic6yhq74bx2"))))
5952 (build-system trivial-build-system)
5953 (native-inputs
5954 `(("unzip" ,unzip)))
5955 (arguments
5956 `(#:modules ((guix build utils))
5957 #:builder
5958 (begin
5959 (use-modules (guix build utils))
5960 (let* ((out (assoc-ref %outputs "out"))
5961 (xonotic (string-append out "/share/xonotic"))
5962 (source (assoc-ref %build-inputs "source"))
5963 (unzip (string-append (assoc-ref %build-inputs "unzip") "/bin/unzip")))
5964 (copy-file source (string-append ,name "-" ,version ".zip"))
5965 (invoke unzip (string-append ,name "-" ,version ".zip"))
5966 (mkdir-p out)
5967 (mkdir-p xonotic)
5968 (chdir "Xonotic")
5969 (copy-recursively "data"
5970 (string-append xonotic "/data"))
5971 (copy-recursively "server"
5972 (string-append xonotic "/server"))
5973 (install-file "key_0.d0pk" xonotic)))))
5974 (home-page "http://xonotic.org")
5975 (synopsis "Data files for Xonotic")
5976 (description
5977 "Xonotic-data provides the data files required by the game Xonotic.")
5978 (license (list license:gpl2+
5979 (license:x11-style "file://server/rcon.pl")))))
5980
5981 (define-public xonotic
5982 (package
5983 (name "xonotic")
5984 (version "0.8.2")
5985 (source
5986 (origin
5987 (method url-fetch)
5988 (uri (string-append "http://dl.xonotic.org/xonotic-"
5989 version "-source.zip"))
5990 (file-name (string-append name "-" version ".zip"))
5991 (sha256
5992 (base32
5993 "0axxw04fyz6jlfqd0kp7hdrqa0li31sx1pbipf2j5qp9wvqicsay"))))
5994 (build-system gnu-build-system)
5995 (arguments
5996 `(#:configure-flags (list (string-append "--prefix="
5997 (assoc-ref %outputs "out"))
5998 "--disable-rijndael")
5999 #:phases
6000 (modify-phases %standard-phases
6001 (add-before 'configure 'make-darkplaces
6002 (lambda* (#:key outputs #:allow-other-keys)
6003 (let* ((out (assoc-ref outputs "out"))
6004 (sharedir (string-append out "/share/xonotic/")))
6005 (invoke "make" "-C" "source/darkplaces"
6006 (string-append "DP_FS_BASEDIR="
6007 sharedir)
6008 "DP_LINK_TO_LIBJPEG=1"
6009 "DP_SOUND_API=ALSA"
6010 "CC=gcc"
6011 "-f" "makefile"
6012 "cl-release")
6013 (invoke "make" "-C" "source/darkplaces"
6014 (string-append "DP_FS_BASEDIR="
6015 sharedir)
6016 "DP_LINK_TO_LIBJPEG=1"
6017 "DP_SOUND_API=ALSA"
6018 "CC=gcc"
6019 "-f" "makefile"
6020 "sdl-release")
6021 (invoke "make" "-C" "source/darkplaces"
6022 (string-append "DP_FS_BASEDIR="
6023 sharedir)
6024 "DP_LINK_TO_LIBJPEG=1"
6025 "DP_SOUND_API=ALSA"
6026 "CC=gcc"
6027 "-f" "makefile"
6028 "sv-release"))))
6029 (add-before 'configure 'bootstrap
6030 (lambda _
6031 (chdir "source/d0_blind_id")
6032 (invoke "sh" "autogen.sh")))
6033 (add-after 'build 'install-desktop-entry
6034 (lambda* (#:key outputs #:allow-other-keys)
6035 ;; Add .desktop files for the 2 variants and the symlink
6036 (let* ((output (assoc-ref outputs "out"))
6037 (apps (string-append output "/share/applications")))
6038 (mkdir-p apps)
6039 (with-output-to-file
6040 (string-append apps "/xonotic-glx.desktop")
6041 (lambda _
6042 (format #t
6043 "[Desktop Entry]~@
6044 Name=xonotic-glx~@
6045 Comment=Xonotic glx~@
6046 Exec=~a/bin/xonotic-glx~@
6047 TryExec=~@*~a/bin/xonotic-glx~@
6048 Icon=xonotic~@
6049 Categories=Game~@
6050 Type=Application~%"
6051 output)))
6052 (with-output-to-file
6053 (string-append apps "/xonotic-sdl.desktop")
6054 (lambda _
6055 (format #t
6056 "[Desktop Entry]~@
6057 Name=xonotic-sdl~@
6058 Comment=Xonotic sdl~@
6059 Exec=~a/bin/xonotic-sdl~@
6060 TryExec=~@*~a/bin/xonotic-sdl~@
6061 Icon=xonotic~@
6062 Categories=Game~@
6063 Type=Application~%"
6064 output)))
6065 (with-output-to-file
6066 (string-append apps "/xonotic.desktop")
6067 (lambda _
6068 (format #t
6069 "[Desktop Entry]~@
6070 Name=xonotic~@
6071 Comment=Xonotic~@
6072 Exec=~a/bin/xonotic-glx~@
6073 TryExec=~@*~a/bin/xonotic~@
6074 Icon=xonotic~@
6075 Categories=Game~@
6076 Type=Application~%"
6077 output)))
6078 #t)))
6079 (add-after 'install-desktop-entry 'install-icons
6080 (lambda* (#:key outputs #:allow-other-keys)
6081 (let ((out (assoc-ref outputs "out")))
6082 (with-directory-excursion "../../misc/logos/icons_png/"
6083 (for-each
6084 (lambda (file)
6085 (let* ((size (string-filter char-numeric? file))
6086 (icons (string-append out "/share/icons/hicolor/"
6087 size "x" size "/apps")))
6088 (mkdir-p icons)
6089 (copy-file file (string-append icons "/xonotic.png"))))
6090 '("xonotic_16.png" "xonotic_22.png" "xonotic_24.png"
6091 "xonotic_32.png" "xonotic_48.png" "xonotic_64.png"
6092 "xonotic_128.png" "xonotic_256.png" "xonotic_512.png"))))))
6093 (add-after 'install-icons 'install-binaries
6094 (lambda* (#:key outputs #:allow-other-keys)
6095 (let ((out (assoc-ref outputs "out")))
6096 (define (install src dst)
6097 (let ((dst (string-append out dst)))
6098 (mkdir-p (dirname dst))
6099 (copy-file src dst)))
6100 (mkdir-p (string-append out "/bin"))
6101 (install "../darkplaces/darkplaces-dedicated"
6102 "/bin/xonotic-dedicated")
6103 (install "../darkplaces/darkplaces-glx"
6104 "/bin/xonotic-glx")
6105 (install "../darkplaces/darkplaces-sdl"
6106 "/bin/xonotic-sdl")
6107 ;; Provide a default xonotic executable, defaulting to SDL.
6108 (symlink (string-append out "/bin/xonotic-sdl")
6109 (string-append out "/bin/xonotic"))
6110 #t)))
6111 (add-after 'install-binaries 'install-data
6112 (lambda* (#:key outputs inputs #:allow-other-keys)
6113 (let* ((out (assoc-ref outputs "out"))
6114 (data (assoc-ref inputs "xonotic-data")))
6115 (symlink (string-append data "/share/xonotic")
6116 (string-append out "/share/xonotic"))
6117 #t)))
6118 (add-after 'install-binaries 'wrap-binaries
6119 (lambda* (#:key outputs inputs #:allow-other-keys)
6120 ;; Curl and libvorbis need to be wrapped so that we get
6121 ;; sound and networking.
6122 (let* ((out (assoc-ref outputs "out"))
6123 (bin (string-append out "/bin/xonotic"))
6124 (bin-sdl (string-append out "/bin/xonotic-sdl"))
6125 (bin-glx (string-append out "/bin/xonotic-glx"))
6126 (bin-dedicated (string-append out "/bin/xonotic-dedicated"))
6127 (curl (assoc-ref inputs "curl"))
6128 (vorbis (assoc-ref inputs "libvorbis")))
6129 (wrap-program bin
6130 `("LD_LIBRARY_PATH" ":" prefix
6131 (,(string-append curl "/lib:" vorbis "/lib"))))
6132 (wrap-program bin-sdl
6133 `("LD_LIBRARY_PATH" ":" prefix
6134 (,(string-append curl "/lib:" vorbis "/lib"))))
6135 (wrap-program bin-glx
6136 `("LD_LIBRARY_PATH" ":" prefix
6137 (,(string-append curl "/lib:" vorbis "/lib"))))
6138 (wrap-program bin-dedicated
6139 `("LD_LIBRARY_PATH" ":" prefix
6140 (,(string-append curl "/lib:" vorbis "/lib"))))
6141 #t))))))
6142 (inputs
6143 `(("xonotic-data" ,xonotic-data)
6144 ("alsa-lib" ,alsa-lib)
6145 ("curl" ,curl)
6146 ("libjpeg" ,libjpeg)
6147 ("libmodplug" ,libmodplug)
6148 ("libvorbis" ,libvorbis)
6149 ("libogg" ,libogg)
6150 ("libxpm" ,libxpm)
6151 ("libxxf86dga" ,libxxf86dga)
6152 ("libxxf86vm" ,libxxf86vm)
6153 ("libx11" ,libx11)
6154 ("libxext" ,libxext)
6155 ("libxau" ,libxau)
6156 ("libxdmcp" ,libxdmcp)
6157 ("mesa" ,mesa)
6158 ("glu" ,glu)
6159 ("freetype" ,freetype)
6160 ("sdl2" ,sdl2)
6161 ("libpng" ,libpng)
6162 ("hicolor-icon-theme" ,hicolor-icon-theme)))
6163 (native-inputs
6164 `(("unzip" ,unzip)
6165 ("autoconf" ,autoconf)
6166 ("automake" ,automake)
6167 ("pkg-config" ,pkg-config)
6168 ("libtool" ,libtool)
6169 ("gmp" ,gmp)))
6170 (home-page "http://xonotic.org")
6171 (synopsis "Fast-paced first-person shooter game")
6172 (description
6173 "Xonotic is a free, fast-paced first-person shooter.
6174 The project is geared towards providing addictive arena shooter
6175 gameplay which is all spawned and driven by the community itself.
6176 Xonotic is a direct successor of the Nexuiz project with years of
6177 development between them, and it aims to become the best possible
6178 open-source FPS of its kind.")
6179 (license (list license:gpl2+
6180 license:bsd-3 ; /source/d0_blind_id folder and others
6181 (license:x11-style "" "See file rcon.pl.")))))
6182
6183 (define-public frotz
6184 (package
6185 (name "frotz")
6186 (version "2.44")
6187 (source (origin
6188 (method url-fetch)
6189 (uri (list (string-append
6190 "http://www.ifarchive.org/if-archive/infocom/interpreters/"
6191 "frotz/frotz-" version ".tar.gz")
6192 (string-append
6193 "ftp://ftp.ifarchive.org/if-archive/infocom/interpreters/"
6194 "frotz/frotz-" version ".tar.gz")))
6195 (sha256
6196 (base32
6197 "1v735xr3blznac8fnwa27s1vhllx4jpz7kw7qdw1bsfj6kq21v3k"))))
6198 (build-system gnu-build-system)
6199 (arguments
6200 `(#:tests? #f ; there are no tests
6201 #:phases
6202 (modify-phases %standard-phases
6203 (delete 'configure)
6204 (add-before 'build 'curses
6205 (lambda _
6206 (substitute* "Makefile"
6207 (("lcurses") "lncurses"))
6208 #t))
6209 (replace 'install
6210 (lambda* (#:key outputs #:allow-other-keys)
6211 (let* ((out (assoc-ref outputs "out"))
6212 (bin (string-append out "/bin"))
6213 (man (string-append out "/share/man/man6")))
6214 (install-file "frotz" bin)
6215 (mkdir-p man)
6216 (install-file "doc/frotz.6" man)
6217 #t))))))
6218 (inputs `(("libmodplug" ,libmodplug)
6219 ("libsamplerate" ,libsamplerate)
6220 ("libsndfile" ,libsndfile)
6221 ("libvorbis" ,libvorbis)
6222 ("ncurses" ,ncurses)))
6223 (synopsis "Portable Z-machine interpreter (ncurses version) for text adventure games")
6224 (description "Frotz is an interpreter for Infocom games and other Z-machine
6225 games in the text adventure/interactive fiction genre. This version of Frotz
6226 complies with standard 1.0 of Graham Nelson's specification. It plays all
6227 Z-code games V1-V8, including V6, with sound support through libao, and uses
6228 ncurses for text display.")
6229 (home-page "http://frotz.sourceforge.net")
6230 (license license:gpl2+)))
6231
6232 (define-public frotz-dumb-terminal
6233 (package
6234 (name "frotz-dumb-terminal")
6235 (version "2.44")
6236 (source (origin
6237 (method url-fetch)
6238 (uri (list (string-append
6239 "http://www.ifarchive.org/if-archive/infocom/interpreters/"
6240 "frotz/frotz-" version ".tar.gz")
6241 (string-append
6242 "ftp://ftp.ifarchive.org/if-archive/infocom/interpreters/"
6243 "frotz/frotz-" version ".tar.gz")))
6244 (sha256
6245 (base32
6246 "1v735xr3blznac8fnwa27s1vhllx4jpz7kw7qdw1bsfj6kq21v3k"))))
6247 (build-system gnu-build-system)
6248 (arguments
6249 `(#:tests? #f ; there are no tests
6250 #:phases
6251 (modify-phases %standard-phases
6252 (delete 'configure)
6253 (replace 'build
6254 (lambda _
6255 (invoke "make" "dumb")))
6256 (replace 'install
6257 (lambda* (#:key outputs #:allow-other-keys)
6258 (let* ((out (assoc-ref outputs "out"))
6259 (bin (string-append out "/bin"))
6260 (man (string-append out "/share/man/man6")))
6261 (install-file "dfrotz" bin)
6262 (mkdir-p man)
6263 (install-file "doc/dfrotz.6" man)
6264 #t))))))
6265 (synopsis "Portable Z-machine dumb interpreter for text adventure games")
6266 (description "Frotz is an interpreter for Infocom games and
6267 other Z-machine games in the text adventure/interactive fiction genre.
6268 dfrotz is the dumb interface version. You get no screen control; everything
6269 is just printed to the terminal line by line. The terminal handles all the
6270 scrolling. Maybe you'd like to experience what it's like to play Adventure on
6271 a teletype. A much cooler use for compiling Frotz with the dumb interface is
6272 that it can be wrapped in CGI scripting, PHP, and the like to allow people
6273 to play games on webpages. It can also be made into a chat bot.")
6274 (home-page "http://frotz.sourceforge.net")
6275 (license license:gpl2+)))
6276
6277 (define-public frotz-sdl
6278 (let* ((commit "4de8c34f2116fff554af6216c30ec9d41bf50b24"))
6279 (package
6280 (name "frotz-sdl")
6281 (version "2.45pre")
6282 (source (origin
6283 (method git-fetch)
6284 (uri (git-reference
6285 (url "https://gitlab.com/DavidGriffith/frotz")
6286 (commit commit)))
6287 (sha256
6288 (base32
6289 "18ms21pcrl7ipcnyqnf8janamkryzx78frsgd9kfk67jvbj0z2k8"))
6290 (file-name (git-file-name name version))))
6291 (build-system gnu-build-system)
6292 (arguments
6293 `(#:tests? #f ; there are no tests
6294 #:phases
6295 (modify-phases %standard-phases
6296 (delete 'configure)
6297 (add-before 'build 'patch-makefile
6298 (lambda _
6299 (substitute* "Makefile"
6300 (("lcurses") "lncurses")
6301 (("^BUILD_DATE_TIME =.*$")
6302 "BUILD_DATE_TIME = \"2.45pre-20180907.00000\"\n"))
6303 #t))
6304 (replace 'build
6305 (lambda _
6306 (invoke "make" "sdl")))
6307 (replace 'install
6308 (lambda* (#:key outputs #:allow-other-keys)
6309 (let* ((out (assoc-ref outputs "out"))
6310 (bin (string-append out "/bin"))
6311 (man (string-append out "/share/man/man6")))
6312 (install-file "sfrotz" bin)
6313 (mkdir-p man)
6314 (install-file "doc/sfrotz.6" man)
6315 #t))))))
6316 (native-inputs
6317 `(("pkg-config" ,pkg-config)
6318 ("which" ,which)
6319 ("perl" ,perl)))
6320 (inputs `(("sdl2" ,sdl2)
6321 ("sdl2-mixer" ,sdl2-mixer)
6322 ("libmodplug" ,libmodplug)
6323 ("libsamplerate" ,libsamplerate)
6324 ("libsndfile" ,libsndfile)
6325 ("libvorbis" ,libvorbis)
6326 ("ncurses" ,ncurses)
6327 ("freetype" ,freetype)
6328 ("libjpeg-turbo" ,libjpeg-turbo)))
6329 (synopsis "Portable Z-machine interpreter (SDL port) for text adventure games")
6330 (description "Frotz is an interpreter for Infocom games and other Z-machine
6331 games in the text adventure/interactive fiction genre. This version of Frotz
6332 using SDL fully supports all these versions of the Z-Machine including the
6333 graphical version 6. Graphics and sound are created through the use of the SDL
6334 libraries. AIFF sound effects and music in MOD and OGG formats are supported
6335 when packaged in Blorb container files or optionally from individual files.")
6336 (home-page "http://frotz.sourceforge.net")
6337 (license license:gpl2+))))
6338
6339 (define-public libmanette
6340 (package
6341 (name "libmanette")
6342 (version "0.2.3")
6343 (source (origin
6344 (method url-fetch)
6345 (uri (string-append "mirror://gnome/sources/libmanette/"
6346 (version-major+minor version) "/"
6347 "libmanette-" version ".tar.xz"))
6348 (sha256
6349 (base32
6350 "1zxh7jn2zg7hivmal5zxam6fxvjsd1w6hlw0m2kysk76b8anbw60"))))
6351 (build-system meson-build-system)
6352 (native-inputs
6353 `(("glib" ,glib "bin") ; for glib-compile-resources
6354 ("gobject-introspection" ,gobject-introspection)
6355 ("pkg-config" ,pkg-config)
6356 ("vala" ,vala)))
6357 (inputs
6358 `(("libevdev" ,libevdev)
6359 ("libgudev" ,libgudev)))
6360 (home-page "https://wiki.gnome.org/Apps/Games")
6361 (synopsis "Game controller library")
6362 (description "Libmanette is a small GObject library giving you simple
6363 access to game controllers. It supports the de-facto standard gamepads as
6364 defined by the W3C standard Gamepad specification or as implemented by the SDL
6365 GameController.")
6366 (license license:lgpl2.1+)))
6367
6368 (define-public quadrapassel
6369 (package
6370 (name "quadrapassel")
6371 (version "3.32.0")
6372 (source (origin
6373 (method url-fetch)
6374 (uri (string-append "mirror://gnome/sources/quadrapassel/"
6375 (version-major+minor version) "/"
6376 "quadrapassel-" version ".tar.xz"))
6377 (sha256
6378 (base32
6379 "1zhi1957knz9dm98drn2dh95mr33sdch590yddh1f8r6bzsfjvpy"))))
6380 (build-system meson-build-system)
6381 (arguments
6382 '(#:glib-or-gtk? #t
6383 #:phases
6384 (modify-phases %standard-phases
6385 (add-after 'unpack 'skip-gtk-update-icon-cache
6386 ;; Don't create 'icon-theme.cache'.
6387 (lambda _
6388 (substitute* "build-aux/meson_post_install.py"
6389 (("gtk-update-icon-cache") (which "true")))
6390 #t)))))
6391 (native-inputs
6392 `(("desktop-file-utils" ,desktop-file-utils) ;for desktop-file-validate
6393 ("gettext" ,gnu-gettext)
6394 ("glib" ,glib "bin") ;for glib-compile-resources
6395 ("itstool" ,itstool)
6396 ("libxml2" ,libxml2) ;for xmllint
6397 ("pkg-config" ,pkg-config)
6398 ("vala" ,vala)))
6399 (inputs
6400 `(("clutter" ,clutter)
6401 ("clutter-gtk" ,clutter-gtk)
6402 ("gtk+" ,gtk+)
6403 ("libcanberra" ,libcanberra)
6404 ("libmanette" ,libmanette)
6405 ("librsvg" ,librsvg)))
6406 (home-page "https://wiki.gnome.org/Apps/Quadrapassel")
6407 (synopsis "GNOME version of Tetris")
6408 (description "Quadrapassel comes from the classic falling-block game,
6409 Tetris. The goal of the game is to create complete horizontal lines of
6410 blocks, which will disappear. The blocks come in seven different shapes made
6411 from four blocks each: one straight, two L-shaped, one square, and two
6412 S-shaped. The blocks fall from the top center of the screen in a random
6413 order. You rotate the blocks and move them across the screen to drop them in
6414 complete lines. You score by dropping blocks fast and completing lines. As
6415 your score gets higher, you level up and the blocks fall faster.")
6416 (license license:gpl2+)))
6417
6418 (define-public endless-sky
6419 (package
6420 (name "endless-sky")
6421 (version "0.9.10")
6422 (source
6423 (origin
6424 (method git-fetch)
6425 (uri (git-reference
6426 (url "https://github.com/endless-sky/endless-sky")
6427 (commit (string-append "v" version))))
6428 (file-name (git-file-name name version))
6429 (sha256
6430 (base32
6431 "1wax9qhxakydg6bs92d1jy2fki1n9r0wkps1np02y0pvm1fl189i"))))
6432 (build-system scons-build-system)
6433 (arguments
6434 `(#:scons ,scons-python2
6435 #:scons-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
6436 #:tests? #f ; no tests
6437 #:phases
6438 (modify-phases %standard-phases
6439 (add-after 'unpack 'patch-resource-locations
6440 (lambda* (#:key outputs #:allow-other-keys)
6441 (substitute* "source/Files.cpp"
6442 (("/usr/local/")
6443 (string-append (assoc-ref outputs "out") "/")))
6444 #t))
6445 (add-after 'unpack 'patch-scons
6446 (lambda _
6447 (substitute* "SConstruct"
6448 ;; Keep environmental variables
6449 (("Environment\\(\\)")
6450 "Environment(ENV = os.environ)")
6451 ;; Install into %out/bin
6452 (("games\"") "bin\""))
6453 #t)))))
6454 (inputs
6455 `(("glew" ,glew)
6456 ("libjpeg" ,libjpeg-turbo)
6457 ("libmad" ,libmad)
6458 ("libpng" ,libpng)
6459 ("openal" ,openal)
6460 ("sdl2" ,sdl2)))
6461 (home-page "https://endless-sky.github.io/")
6462 (synopsis "2D space trading and combat game")
6463 (description "Endless Sky is a 2D space trading and combat game. Explore
6464 other star systems. Earn money by trading, carrying passengers, or completing
6465 missions. Use your earnings to buy a better ship or to upgrade the weapons and
6466 engines on your current one. Blow up pirates. Take sides in a civil war. Or
6467 leave human space behind and hope to find friendly aliens whose culture is more
6468 civilized than your own.")
6469 (license (list license:gpl3+
6470 license:cc-by-sa3.0
6471 license:cc-by-sa4.0
6472 license:public-domain))))
6473
6474 (define-public stepmania
6475 (package
6476 (name "stepmania")
6477 (version "5.1.0-b2")
6478 (source
6479 (origin
6480 (method git-fetch)
6481 (uri (git-reference
6482 (url "https://github.com/stepmania/stepmania.git")
6483 (commit (string-append "v" version))))
6484 (file-name (git-file-name name version))
6485 (sha256
6486 (base32
6487 "0a7y9l7xm510vgnpmj1is7p9m6d6yd0fcaxrjcickz295k5w3rdn"))
6488 (modules '((guix build utils)))
6489 (snippet
6490 '(begin
6491 ;; Remove song files, which are licensed under a non-commercial
6492 ;; clause, and a course pointing to them.
6493 (for-each delete-file-recursively
6494 '("Songs/StepMania 5/Goin' Under"
6495 "Songs/StepMania 5/MechaTribe Assault"
6496 "Songs/StepMania 5/Springtime"))
6497 (for-each delete-file '("Courses/Default/Jupiter.crs"
6498 "Courses/Default/Jupiter.png"))
6499 ;; Unbundle libpng.
6500 (substitute* "extern/CMakeLists.txt"
6501 (("include\\(CMakeProject-png.cmake\\)") ""))
6502 (delete-file-recursively "extern/libpng")
6503 #t))))
6504 (build-system cmake-build-system)
6505 (arguments
6506 `(#:tests? #f ;FIXME: couldn't find how to run tests
6507 #:build-type "Release"
6508 #:out-of-source? #f ;for the 'install-desktop' phase
6509 #:configure-flags
6510 (list "-DWITH_SYSTEM_FFMPEG=1"
6511 ;; SSE instructions are available on Intel systems only.
6512 ,@(if (any (cute string-prefix? <> (or (%current-target-system)
6513 (%current-system)))
6514 '("x64_64" "i686"))
6515 '()
6516 '("-DWITH_SSE2=NO"))
6517 ;; Configuration cannot find GTK2 without the two following
6518 ;; flags.
6519 (string-append "-DGTK2_GDKCONFIG_INCLUDE_DIR="
6520 (assoc-ref %build-inputs "gtk+")
6521 "/lib/gtk-2.0/include")
6522 (string-append "-DGTK2_GLIBCONFIG_INCLUDE_DIR="
6523 (assoc-ref %build-inputs "glib")
6524 "/lib/glib-2.0/include"))
6525 #:phases
6526 (modify-phases %standard-phases
6527 (add-after 'unpack 'ensure-application-files-can-be-found
6528 (lambda* (#:key outputs #:allow-other-keys)
6529 (let ((out (assoc-ref outputs "out")))
6530 (substitute* "src/arch/LoadingWindow/LoadingWindow_Gtk.cpp"
6531 (("RageFileManagerUtil::sDirOfExecutable \\+ \"/\" \\+ \"GtkModule.so\"")
6532 (string-append "\"" out
6533 "/share/stepmania/GtkModule.so\"")))
6534 (substitute* "src/arch/ArchHooks/ArchHooks_Unix.cpp"
6535 (("Root = sDirOfExecutable")
6536 (string-append "Root = \"" out "/share/stepmania/\""))
6537 (("sDirOfExecutable \\+ \"/(Packages|Songs)\"" _ dir)
6538 (string-append "\"" out "/share/stepmania/" dir "\"")))
6539 (substitute* "src/RageFileManager.cpp"
6540 (("RageFileManagerUtil::sDirOfExecutable \\+ \"/\"")
6541 (string-append "\"" out "/share/stepmania/\""))))
6542 #t))
6543 (add-after 'unpack 'fix-install-subdir
6544 ;; Installation would be done in "%out/stepmania-X.Y", but we
6545 ;; prefer the more common layout "%out/share/stepmania".
6546 (lambda _
6547 (substitute* "src/CMakeLists.txt"
6548 (("\"stepmania-.*?\"") "\"share/stepmania\""))
6549 #t))
6550 (add-after 'unpack 'unbundle-libpng
6551 (lambda* (#:key inputs #:allow-other-keys)
6552 (substitute* "src/CMakeLists.txt"
6553 (("\\$\\{SM_EXTERN_DIR\\}/libpng/include")
6554 (string-append (assoc-ref inputs "libpng") "/include")))
6555 #t))
6556 (add-after 'install 'install-executable
6557 (lambda* (#:key outputs #:allow-other-keys)
6558 (let* ((out (assoc-ref outputs "out"))
6559 (bin (string-append out "/bin"))
6560 (exe (string-append out "/share/stepmania/stepmania")))
6561 (mkdir-p bin)
6562 (symlink exe (string-append bin "/stepmania"))
6563 #t)))
6564 (add-after 'install-executable 'install-desktop
6565 (lambda* (#:key outputs #:allow-other-keys)
6566 (let* ((out (assoc-ref outputs "out"))
6567 (share (string-append out "/share"))
6568 (applications (string-append share "/applications"))
6569 (icons (string-append share "/icons")))
6570 (install-file "stepmania.desktop" applications)
6571 (mkdir-p icons)
6572 (copy-recursively "icons" icons)
6573 #t)))
6574 ;; Move documentation in a more usual place, i.e.,
6575 ;; "%out/share/doc/stepmania/".
6576 (add-after 'install-desktop 'install-doc
6577 (lambda* (#:key outputs #:allow-other-keys)
6578 (let* ((out (assoc-ref outputs "out"))
6579 (share (string-append out "/share")))
6580 (with-directory-excursion share
6581 (mkdir-p "doc")
6582 (symlink "../stepmania/Docs" "doc/stepmania"))
6583 #t))))))
6584 (native-inputs
6585 `(("pkg-config" ,pkg-config)
6586 ("yasm" ,yasm)))
6587 (inputs
6588 `(("alsa-lib" ,alsa-lib)
6589 ;; Per upstream, StepMania is only guaranteed to work with a very
6590 ;; specific FFmpeg version, which is included in the repository as
6591 ;; a Git submodule. This particular version requirement usually
6592 ;; changes every few years.
6593 ("ffmpeg" ,ffmpeg-for-stepmania)
6594 ("glib" ,glib)
6595 ("glew" ,glew)
6596 ("gtk+" ,gtk+-2)
6597 ("jsoncpp" ,jsoncpp)
6598 ("libpng" ,libpng)
6599 ("libjpeg" ,libjpeg-8)
6600 ("libmad" ,libmad)
6601 ("libogg" ,libogg)
6602 ("libva" ,libva)
6603 ("libvorbis" ,libvorbis)
6604 ("libxinerama" ,libxinerama)
6605 ("libxrandr" ,libxrandr)
6606 ("mesa" ,mesa)
6607 ("pcre" ,pcre)
6608 ("pulseaudio" ,pulseaudio)
6609 ("sdl" ,sdl2)
6610 ("udev" ,eudev)
6611 ("zlib" ,zlib)))
6612 (synopsis "Advanced rhythm game designed for both home and arcade use")
6613 (description "StepMania is a dance and rhythm game. It features 3D
6614 graphics, keyboard and dance pad support, and an editor for creating your own
6615 steps.
6616
6617 This package provides the core application, but no song is shipped. You need
6618 to download and install them in @file{$HOME/.stepmania-X.Y/Songs} directory.")
6619 (home-page "https://www.stepmania.com")
6620 (license license:expat)))
6621
6622 (define-public btanks
6623 (package
6624 (name "btanks")
6625 (version "0.9.8083")
6626 (source
6627 (origin
6628 (method url-fetch)
6629 (uri (string-append "mirror://sourceforge/btanks/btanks-source/"
6630 "btanks-" version ".tar.bz2"))
6631 (sha256
6632 (base32
6633 "0ha35kxc8xlbg74wsrbapfgxvcrwy6psjkqi7c6adxs55dmcxliz"))))
6634 (build-system scons-build-system)
6635 (arguments
6636 `(#:tests? #f ; there are none
6637 #:scons ,scons-python2
6638 #:scons-flags (list (string-append "prefix=" (assoc-ref %outputs "out")))
6639 #:phases
6640 (modify-phases %standard-phases
6641 (add-after 'unpack 'replace-removed-scons-syntax
6642 (lambda _
6643 (substitute* "SConstruct"
6644 (("Options") "Variables")
6645 (("opts.Add\\(BoolOption.*") "opts.Add('gcc_visibility', 'gcc visibility', 'true')")
6646 (("opts.Add\\(EnumOption.*") "opts.Add('mode', 'build mode', 'release')"))
6647 #t))
6648 (add-after 'set-paths 'set-sdl-paths
6649 (lambda* (#:key inputs #:allow-other-keys)
6650 (setenv "CPATH"
6651 (string-append (assoc-ref inputs "sdl")
6652 "/include/SDL:"
6653 (or (getenv "CPATH") "")))
6654 #t))
6655 (add-after 'unpack 'fix-compilation-errors
6656 (lambda _
6657 (substitute* "mrt/base_file.h"
6658 (("#include <string>" m)
6659 (string-append m "\n#include <sys/types.h>")))
6660 (substitute* '("engine/sl08/sl08.h"
6661 "engine/sl08/sl08.py")
6662 (("signal = NULL") "signal = 0")
6663 (("object\\(NULL\\)") "object(0)")
6664 (("func\\(NULL\\)") "func(0)")
6665 ((" connect\\(signal_ref\\)")
6666 " this->connect(signal_ref)"))
6667 (substitute* "math/range_list.h"
6668 ((" lower_bound\\(value\\)")
6669 " this->lower_bound(value)")
6670 ((" erase\\(i\\)")
6671 " this->erase(i)"))
6672 (substitute* "clunk/source.cpp"
6673 (("using namespace clunk" m)
6674 (string-append "# define pow10f(x) exp10f(x)\n" m)))
6675 #t))
6676 (add-after 'unpack 'find-lua
6677 (lambda _
6678 (substitute* "engine/SConscript"
6679 (("lua5.1") "lua-5.1")
6680 (("bt_libs.append\\(lua\\)")
6681 "bt_libs.append(\"lua\")"))
6682 #t)))))
6683 (inputs
6684 `(("expat" ,expat)
6685 ("glu" ,glu)
6686 ("libsmpeg" ,libsmpeg-with-sdl1)
6687 ("libvorbis" ,libvorbis)
6688 ("lua51" ,lua-5.1)
6689 ("sdl" ,(sdl-union (list sdl
6690 sdl-mixer
6691 sdl-image
6692 sdl-ttf)))
6693 ("zlib" ,zlib)))
6694 (native-inputs
6695 `(("pkg-config" ,pkg-config)
6696 ("zip" ,zip)))
6697 (home-page "http://btanks.sourceforge.net")
6698 (synopsis "Multiplayer tank battle game")
6699 (description "Battle Tanks (also known as \"btanks\") is a funny battle
6700 game, where you can choose one of three vehicles and eliminate your enemy
6701 using the whole arsenal of weapons. It has original cartoon-like graphics and
6702 cool music, it’s fun and dynamic, it has several network modes for deathmatch
6703 and cooperative.")
6704 ;; Some parts (e.g. mrt/b64.cpp) are LGPLv2.1+, but the whole package is
6705 ;; released under GPLv2 or later. It comes with extra exceptions for the
6706 ;; developers.
6707 (license (list license:gpl2+ license:lgpl2.1+))))
6708
6709 (define-public battle-tanks
6710 (deprecated-package "battle-tanks" btanks))
6711
6712 (define-public slingshot
6713 (package
6714 (name "slingshot")
6715 (version "0.9")
6716 (source
6717 (origin
6718 (method git-fetch)
6719 (uri (git-reference
6720 (url "https://github.com/ryanakca/slingshot.git")
6721 (commit version)))
6722 (file-name (git-file-name name version))
6723 (sha256
6724 (base32
6725 "19m8b6nsi786bc6gmkp185mwri3r5y249gjmqd5qsc23nnfhgrs1"))))
6726 (build-system python-build-system)
6727 (arguments
6728 `(#:python ,python-2))
6729 (inputs
6730 `(("python-pygame" ,python2-pygame)))
6731 (home-page "https://github.com/ryanakca/slingshot")
6732 (synopsis "Simple 2D shooting strategy game set in space")
6733 (description "Slingshot is a two-dimensional strategy game where two
6734 players attempt to shoot one another through a section of space populated by
6735 planets. The main feature of the game is that the shots, once fired, are
6736 affected by the gravity of the planets.")
6737 (license license:gpl2+)))
6738
6739 (define-public 4dtris
6740 (package
6741 (name "4dtris")
6742 (version "0.4.3")
6743 (source
6744 (origin
6745 (method url-fetch)
6746 (uri (string-append "https://launchpad.net/4dtris/"
6747 (version-major+minor version)
6748 "/" version "/+download/4dtris_"
6749 version ".orig.tar.gz"))
6750 (sha256
6751 (base32
6752 "1nfkhcm0l89jyw8yr65na97g4l385zhjf7whkyg47c3v5sdqq2g7"))))
6753 (build-system gnu-build-system)
6754 (arguments
6755 `(#:phases
6756 (modify-phases %standard-phases
6757 (add-after 'unpack 'fix-install-directories
6758 (lambda* (#:key outputs #:allow-other-keys)
6759 (let ((out (assoc-ref outputs "out")))
6760 (substitute* "Makefile.in"
6761 (("bindir = /usr/games")
6762 (string-append "bindir = " out "/bin"))
6763 (("/usr/share/applications")
6764 (string-append out "/share/applications"))
6765 (("/usr/share/games/4dtris")
6766 (string-append out "/share/4dtris"))))
6767 #t))
6768 (add-after 'set-paths 'set-sdl-paths
6769 (lambda* (#:key inputs #:allow-other-keys)
6770 (setenv "CPATH"
6771 (string-append (assoc-ref inputs "sdl")
6772 "/include/SDL:"
6773 (or (getenv "CPATH") "")))
6774 #t)))))
6775 (inputs
6776 `(("fontconfig" ,fontconfig)
6777 ("freeglut" ,freeglut)
6778 ("sdl" ,(sdl-union (list sdl sdl-ttf)))))
6779 (home-page "https://launchpad.net/4dtris/")
6780 (synopsis "4D Tetris")
6781 (description "4D-TRIS is an alteration of the well-known Tetris game. The
6782 game field is extended to 4D space, which has to filled up by the gamer with
6783 4D hyper cubes.")
6784 (license license:gpl3)))
6785
6786 (define-public arx-libertatis
6787 (package
6788 (name "arx-libertatis")
6789 (version "1.1.2")
6790 (source
6791 (origin
6792 (method url-fetch)
6793 (uri (string-append "http://arx-libertatis.org/files/arx-libertatis-"
6794 version ".tar.xz"))
6795 (sha256
6796 (base32
6797 "0hjfxlsmp8wwqr06snv2dlly2s79ra0d9aw49gkp6rn8m50b9bc2"))))
6798 (build-system cmake-build-system)
6799 (outputs '("out" "installer"))
6800 (arguments
6801 '(#:tests? #f ; No tests.
6802 #:phases
6803 (modify-phases %standard-phases
6804 (add-after 'unpack 'fix-install-helper-paths
6805 (lambda* (#:key inputs #:allow-other-keys)
6806 (let ((p7zip (assoc-ref inputs "p7zip"))
6807 (innoextract (assoc-ref inputs "innoextract"))
6808 (wget (assoc-ref inputs "wget"))
6809 (zenity (assoc-ref inputs "zenity")))
6810 (substitute* "scripts/arx-install-data"
6811 (("have innoextract")
6812 (string-append "have " innoextract "/bin/innoextract"))
6813 (("then innoextract")
6814 (string-append "then " innoextract "/bin/innoextract"))
6815 (("else innoextract")
6816 (string-append "else " innoextract "/bin/innoextract"))
6817 (("for _extract_zip_sz in 7za 7z")
6818 (string-append "for _extract_zip_sz in " p7zip "/bin/7za"))
6819 (("else if have 7z")
6820 (string-append "else if have " p7zip "/bin/7za"))
6821 (("7z x -tiso")
6822 (string-append p7zip "/bin/7z x -tiso"))
6823 (("if have wget")
6824 (string-append "if have " wget "/bin/wget"))
6825 (("wget -O")
6826 (string-append wget "/bin/wget -O"))
6827 (("for backend in \\$preferred zenity")
6828 (string-append "for backend in $preferred " zenity "/bin/zenity"))
6829 (("zenity +--title")
6830 (string-append zenity "/bin/zenity --title"))
6831 (("^zenity\\)")
6832 (string-append zenity "/bin/zenity)"))))
6833 #t))
6834 (add-after 'install 'move-installer
6835 (lambda* (#:key outputs #:allow-other-keys)
6836 (let ((out (assoc-ref outputs "out"))
6837 (installer (assoc-ref outputs "installer")))
6838 (mkdir-p (string-append installer "/bin"))
6839 (rename-file (string-append out "/bin/arx-install-data")
6840 (string-append installer "/bin/arx-install-data"))))))))
6841 (inputs
6842 `(("sdl" ,sdl) ; Switch to sdl2 in >1.1.2.
6843 ("mesa" ,mesa) ; Switch to libepoxy in >1.1.2.
6844 ("glew" ,glew)
6845 ("openal" ,openal)
6846 ("zlib" ,zlib)
6847 ("boost" ,boost)
6848 ("glm" ,glm)
6849 ("freetype" ,freetype)
6850 ;; The following are only needed by the arx-install-data script.
6851 ("p7zip" ,p7zip) ; Install-helper uses it to extract ISO and .cab archives.
6852 ("zenity" ,zenity) ; GUI for install-helper.
6853 ("wget" ,wget) ; Used by the install-helper to download the patch.
6854 ;; The install-helper needs it to extract the patch.
6855 ("innoextract" ,innoextract)))
6856 (home-page "https://arx-libertatis.org/")
6857 (synopsis "Port of Arx Fatalis, a first-person role-playing game")
6858 (description "Arx Libertatis is a cross-platform port of Arx Fatalis, a 2002
6859 first-person role-playing game / dungeon crawler developed by Arkane Studios.
6860 This port however does not include the game data, so you need to obtain a copy
6861 of the original Arx Fatalis or its demo to play Arx Libertatis. Arx Fatalis
6862 features crafting, melee and ranged combat, as well as a unique casting system
6863 where the player draws runes in real time to effect the desired spell.")
6864 (license license:gpl3+)))
6865
6866 (define-public edgar
6867 (package
6868 (name "edgar")
6869 (version "1.32")
6870 (source
6871 (origin
6872 (method url-fetch)
6873 (uri
6874 (string-append "https://github.com/riksweeney/edgar/releases/download/"
6875 version "/edgar-" version "-1.tar.gz"))
6876 (sha256
6877 (base32 "12lam6qcscc5ima1w2ksd1cvsvxbd17h6mqkgsqpzx8ap43p2r5p"))))
6878 (build-system gnu-build-system)
6879 (arguments '(#:tests? #f ; there are no tests
6880 #:make-flags
6881 (list "CC=gcc"
6882 (string-append "PREFIX=" (assoc-ref %outputs "out"))
6883 (string-append "BIN_DIR=" (assoc-ref %outputs "out") "/bin/"))
6884 #:phases
6885 (modify-phases %standard-phases
6886 (delete 'configure)
6887 (add-before 'build 'fix-env
6888 (lambda* (#:key inputs #:allow-other-keys)
6889 (setenv "CPATH"
6890 (string-append (assoc-ref inputs "sdl2-union")
6891 "/include/SDL2:"
6892 (or (getenv "CPATH") "")))
6893 #t)))))
6894 (inputs
6895 `(("sdl2-union" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer sdl2-ttf)))
6896 ("zlib" ,zlib)))
6897 (native-inputs
6898 `(("pkg-config" ,pkg-config)
6899 ("autoconf" ,autoconf)
6900 ("automake" ,automake)
6901 ("gnu-gettext" ,gnu-gettext)
6902 ("libtool" ,libtool)
6903 ("which" ,which)))
6904 (synopsis "2d action platformer game")
6905 (description "The Legend of Edgar is a 2D platform game with a persistent world.
6906 When Edgar's father fails to return home after venturing out one dark and stormy night,
6907 Edgar fears the worst: he has been captured by the evil sorcerer who lives in
6908 a fortress beyond the forbidden swamp.")
6909 (home-page "https://www.parallelrealities.co.uk/games/edgar/")
6910 (license license:gpl2+)))
6911
6912 (define-public the-legend-of-edgar
6913 (deprecated-package "the-legend-of-edgar" edgar))
6914
6915 (define-public openclonk
6916 (package
6917 (name "openclonk")
6918 (version "8.1")
6919 (source (origin
6920 (method url-fetch)
6921 (uri (string-append
6922 "https://www.openclonk.org/builds/release/" version "/"
6923 "openclonk-" version "-src.tar.bz2"))
6924 (sha256
6925 (base32
6926 "0imkqjp8lww5p0cnqf4k4mb2v682mnsas63qmiz17rspakr7fxik"))))
6927 (build-system cmake-build-system)
6928 (arguments
6929 `(#:configure-flags '("-DAudio_TK=OpenAL")
6930 #:test-target "tests"
6931 #:phases
6932 (modify-phases %standard-phases
6933 (add-after 'unpack 'prepare-gmock
6934 (lambda* (#:key inputs #:allow-other-keys)
6935 (mkdir "gmock")
6936 (copy-recursively (assoc-ref inputs "googlemock") "gmock")
6937 (substitute* "tests/CMakeLists.txt"
6938 (("/usr/src/gmock")
6939 (string-append (getcwd) "/gmock/googlemock"))
6940 (("/usr/src/gtest")
6941 (string-append (getcwd) "/gmock/googletest"))
6942 (("PATH_SUFFIXES \"src\" \"gtest\"")
6943 "PATH_SUFFIXES \"src\""))
6944 #t))
6945 (add-after 'unpack 'adjust-backward-cpp-includes
6946 (lambda _
6947 ;; XXX: The bundled backward-cpp exports a CMake "interface"
6948 ;; that includes external libraries such as libdl from glibc.
6949 ;; By default, CMake interface includes are treated as "system
6950 ;; headers", and GCC behaves poorly when glibc is passed as a
6951 ;; system header (causing #include_next failures).
6952
6953 ;; Here we prevent targets that consume the Backward::Backward
6954 ;; interface from treating it as "system includes".
6955 (substitute* "CMakeLists.txt"
6956 (("target_link_libraries\\((.+) Backward::Backward\\)" all target)
6957 (string-append "set_property(TARGET " target " PROPERTY "
6958 "NO_SYSTEM_FROM_IMPORTED true)\n"
6959 all)))
6960 #t))
6961 (add-after 'unpack 'add-libiberty
6962 ;; Build fails upon linking executables without this.
6963 (lambda _
6964 (substitute* "thirdparty/backward-cpp/BackwardConfig.cmake"
6965 (("set\\(LIBBFD_LIBRARIES (.*?)\\)" _ libraries)
6966 (string-append "set(LIBBFD_LIBRARIES " libraries " iberty)")))
6967 #t))
6968 (add-after 'add-libiberty 'lax-freealut-requirement
6969 ;; TODO: We provide freealut 1.1.0, but pkg-config somehow detects
6970 ;; it as 1.0.1. Force minimal version.
6971 (lambda _
6972 (substitute* "cmake/FindAudio.cmake"
6973 (("freealut>=1.1.0") "freealut>=1.0.1"))
6974 #t))
6975 (add-after 'lax-freealut-requirement 'fix-directories
6976 ;; Prefer "$out/share/openclonk" over
6977 ;; "$out/share/games/openclonk". Also install "openclonk"
6978 ;; binary in "bin/", not "games/".
6979 (lambda _
6980 (substitute* "CMakeLists.txt"
6981 (("share/games/openclonk") "share/openclonk")
6982 (("TARGETS openclonk DESTINATION games")
6983 "TARGETS openclonk DESTINATION bin"))
6984 #t)))))
6985 (native-inputs
6986 `(("googlemock" ,(package-source googletest))
6987 ("googletest" ,googletest)
6988 ("pkg-config" ,pkg-config)))
6989 (inputs
6990 `(("freealut" ,freealut)
6991 ("freetype" ,freetype)
6992 ("glew" ,glew)
6993 ("libiberty" ,libiberty)
6994 ("libjpeg" ,libjpeg-turbo)
6995 ("libogg" ,libogg)
6996 ("libpng" ,libpng)
6997 ("libvorbis" ,libvorbis)
6998 ("libxrandr" ,libxrandr)
6999 ("mesa" ,mesa)
7000 ("miniupnpc" ,miniupnpc)
7001 ("openal" ,openal)
7002 ("qtbase" ,qtbase)
7003 ("readline" ,readline)
7004 ("sdl" ,sdl2)
7005 ("tinyxml" ,tinyxml)
7006 ("zlib" ,zlib)))
7007 (home-page "https://www.openclonk.org/")
7008 (synopsis
7009 "Multiplayer action game where you control small and nimble humanoids")
7010 (description "OpenClonk is a multiplayer action/tactics/skill game. It is
7011 often referred to as a mixture of The Settlers and Worms. In a simple 2D
7012 antfarm-style landscape, the player controls a crew of Clonks, small but
7013 robust humanoid beings. The game encourages free play but the normal goal is
7014 to either exploit valuable resources from the earth by building a mine or
7015 fight each other on an arena-like map.")
7016 ;; Software as a whole is licensed under ISC, artwork under CC-BY.
7017 (license (list license:isc license:cc-by3.0))))
7018
7019 (define-public flare-engine
7020 (package
7021 (name "flare-engine")
7022 (version "1.11")
7023 (source (origin
7024 (method git-fetch)
7025 (uri (git-reference
7026 (url "https://github.com/flareteam/flare-engine.git")
7027 (commit (string-append "v" version))))
7028 (file-name (git-file-name name version))
7029 (sha256
7030 (base32
7031 "1mqr1s72p5bdh4kq2a8hg72dk8lwnddicjnd2cdp1sbfa9lmjym8"))))
7032 (build-system cmake-build-system)
7033 (arguments
7034 `(#:tests? #f ;no test
7035 #:configure-flags '("-DBINDIR=bin" "-DDATADIR=share/flare")))
7036 (inputs
7037 `(("hicolor-icon-theme" ,hicolor-icon-theme)
7038 ("python" ,python-wrapper)
7039 ("sdl" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer sdl2-ttf)))))
7040 (home-page "http://www.flarerpg.org/")
7041 (synopsis "Action Roleplaying Engine")
7042 (description "Flare (Free Libre Action Roleplaying Engine) is a simple
7043 game engine built to handle a very specific kind of game: single-player 2D
7044 action RPGs.")
7045 (license license:gpl3+)))
7046
7047 (define-public flare-game
7048 (package
7049 (name "flare-game")
7050 (version "1.11")
7051 (source (origin
7052 (method git-fetch)
7053 (uri (git-reference
7054 (url "https://github.com/flareteam/flare-game.git")
7055 (commit (string-append "v" version))))
7056 (file-name (git-file-name name version))
7057 (sha256
7058 (base32
7059 "0bd5g7sd89a9176ilr408hdqzdfv4j7wj0idd685c1n6s01c3h6p"))))
7060 (build-system cmake-build-system)
7061 (arguments
7062 `(#:tests? #f ;no test
7063 #:configure-flags '("-DDATADIR=share/flare")
7064 #:phases
7065 (modify-phases %standard-phases
7066 ;; Flare expects the mods to be located in the same folder.
7067 ;; Yet, "default" mod is in the engine, whereas the others
7068 ;; are in the current package. Merge everything here with
7069 ;; a symlink.
7070 (add-after 'install 'add-default-mod
7071 (lambda* (#:key inputs outputs #:allow-other-keys)
7072 (let* ((out (assoc-ref outputs "out"))
7073 (mods (string-append out "/share/flare/mods")))
7074 (with-directory-excursion mods
7075 (symlink (string-append (assoc-ref inputs "flare-engine")
7076 "/share/flare/mods/default")
7077 "default")))
7078 #t))
7079 (add-after 'install 'install-executable
7080 ;; The package only provides assets for the game, the
7081 ;; executable coming from "flare-engine". Since more than
7082 ;; one game may use the engine, we create a new executable,
7083 ;; "flare-game", which launches the engine with appropriate
7084 ;; parameters.
7085 (lambda* (#:key inputs outputs #:allow-other-keys)
7086 (let* ((out (assoc-ref outputs "out"))
7087 (bash (string-append (assoc-ref inputs "bash")
7088 "/bin/bash"))
7089 (flare (string-append (assoc-ref inputs "flare-engine")
7090 "/bin/flare"))
7091 (script (string-append out "/bin/flare-game")))
7092 (mkdir-p (dirname script))
7093 (call-with-output-file script
7094 (lambda (port)
7095 (format port
7096 "#!~a
7097 exec ~a --data-path=~a/share/flare --mods=empyrean_campaign~%"
7098 bash
7099 flare
7100 out)))
7101 (chmod script #o755))
7102 #t)))))
7103 (inputs
7104 `(("flare-engine" ,flare-engine)))
7105 (home-page "http://www.flarerpg.org/")
7106 (synopsis "Fantasy action RPG using the FLARE engine")
7107 (description "Flare is a single-player 2D action RPG with
7108 fast-paced action and a dark fantasy style.")
7109 (license license:cc-by-sa3.0)))
7110
7111 (define-public meritous
7112 (package
7113 (name "meritous")
7114 (version "1.5")
7115 (source (origin
7116 (method git-fetch)
7117 (uri (git-reference
7118 (url "https://gitlab.com/meritous/meritous.git")
7119 (commit (string-append "v" version))))
7120 (file-name (git-file-name name version))
7121 (sha256
7122 (base32
7123 "0n5jm4g0arjllgqmd2crv8h02i6hs3hlh1zyc7ng7yfpg1mbd8p8"))))
7124 (build-system gnu-build-system)
7125 (arguments
7126 `(#:tests? #f ;no test
7127 #:make-flags
7128 (list "CC=gcc"
7129 (string-append "prefix=" (assoc-ref %outputs "out")))
7130 #:phases
7131 (modify-phases %standard-phases
7132 (delete 'configure)
7133 (add-after 'unpack 'fix-sdl-path
7134 ;; XXX: For some reason, `sdl-config' reports stand-alone SDL
7135 ;; directory, not SDL-union provided as an input to the package.
7136 ;; We force the latter with "--prefix=" option.
7137 (lambda* (#:key inputs #:allow-other-keys)
7138 (substitute* "Makefile"
7139 (("sdl-config" command)
7140 (string-append command " --prefix=" (assoc-ref inputs "sdl"))))
7141 #t))
7142 (add-after 'unpack 'fix-crash
7143 ;; XXX: Songs are not present in the repository, due to licensing
7144 ;; issues. Yet, the game tries to load them, and, since it cannot
7145 ;; find them, crashes. Users cannot add them back, the store being
7146 ;; read-only, so we turn off background music altogether.
7147 (lambda _
7148 (substitute* "src/audio.c"
7149 (("PlayBackgroundMusic\\(new_track\\);" all)
7150 (string-append "// " all)))
7151 #t)))))
7152 (native-inputs
7153 `(("intltool" ,intltool)))
7154 (inputs
7155 `(("sdl" ,(sdl-union (list sdl sdl-image sdl-mixer)))
7156 ("zlib" ,zlib)))
7157 (home-page "https://gitlab.com/meritous/meritous")
7158 (synopsis "Action-adventure dungeon crawl game")
7159 (description "Far below the surface of the planet is a place of limitless
7160 power. Those that seek to control such a utopia will soon bring an end to
7161 themselves. Seeking an end to the troubles that plague him, PSI user Merit
7162 journeys into the hallowed Orcus Dome in search of answers.
7163
7164 Meritous is a action-adventure game with simple controls but a challenge to
7165 find a balance of power versus recovery time during real-time battles. Set in
7166 a procedurally generated world, the player can explore thousands of rooms in
7167 search of powerful artifacts, tools to help them, and to eventually free the
7168 Orcus Dome from evil.")
7169 (license license:gpl3+)))
7170
7171 (define-public marble-marcher
7172 (let ((commit "e580460a0c3826f9b28ab404607942a8ecb625d7")
7173 (revision "1"))
7174 (package
7175 (name "marble-marcher")
7176 (version (git-version "0" revision commit))
7177 (source (origin
7178 (method git-fetch)
7179 (uri (git-reference
7180 (url "https://github.com/HackerPoet/MarbleMarcher.git")
7181 (commit commit)))
7182 (file-name (git-file-name name version))
7183 (sha256
7184 (base32
7185 "0jjv832hl1v170n6gryp2sr3lgqndi9ab841qvgqk68bks8701mx"))))
7186 (build-system cmake-build-system)
7187 (arguments
7188 `(#:tests? #f ; there are none
7189 #:phases
7190 (modify-phases %standard-phases
7191 (add-after 'unpack 'embed-asset-directory
7192 (lambda* (#:key outputs #:allow-other-keys)
7193 (let ((assets (string-append (assoc-ref outputs "out")
7194 "/share/marble-marcher/assets/")))
7195 ;; Some of the files we're patching are
7196 ;; ISO-8859-1-encoded, so choose it as the default
7197 ;; encoding so the byte encoding is preserved.
7198 (with-fluids ((%default-port-encoding #f))
7199 (substitute* "src/Resource.rc"
7200 (("../assets/icon.ico")
7201 (string-append assets "icon.ico")))
7202 (substitute* "src/Res.h"
7203 (("assets/") assets))))
7204 #t))
7205 (replace 'install
7206 (lambda* (#:key outputs #:allow-other-keys)
7207 (let* ((out (assoc-ref outputs "out"))
7208 (assets (string-append out "/share/marble-marcher/assets"))
7209 (bin (string-append out "/bin/")))
7210 (mkdir-p bin)
7211 (mkdir-p assets)
7212 (copy-recursively "../source/assets" assets)
7213 (install-file "MarbleMarcher" bin))
7214 #t)))))
7215 (inputs
7216 `(("eigen" ,eigen)
7217 ("mesa" ,mesa)
7218 ("sfml" ,sfml)))
7219 (native-inputs
7220 `(("pkg-config" ,pkg-config)))
7221 (home-page "https://codeparade.itch.io/marblemarcher")
7222 (synopsis "Guide a marble across fractal landscapes")
7223 (description "Marble Marcher is a video game that uses a fractal physics
7224 engine and fully procedural rendering to produce beautiful and unique
7225 gameplay. The game is played on the surface of evolving fractals. The goal
7226 of the game is to get your marble to the flag as quickly as possible. But be
7227 careful not to fall off the level or get crushed by the fractal! There are 24
7228 levels to unlock.")
7229 ;; Code is under GPLv2+, assets are under CC-BY-SA 3.0 and OFL 1.1.
7230 (license (list license:gpl2+
7231 license:silofl1.1
7232 license:cc-by-sa3.0)))))
7233
7234 ;; This must be updated together with flightgear.
7235 (define simgear
7236 (package
7237 (name "simgear")
7238 (version "2018.3.2")
7239 (source (origin
7240 (method url-fetch)
7241 (uri (string-append "mirror://sourceforge/flightgear/release-"
7242 (version-major+minor version) "/"
7243 "simgear-" version ".tar.bz2"))
7244 (sha256
7245 (base32
7246 "1941ay8rngz4vwsx37bbpxr48hpcvcbj3xw1hy264lq4qnl99c68"))))
7247 (build-system cmake-build-system)
7248 (arguments
7249 `(#:phases
7250 (modify-phases %standard-phases
7251 (replace 'check
7252 (lambda _
7253 ;; Skip tests that require internet access.
7254 (invoke "ctest" "-E" "(http|dns)"))))))
7255 (inputs
7256 `(("boost" ,boost-for-mysql) ; fails with 1.69
7257 ("curl" ,curl)
7258 ("expat" ,expat)
7259 ("mesa" ,mesa)
7260 ("openal" ,openal)
7261 ("openscenegraph" ,openscenegraph-3.4)
7262 ("zlib" ,zlib)))
7263 (home-page "https://home.flightgear.org/")
7264 (synopsis "Libraries for 3D simulations and games")
7265 (description "SimGear is a set of libraries designed to be used as
7266 building blocks for quickly assembling 3D simulations, games, and
7267 visualization applications. SimGear is developed by the FlightGear project
7268 and also provides the base for the FlightGear Flight Simulator.")
7269 (license license:lgpl2.0+)))
7270
7271 (define-public flightgear
7272 (package
7273 (name "flightgear")
7274 (version (package-version simgear))
7275 (source (origin
7276 (method url-fetch)
7277 (uri (string-append "mirror://sourceforge/flightgear/release-"
7278 (version-major+minor version) "/"
7279 "flightgear-" version ".tar.bz2"))
7280 (sha256
7281 (base32
7282 "0lzy524cjzs8vldcjcc750bgg5c4mq9fkymxxxzqf68ilc4d1jss"))
7283 (modules '((guix build utils)))
7284 (snippet
7285 '(begin
7286 ;; There are some bundled libraries.
7287 (for-each delete-file-recursively
7288 '("3rdparty/sqlite3/"))
7289 #t))))
7290 (build-system cmake-build-system)
7291 (arguments
7292 `(#:configure-flags
7293 (list "-DSYSTEM_SQLITE=ON"
7294 (string-append "-DFG_DATA_DIR="
7295 (assoc-ref %outputs "out")
7296 "/share/flightgear"))
7297 ;; TODO: test cannot be run because the "run_test_suite" executable
7298 ;; does not seem to be built.
7299 #:tests? #f
7300 #:phases
7301 (modify-phases %standard-phases
7302 (add-after 'install 'wrap-executable
7303 (lambda* (#:key inputs outputs #:allow-other-keys)
7304 (let ((out (assoc-ref outputs "out")))
7305 (wrap-program (string-append out "/bin/fgfs")
7306 `("QT_PLUGIN_PATH" ":" prefix
7307 ,(map (lambda (label)
7308 (string-append (assoc-ref inputs label)
7309 "/lib/qt5/plugins"))
7310 '("qtbase" "qtdeclarative" "qtsvg")))
7311 `("QML2_IMPORT_PATH" ":" prefix
7312 ,(map (lambda (label)
7313 (string-append (assoc-ref inputs label)
7314 "/lib/qt5/qml"))
7315 '("qtdeclarative" "qtsvg"))))
7316 #t)))
7317 (add-after 'install 'install-data
7318 (lambda* (#:key inputs outputs #:allow-other-keys)
7319 (let ((share (string-append (assoc-ref outputs "out") "/share/flightgear")))
7320 (mkdir-p share)
7321 (with-directory-excursion share
7322 (invoke "tar" "xf" (assoc-ref inputs "flightgear-data")
7323 "--strip-components=1")))
7324 #t)))))
7325 (inputs
7326 `(("boost" ,boost-for-mysql) ; same as simgear
7327 ("dbus" ,dbus)
7328 ("eudev" ,eudev)
7329 ("freeglut" ,freeglut)
7330 ("freetype" ,freetype)
7331 ("glew" ,glew)
7332 ("libpng" ,libpng)
7333 ("openal" ,openal)
7334 ("openscenegraph" ,openscenegraph-3.4)
7335 ("plib" ,plib)
7336 ("qtbase" ,qtbase)
7337 ("qtdeclarative" ,qtdeclarative)
7338 ("qtsvg" ,qtsvg)
7339 ("simgear" ,simgear)
7340 ("speexdsp" ,speexdsp)
7341 ("sqlite" ,sqlite)
7342 ("zlib" ,zlib)))
7343 (native-inputs
7344 `(("cppunit" ,cppunit)
7345 ("pkg-config" ,pkg-config)
7346 ("qttools" ,qttools)
7347 ("flightgear-data"
7348 ,(origin
7349 (method url-fetch)
7350 (uri (string-append "mirror://sourceforge/flightgear/release-"
7351 (version-major+minor version) "/"
7352 "FlightGear-" version "-data.tar.bz2"))
7353 (sha256
7354 (base32
7355 "0h4npa7gqpf5fw6pv2bpw0wbwr7fa2vhia21cjbigfgd75x82zi7"))))))
7356 (home-page "https://home.flightgear.org/")
7357 (synopsis "Flight simulator")
7358 (description "The goal of the FlightGear project is to create a
7359 sophisticated flight simulator framework for use in research or academic
7360 environments, pilot training, as an industry engineering tool, for DIY-ers to
7361 pursue their favorite interesting flight simulation idea, and last but
7362 certainly not least as a fun, realistic, and challenging desktop flight
7363 simulator.")
7364 (license license:gpl2+)))
7365
7366 (define-public jumpnbump
7367 (package
7368 (name "jumpnbump")
7369 (version "1.61")
7370 (source (origin
7371 (method git-fetch)
7372 (uri (git-reference
7373 (url "https://gitlab.com/LibreGames/jumpnbump.git")
7374 (commit version)))
7375 (file-name (git-file-name name version))
7376 (sha256
7377 (base32
7378 "12lwl5sl5n009nb83r8l4lakb9286csqdf1ynpmwwydy17giqsdp"))))
7379 (build-system gnu-build-system)
7380 (arguments
7381 `(#:make-flags
7382 (list "CC=gcc"
7383 (string-append "PREFIX=" (assoc-ref %outputs "out")))
7384 #:tests? #f ;no test
7385 #:phases
7386 (modify-phases %standard-phases
7387 (delete 'configure) ;no configure script
7388 (add-after 'unpack 'fix-sdl-path
7389 ;; XXX: For some reason, `sdl2-config' reports stand-alone SDL
7390 ;; directory, not SDL-union provided as an input to the package.
7391 ;; We force the latter with "--prefix=" option.
7392 (lambda* (#:key inputs #:allow-other-keys)
7393 (substitute* "Makefile"
7394 (("sdl2-config" command)
7395 (string-append command " --prefix=" (assoc-ref inputs "sdl"))))
7396 #t)))))
7397 (inputs
7398 `(("bzip2" ,bzip2)
7399 ("sdl" ,(sdl-union (list sdl2 sdl2-mixer sdl2-net)))
7400 ("zlib" ,zlib)))
7401 (native-inputs
7402 `(("gettext" ,gettext-minimal))) ;for msgfmt
7403 (home-page "https://gitlab.com/LibreGames/jumpnbump")
7404 (synopsis "Multiplayer platform game with bunnies")
7405 (description "You, as a bunny, have to jump on your opponents to make them
7406 explode. It is a true multiplayer game; you cannot play this alone. You can
7407 play with up to four players simultaneously. It has network support.")
7408 (license license:gpl2+)))
7409
7410 (define-public hedgewars
7411 (package
7412 (name "hedgewars")
7413 (version "1.0.0")
7414 (source (origin
7415 (method url-fetch)
7416 (uri (string-append "https://www.hedgewars.org/download/releases/"
7417 "hedgewars-src-" version ".tar.bz2"))
7418 (sha256
7419 (base32
7420 "0nqm9w02m0xkndlsj6ys3wr0ik8zc14zgilq7k6fwjrf3zk385i1"))))
7421 (build-system cmake-build-system)
7422 (arguments
7423 ;; XXX: Engine is built as Pascal source code, requiring Free Pascal
7424 ;; Compiler, which we haven't packaged yet. With the flag below, we use
7425 ;; a Pascal to C translator and Clang instead.
7426 `(#:configure-flags (list "-DBUILD_ENGINE_C=ON")
7427 #:phases
7428 (modify-phases %standard-phases
7429 (replace 'check
7430 (lambda _ (invoke "ctest"))))))
7431 (inputs
7432 `(("ffmpeg" ,ffmpeg)
7433 ("freeglut" ,freeglut)
7434 ("ghc-entropy" ,ghc-entropy)
7435 ("ghc-hslogger" ,ghc-hslogger)
7436 ("ghc-network" ,ghc-network)
7437 ("ghc-random" ,ghc-random)
7438 ("ghc-regex-tdfa" ,ghc-regex-tdfa)
7439 ("ghc-sandi" ,ghc-sandi)
7440 ("ghc-sha" ,ghc-sha)
7441 ("ghc-utf8-string" ,ghc-utf8-string)
7442 ("ghc-vector" ,ghc-vector)
7443 ("ghc-zlib" ,ghc-zlib)
7444 ("glew" ,glew)
7445 ("libpng" ,libpng)
7446 ("lua" ,lua-5.1)
7447 ("physfs" ,physfs)
7448 ("qtbase" ,qtbase)
7449 ("sdl" ,(sdl-union
7450 (list sdl2 sdl2-mixer sdl2-net sdl2-ttf sdl2-image)))))
7451 (native-inputs
7452 `(("clang" ,clang)
7453 ("ghc" ,ghc)
7454 ("pkg-config" ,pkg-config)
7455 ("qttools" ,qttools)))
7456 (home-page "https://hedgewars.org/")
7457 (synopsis "Turn-based artillery game featuring fighting hedgehogs")
7458 (description
7459 "Hedgewars is a turn based strategy, artillery, action and comedy game,
7460 featuring the antics of pink hedgehogs with attitude as they battle from the
7461 depths of hell to the depths of space.
7462
7463 As commander, it's your job to assemble your crack team of hedgehog soldiers
7464 and bring the war to your enemy.")
7465 ;; Software as a whole is licensed under GPL-2 terms. Artwork and
7466 ;; scripts are distributed under various terms.
7467 (license (list license:gpl2
7468 license:bsd-2 license:bsd-3 license:cc-by3.0 license:cc0
7469 license:expat license:fdl1.3+ license:public-domain
7470 license:zlib))))
7471
7472 (define-public harmonist
7473 (package
7474 (name "harmonist")
7475 (version "0.3.0")
7476 (source (origin
7477 (method git-fetch)
7478 (uri (git-reference
7479 (url "https://git.tuxfamily.org/harmonist/harmonist.git")
7480 (commit (string-append "v" version))))
7481 (file-name (git-file-name name version))
7482 (sha256
7483 (base32
7484 "146wiyanag0zqj6fhyll2sw6sydnnll8mgxhhqf9sjqsl2rx4s5r"))))
7485 (build-system go-build-system)
7486 (arguments
7487 '(#:import-path "git.tuxfamily.org/harmonist/harmonist"))
7488 (inputs
7489 `(("go-github.com-nsf-termbox-go" ,go-github.com-nsf-termbox-go)))
7490 (home-page "https://harmonist.tuxfamily.org/")
7491 (synopsis "Stealth coffee-break roguelike game")
7492 (description "Harmonist: Dayoriah Clan Infiltration is a stealth
7493 coffee-break roguelike game. The game has a heavy focus on tactical
7494 positioning, light and noise mechanisms, making use of various terrain types
7495 and cones of view for monsters. Aiming for a replayable streamlined experience,
7496 the game avoids complex inventory management and character building, relying
7497 on items and player adaptability for character progression.")
7498 (license license:isc)))
7499
7500 (define-public harmonist-tk
7501 (package
7502 (inherit harmonist)
7503 (name "harmonist-tk")
7504 (arguments
7505 (append
7506 (package-arguments harmonist)
7507 `(#:phases
7508 (modify-phases %standard-phases
7509 (replace 'build
7510 (lambda _
7511 (invoke "go" "install" "-v" "-x" "--tags" "tk"
7512 "git.tuxfamily.org/harmonist/harmonist")))
7513 (replace 'check
7514 (lambda _
7515 (invoke "go" "test" "--tags" "tk"
7516 "git.tuxfamily.org/harmonist/harmonist")))))))
7517 (inputs
7518 `(("go-github.com-nsf-gothic" ,go-github.com-nsf-gothic)))))
7519
7520 (define-public drascula
7521 (package
7522 (name "drascula")
7523 (version "1.0")
7524 (source (origin
7525 (method url-fetch)
7526 (uri (string-append "mirror://sourceforge/scummvm/extras/"
7527 "Drascula_%20The%20Vampire%20Strikes%20Back/"
7528 "drascula-" version ".zip"))
7529 (sha256
7530 (base32
7531 "1pj29rpb754sn6a56f8brfv6f2m1p5qgaqik7d68pfi2bb5zccdp"))))
7532 (build-system trivial-build-system)
7533 (arguments
7534 `(#:modules ((guix build utils))
7535 #:builder
7536 (begin
7537 (use-modules (guix build utils)
7538 (ice-9 match))
7539 (let* ((out (assoc-ref %outputs "out"))
7540 (share (string-append out "/share/drascula"))
7541 (scummvm (assoc-ref %build-inputs "scummvm")))
7542 ;; Install data.
7543 (let ((unzip (string-append (assoc-ref %build-inputs "unzip")
7544 "/bin/unzip"))
7545 (doc (string-append out "/share/doc/" ,name "-" ,version)))
7546 (for-each
7547 (lambda (input)
7548 (invoke unzip
7549 "-j"
7550 (assoc-ref %build-inputs input)
7551 "-x" "__MACOSX")
7552 ;; Every input provides "readme.txt", and we want to
7553 ;; preserve them all. Therefore we rename them first.
7554 (match input
7555 ("drascula-int"
7556 (rename-file "readme.txt" "readme-international.txt"))
7557 ("drascula-audio"
7558 (rename-file "readme.txt" "readme-audio.txt"))
7559 (_ #f))
7560 ;; Install documentation.
7561 (for-each (lambda (f) (install-file f doc))
7562 (find-files "." "\\.(txt|doc)$"))
7563 ;; Install data.
7564 (for-each (lambda (f) (install-file f share))
7565 (find-files "." "\\.(ogg|00[0-9])$")))
7566 '("drascula-audio" "drascula-int" "source")))
7567 ;; Create standalone executable.
7568 (let* ((bin (string-append out "/bin"))
7569 (executable (string-append bin "/drascula"))
7570 (bash (string-append (assoc-ref %build-inputs "bash")
7571 "/bin/bash")))
7572 (mkdir-p bin)
7573 (with-output-to-file executable
7574 (lambda ()
7575 (format #t "#!~a~%" bash)
7576 (format #t
7577 "exec ~a/bin/scummvm --path=~a drascula~%"
7578 scummvm share)))
7579 (chmod executable #o755))
7580 ;; Create desktop file. There is no dedicated icon for the
7581 ;; game, so we borrow SCUMMVM's.
7582 (let ((apps (string-append out "/share/applications")))
7583 (mkdir-p apps)
7584 (with-output-to-file (string-append apps "/drascula.desktop")
7585 (lambda _
7586 (format #t
7587 "[Desktop Entry]~@
7588 Name=Drascula: The Vampire Strikes Back~@
7589 GenericName=Drascula~@
7590 Exec=~a/bin/drascula~@
7591 Icon=~a/share/icons/hicolor/scalable/apps/scummvm.svg~@
7592 Categories=AdventureGame;Game;RolePlaying;~@
7593 Keywords=game;adventure;roleplaying;2D,fantasy;~@
7594 Comment=Classic 2D point and click adventure game~@
7595 Comment[de]=klassisches 2D-Abenteuerspiel in Zeigen-und-Klicken-Manier~@
7596 Comment[fr]=Jeux classique d'aventure pointer-et-cliquer en 2D~@
7597 Comment[it]=Gioco classico di avventura punta e clicca 2D~@
7598 Type=Application~%"
7599 out scummvm))))
7600 #t))))
7601 (native-inputs
7602 `(("bash" ,bash)
7603 ("unzip" ,unzip)))
7604 (inputs
7605 `(("scummvm" ,scummvm)
7606 ("drascula-int"
7607 ,(let ((version "1.1"))
7608 (origin
7609 (method url-fetch)
7610 (uri (string-append "mirror://sourceforge/scummvm/extras/"
7611 "Drascula_%20The%20Vampire%20Strikes%20Back/"
7612 "drascula-int-" version ".zip"))
7613 (sha256
7614 (base32
7615 "12236i7blamal92p1i8dgp3nhp2yicics4whsl63v682bj999n14")))))
7616 ("drascula-audio"
7617 ,(let ((version "2.0"))
7618 (origin
7619 (method url-fetch)
7620 (uri (string-append "mirror://sourceforge/scummvm/extras/"
7621 "Drascula_%20The%20Vampire%20Strikes%20Back/"
7622 "drascula-audio-" version ".zip"))
7623 (sha256
7624 (base32
7625 "00g4izmsqzxb8ry1vhfx6jrygl58lvlij09nw01ds4zddsiznsky")))))))
7626 (home-page "https://www.scummvm.org")
7627 (synopsis "Classic 2D point and click adventure game")
7628 (description "Drascula: The Vampire Strikes Back is a classic humorous 2D
7629 point and click adventure game.
7630
7631 In Drascula you play the role of John Hacker, a British estate agent, that
7632 gets to meet a gorgeous blond girl who is kidnapped by the notorious vampire
7633 Count Drascula and embark on a fun yet dangerous quest to rescue her.
7634 Unfortunately, Hacker is not aware of Drascula's real ambitions: DOMINATING
7635 the World and demonstrating that he is even more evil than his brother Vlad.")
7636 ;; Drascula uses a BSD-like license.
7637 (license (license:non-copyleft "file:///readme.txt"))))
7638
7639 (define-public gnurobots
7640 (package
7641 (name "gnurobots")
7642 (version "1.2.0")
7643 (source
7644 (origin
7645 (method url-fetch)
7646 (uri (string-append "mirror://gnu/gnurobots/gnurobots-"
7647 version ".tar.gz"))
7648 (sha256
7649 (base32
7650 "07gi3lsmbzzsjambgixj6xy79lh22km84z7bnzgwzxdy806lyvwb"))))
7651 (build-system gnu-build-system)
7652 (inputs
7653 `(("glib" ,glib)
7654 ("gtk+" ,gtk+-2)
7655 ("vte" ,vte/gtk+-2)
7656 ("readline" ,readline)
7657 ("guile" ,guile-1.8)))
7658 (native-inputs
7659 `(("pkg-config" ,pkg-config)))
7660 (arguments
7661 `(#:make-flags
7662 (list
7663 ;; Do not abort build on "deprecated-declarations" warnings.
7664 "CFLAGS=-Wno-error=deprecated-declarations"
7665 ;; Find readline headers in sub-directory.
7666 (string-append "READLINE_CFLAGS=-I"
7667 (assoc-ref %build-inputs "readline")
7668 "/include/readline/"))
7669 #:phases
7670 (modify-phases %standard-phases
7671 (add-after 'install 'install-doc
7672 (lambda* (#:key outputs #:allow-other-keys)
7673 (install-file "doc/Robots-HOWTO"
7674 (string-append (assoc-ref outputs "out")
7675 "/share/doc/gnurobots-"
7676 ,version))
7677 #t)))))
7678 (home-page "https://www.gnu.org/software/gnurobots/")
7679 (synopsis "Program a little robot and watch it explore a world")
7680 (description
7681 "GNU Robots is a game in which you program a robot to explore a world
7682 full of enemies that can hurt it, obstacles and food to be eaten. The goal of
7683 the game is to stay alive and collect prizes. The robot program conveniently
7684 may be written in a plain text file in the Scheme programming language.")
7685 (license license:gpl3+)))
7686
7687 (define-public ri-li
7688 (package
7689 (name "ri-li")
7690 (version "2.0.1")
7691 (source (origin
7692 (method url-fetch)
7693 (uri (string-append "mirror://sourceforge/ri-li/"
7694 "Ri-li%20Linux_Unix/Ri-li%20V" version "/"
7695 "Ri-li-" version ".tar.bz2"))
7696 (sha256
7697 (base32
7698 "1gcdsgnnbbn1mb1hkpwniv3fhkaj1nn8gq33v5c16q3wqchcq77p"))
7699 ;; Taken from
7700 ;; <https://github.com/NixOS/nixpkgs/blob/master/pkgs/games/rili/moderinze_cpp.patch>.
7701 ;; It doesn't build otherwise.
7702 (patches (search-patches "ri-li-modernize_cpp.patch"))))
7703 (build-system gnu-build-system)
7704 (arguments
7705 `(#:phases
7706 (modify-phases %standard-phases
7707 ;; Remove "gentoo" subdirectory from Makefile, as it is
7708 ;; missing a make file and generates a build failure.
7709 (add-after 'configure 'fix-build
7710 (lambda _
7711 (substitute* "Makefile"
7712 ((" gentoo") ""))
7713 #t))
7714 (add-after 'install 'install-desktop-file
7715 (lambda* (#:key outputs #:allow-other-keys)
7716 (let* ((out (assoc-ref outputs "out"))
7717 (apps (string-append out "/share/applications"))
7718 (pixmaps (string-append out "/share/pixmaps")))
7719 (for-each (lambda (f) (install-file f pixmaps))
7720 (find-files "data" "\\.(png|ico)$"))
7721 (mkdir-p apps)
7722 (with-output-to-file (string-append apps "/ri-li.desktop")
7723 (lambda _
7724 (format #t
7725 "[Desktop Entry]~@
7726 Name=Ri-li~@
7727 Exec=~a/bin/Ri_li~@
7728 Icon=~a/Ri-li-icon-32x32.png~@
7729 Categories=Game;ArcadeGame;~@
7730 Keywords=toy;train;wooden;snake-like;engine;~@
7731 Comment=a toy simulator game~@
7732 Comment[de]=Ein Spiel mit einem kleinen Zug~@
7733 Comment[fr]=un jeu de petit train~@
7734 Comment[ro_RO]=un joc cu un tren de jucărie~@
7735 Terminal=false~@
7736 Type=Application~%"
7737 out pixmaps))))
7738 #t))
7739 (add-after 'install-desktop-file 'remove-spurious-files
7740 ;; Delete redundant files already installed somewhere else.
7741 (lambda* (#:key outputs #:allow-other-keys)
7742 (let ((out (assoc-ref outputs "out")))
7743 (for-each delete-file
7744 (find-files (string-append out "/share/Ri-li")
7745 "\\.(png|ico)|COPYING"))
7746 #t))))))
7747 (inputs
7748 `(("sdl" ,(sdl-union (list sdl sdl-mixer)))))
7749 (home-page "http://www.ri-li.org")
7750 (synopsis "Toy train simulation game")
7751 (description "Ri-li is a game in which you drive a wooden toy
7752 steam locomotive across many levels and collect all the coaches to
7753 win.")
7754 ;; The project is dual-licensed GPL2+ and GPL3+.
7755 (license (list license:gpl2+ license:gpl3+))))
7756
7757 (define-public freeorion
7758 (package
7759 (name "freeorion")
7760 (version "0.4.8")
7761 (source
7762 (origin
7763 (method git-fetch)
7764 (uri (git-reference
7765 (url "https://github.com/freeorion/freeorion.git")
7766 ;; Most recent stable release uses boost_signals (v1) which was
7767 ;; later replaced with boost-signals2 and no longer exists. This
7768 ;; commit builds and runs.
7769 ;;
7770 ;; TODO: Update this when the next stable release when it is
7771 ;; available.
7772 (commit "470d0711537804df3c2ca25532f674ab4bec58af")))
7773 (file-name (git-file-name name version))
7774 (sha256
7775 (base32
7776 "1wsw632l1cj17px6i88nqjzs0dngp5rsr67n6qkkjlfjfxi69j0f"))
7777 (modules '((guix build utils)))
7778 (snippet
7779 '(begin
7780 ;; There are some bundled fonts.
7781 (for-each delete-file-recursively '("default/data/fonts"))
7782 #t))))
7783 (build-system cmake-build-system)
7784 (arguments
7785 '(#:tests? #f ;no test
7786 #:phases
7787 (modify-phases %standard-phases
7788 (add-after 'unpack 'unbundle-fonts
7789 (lambda* (#:key inputs #:allow-other-keys)
7790 (let ((roboto-dir (string-append (assoc-ref inputs "font-roboto")
7791 "/share/fonts/truetype/")))
7792 (substitute* "UI/ClientUI.cpp"
7793 (("\\(GetRootDataDir.*?Roboto-(Bold|Regular)\\.ttf\"\\)\\.string\\(\\)\\);"
7794 all type)
7795 (string-append "\"" roboto-dir "Roboto-" type ".ttf\");")))
7796 #t))))))
7797 (inputs
7798 `(("boost" ,boost)
7799 ("boost_signals" ,boost-signals2)
7800 ("font-dejavu" ,font-dejavu)
7801 ("font-roboto" ,font-google-roboto)
7802 ("freetype2" ,freetype)
7803 ("glew" ,glew)
7804 ("glu" ,glu)
7805 ("libogg" ,libogg)
7806 ("libpng" ,libpng)
7807 ("libvorbis" ,libvorbis)
7808 ("openal" ,openal)
7809 ("python2" ,python-2.7)
7810 ("sdl2" ,sdl2)
7811 ("zlib" ,zlib)))
7812 (home-page "https://www.freeorion.org/index.php/Main_Page")
7813 (synopsis "Turn-based space empire and galactic conquest computer game")
7814 (description
7815 "FreeOrion is a turn-based space empire and galactic conquest (4X)
7816 computer game being designed and built by the FreeOrion project. Control an
7817 empire with the goal of exploring the galaxy, expanding your territory,
7818 exploiting the resources, and exterminating rival alien empires. FreeOrion is
7819 inspired by the tradition of the Master of Orion games, but is not a clone or
7820 remake of that series or any other game.")
7821 ;; Source code is released under gpl2. Artwork, music and sounds, and
7822 ;; in-game text are released under cc-by-sa3.0. Game content scripts are
7823 ;; released under both gpl2 and cc-by-sa3.0. Bundled Gigi library is
7824 ;; released under lgpl2.1+.
7825 (license (list license:gpl2 license:cc-by-sa3.0 license:lgpl2.1+))))
7826
7827 (define-public leela-zero
7828 (package
7829 (name "leela-zero")
7830 (version "0.17")
7831 (source
7832 (origin
7833 (method git-fetch)
7834 (uri (git-reference
7835 (url "https://github.com/leela-zero/leela-zero.git")
7836 (commit (string-append "v" version))))
7837 (file-name (git-file-name name version))
7838 (sha256
7839 (base32
7840 "17px5iny8mql5c01bymcli7zfssswkzvb2i8gnsmjcck6i2n8srl"))
7841 (patches (search-patches "leela-zero-gtest.patch"))))
7842 (build-system cmake-build-system)
7843 (native-inputs
7844 `(("googletest" ,googletest)))
7845 (inputs
7846 `(("boost" ,boost)
7847 ("ocl-icd" ,ocl-icd)
7848 ("openblas" ,openblas)
7849 ("opencl-headers" ,opencl-headers)
7850 ("qtbase" ,qtbase)
7851 ("zlib" ,zlib)))
7852 (arguments
7853 '(#:configure-flags '("-DUSE_BLAS=YES")
7854 #:phases (modify-phases %standard-phases
7855 (add-before 'configure 'fix-tests
7856 (lambda* (#:key outputs #:allow-other-keys)
7857 (let ((home (getcwd)))
7858 (setenv "HOME" home)
7859 (substitute* "src/tests/gtests.cpp"
7860 (("\\.\\./src/tests/0k\\.txt")
7861 (string-append home "/src/tests/0k.txt"))
7862 (("cfg_gtp_mode = true;")
7863 "cfg_gtp_mode = true; cfg_cpu_only = true;")))
7864 #t))
7865 (replace 'check
7866 (lambda _
7867 (invoke "./tests"))))))
7868 (home-page "https://github.com/leela-zero/leela-zero")
7869 (synopsis "Program playing the game of Go")
7870 (description
7871 "Leela-zero is a Go engine with no human-provided knowledge, modeled after
7872 the AlphaGo Zero paper. The current best network weights file for the engine
7873 can be downloaded from @url{https://zero.sjeng.org/best-network}.")
7874 (license license:gpl3+)))
7875
7876 (define-public q5go
7877 (package
7878 (name "q5go")
7879 (version "1.0")
7880 (source (origin
7881 (method git-fetch)
7882 (uri (git-reference
7883 (url "https://github.com/bernds/q5Go.git")
7884 (commit (string-append "q5go-" version))))
7885 (file-name (git-file-name name version))
7886 (sha256
7887 (base32
7888 "1gdlfqcqkqv7vph3qwq78d0qz6dhmdsranxq9bmixiisbzkqby31"))))
7889 (build-system gnu-build-system)
7890 (native-inputs
7891 `(("pkg-config" ,pkg-config)))
7892 (inputs
7893 `(("qtbase" ,qtbase)
7894 ("qtmultimedia" ,qtmultimedia)
7895 ("qtsvg" ,qtsvg)))
7896 (arguments
7897 '(#:phases
7898 (modify-phases %standard-phases
7899 (add-after 'unpack 'fix-configure-script
7900 (lambda _
7901 ;; Bypass the unavailable qtchooser program.
7902 (substitute* "configure"
7903 (("test -z \"QTCHOOSER\"")
7904 "false")
7905 (("qtchooser -run-tool=(.*) -qt=qt5" _ command)
7906 command))
7907 #t))
7908 (add-after 'unpack 'fix-paths
7909 (lambda _
7910 (substitute* '("src/pics/Makefile.in"
7911 "src/translations/Makefile.in")
7912 (("\\$\\(datadir\\)/qGo/")
7913 "$(datadir)/q5go/"))
7914 #t))
7915 (add-after 'install 'install-desktop-file
7916 (lambda* (#:key outputs #:allow-other-keys)
7917 (let* ((out (assoc-ref outputs "out"))
7918 (apps (string-append out "/share/applications"))
7919 (pics (string-append out "/share/q5go/pics")))
7920 (delete-file-recursively (string-append out "/share/applnk"))
7921 (delete-file-recursively (string-append out "/share/mimelnk"))
7922 (install-file "../source/src/pics/Bowl.ico" pics)
7923 (mkdir-p apps)
7924 (with-output-to-file (string-append apps "/q5go.desktop")
7925 (lambda _
7926 (format #t
7927 "[Desktop Entry]~@
7928 Name=q5go~@
7929 Exec=~a/bin/q5go~@
7930 Icon=~a/Bowl.ico~@
7931 Categories=Game;~@
7932 Comment=Game of Go~@
7933 Comment[de]=Spiel des Go~@
7934 Comment[eo]=Goo~@
7935 Comment[es]=Juego de Go~@
7936 Comment[fr]=Jeu de Go~@
7937 Comment[ja]=囲碁~@
7938 Comment[ko]=바둑~@
7939 Comment[zh]=围棋~@
7940 Terminal=false~@
7941 Type=Application~%"
7942 out pics))))
7943 #t)))))
7944 (synopsis "Qt GUI to play the game of Go")
7945 (description
7946 "This a tool for Go players which performs the following functions:
7947 @itemize
7948 @item SGF editor,
7949 @item Analysis frontend for Leela Zero (or compatible engines),
7950 @item GTP interface (to play against an engine),
7951 @item IGS client (to play on the internet),
7952 @item Export games to a variety of formats.
7953 @end itemize")
7954 (home-page "https://github.com/bernds/q5Go")
7955 (license license:gpl2+)))
7956
7957 (define-public ktuberling
7958 (package
7959 (name "ktuberling")
7960 (version "19.08.3")
7961 (source
7962 (origin
7963 (method url-fetch)
7964 (uri (string-append "mirror://kde/stable/applications/" version
7965 "/src/ktuberling-" version ".tar.xz"))
7966 (sha256
7967 (base32 "1qdf4q6wjh1lnlqw5c8z4rpj9w5vbyjfri1dah6yjm3mwppbc12j"))))
7968 (build-system qt-build-system)
7969 (native-inputs
7970 `(("extra-cmake-modules" ,extra-cmake-modules)
7971 ("perl" ,perl)))
7972 (inputs
7973 `(("kcompletion" ,kcompletion)
7974 ("kconfigwidgets" ,kconfigwidgets)
7975 ("kcoreaddons" ,kcoreaddons)
7976 ("kcrash" ,kcrash)
7977 ("kdbusaddons" ,kdbusaddons)
7978 ("kdelibs4support" ,kdelibs4support)
7979 ("ki18n" ,ki18n)
7980 ("kwidgetsaddons" ,kwidgetsaddons)
7981 ("kxmlgui" ,kxmlgui)
7982 ("libkdegames" ,libkdegames)
7983 ("qtbase" ,qtbase)
7984 ("qtmultimedia" ,qtmultimedia)
7985 ("qtdeclarative" ,qtdeclarative)
7986 ("qtsvg" ,qtsvg)))
7987 (home-page "https://games.kde.org/")
7988 (synopsis "Stamp drawing toy")
7989 (description "KTuberling is a drawing toy intended for small children and
7990 adults who remain young at heart. The game has no winner; the only purpose is
7991 to make the funniest faces you can. Several activites are possible, e.g.:
7992
7993 @itemize
7994 @item Give the potato a funny face, clothes, and other goodies
7995 @item Build a small town, complete with school, zoo, and fire department
7996 @item Create a fantastic moonscape with spaceships and aliens
7997 @item Top a pizza
7998 @end itemize
7999
8000 KTuberling can speak the name of each the object in several languages,
8001 to assist in learning basic vocabulary.
8002
8003 This package is part of the KDE games module.")
8004 (license (list license:gpl2+ license:fdl1.2+))))
8005
8006 (define-public picmi
8007 (package
8008 (name "picmi")
8009 (version "19.08.3")
8010 (source
8011 (origin
8012 (method url-fetch)
8013 (uri (string-append "mirror://kde/stable/applications/" version
8014 "/src/picmi-" version ".tar.xz"))
8015 (sha256
8016 (base32 "0z9mpmv49w914gqdx274brdzl6d1bz9j9nkvbwgmr3iq1ba49m3f"))))
8017 (build-system qt-build-system)
8018 (native-inputs
8019 `(("extra-cmake-modules" ,extra-cmake-modules)
8020 ("kdoctools" ,kdoctools)))
8021 (inputs
8022 `(("kcoreaddons" ,kcoreaddons)
8023 ("kcrash" ,kcrash)
8024 ("kdbusaddons" ,kdbusaddons)
8025 ("kdeclarative" ,kdeclarative)
8026 ("ki18n" ,ki18n)
8027 ("kio" ,kio)
8028 ("knewstuff" ,knewstuff)
8029 ("kxmlgui" ,kxmlgui)
8030 ("libkdegames" ,libkdegames)
8031 ("qtbase" ,qtbase)
8032 ("qtdeclarative" ,qtdeclarative)
8033 ("qtsvg" ,qtsvg)))
8034 (home-page "https://games.kde.org/")
8035 (synopsis "Number logic game")
8036 (description "Picmi is a number logic game in which cells in a grid have
8037 to be colored or left blank according to numbers given at the side of the
8038 grid. The aim is to reveal a hidden picture.
8039
8040 This package is part of the KDE games module.")
8041 (license (list license:gpl2+ license:fdl1.2+))))
8042
8043 (define-public kolf
8044 (package
8045 (name "kolf")
8046 (version "19.08.3")
8047 (source
8048 (origin
8049 (method url-fetch)
8050 (uri (string-append "mirror://kde/stable/applications/" version
8051 "/src/kolf-" version ".tar.xz"))
8052 (sha256
8053 (base32 "06sfd0llr5cc3zf1vrpcxgw9bm009ky7y8822kynic9ipcd4z1hw"))))
8054 (build-system qt-build-system)
8055 (native-inputs
8056 `(("extra-cmake-modules" ,extra-cmake-modules)
8057 ("kdoctools" ,kdoctools)))
8058 (inputs
8059 `(("kcompletion" ,kcompletion)
8060 ("kconfigwidgets" ,kconfigwidgets)
8061 ("kcoreaddons" ,kcoreaddons)
8062 ("kcrash" ,kcrash)
8063 ("kdbusaddons" ,kdbusaddons)
8064 ("ki18n" ,ki18n)
8065 ("kio" ,kio)
8066 ("kwidgetsaddons" ,kwidgetsaddons)
8067 ("kxmlgui" ,kxmlgui)
8068 ("ktextwidgets" ,ktextwidgets)
8069 ("libkdegames" ,libkdegames)
8070 ("qtbase" ,qtbase)
8071 ("qtdeclarative" ,qtdeclarative)))
8072 (home-page "https://games.kde.org/")
8073 (synopsis "Miniature golf game")
8074 (description "Kolf is a miniature golf game for one to ten players. The
8075 game is played from an overhead view, with a short bar representing the golf
8076 club. Kolf features many different types of objects, such as water hazards,
8077 slopes, sand traps, and black holes (warps), among others.
8078
8079 Features are:
8080 @itemize
8081 @item Single and Multi-player (up to ten players) modes
8082 @item High scores table
8083 @item Dynamic courses
8084 @item Third-party courses
8085 @item Course editor
8086 @end itemize
8087
8088 This package is part of the KDE games module.")
8089 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
8090
8091 (define-public libkmahjongg
8092 (package
8093 (name "libkmahjongg")
8094 (version "19.08.3")
8095 (source
8096 (origin
8097 (method url-fetch)
8098 (uri (string-append "mirror://kde/stable/applications/"
8099 version "/src/libkmahjongg-" version ".tar.xz"))
8100 (sha256
8101 (base32 "0rdimk11hrc8qrmiv26z0ddjzi1k6806c0rfskx4cwmildmh6zgx"))))
8102 (build-system qt-build-system)
8103 (native-inputs
8104 `(("extra-cmake-modules" ,extra-cmake-modules)))
8105 (inputs
8106 `(("kauth" ,kauth)
8107 ("kcompletion" ,kcompletion)
8108 ;("kconfig" ,kconfig)
8109 ("kcodecs" ,kcodecs)
8110 ("kconfigwidgets" ,kconfigwidgets)
8111 ("kcoreaddons" ,kcoreaddons)
8112 ("ki18n" ,ki18n)
8113 ("kwidgetsaddons" ,kwidgetsaddons)
8114 ("qtbase" ,qtbase)
8115 ("qtsvg" ,qtsvg)))
8116 (home-page "https://games.kde.org/")
8117 (synopsis "Shared library for kmahjongg and kshisen")
8118 (description "Shared library and common files for kmahjongg, kshisen and
8119 other Mah Jongg like games.")
8120 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
8121
8122 (define-public kmahjongg
8123 (package
8124 (name "kmahjongg")
8125 (version "19.08.3")
8126 (source
8127 (origin
8128 (method url-fetch)
8129 (uri (string-append "mirror://kde/stable/applications/"
8130 version "/src/kmahjongg-" version ".tar.xz"))
8131 (sha256
8132 (base32 "08na845h0nhmfrszdmvfq5y1dy7kgbrlzjp0f5snvbbf7w44ci6p"))))
8133 (build-system qt-build-system)
8134 (native-inputs
8135 `(("extra-cmake-modules" ,extra-cmake-modules)
8136 ("kdoctools" ,kdoctools)))
8137 (inputs
8138 `(("kcompletion" ,kcompletion)
8139 ("kcrash" ,kcrash)
8140 ("kdbusaddons" ,kdbusaddons)
8141 ("kdeclarative" ,kdeclarative)
8142 ("ki18n" ,ki18n)
8143 ("knewstuff" ,knewstuff)
8144 ("kxmlgui" ,kxmlgui)
8145 ("libkdegames" ,libkdegames)
8146 ("libkmahjongg" ,libkmahjongg)
8147 ("qtbase" ,qtbase)
8148 ("qtdeclarative" ,qtdeclarative)
8149 ("qtsvg" ,qtsvg)))
8150 (home-page "https://games.kde.org/")
8151 (synopsis "Tile laying patience")
8152 (description "In KMahjongg the tiles are scrambled and staked on top of
8153 each other to resemble a certain shape. The player is then expected to remove
8154 all the tiles off the game board by locating each tile's matching pair.
8155
8156 A variety of tile layouts are included, as well as an editor to create new
8157 layouts.
8158
8159 This package is part of the KDE games module.")
8160 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
8161
8162 (define-public kshisen
8163 (package
8164 (name "kshisen")
8165 (version "19.08.3")
8166 (source
8167 (origin
8168 (method url-fetch)
8169 (uri (string-append "mirror://kde/stable/applications/"
8170 version "/src/kshisen-" version ".tar.xz"))
8171 (sha256
8172 (base32 "1bq5m48af4h5apfp3bfsp76nlpv6h5sc0gd544zv7cgpfznz1sds"))))
8173 (build-system qt-build-system)
8174 (native-inputs
8175 `(("extra-cmake-modules" ,extra-cmake-modules)
8176 ;("perl" ,perl)
8177 ;("pkg-config" ,pkg-config)
8178 ("kdoctools" ,kdoctools)))
8179 (inputs
8180 `(("kauth" ,kauth)
8181 ("kcompletion" ,kcompletion)
8182 ("kconfigwidgets" ,kconfigwidgets)
8183 ("kcoreaddons" ,kcoreaddons)
8184 ("kcrash" ,kcrash)
8185 ("kdbusaddons" ,kdbusaddons)
8186 ("ki18n" ,ki18n)
8187 ("kxmlgui" ,kxmlgui)
8188 ("libkdegames" ,libkdegames)
8189 ("libkmahjongg" ,libkmahjongg)
8190 ("qtbase" ,qtbase)
8191 ("qtdeclarative" ,qtdeclarative)))
8192 (home-page "https://games.kde.org/")
8193 (synopsis "Shisen-Sho solitaire game")
8194 (description "KShisen is a solitaire-like game played using the standard
8195 set of Mahjong tiles. Unlike Mahjong however, KShisen has only one layer of
8196 scrambled tiles
8197
8198 This package is part of the KDE games module.")
8199 (license license:gpl2+)))
8200
8201 (define-public kajongg
8202 (package
8203 (name "kajongg")
8204 (version "19.08.3")
8205 (source
8206 (origin
8207 (method url-fetch)
8208 (uri (string-append "mirror://kde/stable/applications/"
8209 version "/src/kajongg-" version ".tar.xz"))
8210 (sha256
8211 (base32 "0ql6p5zifdpdf65r7ki9ml123azpwwk9x3x8r9ij6xhjnf7p7x6w"))))
8212 (build-system qt-build-system)
8213 (native-inputs
8214 `(("extra-cmake-modules" ,extra-cmake-modules)
8215 ;("perl" ,perl)
8216 ("kdoctools" ,kdoctools)))
8217 (inputs
8218 `(("kconfig" ,kconfig)
8219 ("kconfigwidgets" ,kconfigwidgets)
8220 ("kcoreaddons" ,kcoreaddons)
8221 ("ki18n" ,ki18n)
8222 ("libkmahjongg" ,libkmahjongg)
8223 ("python" ,python)
8224 ("qtbase" ,qtbase)
8225 ("qtsvg" ,qtsvg)))
8226 (propagated-inputs
8227 `(("python-twisted" ,python-twisted)
8228 ("python-pyqt" ,python-pyqt)))
8229 ;; FIXME: Need to wrap PYTHONPATH
8230 (home-page "https://games.kde.org/")
8231 (synopsis "Classical Mah Jongg game for 4 players")
8232 (description "Kajongg is the ancient Chinese board game for 4 players.
8233
8234 If you are looking for the Mah Jongg solitaire please use the application
8235 kmahjongg.
8236
8237 Kajongg can be used in two different ways: Scoring a manual game where you
8238 play as always and use Kajongg for the computation of scores and for
8239 bookkeeping. Or you can use Kajongg to play against any combination of other
8240 human players or computer players.
8241
8242 This package is part of the KDE games module.")
8243 (license (list license:gpl2+ license:fdl1.2+))))
8244
8245 (define-public kbreakout
8246 (package
8247 (name "kbreakout")
8248 (version "19.08.3")
8249 (source
8250 (origin
8251 (method url-fetch)
8252 (uri (string-append "mirror://kde/stable/applications/" version
8253 "/src/kbreakout-" version ".tar.xz"))
8254 (sha256
8255 (base32 "0gwzx1z9mxrjlcjzglg8cxkyd6900whcar3b5j9laxxarc6xhj8w"))))
8256 (build-system qt-build-system)
8257 (native-inputs
8258 `(("extra-cmake-modules" ,extra-cmake-modules)
8259 ("kdoctools" ,kdoctools)))
8260 (inputs
8261 `(("kcompletion" ,kcompletion)
8262 ("kconfig" ,kconfig)
8263 ("kconfigwidgets" ,kconfigwidgets)
8264 ("kcoreaddons" ,kcoreaddons)
8265 ("kcrash" ,kcrash)
8266 ("kdbusaddons" ,kdbusaddons)
8267 ("ki18n" ,ki18n)
8268 ("kwidgetsaddons" ,kwidgetsaddons)
8269 ("kxmlgui" ,kxmlgui)
8270 ("libkdegames" ,libkdegames)
8271 ("qtbase" ,qtbase)
8272 ("qtdeclarative" ,qtdeclarative)))
8273 (home-page "https://games.kde.org/")
8274 (synopsis "Breakout like game")
8275 (description "KBreakout is similar to the classics breakout and xboing,
8276 featuring a number of added graphical enhancements and effects. You control a
8277 paddle at the bottom of the playing-field, and must destroy bricks at the top
8278 by bouncing balls against them.
8279
8280 This package is part of the KDE games module.")
8281 (license (list license:gpl2+ license:fdl1.2+))))
8282
8283 (define-public kmines
8284 (package
8285 (name "kmines")
8286 (version "19.08.3")
8287 (source
8288 (origin
8289 (method url-fetch)
8290 (uri (string-append "mirror://kde/stable/applications/" version
8291 "/src/kmines-" version ".tar.xz"))
8292 (sha256
8293 (base32 "0ac3za36lh8hpx6mqfic9amwmzhzhzplm9hg3pw12gxl5a9mvfsf"))))
8294 (build-system qt-build-system)
8295 (native-inputs
8296 `(("extra-cmake-modules" ,extra-cmake-modules)
8297 ("kdoctools" ,kdoctools)))
8298 (inputs
8299 `(("kcompletion" ,kcompletion)
8300 ("kconfig" ,kconfig)
8301 ("kconfigwidgets" ,kconfigwidgets)
8302 ("kcoreaddons" ,kcoreaddons)
8303 ("kcrash" ,kcrash)
8304 ("kdbusaddons" ,kdbusaddons)
8305 ("ki18n" ,ki18n)
8306 ("ktextwidgets" ,ktextwidgets)
8307 ("kwidgetsaddons" ,kwidgetsaddons)
8308 ("kxmlgui" ,kxmlgui)
8309 ("libkdegames" ,libkdegames)
8310 ("qtbase" ,qtbase)
8311 ("qtdeclarative" ,qtdeclarative)))
8312 (home-page "https://games.kde.org/")
8313 (synopsis "Classical mine sweeper game")
8314 (description "KMines is a classic Minesweeper game. The idea is to
8315 uncover all the squares without blowing up any mines. When a mine is blown
8316 up, the game is over.
8317
8318 This package is part of the KDE games module.")
8319 (license (list license:gpl2+ license:fdl1.2+))))
8320
8321 (define-public konquest
8322 (package
8323 (name "konquest")
8324 (version "19.08.3")
8325 (source
8326 (origin
8327 (method url-fetch)
8328 (uri (string-append "mirror://kde/stable/applications/"
8329 version "/src/konquest-" version ".tar.xz"))
8330 (sha256
8331 (base32 "02gjxskhi10a1sqh3skcild8zria7wncz1a4sbz7ax1p851q76k1"))))
8332 (build-system qt-build-system)
8333 (native-inputs
8334 `(("extra-cmake-modules" ,extra-cmake-modules)
8335 ("kdoctools" ,kdoctools)))
8336 (inputs
8337 `(("kcompletion" ,kcompletion)
8338 ("kconfig" ,kconfig)
8339 ("kcoreaddons" ,kcoreaddons)
8340 ("kcrash" ,kcrash)
8341 ("kdbusaddons" ,kdbusaddons)
8342 ("kguiaddons" ,kguiaddons)
8343 ("ki18n" ,ki18n)
8344 ("kwidgetsaddons" ,kwidgetsaddons)
8345 ("kxmlgui" ,kxmlgui)
8346 ("libkdegames" ,libkdegames)
8347 ("qtbase" ,qtbase)
8348 ("qtdeclarative" ,qtdeclarative)
8349 ("qtsvg" ,qtsvg)))
8350 (home-page "https://games.kde.org/")
8351 (synopsis "Simple turn-based strategy game")
8352 (description "Konquest is the KDE version of Gnu-Lactic Konquest. Players
8353 conquer other planets by sending ships to them. The goal is to build an
8354 interstellar empire and ultimately conquer all other player's planets. The
8355 game can be played with up to nine empires, commanded either by the computer
8356 or by puny earthlings.
8357
8358 This package is part of the KDE games module.")
8359 (license (list license:gpl2+ license:fdl1.2+))))
8360
8361 (define-public kbounce
8362 (package
8363 (name "kbounce")
8364 (version "19.08.3")
8365 (source
8366 (origin
8367 (method url-fetch)
8368 (uri (string-append "mirror://kde/stable/applications/"
8369 version "/src/kbounce-" version ".tar.xz"))
8370 (sha256
8371 (base32 "02rfv0qzz5cmyfx8f56a45hbm9gsp6m3dcy8ajwx88rw5wpbrr11"))))
8372 (build-system qt-build-system)
8373 (native-inputs
8374 `(("extra-cmake-modules" ,extra-cmake-modules)
8375 ("kdoctools" ,kdoctools)))
8376 (inputs
8377 `(("kcompletion" ,kcompletion)
8378 ("kconfigwidgets" ,kconfigwidgets)
8379 ("kcoreaddons" ,kcoreaddons)
8380 ("kcrash" ,kcrash)
8381 ("kdbusaddons" ,kdbusaddons)
8382 ("ki18n" ,ki18n)
8383 ("kio" ,kio)
8384 ("kwidgetsaddons" ,kwidgetsaddons)
8385 ("kxmlgui" ,kxmlgui)
8386 ("libkdegames" ,libkdegames)
8387 ("qtbase" ,qtbase)
8388 ("qtdeclarative" ,qtdeclarative)
8389 ("qtsvg" ,qtsvg)))
8390 (home-page "https://games.kde.org/")
8391 (synopsis "Jezzball arcade game")
8392 (description "KBounce is a single player arcade game with the elements of
8393 puzzle. It is played on a field, surrounded by wall, with two or more balls
8394 bouncing around within the walls. The object of the game is to build new
8395 walls to decrease the size of the active field.
8396
8397 This package is part of the KDE games module.")
8398 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
8399
8400 (define-public kblocks
8401 (package
8402 (name "kblocks")
8403 (version "19.08.3")
8404 (source
8405 (origin
8406 (method url-fetch)
8407 (uri (string-append "mirror://kde/stable/applications/"
8408 version "/src/kblocks-" version ".tar.xz"))
8409 (sha256
8410 (base32 "0qrm0dihzhkxsq9l49ndzms802x6jn92vvabb2zf2q9z593m69cx"))))
8411 (build-system qt-build-system)
8412 (native-inputs
8413 `(("extra-cmake-modules" ,extra-cmake-modules)
8414 ("kdoctools" ,kdoctools)))
8415 (inputs
8416 `(("kcompletion" ,kcompletion)
8417 ("kconfig" ,kconfig)
8418 ("kconfigwidgets" ,kconfigwidgets)
8419 ("kcoreaddons" ,kcoreaddons)
8420 ("kcrash" ,kcrash)
8421 ("kdbusaddons" ,kdbusaddons)
8422 ("ki18n" ,ki18n)
8423 ("kwidgetsaddons" ,kwidgetsaddons)
8424 ("kxmlgui" ,kxmlgui)
8425 ("libkdegames" ,libkdegames)
8426 ("qtbase" ,qtbase)
8427 ("qtdeclarative" ,qtdeclarative)
8428 ("qtsvg" ,qtsvg)))
8429 (home-page "https://games.kde.org/")
8430 (synopsis "Single player falling blocks puzzle game")
8431 (description "KBlocks is the classic Tetris-like falling blocks game.
8432
8433 The idea is to stack the falling blocks to create horizontal lines without any
8434 gaps. When a line is completed it is removed, and more space is available in
8435 the play area. When there is not enough space for blocks to fall, the game is
8436 over.
8437
8438 This package is part of the KDE games module.")
8439 (license (list license:gpl2+ license:fdl1.2+))))
8440
8441 (define-public ksudoku
8442 (package
8443 (name "ksudoku")
8444 (version "19.08.3")
8445 (source
8446 (origin
8447 (method url-fetch)
8448 (uri (string-append "mirror://kde/stable/applications/"
8449 version "/src/ksudoku-" version ".tar.xz"))
8450 (sha256
8451 (base32 "0rcscz91hilm7l3am5w02n0n8l7xhi4l0n4sskznh68kblw0ggw2"))))
8452 (build-system qt-build-system)
8453 (native-inputs
8454 `(("extra-cmake-modules" ,extra-cmake-modules)
8455 ("kdoctools" ,kdoctools)))
8456 (inputs
8457 `(("karchive", karchive)
8458 ("kconfig" ,kconfig)
8459 ("kconfigwidgets" ,kconfigwidgets)
8460 ("kcoreaddons" ,kcoreaddons)
8461 ("kcrash" ,kcrash)
8462 ("kguiaddons" ,kguiaddons)
8463 ("ki18n" ,ki18n)
8464 ("kiconthemes" ,kiconthemes)
8465 ("kio" ,kio)
8466 ("kwidgetsaddons" ,kwidgetsaddons)
8467 ("kxmlgui" ,kxmlgui)
8468 ("libkdegames" ,libkdegames)
8469 ("glu" ,glu)
8470 ("qtbase" ,qtbase)
8471 ("qtdeclarative" ,qtdeclarative)
8472 ("qtsvg" ,qtsvg)))
8473 (home-page "https://games.kde.org/")
8474 (synopsis "Sudoku puzzle game and solver")
8475 (description "KSudoku is a Sudoku game and solver, supporting a range of
8476 2D and 3D Sudoku variants. In addition to playing Sudoku, it can print Sudoku
8477 puzzle sheets and find the solution to any Sudoku puzzle.
8478
8479 The word Sudoku means \"single number in an allotted place\" in Japanese.
8480 These are the basic rules: Every Sudoku is a square divided into 3x3
8481 subsquares with 3x3 cells each.
8482
8483 Some cells are filled with a number at the beginning. The remaining ones are
8484 to be filled by the player using numbers from 1 to 9, without repeating a
8485 number twice on each column, row or subsquare (each of them must contain only
8486 one 1, one 2, one 3, and so on). The game requires logic and patience.
8487 Solving takes usually 10 to 30 minutes, depending on puzzle level, your skill
8488 and experience.
8489
8490 The numerals in Sudoku puzzles are used for convenience (for example in 16x16
8491 board we use letters): arithmetic relationships between numbers are
8492 irrelevant.
8493
8494 This program supports also 16x16 games with numbers from 1 to 16 and 256
8495 cells with 16 cols, rows and subsquares!
8496
8497 More information at http://en.wikipedia.org/wiki/Sudoku
8498
8499 This package is part of the KDE games module.")
8500 (license (list license:gpl2+ license:fdl1.2+))))
8501
8502 (define-public klines
8503 (package
8504 (name "klines")
8505 (version "19.08.3")
8506 (source
8507 (origin
8508 (method url-fetch)
8509 (uri (string-append "mirror://kde/stable/applications/" version
8510 "/src/klines-" version ".tar.xz"))
8511 (sha256
8512 (base32 "1g1f46jp0rb8gpqkgcf915ydpsscn1sxk3gjvm8bcqgx9ddq59xa"))))
8513 (build-system qt-build-system)
8514 (native-inputs
8515 `(("extra-cmake-modules" ,extra-cmake-modules)
8516 ("kdoctools" ,kdoctools)))
8517 (inputs
8518 `(("kcompletion" ,kcompletion)
8519 ("kconfigwidgets" ,kconfigwidgets)
8520 ("kcoreaddons" ,kcoreaddons)
8521 ("kcrash" ,kcrash)
8522 ("kdbusaddons" ,kdbusaddons)
8523 ("ki18n" ,ki18n)
8524 ("kwidgetsaddons" ,kwidgetsaddons)
8525 ("kxmlgui" ,kxmlgui)
8526 ("libkdegames" ,libkdegames)
8527 ("qtbase" ,qtbase)
8528 ("qtdeclarative" ,qtdeclarative)))
8529 (home-page "https://games.kde.org/")
8530 (synopsis "Place 5 equal pieces together, but wait, there are 3 new ones")
8531 (description "KLines is a simple but highly addictive one player game.
8532
8533 The player has to move the colored balls around the game board, gathering them
8534 into the lines of the same color by five. Once the line is complete it is
8535 removed from the board, therefore freeing precious space. In the same time
8536 the new balls keep arriving by three after each move, filling up the game
8537 board.
8538
8539 KLines is a single-player game where the player removes colored balls from the
8540 board by arranging them into lines of five or more. However, every time the
8541 player moves a ball, three more balls are added to the board.
8542
8543 This package is part of the KDE games module.")
8544 (license (list license:gpl2+ license:fdl1.2+))))
8545
8546 (define-public kgoldrunner
8547 (package
8548 (name "kgoldrunner")
8549 (version "19.08.3")
8550 (source
8551 (origin
8552 (method url-fetch)
8553 (uri (string-append "mirror://kde/stable/applications/" version "/src/kgoldrunner-"
8554 version ".tar.xz"))
8555 (sha256
8556 (base32 "16rcvq796r3asz4v4ap75xvwnxd3dd2nsq5r9vxvzl6rrf1w9bj4"))))
8557 (build-system qt-build-system)
8558 (native-inputs
8559 `(("extra-cmake-modules" ,extra-cmake-modules)
8560 ("kdoctools" ,kdoctools)))
8561 (inputs
8562 `(("kcompletion" ,kcompletion)
8563 ("kcoreaddons" ,kcoreaddons)
8564 ("kcrash" ,kcrash)
8565 ("kdbusaddons" ,kdbusaddons)
8566 ("ki18n" ,ki18n)
8567 ("kio" ,kio)
8568 ("kwidgetsaddons" ,kwidgetsaddons)
8569 ("kxmlgui" ,kxmlgui)
8570 ("libkdegames" ,libkdegames)
8571 ("qtbase" ,qtbase)
8572 ("qtdeclarative" ,qtdeclarative)))
8573 (home-page "https://games.kde.org/")
8574 (synopsis "Action and puzzle solving game")
8575 (description "KGoldrunner is an action game where the hero runs through a
8576 maze, climbs stairs, dig holes and dodges enemies in order to collect all the
8577 gold nuggets and escape to the next level. Your enemies are also after the
8578 gold. Worse still, they are after you!.
8579
8580 KGoldrunner is a fast-paced platform game where the player must navigate a
8581 maze while collecting gold nuggets and avoiding enemies. A variety of level
8582 packs are included, as well as an editor to create new levels.
8583
8584 This package is part of the KDE games module.")
8585 (license (list license:gpl2+ license:fdl1.2+))))
8586
8587 (define-public kdiamond
8588 (package
8589 (name "kdiamond")
8590 (version "19.08.3")
8591 (source
8592 (origin
8593 (method url-fetch)
8594 (uri (string-append "mirror://kde/stable/applications/" version
8595 "/src/kdiamond-" version ".tar.xz"))
8596 (sha256
8597 (base32 "1v5yb9hb26lk277zhw8d37ks829yfqr5anzx1qhms44gca5kqhva"))))
8598 (build-system qt-build-system)
8599 (native-inputs
8600 `(("extra-cmake-modules" ,extra-cmake-modules)
8601 ("kdoctools" ,kdoctools)))
8602 (inputs
8603 `(("kcompletion", kcompletion)
8604 ("kconfig" ,kconfig)
8605 ("kconfigwidgets" ,kconfigwidgets)
8606 ("kcoreaddons" ,kcoreaddons)
8607 ("kcrash" ,kcrash)
8608 ("kdbusaddons" ,kdbusaddons)
8609 ("ki18n" ,ki18n)
8610 ("knotifications" ,knotifications)
8611 ("knotifyconfig" ,knotifyconfig)
8612 ("kwidgetsaddons" ,kwidgetsaddons)
8613 ("kxmlgui" ,kxmlgui)
8614 ("libkdegames" ,libkdegames)
8615 ("qtbase" ,qtbase)
8616 ("qtdeclarative" ,qtdeclarative)))
8617 (home-page "https://games.kde.org/")
8618 (synopsis "Three-in-a-row game")
8619 (description "KDiamond is a three-in-a-row game like Bejeweled. It
8620 features unlimited fun with randomly generated games and five difficulty
8621 levels with varying number of diamond colors and board sizes.
8622
8623 This package is part of the KDE games module.")
8624 (license (list license:gpl2+ license:fdl1.2+))))
8625
8626 (define-public kfourinline
8627 (package
8628 (name "kfourinline")
8629 (version "19.08.3")
8630 (source
8631 (origin
8632 (method url-fetch)
8633 (uri (string-append "mirror://kde/stable/applications/" version
8634 "/src/kfourinline-" version ".tar.xz"))
8635 (sha256
8636 (base32 "1vprs6dc1ccn3g6k594i9s94xy4b91vzlqjysyc6fqcq2fs54ny3"))))
8637 (build-system qt-build-system)
8638 (native-inputs
8639 `(("extra-cmake-modules" ,extra-cmake-modules)
8640 ("kdoctools" ,kdoctools)))
8641 (inputs
8642 `(("kcompletion" ,kcompletion)
8643 ("kconfig" ,kconfig)
8644 ("kconfigwidgets" ,kconfigwidgets)
8645 ("kcoreaddons" ,kcoreaddons)
8646 ("kcrash" ,kcrash)
8647 ("kdelibs4support" ,kdelibs4support)
8648 ("kdnssd" ,kdnssd)
8649 ("ki18n" ,ki18n)
8650 ("kxmlgui" ,kxmlgui)
8651 ("libkdegames" ,libkdegames)
8652 ("qtbase" ,qtbase)
8653 ("qtdeclarative" ,qtdeclarative)
8654 ("qtsvg" ,qtsvg)))
8655 (home-page "https://games.kde.org/")
8656 (synopsis "Place 4 pieces in a row")
8657 (description "KFourInLine is a board game for two players based on the
8658 Connect-Four game.
8659
8660 KFourInLine is a game where two players take turns dropping pieces into a
8661 grid, the winner being the first to place four pieces in a line.
8662
8663 This package is part of the KDE games module.")
8664 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
8665
8666 (define-public kblackbox
8667 (package
8668 (name "kblackbox")
8669 (version "19.08.3")
8670 (source
8671 (origin
8672 (method url-fetch)
8673 (uri (string-append "mirror://kde/stable/applications/" version
8674 "/src/kblackbox-" version ".tar.xz"))
8675 (sha256
8676 (base32 "1x42sfpf75c6mavwkc7g7dm11y9s5dpj8igphly5kvm0pajqby0n"))))
8677 (build-system qt-build-system)
8678 (native-inputs
8679 `(("extra-cmake-modules" ,extra-cmake-modules)
8680 ("kdoctools" ,kdoctools)))
8681 (inputs
8682 `(("karchive" ,karchive)
8683 ("kcompletion" ,kcompletion)
8684 ("kconfig" ,kconfig)
8685 ("kcoreaddons" ,kcoreaddons)
8686 ("kcrash" ,kcrash)
8687 ("kdbusaddons" ,kdbusaddons)
8688 ("ki18n" ,ki18n)
8689 ("ktextwidgets" ,ktextwidgets)
8690 ("kxmlgui" ,kxmlgui)
8691 ("libkdegames" ,libkdegames)
8692 ("qtbase" ,qtbase)
8693 ("qtdeclarative" ,qtdeclarative)
8694 ("qtsvg" ,qtsvg)))
8695 (home-page "https://games.kde.org/")
8696 (synopsis "Find atoms in a grid by shooting electrons")
8697 (description "KBlackbox is a game of hide and seek played on a grid of
8698 boxes where the computer has hidden several balls. The position of the hidden
8699 balls can be deduced by shooting beams into the box
8700
8701 KBlackBox is a game of hide and seek played on an grid of boxes, where the
8702 player shoots rays into the grid to deduce the positions of hidden objects.
8703
8704 This package is part of the KDE games module.")
8705 (license (list license:gpl2+ license:fdl1.2+))))
8706
8707 (define-public knetwalk
8708 (package
8709 (name "knetwalk")
8710 (version "19.08.3")
8711 (source
8712 (origin
8713 (method url-fetch)
8714 (uri (string-append "mirror://kde/stable/applications/" version
8715 "/src/knetwalk-" version ".tar.xz"))
8716 (sha256
8717 (base32 "1i340salzgqdw8y33wrrydmpgx3pvwf5wrbljlh67cjf6s4csx7d"))))
8718 (build-system qt-build-system)
8719 (native-inputs
8720 `(("extra-cmake-modules" ,extra-cmake-modules)
8721 ("kdoctools" ,kdoctools)))
8722 (inputs
8723 `(("kcompletion" ,kcompletion)
8724 ("kconfig" ,kconfig)
8725 ("kconfigwidgets" ,kconfigwidgets)
8726 ("kcoreaddons" ,kcoreaddons)
8727 ("kcrash" ,kcrash)
8728 ("kdbusaddons" ,kdbusaddons)
8729 ("ki18n" ,ki18n)
8730 ("ktextwidgets" ,ktextwidgets)
8731 ("kwidgetsaddons" ,kwidgetsaddons)
8732 ("kxmlgui" ,kxmlgui)
8733 ("libkdegames" ,libkdegames)
8734 ("qtbase" ,qtbase)
8735 ("qtdeclarative" ,qtdeclarative)))
8736 (home-page "https://games.kde.org/")
8737 (synopsis "Turn the board pieces to get all computers connected")
8738 (description "KNetWalk is a small game where you have to build up a
8739 computer network by rotating the wires to connect the terminals to the server.
8740 When the network is build, a highscore-list comes up where competitions can be
8741 fought out.
8742
8743 KNetwalk is a puzzle game where the player arranges sections of wire to
8744 connect all the computers on the board.
8745
8746 This package is part of the KDE games module.")
8747 (license (list license:gpl2+ license:fdl1.2+))))
8748
8749 (define-public bomber
8750 (package
8751 (name "bomber")
8752 (version "19.08.3")
8753 (source
8754 (origin
8755 (method url-fetch)
8756 (uri (string-append "mirror://kde/stable/applications/" version
8757 "/src/bomber-" version ".tar.xz"))
8758 (sha256
8759 (base32 "1lvzd0mzgq25akvwvkm57l3plm65k731v2i1ahakn985bb5gc3is"))))
8760 (build-system qt-build-system)
8761 (native-inputs
8762 `(("extra-cmake-modules" ,extra-cmake-modules)
8763 ("kdoctools" ,kdoctools)))
8764 (inputs
8765 `(("kcompletiom" ,kcompletion)
8766 ("kconfig" ,kconfig)
8767 ("kcoreaddons" ,kcoreaddons)
8768 ("kcrash" ,kcrash)
8769 ("kdbusaddons" ,kdbusaddons)
8770 ("ki18n" ,ki18n)
8771 ("kxmlgui" ,kxmlgui)
8772 ("libkdegames" ,libkdegames)
8773 ("qtbase" ,qtbase)
8774 ("qtdeclarative" ,qtdeclarative)))
8775 (home-page "https://games.kde.org/")
8776 (synopsis "Arcade bombing game")
8777 (description "Bomber is a single player arcade game.
8778
8779 The player is invading various cities in a plane that is decreasing in height.
8780 The goal of the game is to destroy all the buildings and advance to the next
8781 level. Each level gets a bit harder by increasing the speed of the plane and
8782 the height of the buildings.
8783
8784 Bomber is a game where you fly a spaceship and attempt to bomb the buildings
8785 below you. Each pass the spaceship makes, it gets lower and lower. If you've
8786 not destroyed a building in your path, you will crash into it.
8787
8788 This package is part of the KDE games module.")
8789 (license (list license:gpl2+ license:fdl1.2+))))
8790
8791 (define-public granatier
8792 (package
8793 (name "granatier")
8794 (version "19.08.3")
8795 (source
8796 (origin
8797 (method url-fetch)
8798 (uri (string-append "mirror://kde/stable/applications/" version
8799 "/src/granatier-" version ".tar.xz"))
8800 (sha256
8801 (base32 "141qmdinz7ikbbrs8dq6cap3nl22sl7pw62r80pf3xxwn2q4phpa"))))
8802 (build-system qt-build-system)
8803 (native-inputs
8804 `(("extra-cmake-modules" ,extra-cmake-modules)
8805 ("kdoctools" ,kdoctools)))
8806 (inputs
8807 `(("kcompletion" ,kcompletion)
8808 ("kconfig" ,kconfig)
8809 ("kconfigwidgets" ,kconfigwidgets)
8810 ("kcoreaddons" ,kcoreaddons)
8811 ("kcrash" ,kcrash)
8812 ("kdbusaddons" ,kdbusaddons)
8813 ("ki18n" ,ki18n)
8814 ("knewstuff" ,knewstuff)
8815 ("kwidgetsaddons" ,kwidgetsaddons)
8816 ("kxmlgui" ,kxmlgui)
8817 ("libkdegames" ,libkdegames)
8818 ("qtbase" ,qtbase)
8819 ("qtdeclarative" ,qtdeclarative)
8820 ("qtsvg" ,qtsvg)))
8821 (home-page "https://games.kde.org/")
8822 (synopsis "Bomberman clone")
8823 (description "Granatier is a clone of the classic Bomberman game,
8824 inspired by the work of the Clanbomber clone.
8825
8826 This package is part of the KDE games module.")
8827 (license (list license:gpl2+ license:fdl1.2+))))
8828
8829 (define-public ksirk
8830 (package
8831 (name "ksirk")
8832 (version "19.08.3")
8833 (source
8834 (origin
8835 (method url-fetch)
8836 (uri (string-append "mirror://kde/stable/applications/" version
8837 "/src/ksirk-" version ".tar.xz"))
8838 (sha256
8839 (base32 "1b1wixs2hp5qnvdygfwa3kvy0kn94ysa4ifmx90q6r3yfr2lpfca"))))
8840 (build-system qt-build-system)
8841 (native-inputs
8842 `(("extra-cmake-modules" ,extra-cmake-modules)
8843 ("kdoctools" ,kdoctools)))
8844 (inputs
8845 `(("kcrash" ,kcrash)
8846 ("ki18n" ,ki18n)
8847 ("kiconthemes" ,kiconthemes)
8848 ("kio" ,kio)
8849 ("knewstuff" ,knewstuff)
8850 ("kwallet" ,kwallet)
8851 ("kxmlgui" ,kxmlgui)
8852 ("libkdegames" ,libkdegames)
8853 ("phonon" ,phonon)
8854 ("qca" ,qca)
8855 ("qtbase" ,qtbase)
8856 ("qtdeclarative" ,qtdeclarative)
8857 ("qtsvg" ,qtsvg)
8858 ("zlib" ,zlib)))
8859 (home-page "https://games.kde.org/")
8860 (synopsis "Computerized version of the well known strategy board game
8861 'Risk'")
8862 (description "KsirK is a multi-player network-enabled game. The goal of
8863 the game is simply to conquer the world by attacking your neighbors with your
8864 armies.
8865
8866 At the beginning of the game, countries are distributed to all the players.
8867 Each country contains one army represented by an infantryman. Each player has
8868 some armies to distribute to his countries. On each turn, each player can
8869 attack his neighbours, eventually conquering one or more countries. At the
8870 end of each turn, some bonus armies are distributed to the players in function
8871 of the number of countries they own. The winner is the player that conquered
8872 all the world.
8873
8874 Features:
8875 @itemize
8876 @item Support for 1-6 human or computer players
8877 @item Multi-player gaming over a network
8878 @item You can easily create new skins with SVG graphics and the skin editor
8879 @item Hot New Stuff support. You can easily download and install new skins
8880 @end itemize
8881
8882 This package is part of the KDE games module.")
8883 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
8884
8885 (define-public palapeli
8886 (package
8887 (name "palapeli")
8888 (version "19.08.3")
8889 (source
8890 (origin
8891 (method url-fetch)
8892 (uri (string-append "mirror://kde/stable/applications/" version
8893 "/src/palapeli-" version ".tar.xz"))
8894 (sha256
8895 (base32 "1g91ydbc0x2y2gn3lcb5w03mn7k78l5bq4cb1s59kx6yjbflv3pw"))))
8896 (build-system qt-build-system)
8897 (native-inputs
8898 `(("extra-cmake-modules" ,extra-cmake-modules)
8899 ("kdoctools" ,kdoctools)))
8900 (inputs
8901 `(("karchive" ,karchive)
8902 ("kcompletion" ,kcompletion)
8903 ("kconfig" ,kconfig)
8904 ("kconfigwidgets" ,kconfigwidgets)
8905 ("kcoreaddons" ,kcoreaddons)
8906 ("kcrash" ,kcrash)
8907 ("kcrash" ,kcrash)
8908 ("ki18n" ,ki18n)
8909 ("ki18n" ,ki18n)
8910 ("kio" ,kio)
8911 ("kitemviews" ,kitemviews)
8912 ("knotifications" ,knotifications)
8913 ("kservice" ,kservice)
8914 ("kwidgetsaddons" ,kwidgetsaddons)
8915 ("kxmlgui" ,kxmlgui)
8916 ("libkdegames" ,libkdegames)
8917 ("qtbase" ,qtbase)
8918 ("qtdeclarative" ,qtdeclarative)
8919 ("qtsvg" ,qtsvg)
8920 ("shared-mime-info" ,shared-mime-info)))
8921 (home-page "https://games.kde.org/")
8922 (synopsis "Jigsaw puzzle game")
8923 (description "Palapeli is a jigsaw puzzle game. Unlike other games in
8924 that genre, you are not limited to aligning pieces on imaginary grids. The
8925 pieces are freely moveable. Also, Palapeli features real persistency, i.e.
8926 everything you do is saved on your disk immediately.
8927
8928 Palapeli is the Finnish word for jigsaw puzzle.
8929
8930 This package is part of the KDE games module.")
8931 (license license:gpl2+)))
8932
8933 (define-public kiriki
8934 (package
8935 (name "kiriki")
8936 (version "19.08.3")
8937 (source
8938 (origin
8939 (method url-fetch)
8940 (uri (string-append "mirror://kde/stable/applications/" version
8941 "/src/kiriki-" version ".tar.xz"))
8942 (sha256
8943 (base32 "1xg25dj95g81dc5l7k47am4j52abrwwfx4h73lvsbn4lc8lfmshw"))))
8944 (build-system qt-build-system)
8945 (native-inputs
8946 `(("extra-cmake-modules" ,extra-cmake-modules)
8947 ("kdoctools" ,kdoctools)))
8948 (inputs
8949 `(("kcompletion" ,kcompletion)
8950 ("kconfig" ,kconfig)
8951 ("kconfigwidgets" ,kconfigwidgets)
8952 ("kcoreaddons" ,kcoreaddons)
8953 ("kcrash" ,kcrash)
8954 ("kdbusaddons" ,kdbusaddons)
8955 ("ki18n" ,ki18n)
8956 ("kiconthemes" ,kiconthemes)
8957 ("kxmlgui" ,kxmlgui)
8958 ("libkdegames" ,libkdegames)
8959 ("qtbase" ,qtbase)
8960 ("qtdeclarative" ,qtdeclarative)))
8961 (home-page "https://games.kde.org/")
8962 (synopsis "Yahtzee dice game")
8963 (description "Kiriki is an addictive and fun dice game, designed to be
8964 played by as many as six players.
8965
8966 Participants have to collect points by rolling five dice for up to three times
8967 per single turn to make combinations with the highest score.
8968
8969 This package is part of the KDE games module.")
8970 (license (list license:gpl2+ license:fdl1.2+))))
8971
8972 (define-public kigo
8973 (package
8974 (name "kigo")
8975 (version "19.08.3")
8976 (source
8977 (origin
8978 (method url-fetch)
8979 (uri (string-append "mirror://kde/stable/applications/" version
8980 "/src/kigo-" version ".tar.xz"))
8981 (sha256
8982 (base32 "00l5gcbi8xyj9c1lngkrddka3a4m4cd78prfplrpq32ma9xq681f"))))
8983 (build-system qt-build-system)
8984 (native-inputs
8985 `(("extra-cmake-modules" ,extra-cmake-modules)
8986 ("kdoctools" ,kdoctools)))
8987 (inputs
8988 `(("kconfig" ,kconfig)
8989 ("kconfigwidgets" ,kconfigwidgets)
8990 ("kcoreaddons" ,kcoreaddons)
8991 ("kcrash" ,kcrash)
8992 ("kdbusaddons" ,kdbusaddons)
8993 ("ki18n" ,ki18n)
8994 ("kio" ,kio)
8995 ("knewstuff", knewstuff)
8996 ("ktextwidgets" ,ktextwidgets)
8997 ("kxmlgui" ,kxmlgui)
8998 ("libkdegames" ,libkdegames)
8999 ("qtbase" ,qtbase)
9000 ("qtdeclarative" ,qtdeclarative)
9001 ("qtsvg" ,qtsvg)))
9002 (home-page "https://games.kde.org/")
9003 (synopsis "Go board game")
9004 (description "Kigo is an open-source implementation of the popular Go
9005 game.
9006
9007 Go is a strategic board game for two players. It is also known as
9008 igo (Japanese), weiqi or wei ch'i (Chinese) or baduk (Korean). Go is noted
9009 for being rich in strategic complexity despite its simple rules. The game is
9010 played by two players who alternately place black and white stones (playing
9011 pieces, now usually made of glass or plastic) on the vacant intersections of a
9012 grid of 19x19 lines (9x9 or 13x13 for easier games).
9013
9014 You also need to install a go engine, e.g. @code{gnugo}.
9015
9016 This package is part of the KDE games module.")
9017 (license license:gpl3+)))
9018
9019 (define-public kubrick
9020 (package
9021 (name "kubrick")
9022 (version "19.08.3")
9023 (source
9024 (origin
9025 (method url-fetch)
9026 (uri (string-append "mirror://kde/stable/applications/" version
9027 "/src/kubrick-" version ".tar.xz"))
9028 (sha256
9029 (base32 "0ma8wja4rqlsmsr8cyicfpkwlgqva4450ls4c0ql53p0kabf04gx"))))
9030 (build-system qt-build-system)
9031 (native-inputs
9032 `(("extra-cmake-modules" ,extra-cmake-modules)
9033 ("kdoctools" ,kdoctools)))
9034 (inputs
9035 `(("glu" ,glu)
9036 ("kconfig" ,kconfig)
9037 ("kconfigwidgets" ,kconfigwidgets)
9038 ("kcoreaddons" ,kcoreaddons)
9039 ("kcrash" ,kcrash)
9040 ("ki18n" ,ki18n)
9041 ("kio" ,kio)
9042 ("kwidgetsaddons" ,kwidgetsaddons)
9043 ("kxmlgui" ,kxmlgui)
9044 ("libkdegames" ,libkdegames)
9045 ("qtbase" ,qtbase)
9046 ("qtdeclarative" ,qtdeclarative)
9047 ("qtsvg" ,qtsvg)))
9048 (home-page "https://games.kde.org/")
9049 (synopsis "Game based on Rubik's Cube")
9050 (description "Kubrick is a game based on the Rubik's Cube puzzle.
9051
9052 The cube sizes range from 2x2x2 up to 6x6x6, or you can play with irregular
9053 \"bricks\" such as 5x3x2 or \"mats\" such as 6x4x1 or 2x2x1. The game has a
9054 selection of puzzles at several levels of difficulty, as well as demos of
9055 pretty patterns and solution moves, or you can make up your own puzzles. The
9056 game has unlimited undo, redo, save and reload capabilities.
9057
9058 This package is part of the KDE games module.")
9059 (license (list license:gpl2+ license:fdl1.2+))))
9060
9061 (define-public lskat
9062 (package
9063 (name "lskat")
9064 (version "19.08.3")
9065 (source
9066 (origin
9067 (method url-fetch)
9068 (uri (string-append "mirror://kde/stable/applications/" version
9069 "/src/lskat-" version ".tar.xz"))
9070 (sha256
9071 (base32 "1qk5hd27zb42pbcxq5wyzz62nj5f0qdmgy54r9rnk92pzzzk94s9"))))
9072 (build-system qt-build-system)
9073 (native-inputs
9074 `(("extra-cmake-modules" ,extra-cmake-modules)
9075 ("kdoctools" ,kdoctools)))
9076 (inputs
9077 `(("kcompletion" ,kcompletion)
9078 ("kconfig" ,kconfig)
9079 ("kcoreaddons" ,kcoreaddons)
9080 ("kcrash" ,kcrash)
9081 ("kguiaddons" ,kguiaddons)
9082 ("ki18n" ,ki18n)
9083 ("kwidgetsaddons" ,kwidgetsaddons)
9084 ("kxmlgui" ,kxmlgui)
9085 ("libkdegames" ,libkdegames)
9086 ("qtbase" ,qtbase)
9087 ("qtdeclarative" ,qtdeclarative)
9088 ("qtsvg" ,qtsvg)))
9089 (home-page "https://games.kde.org/")
9090 (synopsis "Lieutnant Skat card game")
9091 (description "Lieutnant Skat (from German \"Offiziersskat\") is a fun and
9092 engaging card game for two players, where the second player is either live
9093 opponent, or a built in artificial intelligence.
9094
9095 Lieutnant Skat is a simplified variant of the Skat card game for two players.
9096
9097 This package is part of the KDE games module.")
9098 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
9099
9100 (define-public kapman
9101 (package
9102 (name "kapman")
9103 (version "19.08.3")
9104 (source
9105 (origin
9106 (method url-fetch)
9107 (uri (string-append "mirror://kde/stable/applications/" version
9108 "/src/kapman-" version ".tar.xz"))
9109 (sha256
9110 (base32 "03pq38caam30q4bw14c045kayw2d87xq1yaa3s2jkrylylfq3p0f"))))
9111 (build-system qt-build-system)
9112 (native-inputs
9113 `(("extra-cmake-modules" ,extra-cmake-modules)
9114 ("kdoctools" ,kdoctools)))
9115 (inputs
9116 `(("kcompletion" ,kcompletion)
9117 ("kconfig" ,kconfig)
9118 ("kconfigwidgets" ,kconfigwidgets)
9119 ("kcoreaddons" ,kcoreaddons)
9120 ("kcrash" ,kcrash)
9121 ("kdbusaddons" ,kdbusaddons)
9122 ("ki18n" ,ki18n)
9123 ("kxmlgui" ,kxmlgui)
9124 ("libkdegames" ,libkdegames)
9125 ("qtbase" ,qtbase)
9126 ("qtdeclarative" ,qtdeclarative)
9127 ("qtsvg" ,qtsvg)))
9128 (home-page "https://games.kde.org/")
9129 (synopsis "Pac-Man clone")
9130 (description "Kapman is a clone of the well known game Pac-Man.
9131
9132 You must run through the maze to eat all pills without being captured by a
9133 ghost. By eating an energizer, Kapman gets the ability to eat ghosts for a
9134 few seconds. When a stage is cleared of pills and energizer the player is
9135 taken to the next stage with slightly increased game speed
9136
9137 This package is part of the KDE games module.")
9138 (license (list license:gpl2+ license:fdl1.2+))))
9139
9140 (define-public kspaceduel
9141 (package
9142 (name "kspaceduel")
9143 (version "19.08.3")
9144 (source
9145 (origin
9146 (method url-fetch)
9147 (uri (string-append "mirror://kde/stable/applications/" version
9148 "/src/kspaceduel-" version ".tar.xz"))
9149 (sha256
9150 (base32 "1hppni0ihs7psc0dly5rxyy2a38nzhlig9yfyhi3lkh36z05pql8"))))
9151 (build-system qt-build-system)
9152 (native-inputs
9153 `(("extra-cmake-modules" ,extra-cmake-modules)
9154 ("kdoctools" ,kdoctools)))
9155 (inputs
9156 `(("kcompletion" ,kcompletion)
9157 ("kconfig" ,kconfig)
9158 ("kconfigwidgets" ,kconfigwidgets)
9159 ("kcoreaddons" ,kcoreaddons)
9160 ("kcrash" ,kcrash)
9161 ("kdbusaddons" ,kdbusaddons)
9162 ("ki18n" ,ki18n)
9163 ("kxmlgui" ,kxmlgui)
9164 ("libkdegames" ,libkdegames)
9165 ("qtbase" ,qtbase)
9166 ("qtdeclarative" ,qtdeclarative)
9167 ("qtsvg" ,qtsvg)))
9168 (home-page "https://games.kde.org/")
9169 (synopsis "Two player game with shooting spaceships flying around a sun")
9170 (description "KSpaceduel is a space battle game for one or two players,
9171 where two ships fly around a star in a struggle to be the only survivor.
9172
9173 This package is part of the KDE games module.")
9174 (license (list license:gpl2+ license:fdl1.2+))))
9175
9176 (define-public bovo
9177 (package
9178 (name "bovo")
9179 (version "19.08.3")
9180 (source
9181 (origin
9182 (method url-fetch)
9183 (uri (string-append "mirror://kde/stable/applications/" version
9184 "/src/bovo-" version ".tar.xz"))
9185 (sha256
9186 (base32 "0dbpng0w52nahmx7brsll66zw23ql1g6pcvn2k4g2lnvxch0i59g"))))
9187 (build-system qt-build-system)
9188 (native-inputs
9189 `(("extra-cmake-modules" ,extra-cmake-modules)
9190 ("kdoctools" ,kdoctools)))
9191 (inputs
9192 `(("kcompletion" ,kcompletion)
9193 ("kcoreaddons" ,kcoreaddons)
9194 ("kcrash" ,kcrash)
9195 ("kdbusaddons" ,kdbusaddons)
9196 ("ki18n" ,ki18n)
9197 ("kxmlgui" ,kxmlgui)
9198 ("libkdegames" ,libkdegames)
9199 ("qtbase" ,qtbase)
9200 ("qtdeclarative" ,qtdeclarative)
9201 ("qtsvg" ,qtsvg)))
9202 (home-page "https://games.kde.org/")
9203 (synopsis "Classic pen and paper game: five in a line")
9204 (description "Bovo is a Gomoku (from Japanese 五目並べ - lit. \"five
9205 points\") like game for two players, where the opponents alternate in placing
9206 their respective pictogram on the game board. The winner is the first to
9207 complete a line of five markers. (Also known as: Connect Five, Five in a row,
9208 X and O, Naughts and Crosses)
9209
9210 This package is part of the KDE games module.")
9211 (license (list license:gpl2+ license:fdl1.2+))))
9212
9213 (define-public killbots
9214 (package
9215 (name "killbots")
9216 (version "19.08.3")
9217 (source
9218 (origin
9219 (method url-fetch)
9220 (uri (string-append "mirror://kde/stable/applications/" version
9221 "/src/killbots-" version ".tar.xz"))
9222 (sha256
9223 (base32 "1qi86q7diw7glkp9v33yim9nhz2da4balbxa1hjrdgjdv8zdbxbm"))))
9224 (build-system qt-build-system)
9225 (native-inputs
9226 `(("extra-cmake-modules" ,extra-cmake-modules)
9227 ("kdoctools" ,kdoctools)))
9228 (inputs
9229 `(("kcompletion" ,kcompletion)
9230 ("kconfig" ,kconfig)
9231 ("kconfigwidgets" ,kconfigwidgets)
9232 ("kcoreaddons" ,kcoreaddons)
9233 ("kcrash" ,kcrash)
9234 ("kdbusaddons" ,kdbusaddons)
9235 ("ki18n" ,ki18n)
9236 ("kwidgetsaddons" ,kwidgetsaddons)
9237 ("kxmlgui" ,kxmlgui)
9238 ("libkdegames" ,libkdegames)
9239 ("qtbase" ,qtbase)
9240 ("qtdeclarative" ,qtdeclarative)))
9241 (home-page "https://games.kde.org/")
9242 (synopsis "Port of the classic BSD console game robots")
9243 (description "Killbots is a simple game of evading killer robots.
9244
9245 Who created the robots and why they have been programmed to destroy, no one
9246 knows. All that is known is that the robots are numerous and their sole
9247 objective is to destroy you. Fortunately for you, their creator has focused
9248 on quantity rather than quality and as a result the robots are severely
9249 lacking in intelligence. Your superior wit and a fancy teleportation device
9250 are your only weapons against the never-ending stream of mindless automatons.
9251
9252 This package is part of the KDE games module.")
9253 (license (list license:gpl2+ license:fdl1.2+))))
9254
9255 (define-public ksnakeduel
9256 (package
9257 (name "ksnakeduel")
9258 (version "19.08.3")
9259 (source
9260 (origin
9261 (method url-fetch)
9262 (uri (string-append "mirror://kde/stable/applications/" version
9263 "/src/ksnakeduel-" version ".tar.xz"))
9264 (sha256
9265 (base32 "0mprrnpax8pv7ab36zwhvdfj8id52w8g6x76nnj8qvkdlkjiqdnn"))))
9266 (build-system qt-build-system)
9267 (native-inputs
9268 `(("extra-cmake-modules" ,extra-cmake-modules)
9269 ("kdoctools" ,kdoctools)))
9270 (inputs
9271 `(("kcompletion" ,kcompletion)
9272 ("kconfig" ,kconfig)
9273 ("kconfigwidgets" ,kconfigwidgets)
9274 ("kcoreaddons" ,kcoreaddons)
9275 ("kcrash" ,kcrash)
9276 ("kdbusaddons" ,kdbusaddons)
9277 ("kguiaddons" ,kguiaddons)
9278 ("ki18n" ,ki18n)
9279 ("kxmlgui" ,kxmlgui)
9280 ("libkdegames" ,libkdegames)
9281 ("qtbase" ,qtbase)
9282 ("qtdeclarative" ,qtdeclarative)
9283 ("qtsvg" ,qtsvg)))
9284 (home-page "https://games.kde.org/")
9285 (synopsis "Snake race played against the computer")
9286 (description "KSnakeDuel is a fast action game where you steer a snake
9287 which has to eat food. While eating the snake grows. But once a player
9288 collides with the other snake or the wall the game is lost. This becomes of
9289 course more and more difficult the longer the snakes grow.
9290
9291 This package is part of the KDE games module.")
9292 (license (list license:gpl2+ license:fdl1.2+))))
9293
9294 (define-public kollision
9295 (package
9296 (name "kollision")
9297 (version "19.08.3")
9298 (source
9299 (origin
9300 (method url-fetch)
9301 (uri (string-append "mirror://kde/stable/applications/" version
9302 "/src/kollision-" version ".tar.xz"))
9303 (sha256
9304 (base32 "1p7qrn3d0ybpvc9k6k5wzj54dsrp1rqh39844maz0ay2fhvmch12"))))
9305 (build-system qt-build-system)
9306 (native-inputs
9307 `(("extra-cmake-modules" ,extra-cmake-modules)
9308 ("kdoctools" ,kdoctools)))
9309 (inputs
9310 `(("kcompletion" ,kcompletion)
9311 ("kconfig" ,kconfig)
9312 ("kcoreaddons" ,kcoreaddons)
9313 ("kcrash" ,kcrash)
9314 ("kdbusaddons" ,kdbusaddons)
9315 ("ki18n" ,ki18n)
9316 ("kwidgetsaddons" ,kwidgetsaddons)
9317 ("kxmlgui" ,kxmlgui)
9318 ("libkdegames" ,libkdegames)
9319 ("qtbase" ,qtbase)
9320 ("qtdeclarative" ,qtdeclarative)))
9321 (home-page "https://games.kde.org/")
9322 (synopsis "Simple ball dodging game")
9323 (description "In Kollision you use mouse to control a small blue ball in a
9324 closed space environment filled with small red balls, which move about
9325 chaotically. Your goal is to avoid touching any of those red balls with your
9326 blue one, because the moment you do the game will be over. The longer you can
9327 stay in game the higher will your score be.
9328
9329 This package is part of the KDE games module.")
9330 (license (list license:gpl2+ license:fdl1.2+))))
9331
9332 (define-public knavalbattle
9333 (package
9334 (name "knavalbattle")
9335 (version "19.08.3")
9336 (source
9337 (origin
9338 (method url-fetch)
9339 (uri (string-append "mirror://kde/stable/applications/" version
9340 "/src/knavalbattle-" version ".tar.xz"))
9341 (sha256
9342 (base32 "0sdfjplqkb30x2mvh66pkzay6vn5px87779sh2s8lpl6fcw0v9g4"))))
9343 (build-system qt-build-system)
9344 (native-inputs
9345 `(("extra-cmake-modules" ,extra-cmake-modules)
9346 ("kdoctools" ,kdoctools)))
9347 (inputs
9348 `(("kauth" ,kauth)
9349 ("kcompletion" ,kcompletion)
9350 ("kconfig" ,kconfig)
9351 ("kconfigwidgets" ,kconfigwidgets)
9352 ("kcoreaddons" ,kcoreaddons)
9353 ("kcrash" ,kcrash)
9354 ("kdbusaddons" ,kdbusaddons)
9355 ("kdnssd" ,kdnssd)
9356 ("ki18n" ,ki18n)
9357 ("ktextwidgets" ,ktextwidgets)
9358 ("kxmlgui" ,kxmlgui)
9359 ("libkdegames" ,libkdegames)
9360 ("qtbase" ,qtbase)
9361 ("qtdeclarative" ,qtdeclarative)))
9362 (home-page "https://games.kde.org/")
9363 (synopsis "Battleship board game with built-in game server")
9364 (description "KBattleship is a Battle Ship game for KDE.
9365
9366 Ships are placed on a board which represents the sea. Players try to hit each
9367 others ships in turns without knowing where they are placed. The first player
9368 to destroy all ships wins the game.
9369
9370 This package is part of the KDE games module.")
9371 (license (list license:gpl2+ license:fdl1.2+))))
9372
9373 (define-public kreversi
9374 (package
9375 (name "kreversi")
9376 (version "19.08.3")
9377 (source
9378 (origin
9379 (method url-fetch)
9380 (uri (string-append "mirror://kde/stable/applications/" version
9381 "/src/kreversi-" version ".tar.xz"))
9382 (sha256
9383 (base32 "0b6q8df2bawgnrswhq59z37axad0q3zpvvzxdds7sz1lw505xw9h"))))
9384 (build-system qt-build-system)
9385 (native-inputs
9386 `(("extra-cmake-modules" ,extra-cmake-modules)
9387 ("kdoctools" ,kdoctools)))
9388 (inputs
9389 `(("kconfig" ,kconfig)
9390 ("kconfigwidgets" ,kconfigwidgets)
9391 ("kcoreaddons" ,kcoreaddons)
9392 ("kcrash" ,kcrash)
9393 ("kdbusaddons" ,kdbusaddons)
9394 ("kdeclarative" ,kdeclarative)
9395 ("ki18n" ,ki18n)
9396 ("kiconthemes" ,kiconthemes)
9397 ("kio" ,kio)
9398 ("kxmlgui" ,kxmlgui)
9399 ("libkdegames" ,libkdegames)
9400 ("qtbase" ,qtbase)
9401 ("qtdeclarative" ,qtdeclarative)
9402 ("qtsvg" ,qtsvg)))
9403 (home-page "https://games.kde.org/")
9404 (synopsis "Old reversi board game, also known as othello")
9405 (description "KReversi is a simple one player strategy game played
9406 against the computer.
9407
9408 If a player's piece is captured by an opposing player, that piece is turned
9409 over to reveal the color of that player. A winner is declared when one player
9410 has more pieces of his own color on the board and there are no more possible
9411 moves.
9412
9413 This package is part of the KDE games module.")
9414 (license (list license:gpl2+ license:fdl1.2+))))
9415
9416 (define-public ksquares
9417 (package
9418 (name "ksquares")
9419 (version "19.08.3")
9420 (source
9421 (origin
9422 (method url-fetch)
9423 (uri (string-append "mirror://kde/stable/applications/" version
9424 "/src/ksquares-" version ".tar.xz"))
9425 (sha256
9426 (base32 "0hv8hls5s627lys08nnw72rfzsafj3dmp49mh2afzmh6lgk9h5vy"))))
9427 (build-system qt-build-system)
9428 (native-inputs
9429 `(("extra-cmake-modules" ,extra-cmake-modules)
9430 ("kdoctools" ,kdoctools)))
9431 (inputs
9432 `(("kcompletion" ,kcompletion)
9433 ("kconfig" ,kconfig)
9434 ("kconfigwidgets" ,kconfigwidgets)
9435 ("kcoreaddons" ,kcoreaddons)
9436 ("kcrash" ,kcrash)
9437 ("kdbusaddons" ,kdbusaddons)
9438 ("ki18n" ,ki18n)
9439 ("kwidgetsaddons" ,kwidgetsaddons)
9440 ("kxmlgui" ,kxmlgui)
9441 ("libkdegames" ,libkdegames)
9442 ("qtbase" ,qtbase)
9443 ("qtdeclarative" ,qtdeclarative)))
9444 (home-page "https://games.kde.org/")
9445 (synopsis "Dots and Boxes game")
9446 (description "KSquares is an implementation of the popular paper based
9447 game Squares. Two players take turns connecting dots on a grid to complete
9448 squares, the player with the most squares wins.
9449
9450 This package is part of the KDE games module.")
9451 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
9452
9453 (define-public kjumpingcube
9454 (package
9455 (name "kjumpingcube")
9456 (version "19.08.3")
9457 (source
9458 (origin
9459 (method url-fetch)
9460 (uri (string-append "mirror://kde/stable/applications/" version
9461 "/src/kjumpingcube-" version ".tar.xz"))
9462 (sha256
9463 (base32 "0d67zqkf2xffjkj671gl2n6nj6jajyn6rgqqj5i6gm500mqi9rm1"))))
9464 (build-system qt-build-system)
9465 (native-inputs
9466 `(("extra-cmake-modules" ,extra-cmake-modules)
9467 ("kdoctools" ,kdoctools)))
9468 (inputs
9469 `(("kconfig" ,kconfig)
9470 ("kconfigwidgets" ,kconfigwidgets)
9471 ("kcoreaddons" ,kcoreaddons)
9472 ("kcrash" ,kcrash)
9473 ("kdbusaddons" ,kdbusaddons)
9474 ("ki18n" ,ki18n)
9475 ("kio" ,kio)
9476 ("kwidgetsaddons" ,kwidgetsaddons)
9477 ("kxmlgui" ,kxmlgui)
9478 ("libkdegames" ,libkdegames)
9479 ("qtbase" ,qtbase)
9480 ("qtdeclarative" ,qtdeclarative)
9481 ("qtsvg" ,qtsvg)))
9482 (home-page "https://games.kde.org/")
9483 (synopsis "Simple tactical game for number-crunchers")
9484 (description "KJumpingcube is a simple tactical game for one or two
9485 players, played on a grid of numbered squares. Each turn, players compete for
9486 control of the board by capturing or adding to one square.
9487
9488 This package is part of the KDE games module.")
9489 (license (list license:gpl2+ license:fdl1.2+))))