gnu: calibre: Wrap QTWEBENGINEPROCESS_PATH.
[jackhill/guix/guix.git] / gnu / packages / games.scm
1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2013 John Darrington <jmd@gnu.org>
3 ;;; Copyright © 2013 Nikita Karetnikov <nikita@karetnikov.org>
4 ;;; Copyright © 2014, 2016 David Thompson <dthompson2@worcester.edu>
5 ;;; Copyright © 2014, 2015, 2016, 2017, 2018, 2019, 2020 Eric Bavier <bavier@posteo.net>
6 ;;; Copyright © 2014 Cyrill Schenkel <cyrill.schenkel@gmail.com>
7 ;;; Copyright © 2014 Sylvain Beucler <beuc@beuc.net>
8 ;;; Copyright © 2014, 2015, 2018, 2019 Ludovic Courtès <ludo@gnu.org>
9 ;;; Copyright © 2014, 2015, 2016 Sou Bunnbu <iyzsong@gmail.com>
10 ;;; Copyright © 2014, 2015, 2019 Mark H Weaver <mhw@netris.org>
11 ;;; Copyright © 2015, 2016 Andreas Enge <andreas@enge.fr>
12 ;;; Copyright © 2015 David Hashe <david.hashe@dhashe.com>
13 ;;; Copyright © 2015, 2017, 2018 Christopher Lemmer Webber <cwebber@dustycloud.org>
14 ;;; Copyright © 2015, 2016, 2017, 2018, 2019 Ricardo Wurmus <rekado@elephly.net>
15 ;;; Copyright © 2015, 2016, 2017 Alex Kost <alezost@gmail.com>
16 ;;; Copyright © 2015 Paul van der Walt <paul@denknerd.org>
17 ;;; Copyright © 2016, 2017 Rodger Fox <thylakoid@openmailbox.org>
18 ;;; Copyright © 2016, 2017, 2018 Nikita <nikita@n0.is>
19 ;;; Copyright © 2016 Albin Söderqvist <albin@fripost.org>
20 ;;; Copyright © 2016, 2017, 2018, 2019 Kei Kebreau <kkebreau@posteo.net>
21 ;;; Copyright © 2016 Alex Griffin <a@ajgrf.com>
22 ;;; Copyright © 2016, 2017, 2018, 2019, 2020 Efraim Flashner <efraim@flashner.co.il>
23 ;;; Copyright © 2016 Jan Nieuwenhuizen <janneke@gnu.org>
24 ;;; Copyright © 2016 Steve Webber <webber.sl@gmail.com>
25 ;;; Copyright © 2017 Adonay "adfeno" Felipe Nogueira <https://libreplanet.org/wiki/User:Adfeno> <adfeno@hyperbola.info>
26 ;;; Copyright © 2017, 2018, 2020 Arun Isaac <arunisaac@systemreboot.net>
27 ;;; Copyright © 2017, 2018, 2019, 2020 Tobias Geerinckx-Rice <me@tobias.gr>
28 ;;; Copyright © 2017, 2019 nee <nee-git@hidamari.blue>
29 ;;; Copyright © 2017 Clément Lassieur <clement@lassieur.org>
30 ;;; Copyright © 2017, 2019, 2020 Marius Bakke <mbakke@fastmail.com>
31 ;;; Copyright © 2017, 2018 Rutger Helling <rhelling@mykolab.com>
32 ;;; Copyright © 2017 Roel Janssen <roel@gnu.org>
33 ;;; Copyright © 2017, 2018, 2019, 2020 Nicolas Goaziou <mail@nicolasgoaziou.fr>
34 ;;; Copyright © 2018 okapi <okapi@firemail.cc>
35 ;;; Copyright © 2018 Tim Gesthuizen <tim.gesthuizen@yahoo.de>
36 ;;; Copyright © 2018 Madalin Ionel-Patrascu <madalinionel.patrascu@mdc-berlin.de>
37 ;;; Copyright © 2018 Benjamin Slade <slade@jnanam.net>
38 ;;; Copyright © 2018 Alex Vong <alexvong1995@gmail.com>
39 ;;; Copyright © 2019, 2020 Pierre Neidhardt <mail@ambrevar.xyz>
40 ;;; Copyright © 2019, 2020 Oleg Pykhalov <go.wigust@gmail.com>
41 ;;; Copyright © 2019 Pierre Langlois <pierre.langlois@gmx.com>
42 ;;; Copyright © 2019 Julien Lepiller <julien@lepiller.eu>
43 ;;; Copyright © 2019, 2020 Jesse Gibbons <jgibbons2357+guix@gmail.com>
44 ;;; Copyright © 2019 Dan Frumin <dfrumin@cs.ru.nl>
45 ;;; Copyright © 2019, 2020 Guillaume Le Vaillant <glv@posteo.net>
46 ;;; Copyright © 2019, 2020 Timotej Lazar <timotej.lazar@araneo.si>
47 ;;; Copyright © 2019 Josh Holland <josh@inv.alid.pw>
48 ;;; Copyright © 2017, 2019 Hartmut Goebel <h.goebel@crazy-compilers.com>
49 ;;; Copyright © 2020 Alberto Eleuterio Flores Guerrero <barbanegra+guix@posteo.mx>
50 ;;; Copyright © 2020 Naga Malleswari <nagamalli@riseup.net>
51 ;;; Copyright © 2020 Vitaliy Shatrov <D0dyBo0D0dyBo0@protonmail.com>
52 ;;; Copyright © 2020 Jack Hill <jackhill@jackhill.us>
53 ;;; Copyright © 2020 Vincent Legoll <vincent.legoll@gmail.com>
54 ;;; Copyright © 2020 Michael Rohleder <mike@rohleder.de>
55 ;;; Copyright © 2020 Trevor Hass <thass@okstate.edu>
56 ;;; Copyright © 2020 Leo Prikler <leo.prikler@student.tugraz.at>
57 ;;;
58 ;;; This file is part of GNU Guix.
59 ;;;
60 ;;; GNU Guix is free software; you can redistribute it and/or modify it
61 ;;; under the terms of the GNU General Public License as published by
62 ;;; the Free Software Foundation; either version 3 of the License, or (at
63 ;;; your option) any later version.
64 ;;;
65 ;;; GNU Guix is distributed in the hope that it will be useful, but
66 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
67 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
68 ;;; GNU General Public License for more details.
69 ;;;
70 ;;; You should have received a copy of the GNU General Public License
71 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
72
73 (define-module (gnu packages games)
74 #:use-module (ice-9 match)
75 #:use-module ((guix licenses) #:prefix license:)
76 #:use-module (guix utils)
77 #:use-module (guix packages)
78 #:use-module (guix download)
79 #:use-module (guix git-download)
80 #:use-module (guix svn-download)
81 #:use-module (guix gexp)
82 #:use-module (gnu packages)
83 #:use-module (gnu packages adns)
84 #:use-module (gnu packages algebra)
85 #:use-module (gnu packages autotools)
86 #:use-module (gnu packages backup)
87 #:use-module (gnu packages base)
88 #:use-module (gnu packages build-tools)
89 #:use-module (gnu packages admin)
90 #:use-module (gnu packages audio)
91 #:use-module (gnu packages avahi)
92 #:use-module (gnu packages assembly)
93 #:use-module (gnu packages bash)
94 #:use-module (gnu packages bison)
95 #:use-module (gnu packages boost)
96 #:use-module (gnu packages check)
97 #:use-module (gnu packages cmake)
98 #:use-module (gnu packages compression)
99 #:use-module (gnu packages curl)
100 #:use-module (gnu packages crypto)
101 #:use-module (gnu packages cyrus-sasl)
102 #:use-module (gnu packages documentation)
103 #:use-module (gnu packages docbook)
104 #:use-module (gnu packages emulators)
105 #:use-module (gnu packages flex)
106 #:use-module (gnu packages fltk)
107 #:use-module (gnu packages fonts)
108 #:use-module (gnu packages fontutils)
109 #:use-module (gnu packages freedesktop)
110 #:use-module (gnu packages fribidi)
111 #:use-module (gnu packages game-development)
112 #:use-module (gnu packages gcc)
113 #:use-module (gnu packages gettext)
114 #:use-module (gnu packages ghostscript)
115 #:use-module (gnu packages gimp)
116 #:use-module (gnu packages gl)
117 #:use-module (gnu packages glib)
118 #:use-module (gnu packages gnome)
119 #:use-module (gnu packages gnupg)
120 #:use-module (gnu packages gnuzilla)
121 #:use-module (gnu packages gperf)
122 #:use-module (gnu packages graphics)
123 #:use-module (gnu packages gsasl)
124 #:use-module (gnu packages gstreamer)
125 #:use-module (gnu packages gtk)
126 #:use-module (gnu packages guile)
127 #:use-module (gnu packages haskell)
128 #:use-module (gnu packages haskell-crypto)
129 #:use-module (gnu packages haskell-xyz)
130 #:use-module (gnu packages icu4c)
131 #:use-module (gnu packages image)
132 #:use-module (gnu packages imagemagick)
133 #:use-module (gnu packages kde)
134 #:use-module (gnu packages kde-frameworks)
135 #:use-module (gnu packages less)
136 #:use-module (gnu packages libcanberra)
137 #:use-module (gnu packages libedit)
138 #:use-module (gnu packages libunwind)
139 #:use-module (gnu packages linux)
140 #:use-module (gnu packages llvm)
141 #:use-module (gnu packages lua)
142 #:use-module (gnu packages man)
143 #:use-module (gnu packages maths)
144 #:use-module (gnu packages messaging)
145 #:use-module (gnu packages mp3)
146 #:use-module (gnu packages music)
147 #:use-module (gnu packages multiprecision)
148 #:use-module (gnu packages ncurses)
149 #:use-module (gnu packages netpbm)
150 #:use-module (gnu packages networking)
151 #:use-module (gnu packages ocaml)
152 #:use-module (gnu packages opencl)
153 #:use-module (gnu packages pcre)
154 #:use-module (gnu packages perl)
155 #:use-module (gnu packages perl-check)
156 #:use-module (gnu packages perl-compression)
157 #:use-module (gnu packages pkg-config)
158 #:use-module (gnu packages protobuf)
159 #:use-module (gnu packages pulseaudio)
160 #:use-module (gnu packages python)
161 #:use-module (gnu packages python-xyz)
162 #:use-module (gnu packages qt)
163 #:use-module (gnu packages readline)
164 #:use-module (gnu packages ruby)
165 #:use-module (gnu packages shells)
166 #:use-module (gnu packages sdl)
167 #:use-module (gnu packages serialization)
168 #:use-module (gnu packages sqlite)
169 #:use-module (gnu packages squirrel)
170 #:use-module (gnu packages swig)
171 #:use-module (gnu packages tcl)
172 #:use-module (gnu packages terminals)
173 #:use-module (gnu packages texinfo)
174 #:use-module (gnu packages textutils)
175 #:use-module (gnu packages tls)
176 #:use-module (gnu packages upnp)
177 #:use-module (gnu packages video)
178 #:use-module (gnu packages vulkan)
179 #:use-module (gnu packages web)
180 #:use-module (gnu packages wget)
181 #:use-module (gnu packages wxwidgets)
182 #:use-module (gnu packages xdisorg)
183 #:use-module (gnu packages xorg)
184 #:use-module (gnu packages xiph)
185 #:use-module (gnu packages xml)
186 #:use-module (guix build-system copy)
187 #:use-module (guix build-system cmake)
188 #:use-module (guix build-system glib-or-gtk)
189 #:use-module (guix build-system gnu)
190 #:use-module (guix build-system go)
191 #:use-module (guix build-system meson)
192 #:use-module (guix build-system perl)
193 #:use-module (guix build-system python)
194 #:use-module (guix build-system qt)
195 #:use-module (guix build-system scons)
196 #:use-module (guix build-system trivial)
197 #:use-module ((srfi srfi-1) #:hide (zip))
198 #:use-module (srfi srfi-26))
199
200 (define-public abe
201 (package
202 (name "abe")
203 (version "1.1")
204 (source
205 (origin
206 (method url-fetch)
207 (uri (string-append "mirror://sourceforge/abe/abe/abe-" version
208 "/abe-" version ".tar.gz"))
209 (sha256
210 (base32 "1xvpnq1y6y48fn3pvn2lk0h1ilmalv7nb7awpid1g4jcq1sfmi6z"))))
211 (build-system gnu-build-system)
212 (arguments
213 `(#:configure-flags
214 (list (string-append "--with-data-dir="
215 (assoc-ref %outputs "out")
216 "/share/abe"))
217 #:phases
218 (modify-phases %standard-phases
219 (replace 'bootstrap
220 (lambda _ (invoke "sh" "autogen.sh")))
221 (add-before 'build 'set-SDL
222 ;; Set correct environment for SDL.
223 (lambda* (#:key inputs #:allow-other-keys)
224 (setenv "CPATH"
225 (string-append
226 (assoc-ref inputs "sdl") "/include/SDL:"
227 (or (getenv "CPATH") "")))
228 #t))
229 (add-after 'install 'finalize-install
230 (lambda* (#:key outputs #:allow-other-keys)
231 (let ((share (string-append (assoc-ref outputs "out") "/share")))
232 ;; Installation script does not copy game data files.
233 (let ((data (string-append share "/abe")))
234 (for-each (lambda (dir)
235 (let ((target (string-append data "/" dir)))
236 (mkdir-p target)
237 (copy-recursively dir target)))
238 '("images" "maps" "sounds")))
239 ;; Create desktop file.
240 (let ((apps (string-append share "/applications")))
241 (mkdir-p apps)
242 (make-desktop-entry-file
243 (string-append apps "/abe.desktop")
244 #:name "Abe's Amazing Adventure"
245 #:exec ,name
246 #:categories '("AdventureGame" "Game")
247 #:keywords
248 '("side-scrolling" "adventure" "pyramid" "singleplayer")
249 #:comment
250 '(("de" "Ein sich seitwärts bewegendes Abenteuerspiel")
251 (#f "Side-scrolling game")))))
252 #t)))))
253 (native-inputs
254 `(("autoconf" ,autoconf)
255 ("automake" ,automake)))
256 (inputs
257 `(("libxi" ,libxi)
258 ("libxmu" ,libxmu)
259 ("libxt" ,libxt)
260 ("sdl" ,(sdl-union (list sdl sdl-mixer)))))
261 (home-page "http://abe.sourceforge.net")
262 (synopsis "Scrolling, platform-jumping, ancient pyramid exploring game")
263 (description
264 "Abe's Amazing Adventure is a scrolling,
265 platform-jumping, key-collecting, ancient pyramid exploring game, vaguely in
266 the style of similar games for the Commodore+4.")
267 (license license:gpl2+)))
268
269 ;; Data package for adanaxisgpl.
270 (define adanaxis-mush
271 (let ((version "1.1.0"))
272 (origin
273 (method url-fetch)
274 (uri (string-append "http://www.mushware.com/files/adanaxis-mush-"
275 version ".tar.gz"))
276 (sha256
277 (base32 "0mk9ibis5nkdcalcg1lkgnsdxxbw4g5w2i3icjzy667hqirsng03")))))
278
279 (define-public adanaxisgpl
280 (package
281 (name "adanaxisgpl")
282 (version "1.2.5")
283 (source
284 (origin
285 (method url-fetch)
286 (uri (string-append "http://www.mushware.com/files/adanaxisgpl-"
287 version ".tar.gz"))
288 (sha256
289 (base32 "0jkn637jaabvlhd6hpvzb57vvjph94l6fbf7qxbjlw9zpr19dw1f"))
290 (modules '((guix build utils)))
291 (snippet
292 '(begin
293 ;; Necessary for building with gcc >=4.7.
294 (substitute* "src/Mushcore/MushcoreSingleton.h"
295 (("SingletonPtrSet\\(new SingletonType\\);")
296 "MushcoreSingleton::SingletonPtrSet(new SingletonType);"))
297 ;; Avoid an "invalid conversion from const char* to char*" error.
298 (substitute* "src/Platform/X11/PlatformMiscUtils.cpp"
299 (("char \\*end, \\*result;")
300 (string-append "const char *end;"
301 "\n"
302 "char *result;")))
303 #t))))
304 (build-system gnu-build-system)
305 (arguments
306 `(#:tests? #f ; no check target
307 #:phases
308 (modify-phases %standard-phases
309 (add-after 'install 'install-data
310 (lambda* (#:key inputs outputs #:allow-other-keys)
311 (let ((data (assoc-ref inputs "adanaxis-mush"))
312 (share (string-append (assoc-ref outputs "out")
313 "/share/" ,name "-" ,version)))
314 (mkdir-p share)
315 (invoke "tar" "xvf" data "-C" share)))))))
316 (native-inputs
317 `(("adanaxis-mush" ,adanaxis-mush))) ; game data
318 (inputs
319 `(("expat" ,expat)
320 ("freeglut" ,freeglut)
321 ("glu" ,glu)
322 ("libjpeg" ,libjpeg-turbo)
323 ("libogg" ,libogg)
324 ("libtiff" ,libtiff)
325 ("libvorbis" ,libvorbis)
326 ("libx11" ,libx11)
327 ("libxext" ,libxext)
328 ("pcre" ,pcre)
329 ("sdl" ,sdl)
330 ("sdl-mixer" ,sdl-mixer)))
331 (home-page "https://www.mushware.com")
332 (synopsis "Action game in four spatial dimensions")
333 (description
334 "Adanaxis is a fast-moving first person shooter set in deep space, where
335 the fundamentals of space itself are changed. By adding another dimension to
336 space this game provides an environment with movement in four directions and
337 six planes of rotation. Initially the game explains the 4D control system via
338 a graphical sequence, before moving on to 30 levels of gameplay with numerous
339 enemy, ally, weapon and mission types. Features include simulated 4D texturing,
340 mouse and joystick control, and original music.")
341 (license license:gpl2)))
342
343 (define-public alex4
344 (package
345 (name "alex4")
346 (version "1.2.1")
347 (source
348 (origin
349 (method git-fetch)
350 (uri (git-reference
351 (url "https://github.com/carstene1ns/alex4")
352 (commit version)))
353 (file-name (git-file-name name version))
354 (sha256
355 (base32 "098wy72mh4lsvq3gm0rhamjssf9l1hp6hhkpzrv7klpb97cwwc3h"))))
356 (build-system gnu-build-system)
357 (arguments
358 `(#:tests? #f ; no check target
359 #:make-flags
360 (list "CC=gcc"
361 "CFLAGS=-D_FILE_OFFSET_BITS=64"
362 (string-append "PREFIX=" (assoc-ref %outputs "out")))
363 #:phases
364 (modify-phases %standard-phases
365 (delete 'configure) ; no configure script
366 (add-after 'install 'install-data
367 (lambda* (#:key outputs #:allow-other-keys)
368 (let ((share (string-append (assoc-ref outputs "out")
369 "/share/" ,name)))
370 (install-file "alex4.ini" share)
371 #t))))))
372 (inputs
373 `(("allegro" ,allegro-4)
374 ("dumb" ,dumb-allegro4)))
375 (home-page "http://allegator.sourceforge.net/")
376 (synopsis "Retro platform game")
377 (description
378 "Guide Alex the Allegator through the jungle in order to save his
379 girlfriend Lola from evil humans who want to make a pair of shoes out of her.
380 Plenty of classic platforming in four nice colors guaranteed!
381
382 The game includes a built-in editor so you can design and share your own maps.")
383 (license license:gpl2+)))
384
385 (define-public armagetronad
386 (package
387 (name "armagetronad")
388 (version "0.2.8.3.5")
389 (source (origin
390 (method url-fetch)
391 (uri (string-append "mirror://sourceforge/armagetronad/stable/"
392 version "/armagetronad-" version ".src.tar.gz"))
393 (sha256
394 (base32
395 "1z266haq22n5b0733h7qsg1rpzhz8lvm82f7wd06r008iiar7jdl"))))
396 (build-system gnu-build-system)
397 (inputs
398 `(("libxml2" ,libxml2)
399 ("sdl" ,sdl)
400 ("sdl-image" ,sdl-image)
401 ("freeglut" ,freeglut)
402 ("libpng" ,libpng)
403 ("libjpeg-turbo" ,libjpeg-turbo)))
404 (home-page "http://www.armagetronad.org")
405 (synopsis "Tron clone in 3D")
406 (description "Armagetron Advanced is a multiplayer game in 3d that
407 attempts to emulate and expand on the lightcycle sequence from the movie Tron.
408 It's an old school arcade game slung into the 21st century. Highlights
409 include a customizable playing arena, HUD, unique graphics, and AI bots. For
410 the more advanced player there are new game modes and a wide variety of
411 physics settings to tweak as well.")
412 (license license:gpl2+)))
413
414 (define-public astromenace
415 (package
416 (name "astromenace")
417 (version "1.4.1")
418 (source
419 (origin
420 (method git-fetch)
421 (uri (git-reference
422 (url "https://github.com/viewizard/astromenace")
423 (commit (string-append "v" version))))
424 (file-name (git-file-name name version))
425 (sha256
426 (base32 "1ad6l887jxqv8xspwc2rvy8ym9sdlmkqdqhsh0pi076kjarxsyws"))))
427 (build-system cmake-build-system)
428 (arguments
429 `(#:tests? #f ;no test
430 #:configure-flags '("-DDATADIR=share/astromenace")
431 #:phases
432 (modify-phases %standard-phases
433 (replace 'install
434 ;; Upstream provides no install phase.
435 (lambda* (#:key inputs outputs #:allow-other-keys)
436 (let* ((out (assoc-ref outputs "out"))
437 (bin (string-append out "/bin"))
438 (share (string-append out "/share"))
439 (apps (string-append share "/applications"))
440 (data (string-append share "/astromenace"))
441 (icons (string-append share "/icons/hicolor/64x64/apps")))
442 (install-file "astromenace" bin)
443 (install-file "gamedata.vfs" data)
444 (let ((source (assoc-ref inputs "source")))
445 (with-directory-excursion (string-append source "/share")
446 (install-file "astromenace.desktop" apps)
447 (mkdir-p icons)
448 (copy-file "astromenace_64.png"
449 (string-append icons "/astromenace.png")))))
450 #t)))))
451 (inputs
452 `(("freealut" ,freealut)
453 ("freetype" ,freetype)
454 ("glu" ,glu)
455 ("libogg" ,libogg)
456 ("libvorbis" ,libvorbis)
457 ("openal" ,openal)
458 ("sdl2" ,sdl2)))
459 (home-page "https://www.viewizard.com/")
460 (synopsis "3D space shooter with spaceship upgrade possibilities")
461 (description
462 "Space is a vast area, an unbounded territory where it seems there is
463 a room for everybody, but reversal of fortune put things differently. The
464 hordes of hostile creatures crawled out from the dark corners of the universe,
465 craving to conquer your homeland. Their force is compelling, their legions
466 are interminable. However, humans didn't give up without a final showdown and
467 put their best pilot to fight back. These malicious invaders chose the wrong
468 galaxy to conquer and you are to prove it! Go ahead and make alien aggressors
469 regret their insolence.")
470 ;; Game is released under GPL3+ terms. Artwork is subject to CC
471 ;; BY-SA 4.0, and fonts to OFL1.1.
472 (license (list license:gpl3+ license:cc-by-sa4.0 license:silofl1.1))))
473
474 (define-public bastet
475 (package
476 (name "bastet")
477 (version "0.43.2")
478 (source
479 (origin
480 (method git-fetch)
481 (uri (git-reference
482 (url "https://github.com/fph/bastet")
483 (commit version)))
484 (file-name (git-file-name name version))
485 (sha256
486 (base32 "09kamxapm9jw9przpsgjfg33n9k94bccv65w95dakj0br33a75wn"))
487 (patches
488 (search-patches "bastet-change-source-of-unordered_set.patch"))))
489 (build-system gnu-build-system)
490 (arguments
491 `(#:make-flags
492 (list (string-append "CXXFLAGS=-I"
493 (assoc-ref %build-inputs "boost") "/include"))
494 #:phases
495 (modify-phases %standard-phases
496 (delete 'configure) ; no configure script
497 (replace 'check
498 ;; The 'Test' target builds the tests, but doesn't actually run them.
499 (lambda* (#:key make-flags #:allow-other-keys)
500 (apply invoke "make" "Test" make-flags)
501 (setenv "HOME" ".")
502 (invoke "./Test")))
503 (replace 'install
504 (lambda* (#:key outputs #:allow-other-keys)
505 (let* ((out (assoc-ref outputs "out"))
506 (share (string-append out "/share"))
507 (hicolor (string-append share "/icons/hicolor")))
508 (install-file "bastet"
509 (string-append out "/bin"))
510
511 (install-file "bastet.desktop"
512 (string-append share "/applications"))
513 (install-file "bastet.svg"
514 (string-append hicolor "/scalable/apps"))
515
516 (install-file "bastet.appdata.xml"
517 (string-append share "/appdata"))
518
519 (install-file "bastet.6"
520 (string-append out "/share/man/man6"))
521 #t))))))
522 (native-inputs
523 `(("hicolor-icon-theme" ,hicolor-icon-theme)))
524 (inputs
525 `(("boost" ,boost)
526 ("ncurses" ,ncurses)))
527 (home-page "https://fph.altervista.org/prog/bastet.html")
528 (synopsis "Antagonistic Tetris-style falling brick game for text terminals")
529 (description
530 "Bastet (short for Bastard Tetris) is a simple ncurses-based falling brick
531 game. Unlike normal Tetris, Bastet does not choose the next brick at random.
532 Instead, it uses a special algorithm to choose the worst brick possible.
533
534 Playing bastet can be a painful experience, especially if you usually make
535 canyons and wait for the long I-shaped block to clear four rows at a time.")
536 (license license:gpl3+)))
537
538 (define-public blobwars
539 (package
540 (name "blobwars")
541 (version "2.00")
542 (source
543 (origin
544 (method url-fetch)
545 (uri (string-append "mirror://sourceforge/blobwars/"
546 "blobwars-" version ".tar.gz"))
547 (sha256
548 (base32 "16aagvkx6azf75gm5kaa94bh5npydvhqp3fvdqyfsanzdjgjf1n4"))))
549 (build-system gnu-build-system)
550 (arguments
551 `(#:tests? #f ;no test
552 #:make-flags
553 (let ((out (assoc-ref %outputs "out")))
554 (list (string-append "PREFIX=" out)
555 (string-append "BINDIR=" out "/bin/")
556 "USEPAK=1"
557 "RELEASE=1"))
558 #:phases
559 (modify-phases %standard-phases
560 (add-after 'unpack 'werror-begone
561 (lambda _
562 (substitute* "Makefile" (("-Werror") ""))
563 #t))
564 (delete 'configure)))) ;no configure script
565 (native-inputs
566 `(("gettext" ,gettext-minimal)
567 ("pkg-config" ,pkg-config)))
568 (inputs
569 `(("hicolor-icon-theme" ,hicolor-icon-theme)
570 ("sdl" ,(sdl-union (list sdl2
571 sdl2-image
572 sdl2-mixer
573 sdl2-ttf
574 sdl2-net)))))
575 (home-page "https://sourceforge.net/projects/blobwars/")
576 (synopsis "Platform action game featuring a blob with a lot of weapons")
577 (description "Blobwars: Metal Blob Solid is a 2D platform game, the first
578 in the Blobwars series. You take on the role of a fearless Blob agent. Your
579 mission is to infiltrate various enemy bases and rescue as many MIAs as
580 possible, while battling many vicious aliens.")
581 (license (list license:gpl2 ; For code and graphics
582 license:cc0 ; Music and sounds have specific licenses
583 license:cc-by3.0 ; see /doc/readme
584 license:cc-by-sa3.0
585 license:lgpl2.1+
586 license:bsd-2))))
587
588 (define-public bzflag
589 (package
590 (name "bzflag")
591 (version "2.4.20")
592 (source
593 (origin
594 (method url-fetch)
595 (uri (string-append "https://download.bzflag.org/bzflag/source/"
596 version "/bzflag-" version ".tar.bz2"))
597 (sha256
598 (base32 "16brxqmfiyz4j4lb8ihzjcbwqmpsms6vm3ijbp34lnw0blbwdjb2"))))
599 (build-system gnu-build-system)
600 (arguments
601 `(#:phases
602 (modify-phases %standard-phases
603 (add-after 'install 'install-desktop-file-and-icons
604 (lambda* (#:key outputs #:allow-other-keys)
605 (let* ((share (string-append (assoc-ref outputs "out") "/share"))
606 (data (string-append share "/bzflag"))
607 (hicolor (string-append share "/icons/hicolor"))
608 (applications (string-append share "/applications")))
609 ;; Move desktop file.
610 (install-file (string-append data "/bzflag.desktop")
611 applications)
612 ;; Install icons.
613 (for-each (lambda (size)
614 (let* ((dim (string-append size "x" size))
615 (dir (string-append hicolor "/" dim "/apps")))
616 (mkdir-p dir)
617 (copy-file
618 (string-append data "/bzflag-" dim ".png")
619 (string-append dir "/bzflag.png"))))
620 '("48" "256")))
621 #t)))))
622 (native-inputs
623 `(("pkg-config" ,pkg-config)))
624 (inputs
625 `(("c-ares" ,c-ares)
626 ("curl" ,curl)
627 ("glew" ,glew)
628 ("glu" ,glu)
629 ("sdl2" ,sdl2)
630 ("zlib" ,zlib)))
631 (home-page "https://www.bzflag.org/")
632 (synopsis "3D first person tank battle game")
633 (description
634 "BZFlag is a 3D multi-player multiplatform tank battle game that
635 allows users to play against each other in a network environment.
636 There are five teams: red, green, blue, purple and rogue (rogue tanks
637 are black). Destroying a player on another team scores a win, while
638 being destroyed or destroying a teammate scores a loss. Rogues have
639 no teammates (not even other rogues), so they cannot shoot teammates
640 and they do not have a team score.
641
642 There are two main styles of play: capture-the-flag and free-for-all.
643 In capture-the-flag, each team (except rogues) has a team base and
644 each team with at least one player has a team flag. The object is to
645 capture an enemy team's flag by bringing it to your team's base. This
646 destroys every player on the captured team, subtracts one from that
647 team's score, and adds one to your team's score. In free-for-all,
648 there are no team flags or team bases. The object is simply to get as
649 high a score as possible.")
650 ;; The game is dual-licensed.
651 (license (list license:lgpl2.1 license:mpl2.0))))
652
653 (define-public cataclysm-dda
654 (package
655 (name "cataclysm-dda")
656 (version "0.E-2")
657 (source
658 (origin
659 (method git-fetch)
660 (uri (git-reference
661 (url "https://github.com/CleverRaven/Cataclysm-DDA")
662 (commit version)))
663 (sha256
664 (base32 "15l6w6lxays7qmsv0ci2ry53asb9an9dh7l7fc13256k085qcg68"))
665 (file-name (git-file-name name version))))
666 (build-system gnu-build-system)
667 (arguments
668 '(#:make-flags
669 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
670 "USE_HOME_DIR=1" "DYNAMIC_LINKING=1" "RELEASE=1"
671 "LOCALIZE=1" "LANGUAGES=all")
672 #:phases
673 (modify-phases %standard-phases
674 (delete 'configure)
675 (add-after 'build 'build-tiles
676 (lambda* (#:key make-flags outputs #:allow-other-keys)
677 ;; Change prefix directory and enable tile graphics and sound.
678 (apply invoke "make" "TILES=1" "SOUND=1"
679 (string-append "PREFIX="
680 (assoc-ref outputs "tiles"))
681 (cdr make-flags))))
682 (add-after 'install 'install-tiles
683 (lambda* (#:key make-flags outputs #:allow-other-keys)
684 (apply invoke "make" "install" "TILES=1" "SOUND=1"
685 (string-append "PREFIX="
686 (assoc-ref outputs "tiles"))
687 (cdr make-flags)))))
688 ;; TODO: Add libtap++ from https://github.com/cbab/libtappp as a native
689 ;; input in order to support tests.
690 #:tests? #f))
691 (outputs '("out"
692 "tiles")) ;for tile graphics and sound support
693 (native-inputs
694 `(("gettext" ,gettext-minimal)
695 ("pkg-config" ,pkg-config)))
696 (inputs
697 `(("freetype" ,freetype)
698 ("libogg" ,libogg)
699 ("libvorbis" ,libvorbis)
700 ("ncurses" ,ncurses)
701 ("sdl2" ,sdl2)
702 ("sdl2-image" ,sdl2-image)
703 ("sdl2-ttf" ,sdl2-ttf)
704 ("sdl2-mixer" ,sdl2-mixer)))
705 (home-page "https://cataclysmdda.org/")
706 (synopsis "Survival horror roguelike video game")
707 (description
708 "Cataclysm: Dark Days Ahead (or \"DDA\" for short) is a roguelike set
709 in a post-apocalyptic world. Struggle to survive in a harsh, persistent,
710 procedurally generated world. Scavenge the remnants of a dead civilization
711 for food, equipment, or, if you are lucky, a vehicle with a full tank of gas
712 to get you out of Dodge. Fight to defeat or escape from a wide variety of
713 powerful monstrosities, from zombies to giant insects to killer robots and
714 things far stranger and deadlier, and against the others like yourself, that
715 want what you have.")
716 (license license:cc-by-sa3.0)))
717
718 (define-public corsix-th
719 (package
720 (name "corsix-th")
721 (version "0.64")
722 (source
723 (origin
724 (method git-fetch)
725 (uri (git-reference
726 (url "https://github.com/CorsixTH/CorsixTH")
727 (commit (string-append "v" version))))
728 (file-name (git-file-name name version))
729 (sha256
730 (base32 "0chh9cv2kdc39sr0x8hclcyzd8dz2y6grgagqzkvr7j570wa5cqh"))))
731 (build-system cmake-build-system)
732 (arguments
733 `(#:phases
734 (modify-phases %standard-phases
735 (add-after 'install 'wrap-binary
736 (lambda _
737 ;; Set Lua module paths and default MIDI soundfont on startup.
738 (let* ((out (assoc-ref %outputs "out"))
739 (fluid (assoc-ref %build-inputs "fluid-3"))
740 (lua-version ,(version-major+minor (package-version lua)))
741 (lua-cpath
742 (map (lambda (lib)
743 (string-append
744 (assoc-ref %build-inputs (string-append "lua-" lib))
745 "/lib/lua/" lua-version "/?.so"))
746 '("filesystem" "lpeg"))))
747 (wrap-program (string-append out "/bin/corsix-th")
748 `("LUA_CPATH" ";" = ,lua-cpath)
749 `("SDL_SOUNDFONTS" ":" suffix
750 (,(string-append fluid "/share/soundfonts/FluidR3Mono_GM.sf3")))))
751 #t)))
752 #:tests? #f)) ; TODO need busted package to run tests
753 ;; Omit Lua-Socket dependency to disable automatic updates.
754 (inputs
755 `(("ffmpeg" ,ffmpeg)
756 ("fluid-3" ,fluid-3)
757 ("freetype" ,freetype)
758 ("lua" ,lua)
759 ("lua-filesystem" ,lua-filesystem)
760 ("lua-lpeg" ,lua-lpeg)
761 ("sdl2" ,sdl2)
762 ("sdl2-mixer" ,sdl2-mixer)))
763 (home-page "https://corsixth.com")
764 (synopsis "Implementation of the @i{Theme Hospital} game engine")
765 (description
766 "This package provides a reimplementation of the 1997 Bullfrog business
767 simulation game @i{Theme Hospital}. As well as faithfully recreating the
768 original engine, CorsixTH adds support for high resolutions, custom levels and
769 more. This package does @emph{not} provide the game assets.")
770 (license (list
771 license:expat ; main license
772 license:bsd-3)))) ; CorsixTH/Src/random.c
773
774 (define-public cowsay
775 (package
776 (name "cowsay")
777 (version "3.04")
778 (source (origin
779 (method git-fetch)
780 (uri (git-reference
781 (url "https://github.com/tnalpgge/rank-amateur-cowsay")
782 (commit (string-append name "-" version))))
783 (file-name (git-file-name name version))
784 (sha256
785 (base32
786 "06455kq37hvq1xb7adyiwrx0djs50arsxvjgixyxks16lm1rlc7n"))))
787 (build-system gnu-build-system)
788 (arguments
789 `(#:phases
790 (modify-phases %standard-phases
791 (delete 'configure) ; no configure script
792 (delete 'build) ; nothing to be built
793 (replace 'install
794 (lambda* (#:key outputs #:allow-other-keys)
795 (invoke "sh" "install.sh"
796 (assoc-ref outputs "out"))))
797 (delete 'check)
798 (add-after 'install 'check
799 (lambda* (#:key outputs #:allow-other-keys)
800 (invoke (string-append (assoc-ref outputs "out")
801 "/bin/cowsay")
802 "We're done!"))))))
803 (inputs
804 `(("perl" ,perl)))
805 (home-page (string-append "https://web.archive.org/web/20071026043648/"
806 "http://www.nog.net:80/~tony/warez/cowsay.shtml"))
807 (synopsis "Speaking cow text filter")
808 (description "Cowsay is basically a text filter. Send some text into it,
809 and you get a cow saying your text. If you think a talking cow isn't enough,
810 cows can think too: all you have to do is run @command{cowthink}. If you're
811 tired of cows, a variety of other ASCII-art messengers are available.")
812 (license license:gpl3+)))
813
814 (define-public lolcat
815 (let ((commit "35dca3d0a381496d7195cd78f5b24aa7b62f2154")
816 (revision "0"))
817 (package
818 (name "lolcat")
819 (version (git-version "1.0" revision commit))
820 (source
821 (origin
822 (method git-fetch)
823 (uri (git-reference
824 (url "https://github.com/jaseg/lolcat")
825 (commit commit)))
826 (sha256
827 (base32
828 "0jjbkqcc2ikjxd1xgdyv4rb0vsw218181h89f2ywg29ffs3ypd8g"))
829 (file-name (git-file-name name version))))
830 (build-system gnu-build-system)
831 (arguments
832 `(#:tests? #f ; no check target
833 #:make-flags
834 (list ,(string-append "CC=" (cc-for-target)))
835 #:phases
836 (modify-phases %standard-phases
837 (delete 'bootstrap)
838 (delete 'configure)
839 (replace 'install
840 (lambda* (#:key outputs #:allow-other-keys)
841 (let* ((out (assoc-ref outputs "out"))
842 (dest (string-append out "/bin")))
843 (mkdir-p dest)
844 (install-file "lolcat" dest)
845 (install-file "censor" dest)
846 #t))))))
847 (home-page "https://github.com/jaseg/lolcat")
848 (synopsis "Rainbow coloring effect for text console display")
849 (description "@command{lolcat} concatenates files and streams like
850 regular @command{cat}, but it also adds terminal escape codes between
851 characters and lines resulting in a rainbow effect.")
852 (license license:wtfpl2))))
853
854 (define-public foobillard++
855 ;; Even though this latest revision is old already, stable release is
856 ;; lagging way behind it, and has issues with textures rendering.
857 (let ((svn-revision 170))
858 (package
859 (name "foobillard++")
860 (version (string-append "3.43-r" (number->string svn-revision)))
861 (source
862 (origin
863 (method svn-fetch)
864 (uri (svn-reference
865 (url "svn://svn.code.sf.net/p/foobillardplus/code/")
866 (revision svn-revision)))
867 (file-name (git-file-name name version))
868 (sha256
869 (base32 "00b693ys5zvzjbjzzj3dqfzm5xw64gwjf9m8qv6bkmf0klbhmayk"))
870 (patches
871 (search-patches "foobillard++-pkg-config.patch"))
872 (modules '((guix build utils)))
873 (snippet
874 '(begin
875 ;; Unfortunately, the game includes background music with
876 ;; a non-commercial clause. Delete it.
877 (for-each delete-file (find-files "data/music" "\\.ogg$"))
878 #t))))
879 (build-system gnu-build-system)
880 (arguments
881 `(#:configure-flags
882 (list
883 ;; Install data in a less exotic location.
884 (string-append "--prefix=" (assoc-ref %outputs "out") "/share")
885 ;; Prevent a build error about undefined trigonometric functions.
886 "--enable-fastmath=no")
887 #:phases
888 (modify-phases %standard-phases
889 (add-after 'unpack 'fix-makefile
890 ;; Remove hard-coded directories. Also fix installation
891 ;; rule: it tries to move around non-existent files or
892 ;; files already moved.
893 (lambda* (#:key outputs #:allow-other-keys)
894 (substitute* "Makefile.am"
895 (("/usr") (assoc-ref outputs "out"))
896 (("cp .*?/foobillardplus\\.desktop.*") "")
897 (("cp .*?/foobillardplus\\.(png|xbm) \\$\\(datarootdir\\).*")
898 ""))
899 #t))
900 (add-after 'unpack 'unbundle-font
901 ;; XXX: The package ships with LinBiolinum_aSB.ttf and
902 ;; LinBiolinum_aS.ttf, which are not provided by
903 ;; `font-linuxlibertine' package. Therefore, we cannot replace
904 ;; them yet.
905 (lambda* (#:key inputs #:allow-other-keys)
906 (let ((dejavu (string-append (assoc-ref inputs "font-dejavu")
907 "/share/fonts/truetype/")))
908 (with-directory-excursion "data"
909 (for-each (lambda (f)
910 (delete-file f)
911 (symlink (string-append dejavu f) f))
912 '("DejaVuSans-Bold.ttf" "DejaVuSans.ttf"))))
913 #t))
914 (replace 'bootstrap
915 (lambda _
916 (invoke "aclocal" "--force")
917 (invoke "autoconf" "-f")
918 (invoke "autoheader" "-f")
919 (invoke "automake" "-a" "-c" "-f")))
920 (add-before 'build 'prepare-build
921 ;; Set correct environment for SDL.
922 (lambda* (#:key inputs #:allow-other-keys)
923 (setenv "CPATH"
924 (string-append (assoc-ref inputs "sdl")
925 "/include/SDL:"
926 (or (getenv "CPATH") "")))
927 #t))
928 (add-before 'build 'fix-settings-directory
929 ;; Hide foobillardplus settings directory in $HOME.
930 (lambda _
931 (substitute* "src/history.c"
932 (("/foobillardplus-data") "/.foobillardplus"))
933 #t))
934 (add-before 'install 'create-directories
935 ;; Install process does not create directories before
936 ;; trying to move file in it.
937 (lambda* (#:key outputs #:allow-other-keys)
938 (let ((out (assoc-ref outputs "out")))
939 (mkdir-p (string-append out "/share/icons"))
940 (mkdir-p (string-append out "/share/applications")))
941 #t))
942 (add-after 'install 'symlink-executable
943 ;; Symlink executable to $out/bin.
944 (lambda* (#:key outputs #:allow-other-keys)
945 (let* ((out (assoc-ref outputs "out"))
946 (bin (string-append out "/bin")))
947 (mkdir-p bin)
948 (with-directory-excursion bin
949 (symlink "../share/foobillardplus/bin/foobillardplus"
950 "foobillardplus"))
951 #t))))))
952 (native-inputs
953 `(("autoconf" ,autoconf)
954 ("automake" ,automake)
955 ("pkg-config" ,pkg-config)))
956 (inputs
957 `(("font-dejavu" ,font-dejavu)
958 ("freetype" ,freetype)
959 ("glu" ,glu)
960 ("libpng" ,libpng)
961 ("sdl" ,(sdl-union (list sdl sdl-mixer sdl-net)))))
962 (home-page "http://foobillardplus.sourceforge.net/")
963 (synopsis "3D billiard game")
964 (description "FooBillard++ is an advanced 3D OpenGL billiard game
965 based on the original foobillard 3.0a sources from Florian Berger.
966 You can play it with one or two players or against the computer.
967
968 The game features:
969
970 @itemize
971 @item Wood paneled table with gold covers and gold diamonds.
972 @item Reflections on balls.
973 @item Zoom in and out, rotation, different angles and bird's eye view.
974 @item Different game modes: 8 or 9-ball, Snooker or Carambole.
975 @item Tournaments. Compete against other players.
976 @item Animated cue with strength and eccentric hit adjustment.
977 @item Jump shots and snipping.
978 @item Realistic gameplay and billiard sounds.
979 @item Red-Green stereo.
980 @item And much more.
981 @end itemize")
982 (license (list license:gpl2 license:silofl1.1)))))
983
984 (define-public freedoom
985 (package
986 (name "freedoom")
987 (version "0.12.1")
988 (source
989 (origin
990 (method git-fetch)
991 (uri (git-reference
992 (url "https://github.com/freedoom/freedoom")
993 (commit (string-append "v" version))))
994 (file-name (git-file-name name version))
995 (sha256
996 (base32 "1mq60lfwaaxmch7hsz8403pwafnlsmsd5z2df2j77ppwndwcrypb"))))
997 (build-system gnu-build-system)
998 (arguments
999 '(#:make-flags
1000 (list (string-append "prefix=" (assoc-ref %outputs "out")))
1001 #:tests? #f ; no check target
1002 #:phases
1003 (modify-phases %standard-phases
1004 (delete 'bootstrap)
1005 (replace 'configure
1006 (lambda* (#:key inputs outputs #:allow-other-keys)
1007 (let* ((freedoom (assoc-ref outputs "out"))
1008 (wad-dir (string-append freedoom "/share/games/doom")))
1009 ;; Make sure that the install scripts know where to find
1010 ;; the appropriate WAD files.
1011 (substitute* "dist/freedoom"
1012 (("IWAD=freedm.wad")
1013 (string-append "IWAD=" wad-dir "/freedm.wad"))
1014 (("IWAD=freedoom1.wad")
1015 (string-append "IWAD=" wad-dir "/freedoom1.wad"))
1016 (("IWAD=freedoom2.wad")
1017 (string-append "IWAD=" wad-dir "/freedoom2.wad")))
1018 #t))))))
1019 (native-inputs
1020 `(("asciidoc" ,asciidoc)
1021 ("deutex" ,deutex)
1022 ("python" ,python)
1023 ("python-pillow" ,python-pillow)))
1024 (home-page "https://freedoom.github.io/")
1025 (synopsis "Free content game based on the Doom engine")
1026 (native-search-paths
1027 (list (search-path-specification
1028 (variable "DOOMWADDIR")
1029 (files '("share/games/doom")))
1030 (search-path-specification
1031 (variable "DOOMWADPATH")
1032 (files '("share/games/doom")))))
1033 (description
1034 "The Freedoom project aims to create a complete free content first person
1035 shooter game. Freedoom by itself is just the raw material for a game: it must
1036 be paired with a compatible game engine (such as @code{prboom-plus}) to be
1037 played. Freedoom complements the Doom engine with free levels, artwork, sound
1038 effects and music to make a completely free game.")
1039 (license license:bsd-3)))
1040
1041 (define-public freedroidrpg
1042 (package
1043 (name "freedroidrpg")
1044 (version "0.16.1")
1045 (source
1046 (origin
1047 (method url-fetch)
1048 (uri (string-append "http://ftp.osuosl.org/pub/freedroid/"
1049 "freedroidRPG-" (version-major+minor version) "/"
1050 "freedroidRPG-" version ".tar.gz"))
1051 (sha256
1052 (base32 "0n4kn38ncmcy3lrxmq8fjry6c1z50z4q1zcqfig0j4jb0dsz2va2"))))
1053 (build-system gnu-build-system)
1054 (arguments
1055 `(#:configure-flags
1056 (list
1057 (string-append "CFLAGS="
1058 "-I" (assoc-ref %build-inputs "sdl-gfx") "/include/SDL "
1059 "-I" (assoc-ref %build-inputs "sdl-image") "/include/SDL "
1060 "-I" (assoc-ref %build-inputs "sdl-mixer") "/include/SDL")
1061 "--enable-opengl")
1062 ;; FIXME: the test suite fails with the following error output:
1063 ;; 4586 Segmentation fault env SDL_VIDEODRIVER=dummy \
1064 ;; SDL_AUDIODRIVER=dummy ./src/freedroidRPG -nb text
1065 #:tests? #f))
1066 (native-inputs
1067 `(("pkg-config" ,pkg-config)))
1068 (inputs
1069 `(("glu" ,glu)
1070 ("libjpeg" ,libjpeg-turbo)
1071 ("libogg" ,libogg)
1072 ("libpng" ,libpng)
1073 ("libvorbis" ,libvorbis)
1074 ("mesa" ,mesa)
1075 ("python" ,python-wrapper)
1076 ("sdl" ,sdl)
1077 ("sdl-gfx" ,sdl-gfx)
1078 ("sdl-image" ,sdl-image)
1079 ("sdl-mixer" ,sdl-mixer)
1080 ("zlib" ,zlib)))
1081 (home-page "http://www.freedroid.org/")
1082 (synopsis "Isometric role-playing game against killer robots")
1083 (description
1084 "Freedroid RPG is an @dfn{RPG} (Role-Playing Game) with isometric graphics.
1085 The game tells the story of a world destroyed by a conflict between robots and
1086 their human masters. To restore peace to humankind, the player must complete
1087 numerous quests while fighting off rebelling robots---either by taking control
1088 of them, or by simply blasting them to pieces with melee and ranged weapons in
1089 real-time combat.")
1090 (license (list license:expat ; lua/
1091 license:gpl3 ; src/gen_savestruct.py
1092 license:gpl2+)))) ; the rest
1093
1094 (define-public golly
1095 (package
1096 (name "golly")
1097 (version "3.3")
1098 (source (origin
1099 (method url-fetch)
1100 (uri (string-append "mirror://sourceforge/golly/golly/golly-"
1101 version "/golly-" version
1102 "-src.tar.gz"))
1103 (sha256
1104 (base32
1105 "1j3ksnar4rdam4xiyspgyrs1pifbvxfxkrn65brkwxpx39mpgzc8"))))
1106 (build-system gnu-build-system)
1107 (arguments
1108 '(#:make-flags (list "CC=gcc"
1109 (string-append "GOLLYDIR="
1110 (assoc-ref %outputs "out")
1111 "/share/golly"))
1112 #:tests? #f ; no check target
1113 #:phases
1114 (modify-phases %standard-phases
1115 (replace 'configure
1116 (lambda* (#:key inputs #:allow-other-keys)
1117 ;; For some reason, setting the PYTHON_SHLIB make flag doesn't
1118 ;; properly set the path to the Python shared library. This
1119 ;; substitution acheives the same end by different means.
1120 (substitute* "gui-wx/wxprefs.cpp"
1121 (("pythonlib = wxT\\(STRINGIFY\\(PYTHON_SHLIB\\)\\)")
1122 (string-append "pythonlib = \""
1123 (assoc-ref inputs "python")
1124 "/lib/libpython-2.7.so\"")))
1125 #t))
1126 (replace 'build
1127 (lambda* (#:key make-flags outputs #:allow-other-keys)
1128 (with-directory-excursion "gui-wx"
1129 (apply invoke `("make" ,@make-flags "-f" "makefile-gtk")))))
1130 (replace 'install
1131 (lambda* (#:key outputs #:allow-other-keys)
1132 (let* ((out (assoc-ref outputs "out"))
1133 (bin (string-append out "/bin"))
1134 (doc (string-append out "/share/doc/golly"))
1135 (pixmaps (string-append out "/share/pixmaps"))
1136 (share (string-append out "/share/golly")))
1137 (for-each (lambda (binary)
1138 (install-file binary bin))
1139 '("bgolly" "golly"))
1140 (for-each (lambda (document)
1141 (install-file
1142 (string-append "docs/" document ".html")
1143 doc))
1144 '("License" "ReadMe" "ToDo"))
1145 (install-file "gui-wx/icons/appicon.xpm" pixmaps)
1146 (for-each (lambda (folder)
1147 (copy-recursively
1148 folder
1149 (string-append share "/" folder)))
1150 '("Help" "Patterns" "Rules" "Scripts")))
1151 #t)))))
1152 (native-inputs
1153 `(("lua" ,lua)))
1154 (inputs
1155 `(("glu" ,glu)
1156 ("mesa" ,mesa)
1157 ("python" ,python-2)
1158 ("wxwidgets" ,wxwidgets-gtk2)
1159 ("zlib" ,zlib)))
1160 (home-page "http://golly.sourceforge.net/")
1161 (synopsis "Software for exploring cellular automata")
1162 (description
1163 "Golly simulates Conway's Game of Life and many other types of cellular
1164 automata. The following features are available:
1165 @enumerate
1166 @item Support for bounded and unbounded universes, with cells of up to 256
1167 states.
1168 @item Support for multiple algorithms, including Bill Gosper's Hashlife
1169 algorithm.
1170 @item Loading patterns from BMP, PNG, GIF and TIFF image files.
1171 @item Reading RLE, macrocell, Life 1.05/1.06, dblife and MCell files.
1172 @item Scriptable via Lua or Python.
1173 @item Extracting patterns, rules and scripts from zip files.
1174 @item Downloading patterns, rules and scripts from online archives.
1175 @item Pasting patterns from the clipboard.
1176 @item Unlimited undo/redo.
1177 @item Configurable keyboard shortcuts.
1178 @item Auto fit option to keep patterns within the view.
1179 @end enumerate")
1180 (license license:gpl2+)))
1181
1182 (define-public julius
1183 (package
1184 (name "julius")
1185 (version "1.4.1")
1186 (source
1187 (origin
1188 (method git-fetch)
1189 (uri (git-reference
1190 (url "https://github.com/bvschaik/julius")
1191 (commit (string-append "v" version))))
1192 (file-name (git-file-name name version))
1193 (sha256
1194 (base32 "12hhnhdwgz7hd3hlndbnk15pxggm1375qs0764ija4nl1gbpb110"))
1195 ;; Remove unused bundled libraries.
1196 (modules '((guix build utils)))
1197 (snippet
1198 '(begin
1199 (with-directory-excursion "ext"
1200 (for-each delete-file-recursively '("dirent" "png" "SDL2" "zlib")))
1201 #t))))
1202 (build-system cmake-build-system)
1203 (inputs
1204 `(("libpng" ,libpng)
1205 ("sdl2" ,sdl2)
1206 ("sdl2-mixer" ,sdl2-mixer)))
1207 (home-page "https://github.com/bvschaik/julius")
1208 (synopsis "Re-implementation of Caesar III game engine")
1209 (description
1210 "Engine for Caesar III, a city-building real-time strategy game.
1211 Julius includes some UI enhancements while preserving the logic (including
1212 bugs) of the original game, so that saved games are compatible. This package
1213 does not include game data.")
1214 (license (list license:agpl3
1215 license:zlib)))) ; ext/tinyfiledialogs
1216
1217 (define-public augustus
1218 (package
1219 (inherit julius)
1220 (name "augustus")
1221 (version (package-version julius))
1222 (source
1223 (origin
1224 (method git-fetch)
1225 (uri (git-reference
1226 (url "https://github.com/Keriew/augustus")
1227 (commit (string-append "v" version))))
1228 (file-name (git-file-name name version))
1229 (sha256
1230 (base32 "0ii0w0iwa9zv5bbqfcps5mxifd796m6fw4gvjf09pkm3yjgqc0ag"))
1231 ;; Remove unused bundled libraries.
1232 (modules '((guix build utils)))
1233 (snippet
1234 '(begin
1235 (with-directory-excursion "ext"
1236 (for-each delete-file-recursively '("dirent" "png" "SDL2" "zlib")))
1237 #t))))
1238 (arguments
1239 ;; No tests. See https://github.com/Keriew/augustus/issues/82.
1240 `(#:tests? #f))
1241 (home-page "https://github.com/Keriew/augustus")
1242 (synopsis "Re-implementation of Caesar III game engine with gameplay changes")
1243 (description
1244 "Fork of Julius, an engine for the a city-building real-time strategy
1245 game Caesar III. Gameplay enhancements include:
1246
1247 @itemize
1248 @item roadblocks;
1249 @item market special orders;
1250 @item global labour pool;
1251 @item partial warehouse storage;
1252 @item increased game limits;
1253 @item zoom controls.
1254 @end itemize\n")))
1255
1256 (define-public meandmyshadow
1257 (package
1258 (name "meandmyshadow")
1259 (version "0.5a")
1260 (source (origin
1261 (method url-fetch)
1262 (uri (string-append "mirror://sourceforge/meandmyshadow/"
1263 version "/meandmyshadow-" version
1264 "-src.tar.gz"))
1265 (sha256
1266 (base32
1267 "0i98v6cgmpsxy7mbb0s2y6f6qq6mkwzk2nrv1nz39ncf948aky2h"))))
1268 (build-system cmake-build-system)
1269 (arguments
1270 `(#:tests? #f)) ; there are no tests
1271 (native-inputs
1272 `(("pkg-config" ,pkg-config)))
1273 (inputs
1274 `(("curl" ,curl)
1275 ("libarchive" ,libarchive)
1276 ("lua" ,lua)
1277 ("sdl" ,(sdl-union (list sdl2
1278 sdl2-image
1279 sdl2-mixer
1280 sdl2-ttf)))))
1281 (home-page "https://acmepjz.github.io/meandmyshadow/")
1282 (synopsis "Puzzle/platform game")
1283 (description "Me and My Shadow is a puzzle/platform game in which you try
1284 to reach the exit by solving puzzles. Spikes, moving blocks, fragile blocks
1285 and much more stand between you and the exit. Record your moves and let your
1286 shadow mimic them to reach blocks you couldn't reach alone.")
1287 (license license:gpl3+)))
1288
1289 (define-public opensurge
1290 (package
1291 (name "opensurge")
1292 (version "0.5.1.2")
1293 (source
1294 (origin
1295 (method git-fetch)
1296 (uri (git-reference
1297 (url "https://github.com/alemart/opensurge")
1298 (commit (string-append "v" version))))
1299 (file-name (git-file-name name version))
1300 (sha256
1301 (base32 "0ih7hlqjnp9rv0m4lqf7c0s1ai532way5i4pk45jq1gqm8325dbv"))))
1302 (build-system cmake-build-system)
1303 (arguments
1304 `(#:tests? #f ;there are no tests
1305 #:configure-flags
1306 (let* ((out (assoc-ref %outputs "out"))
1307 (share (string-append out "/share")))
1308 (list (string-append "-DCMAKE_INSTALL_PREFIX=" out "/bin")
1309 (string-append "-DGAME_DATADIR=" share "/" ,name)
1310 (string-append "-DDESKTOP_ENTRY_PATH=" share "/applications")
1311 (string-append "-DDESKTOP_ICON_PATH=" share "/pixmaps")
1312 (string-append "-DDESKTOP_METAINFO_PATH=" share "/metainfo")))
1313 #:phases
1314 (modify-phases %standard-phases
1315 (add-after 'unpack 'fix-xdg-open-path
1316 (lambda* (#:key inputs #:allow-other-keys)
1317 ;; Look for xdg-open in the store.
1318 (substitute* "src/core/web.c"
1319 (("/usr(/bin/xdg-open)" _ bin)
1320 (string-append (assoc-ref inputs "xdg-utils") bin)))
1321 #t))
1322 (add-after 'unpack 'unbundle-fonts
1323 (lambda* (#:key inputs #:allow-other-keys)
1324 ;; Replace bundled Roboto fonts with links to the store.
1325 (with-directory-excursion "fonts"
1326 (let ((roboto-dir (string-append
1327 (assoc-ref inputs "font-google-roboto")
1328 "/share/fonts/truetype/")))
1329 (for-each
1330 (lambda (font)
1331 (delete-file font)
1332 (symlink (string-append roboto-dir font) font))
1333 '("Roboto-Black.ttf" "Roboto-Bold.ttf" "Roboto-Medium.ttf")))
1334 #t))))))
1335 (inputs
1336 `(("allegro" ,allegro)
1337 ("font-google-roboto" ,font-google-roboto)
1338 ("surgescript" ,surgescript)
1339 ("xdg-utils" ,xdg-utils)))
1340 (home-page "https://opensurge2d.org")
1341 (synopsis "2D retro side-scrolling game")
1342 (description "@code{Open Surge} is a 2D retro side-scrolling platformer
1343 inspired by the Sonic games. The player runs at high speeds through each
1344 level while collecting items and avoiding obstacles. The game includes a
1345 built-in level editor.")
1346 (license
1347 ;; Code is under GPL 3+, assets are under various licenses.
1348 ;; See src/misc/credits.c for details.
1349 (list license:gpl3+
1350 license:cc0
1351 license:cc-by3.0
1352 license:cc-by-sa3.0
1353 license:expat
1354 license:public-domain
1355 license:silofl1.1))))
1356
1357 (define-public knights
1358 (package
1359 (name "knights")
1360 (version "025")
1361 (source (origin
1362 (method url-fetch)
1363 (uri (string-append "http://www.knightsgame.org.uk/files/knights_"
1364 version "_src.tar.gz"))
1365 (sha256
1366 (base32
1367 "18vp2ygvn0s0jz8rm585jqf6hjqkam1ximq81k0r9hpmfj7wb88f"))))
1368 (build-system gnu-build-system)
1369 (arguments
1370 '(#:make-flags
1371 (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
1372 "CXXFLAGS=-lpthread")
1373 #:phases
1374 (modify-phases %standard-phases
1375 ;; No configure script.
1376 (delete 'configure))
1377 #:tests? #f)) ;; No check target.
1378 (inputs
1379 `(("boost" ,boost)
1380 ("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer)))
1381 ("freetype" ,freetype)
1382 ("fontconfig" ,fontconfig)
1383 ("curl" ,curl)))
1384 (native-inputs
1385 `(("pkg-config" ,pkg-config)))
1386 (home-page "http://www.knightsgame.org.uk/")
1387 (synopsis "Multiplayer dungeon game involving knights and quests")
1388 (description "Knights is a multiplayer game involving several knights who
1389 must run around a dungeon and complete various quests. Each game revolves
1390 around a quest – for example, you might have to find some items and carry them
1391 back to your starting point. This may sound easy, but as there are only
1392 enough items in the dungeon for one player to win, you may end up having to
1393 kill your opponents to get their stuff! Other quests involve escaping from
1394 the dungeon, fighting a duel to the death against the enemy knights, or
1395 destroying an ancient book using a special wand.")
1396 ;; This package includes modified sources of lua (X11), enet (Expat), and
1397 ;; guichan (BSD-3). The "Coercri" library is released under the Boost
1398 ;; license. The whole package is released under GPLv3+.
1399 (license license:gpl3+)))
1400
1401 (define-public gnome-chess
1402 (package
1403 (name "gnome-chess")
1404 (version "3.37.3")
1405 (source (origin
1406 (method url-fetch)
1407 (uri (string-append "mirror://gnome/sources/gnome-chess/"
1408 (version-major+minor version) "/"
1409 "gnome-chess-" version ".tar.xz"))
1410 (sha256
1411 (base32
1412 "09axf0q1mp13sv8cs0syfg8ahcd9r2qb26278r09j6s4njxmkfv4"))))
1413 (build-system meson-build-system)
1414 (arguments
1415 '(#:glib-or-gtk? #t
1416 #:phases
1417 (modify-phases %standard-phases
1418 (add-after 'unpack 'skip-gtk-update-icon-cache
1419 ;; Don't create 'icon-theme.cache'.
1420 (lambda _
1421 (substitute* "meson_post_install.py"
1422 (("gtk-update-icon-cache") "true"))
1423 #t)))))
1424 (inputs
1425 `(("gtk+" ,gtk+)
1426 ("librsvg" ,librsvg)))
1427 (native-inputs
1428 `(("gettext" ,gettext-minimal)
1429 ("glib:bin" ,glib "bin") ; for desktop-file-validate and appstream-util
1430 ("itstool" ,itstool)
1431 ("pkg-config" ,pkg-config)
1432 ("vala" ,vala)))
1433 (home-page "https://wiki.gnome.org/Apps/Chess")
1434 (synopsis "Chess board for GNOME")
1435 (description "GNOME Chess provides a 2D board for playing chess games
1436 against human or computer players. It supports loading and saving games in
1437 Portable Game Notation. To play against a computer, install a chess engine
1438 such as chess or stockfish.")
1439 (license license:gpl3+)))
1440
1441 (define-public gnubg
1442 (package
1443 (name "gnubg")
1444 (version "1.06.002")
1445 (source
1446 (origin
1447 (method url-fetch)
1448 (uri (string-append "mirror://gnu/gnubg/gnubg-release-"
1449 version "-sources.tar.gz"))
1450 (sha256
1451 (base32
1452 "11xwhcli1h12k6rnhhyq4jphzrhfik7i8ah3k32pqw803460n6yf"))))
1453 (build-system gnu-build-system)
1454 (inputs `(;; XXX: Build with an older Pango for 'pango_font_get_hb_font' and
1455 ;; 'pango_coverage_get_type'. Try removing this for versions > 1.06.002.
1456 ("pango" ,pango-1.42)
1457
1458 ("glib" ,glib)
1459 ("readline" ,readline)
1460 ("gtk+" ,gtk+-2)
1461 ("mesa" ,mesa)
1462 ("glu" ,glu)
1463 ("gtkglext" ,gtkglext)
1464 ("sqlite" ,sqlite)
1465 ("libcanberra" ,libcanberra)))
1466 (native-inputs `(("python-2" ,python-2)
1467 ("pkg-config" ,pkg-config)))
1468 (arguments
1469 `(#:phases
1470 (modify-phases %standard-phases
1471 (add-after 'install 'install-desktop-file
1472 (lambda* (#:key outputs #:allow-other-keys)
1473 (let* ((out (assoc-ref outputs "out"))
1474 (apps (string-append out "/share/applications")))
1475 (mkdir-p apps)
1476 (with-output-to-file (string-append apps "/gnubg.desktop")
1477 (lambda _
1478 (format #t
1479 "[Desktop Entry]~@
1480 Name=GNU Backgammon~@
1481 Exec=~a/bin/gnubg -w~@
1482 Icon=gnubg~@
1483 Categories=Game;~@
1484 Terminal=false~@
1485 Type=Application~%"
1486 out))))
1487 #t)))))
1488 (home-page "https://www.gnu.org/software/gnubg/")
1489 (synopsis "Backgammon game")
1490 (description "The GNU backgammon application (also known as \"gnubg\") can
1491 be used for playing, analyzing and teaching the game. It has an advanced
1492 evaluation engine based on artificial neural networks suitable for both
1493 beginners and advanced players. In addition to a command-line interface, it
1494 also features an attractive, 3D representation of the playing board.")
1495 (license license:gpl3+)))
1496
1497 (define-public gnubik
1498 (package
1499 (name "gnubik")
1500 (version "2.4.3")
1501 (source
1502 (origin
1503 (method url-fetch)
1504 (uri (string-append "mirror://gnu/gnubik/gnubik-"
1505 version ".tar.gz"))
1506 (sha256
1507 (base32
1508 "1vlf924mq8hg93bsjj0rzvs0crc6psmlxyc6zn0fr7msnmpx6gib"))))
1509 (build-system gnu-build-system)
1510 (arguments
1511 '(#:phases (modify-phases %standard-phases
1512 (add-after 'unpack 'skip-gtk-update-icon-cache
1513 (lambda _
1514 ;; Do not attempt to run 'gtk-update-icon-cache', which is
1515 ;; unnecessary and causes a needless dependency on glib.
1516 (substitute* "Makefile.in"
1517 (("gtk-update-icon-cache")
1518 "true"))
1519 #t)))))
1520 (inputs `(("gtk+" ,gtk+-2)
1521 ("mesa" ,mesa)
1522 ("glu" ,glu)
1523 ("libx11" ,libx11)
1524 ("guile" ,guile-2.0)
1525 ("gtkglext" ,gtkglext)))
1526 (native-inputs `(("gettext" ,gettext-minimal)
1527 ("pkg-config" ,pkg-config)))
1528 (home-page "https://www.gnu.org/software/gnubik/")
1529 (synopsis "3d Rubik's cube game")
1530 (description
1531 "GNUbik is a puzzle game in which you must manipulate a cube to make
1532 each of its faces have a uniform color. The game is customizable, allowing
1533 you to set the size of the cube (the default is 3x3) or to change the colors.
1534 You may even apply photos to the faces instead of colors. The game is
1535 scriptable with Guile.")
1536 (license license:gpl3+)))
1537
1538 (define-public gnushogi
1539 (package
1540 (name "gnushogi")
1541 (version "1.4.2")
1542 (source
1543 (origin
1544 (method url-fetch)
1545 (uri (string-append "mirror://gnu/gnushogi/gnushogi-"
1546 version ".tar.gz"))
1547 (sha256
1548 (base32
1549 "0a9bsl2nbnb138lq0h14jfc5xvz7hpb2bcsj4mjn6g1hcsl4ik0y"))))
1550 (arguments `(#:tests? #f)) ;; No check target.
1551 (build-system gnu-build-system)
1552 (home-page "https://www.gnu.org/software/gnushogi/")
1553 (synopsis "The game of Shogi (Japanese chess)")
1554 (description "GNU Shogi is a program that plays the game Shogi (Japanese
1555 Chess). It is similar to standard chess but this variant is far more complicated.")
1556 (license license:gpl3+)))
1557
1558 (define-public ltris
1559 (package
1560 (name "ltris")
1561 (version "1.2.1")
1562 (source
1563 (origin
1564 (method url-fetch)
1565 (uri (string-append "mirror://sourceforge/lgames/ltris/"
1566 "ltris-" version ".tar.gz"))
1567 (sha256
1568 (base32 "0959vvxh5xnxzpdv7i67lpd2b6ghx69z65ldnclj1z6llyfzfs7q"))))
1569 (build-system gnu-build-system)
1570 (arguments
1571 '(;; The code in LTris uses traditional GNU semantics for inline functions
1572 #:configure-flags '("CFLAGS=-fgnu89-inline")
1573 #:phases
1574 (modify-phases %standard-phases
1575 (add-after 'set-paths 'set-sdl-paths
1576 (lambda* (#:key inputs #:allow-other-keys)
1577 (setenv "CPATH"
1578 (string-append (assoc-ref inputs "sdl-union")
1579 "/include/SDL:"
1580 (or (getenv "CPATH") "")))
1581 #t)))))
1582 (inputs
1583 `(("sdl-union" ,(sdl-union (list sdl sdl-mixer)))))
1584 (home-page "http://lgames.sourceforge.net/LTris/")
1585 (synopsis "Tetris clone based on the SDL library")
1586 (description
1587 "LTris is a tetris clone: differently shaped blocks are falling down the
1588 rectangular playing field and can be moved sideways or rotated by 90 degree
1589 units with the aim of building lines without gaps which then disappear (causing
1590 any block above the deleted line to fall down). LTris has three game modes: In
1591 Classic you play until the stack of blocks reaches the top of the playing field
1592 and no new blocks can enter. In Figures the playing field is reset to a new
1593 figure each level and later on tiles and lines suddenly appear. In Multiplayer
1594 up to three players (either human or CPU) compete with each other sending
1595 removed lines to all opponents. There is also a Demo mode in which you can
1596 watch your CPU playing while enjoying a cup of tea!")
1597 (license license:gpl2+)))
1598
1599 (define-public nethack
1600 (package
1601 (name "nethack")
1602 (version "3.6.6")
1603 (source
1604 (origin
1605 (method url-fetch)
1606 (uri
1607 (string-append "https://www.nethack.org/download/" version "/nethack-"
1608 (string-join (string-split version #\.) "") "-src.tgz"))
1609 (sha256
1610 (base32 "1liyckjp34j354qnxc1zn9730lh1p2dabrg1hap24z6xnqx0rpng"))))
1611 (native-inputs
1612 `(("bison" ,bison)
1613 ("flex" ,flex)))
1614 (inputs
1615 `(("ncurses" ,ncurses)
1616 ("less" ,less)))
1617 (build-system gnu-build-system)
1618 (arguments
1619 '(#:make-flags
1620 `(,(string-append "PREFIX=" (assoc-ref %outputs "out")))
1621 #:phases
1622 (modify-phases %standard-phases
1623 (add-before 'configure 'patch-paths
1624 (lambda _
1625 (substitute* "sys/unix/nethack.sh"
1626 (("^ *cd .*$") ""))
1627 (substitute* "sys/unix/Makefile.utl"
1628 (("^YACC *=.*$") "YACC = bison -y\n")
1629 (("^LEX *=.*$") "LEX = flex\n")
1630 (("^# CC = gcc") "CC = gcc"))
1631 (substitute* "sys/unix/hints/linux"
1632 (("/bin/gzip") (string-append
1633 (assoc-ref %build-inputs "gzip")
1634 "/bin/gzip"))
1635 (("^WINTTYLIB=.*") "WINTTYLIB=-lncurses"))
1636 (substitute* "include/config.h"
1637 (("^.*define CHDIR.*$") "")
1638 (("^/\\* *#*define *REPRODUCIBLE_BUILD *\\*/")
1639 ;; Honor SOURCE_DATE_EPOCH.
1640 "#define REPRODUCIBLE_BUILD"))
1641
1642 ;; Note: 'makedefs' rejects and ignores dates that are too old
1643 ;; or too new, so we must choose something reasonable here.
1644 (setenv "SOURCE_DATE_EPOCH" "1531865062")
1645
1646 (substitute* "sys/unix/Makefile.src"
1647 (("^# CC = gcc") "CC = gcc"))
1648 #t))
1649 (replace 'configure
1650 (lambda _
1651 (let ((bash (string-append
1652 (assoc-ref %build-inputs "bash")
1653 "/bin/bash")))
1654 (with-directory-excursion "sys/unix"
1655 (substitute* "setup.sh" (("/bin/sh") bash))
1656 (invoke bash "setup.sh" "hints/linux"))
1657 #t)))
1658 (add-after 'install 'fixup-paths
1659 (lambda _
1660 (let* ((output (assoc-ref %outputs "out"))
1661 (nethack-script (string-append output "/bin/nethack")))
1662 (mkdir-p (string-append output "/games/lib/nethackuserdir"))
1663 (for-each
1664 (lambda (file)
1665 (rename-file
1666 (string-append output "/games/lib/nethackdir/" file)
1667 (string-append output "/games/lib/nethackuserdir/"
1668 file)))
1669 '("xlogfile" "logfile" "perm" "record" "save"))
1670 (mkdir-p (string-append output "/bin"))
1671 (call-with-output-file nethack-script
1672 (lambda (port)
1673 (format port "#!~a/bin/sh
1674 PATH=~a:$PATH
1675 if [ ! -d ~~/.config/nethack ]; then
1676 mkdir -p ~~/.config/nethack
1677 cp -r ~a/games/lib/nethackuserdir/* ~~/.config/nethack
1678 chmod -R +w ~~/.config/nethack
1679 fi
1680
1681 RUNDIR=$(mktemp -d)
1682
1683 cleanup() {
1684 rm -rf $RUNDIR
1685 }
1686 trap cleanup EXIT
1687
1688 cd $RUNDIR
1689 for i in ~~/.config/nethack/*; do
1690 ln -s $i $(basename $i)
1691 done
1692 for i in ~a/games/lib/nethackdir/*; do
1693 ln -s $i $(basename $i)
1694 done
1695 ~a/games/nethack"
1696 (assoc-ref %build-inputs "bash")
1697 (list->search-path-as-string
1698 (list
1699 (string-append
1700 (assoc-ref %build-inputs "coreutils") "/bin")
1701 (string-append
1702 (assoc-ref %build-inputs "less") "/bin"))
1703 ":")
1704 output
1705 output
1706 output)))
1707 (chmod nethack-script #o555)
1708 #t)))
1709 (delete 'check))))
1710 (home-page "https://nethack.org")
1711 (synopsis "Classic dungeon crawl game")
1712 (description "NetHack is a single player dungeon exploration game that runs
1713 on a wide variety of computer systems, with a variety of graphical and text
1714 interfaces all using the same game engine. Unlike many other Dungeons &
1715 Dragons-inspired games, the emphasis in NetHack is on discovering the detail of
1716 the dungeon and not simply killing everything in sight - in fact, killing
1717 everything in sight is a good way to die quickly. Each game presents a
1718 different landscape - the random number generator provides an essentially
1719 unlimited number of variations of the dungeon and its denizens to be discovered
1720 by the player in one of a number of characters: you can pick your race, your
1721 role, and your gender.")
1722 (license
1723 (license:fsdg-compatible
1724 "https://nethack.org/common/license.html"))))
1725
1726 (define-public pipewalker
1727 (package
1728 (name "pipewalker")
1729 (version "0.9.4")
1730 (source
1731 (origin
1732 (method url-fetch)
1733 (uri (string-append "http://downloads.sourceforge.net/pipewalker/"
1734 "pipewalker-" version ".tar.gz"))
1735 (sha256
1736 (base32 "1x46wgk0s55562pd96cxagxkn6wpgglq779f9b64ff1k3xzp3myn"))))
1737 (build-system gnu-build-system)
1738 (arguments
1739 `(#:configure-flags
1740 (list (string-append "--docdir=" (assoc-ref %outputs "out")
1741 "/share/doc/" ,name "-" ,version))
1742 #:phases
1743 (modify-phases %standard-phases
1744 (add-after 'configure 'patch-docdir
1745 ;; Makefile.in ignores configure's ‘--docdir=...’ option. Fix that.
1746 (lambda _
1747 (substitute* "Makefile"
1748 (("(pkgdocdatadir = ).*" _ assignment)
1749 (string-append assignment "$(docdir)\n")))
1750 #t)))))
1751 (inputs
1752 `(("libpng" ,libpng)
1753 ("mesa" ,mesa)
1754 ("sdl" ,sdl)))
1755 (home-page "http://pipewalker.sourceforge.net/")
1756 (synopsis "Logical tile puzzle")
1757 (description
1758 "PipeWalker is a simple puzzle game with many diffent themes: connect all
1759 computers to one network server, bring water from a source to the taps, etc.
1760 The underlying mechanism is always the same: you must turn each tile in the
1761 grid in the right direction to combine all components into a single circuit.
1762 Every puzzle has a complete solution, although there may be more than one.")
1763 (license license:gpl3+)))
1764
1765 (define-public prboom-plus
1766 (package
1767 (name "prboom-plus")
1768 (version "2.5.1.4")
1769 (source (origin
1770 (method url-fetch)
1771 (uri (string-append "mirror://sourceforge/prboom-plus/prboom-plus/"
1772 version "/prboom-plus-" version ".tar.gz"))
1773 (sha256
1774 (base32 "151v6nign86m1a2vqz27krsccpc9m4d1jax4y43v2fa82wfj9qp0"))
1775 (modules '((guix build utils)))
1776 (snippet
1777 '(begin
1778 (substitute* "src/version.c"
1779 (("__DATE__") "")
1780 (("__TIME__") ""))
1781 #t))))
1782 (build-system gnu-build-system)
1783 (arguments
1784 '(#:configure-flags '("--disable-cpu-opt")
1785 #:make-flags `(,(string-append "gamesdir="
1786 (assoc-ref %outputs "out") "/bin"))
1787 #:phases
1788 (modify-phases %standard-phases
1789 (add-after 'set-paths 'set-sdl'paths
1790 (lambda* (#:key inputs #:allow-other-keys)
1791 (setenv "CPATH"
1792 (string-append (assoc-ref inputs "sdl-union")
1793 "/include/SDL:"
1794 (or (getenv "CPATH") "")))
1795 #t)))))
1796 (inputs
1797 `(("fluidsynth" ,fluidsynth)
1798 ("glu" ,glu)
1799 ("libmad" ,libmad)
1800 ("libpng" ,libpng)
1801 ("libvorbis" ,libvorbis)
1802 ("pcre" ,pcre)
1803 ("portmidi" ,portmidi)
1804 ("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer sdl-net)))))
1805 (home-page "http://prboom-plus.sourceforge.net/")
1806 (synopsis "Version of the classic 3D shoot'em'up game Doom")
1807 (description
1808 "PrBoom+ is a Doom source port developed from the original PrBoom project.")
1809 (license license:gpl2+)))
1810
1811 (define-public retux
1812 (package
1813 (name "retux")
1814 (version "1.3.6")
1815 (source (origin
1816 (method url-fetch)
1817 (uri (string-append "mirror://savannah/retux/"
1818 (version-major+minor version) "/retux-"
1819 version "-src.tar.gz"))
1820 (sha256
1821 (base32
1822 "01bidh4zisjp3nc436x0g85v60dvwb3ig37i7y01sa71j8fm4fmb"))))
1823 (build-system python-build-system)
1824 (arguments
1825 `(#:tests? #f ; no check target
1826 #:phases
1827 (modify-phases %standard-phases
1828 ;; no setup.py script
1829 (delete 'build)
1830 (replace 'install
1831 (lambda* (#:key outputs #:allow-other-keys)
1832 (let* ((out (assoc-ref outputs "out"))
1833 (bin (string-append out "/bin"))
1834 (data (string-append out "/share/retux"))
1835 (doc (string-append out "/share/doc/retux")))
1836 (mkdir-p bin)
1837
1838 (substitute* "retux.py"
1839 ;; Use the correct data directory.
1840 (("os\\.path\\.join\\(os\\.path\\.dirname\\(__file__\\), \"data\"\\),")
1841 (string-append "\"" data "\","))
1842 ;; Use Python 3 so the patch-shebangs phase works properly.
1843 ((".*python2.*") "#!/usr/bin/python3"))
1844
1845 (copy-file "retux.py" (string-append bin "/retux"))
1846
1847 (copy-recursively "data" data)
1848
1849 (install-file "COPYING" doc)
1850 #t))))))
1851 (inputs
1852 `(("python-sge-pygame" ,python-sge-pygame)
1853 ("python-six" ,python-six)
1854 ("python-xsge" ,python-xsge)))
1855 (home-page "http://retux.nongnu.org")
1856 (synopsis "Action platformer game")
1857 (description
1858 "ReTux is an action platformer loosely inspired by the Mario games,
1859 utilizing the art assets from the @code{SuperTux} project.")
1860 ;; GPL version 3 or later is the license for the code and some art.
1861 ;; The rest of the licenses are for the art exclusively, as listed in
1862 ;; data/LICENSES.
1863 (license (list license:cc0
1864 license:cc-by3.0
1865 license:cc-by-sa3.0
1866 license:cc-by-sa4.0
1867 license:gpl2+
1868 license:gpl3+))))
1869
1870 (define-public roguebox-adventures
1871 (package
1872 (name "roguebox-adventures")
1873 (version "3.0.1")
1874 (source
1875 (origin
1876 (method url-fetch)
1877 (uri (string-append
1878 "http://download.tuxfamily.org/rba/RogueBoxAdventures_v"
1879 (string-join (string-split version #\.) "_") "_Source.zip"))
1880 (file-name (string-append name "-" version ".zip"))
1881 (sha256
1882 (base32
1883 "05zd03s5w9kcpklfgcggbaa6rwf59nm0q9vcj6gh9v2lh402k067"))))
1884 (build-system python-build-system)
1885 (arguments
1886 `(#:tests? #f ; no check target
1887 #:phases
1888 (modify-phases %standard-phases
1889 (replace 'unpack
1890 (lambda* (#:key source #:allow-other-keys)
1891 (and (invoke "unzip" source)
1892 ;; The actual source is buried a few directories deep.
1893 (chdir (string-append "RogueBoxAdventures_v"
1894 (string-join
1895 (string-split ,version #\.) "_")
1896 "_Source")))))
1897 ;; no setup.py script
1898 (replace 'build
1899 (lambda* (#:key outputs #:allow-other-keys)
1900 (let* ((out (assoc-ref outputs "out"))
1901 (data (string-append
1902 out "/share/games/roguebox-adventures")))
1903 ;; Use the correct data directory.
1904 (substitute* '("main.py" "LIB/getch.py" "LIB/getch_gcwz.py")
1905 (("basic_path + os\\.sep + 'DATA'")
1906 (string-append "'" data "'"))
1907 (("^basic_path.*$")
1908 (string-append "basic_path ='" data "'\n")))
1909 (substitute* "LIB/dialog.py"
1910 (("d_path = os\\.path\\.dirname\\(.*\\)\\)")
1911 (string-append "d_path = '" data "'")))
1912 (substitute* "LIB/gra_files.py"
1913 (("basic_path = b_path\\.replace\\('/LIB',''\\)")
1914 (string-append "basic_path ='" data "'\n")))
1915
1916 ;; The game must save in the user's home directory because
1917 ;; the store is read-only.
1918 (substitute* "main.py"
1919 (("home_save = False") "home_save = True")
1920 (("'icon_small.png'")
1921 (string-append "'" data "/icon_small.png'"))))
1922 #t))
1923 (replace 'install
1924 (lambda* (#:key outputs #:allow-other-keys)
1925 (let* ((out (assoc-ref outputs "out"))
1926 (bin (string-append out "/bin"))
1927 (roguebox-adventures
1928 (string-append bin "/roguebox-adventures"))
1929 (data (string-append
1930 out "/share/games/roguebox-adventures"))
1931 (lib (string-append data "/LIB"))
1932 (doc (string-append
1933 out "/share/doc/roguebox-adventures")))
1934 (mkdir-p bin)
1935 (mkdir-p doc)
1936
1937 (for-each (lambda (file)
1938 (copy-recursively file
1939 (string-append data "/" file)))
1940 '("AUDIO" "FONT" "GRAPHIC" "LIB" "LICENSE"
1941 "icon_big.png" "icon_small.png"))
1942 (for-each (lambda (file)
1943 (chmod file #o555)
1944 (install-file file lib))
1945 '("main.py" "run.py"))
1946
1947 (copy-recursively "DOC" doc)
1948
1949 (call-with-output-file
1950 roguebox-adventures
1951 (lambda (p)
1952 (format p "\
1953 #!~a
1954 export PYTHONPATH=~a/LIB:~a
1955 exec -a \"~a\" ~a \"$@\"\n"
1956 (which "bash") data (getenv "PYTHONPATH")
1957 (which "python3")
1958 (string-append lib "/main.py"))))
1959 (chmod roguebox-adventures #o555))
1960 #t)))))
1961 (native-inputs
1962 `(("unzip" ,unzip)))
1963 (inputs
1964 `(("python-pygame" ,python-pygame)
1965 ("python-tmx" ,python-tmx)))
1966 (home-page "https://rogueboxadventures.tuxfamily.org")
1967 (synopsis "A classical roguelike/sandbox game")
1968 (description
1969 "RogueBox Adventures is a graphical roguelike with strong influences
1970 from sandbox games like Minecraft or Terraria. The main idea of RogueBox
1971 Adventures is to offer the player a kind of roguelike toy-world. This world
1972 can be explored and changed freely.")
1973 ;; The GPL3+ is for code, the rest are for art.
1974 (license (list license:cc0
1975 license:cc-by3.0
1976 license:gpl3+
1977 license:silofl1.1))))
1978
1979 (define-public seahorse-adventures
1980 (package
1981 (name "seahorse-adventures")
1982 (version "1.2")
1983 (source
1984 (origin
1985 (method git-fetch)
1986 (uri (git-reference
1987 (url "https://github.com/dulsi/seahorse-adventures")
1988 (commit (string-append "release-" version))))
1989 (file-name (git-file-name name version))
1990 (sha256
1991 (base32 "1rnvk06npaqcpjz5z6xcmssz61i32s422lydp49vrnf3j2g4yimd"))
1992 (modules '((guix build utils)
1993 (ice-9 ftw)
1994 (srfi srfi-1)))
1995 ;; Remove non-free (non-commercial) font.
1996 (snippet
1997 `(begin
1998 (for-each delete-file (find-files "data/fonts" "."))
1999 #t))))
2000 (build-system python-build-system)
2001 (arguments
2002 `(#:tests? #f ;no test
2003 #:phases
2004 (modify-phases %standard-phases
2005 (delete 'build) ;pure Python
2006 (replace 'install ;no install script
2007 (lambda* (#:key outputs #:allow-other-keys)
2008 (let* ((out (assoc-ref outputs "out"))
2009 (bin (string-append out "/bin"))
2010 (share (string-append out "/share"))
2011 (applications (string-append share "/applications"))
2012 (data (string-append share "/seahorse-adventures")))
2013 ;; Install data.
2014 (for-each (lambda (f)
2015 (chmod f #o555)
2016 (install-file f data))
2017 '("leveledit.py" "run_game.py" "tileedit.py"))
2018 (for-each (lambda (dir)
2019 (let ((target (string-append data "/" dir)))
2020 (mkdir-p target)
2021 (copy-recursively dir target)))
2022 '("data" "lib"))
2023 ;; Create executable.
2024 (mkdir-p bin)
2025 (let ((executable (string-append bin "/seahorse-adventures")))
2026 (call-with-output-file executable
2027 (lambda (p)
2028 (format p
2029 "#!~a~@
2030 export PYTHONPATH=~a:~a~@
2031 exec -a \"~a\" ~a \"$@\"~%"
2032 (which "bash") data (getenv "PYTHONPATH")
2033 (which "python3")
2034 (string-append data "/run_game.py"))))
2035 (chmod executable #o555))
2036 ;; Add desktop file.
2037 (mkdir-p applications)
2038 (make-desktop-entry-file
2039 (string-append applications "/seahorse-adventures.desktop")
2040 #:name "Seahorse Adventures"
2041 #:comment
2042 '((#f "Help Barbie the seahorse float on bubbles to the moon"))
2043 #:exec ,name
2044 #:icon ,name
2045 #:categories '("Game" "ActionGame")
2046 #:keywords '("game" "retro" "platform"))
2047 ;; Add icons.
2048 (for-each
2049 (lambda (size)
2050 (let ((dir (string-append share "/icons/hicolor/"
2051 size "x" size "/apps")))
2052 (mkdir-p dir)
2053 (copy-file
2054 (string-append "icon" size ".png")
2055 (string-append dir "/searhorse-adventures.png"))))
2056 '("32" "64" "128")))
2057 #t))
2058 (add-after 'install 'unbundle-fonts
2059 ;; Unbundle Bitstream Vera font and replace deleted one.
2060 (lambda* (#:key outputs inputs #:allow-other-keys)
2061 (let* ((out (assoc-ref outputs "out"))
2062 (data (string-append out "/share/seahorse-adventures"))
2063 (vera (string-append (assoc-ref inputs "font-bitstream-vera")
2064 "/share/fonts/truetype/Vera.ttf")))
2065 (let ((themes-dir (string-append data "/data/themes/")))
2066 (for-each
2067 (lambda (theme)
2068 (let ((target (string-append themes-dir theme "/Vera.ttf")))
2069 (delete-file target)
2070 (symlink vera target)))
2071 '("default" "gray")))
2072 (symlink vera (string-append data "/data/fonts/04B_20__.TTF"))
2073 (substitute* (string-append data "/lib/main.py")
2074 (("f_scale = 0.35") "f_scale = 0.47")))
2075 #t)))))
2076 (inputs
2077 `(("font-bitstream-vera" ,font-bitstream-vera)
2078 ("python-pygame" ,python-pygame)))
2079 (home-page "http://www.imitationpickles.org/barbie/")
2080 (synopsis "Help Barbie the seahorse float on bubbles to the moon")
2081 (description
2082 "Barbie Seahorse Adventures is a retro style platform arcade game.
2083 You are Barbie the seahorse who travels through the jungle, up to the
2084 volcano until you float on bubbles to the moon. On the way to your
2085 final destination you will encounter various enemies, servants of the
2086 evil overlord who has stolen the galaxy crystal. Avoid getting hit
2087 and defeat them with your bubbles!")
2088 ;; GPL2+ is for code, CC0 is for art.
2089 (license (list license:gpl2+ license:cc0))))
2090
2091 (define-public superstarfighter
2092 (package
2093 (name "superstarfighter")
2094 (version "0.6.4")
2095 (source
2096 (origin
2097 (method git-fetch)
2098 (uri (git-reference
2099 (url "https://github.com/notapixelstudio/superstarfighter")
2100 (commit (string-append "v" version))))
2101 (file-name (git-file-name name version))
2102 (sha256
2103 (base32 "1fly63yf5ls1xwm15if4lxwy67wi84k4gvjllljpykrl18vw2y0y"))))
2104 (build-system gnu-build-system)
2105 (arguments
2106 `(#:tests? #f ;there are no tests
2107 #:phases
2108 (modify-phases %standard-phases
2109 (replace 'configure
2110 (lambda _
2111 (chdir "godot")
2112 (setenv "HOME" (getcwd))
2113 (with-output-to-file "export_presets.cfg"
2114 (lambda ()
2115 (display
2116 "[preset.0]
2117 name=\"Guix\"
2118 platform=\"Linux/X11\"
2119 runnable=true
2120 [preset.0.options]")))
2121 #t))
2122 (replace 'build
2123 (lambda _
2124 (let ((godot (assoc-ref %build-inputs "godot-headless")))
2125 (invoke (string-append godot "/bin/godot_server")
2126 "--export-pack" "Guix"
2127 "superstarfighter.pck" "project.godot"))
2128 #t))
2129 (replace 'install
2130 (lambda* (#:key inputs outputs #:allow-other-keys)
2131 (let* ((out (assoc-ref outputs "out"))
2132 (bin (string-append out "/bin"))
2133 (share (string-append out "/share"))
2134 (data (string-append share "/superstarfighter"))
2135 (icons (string-append share "/icons/hicolor/256x256/apps")))
2136 (install-file "superstarfighter.pck" data)
2137 (mkdir-p bin)
2138 (call-with-output-file (string-append bin "/superstarfighter")
2139 (lambda (port)
2140 (format port
2141 "#!/bin/sh~@
2142 exec ~a/bin/godot --main-pack ~a/superstarfighter.pck~%"
2143 (assoc-ref inputs "godot")
2144 data)
2145 (chmod port #o755)))
2146 (mkdir-p icons)
2147 (copy-file "icon.png" (string-append icons "/" ,name ".png"))
2148 (make-desktop-entry-file
2149 (string-append share "/applications/" ,name ".desktop")
2150 #:name "SuperStarfighter"
2151 #:comment "Fast-paced arcade combat game"
2152 #:exec ,name
2153 #:icon ,name
2154 #:categories '("Game" "ArcadeGame")))
2155 #t)))))
2156 (native-inputs
2157 `(("godot-headless" ,godot "headless")))
2158 (inputs
2159 `(("godot" ,godot)))
2160 (home-page "https://notapixel.itch.io/superstarfighter")
2161 (synopsis "Fast-paced local multiplayer arcade game")
2162 (description "In SuperStarfighter, up to four local players compete in a
2163 2D arena with fast-moving ships and missiles. Different game types are
2164 available, as well as a single-player mode with AI-controlled ships.")
2165 (license (list license:expat ; game
2166 license:silofl1.1)))) ; fonts
2167
2168 (define %ufoai-commit "a542a87a891f96b1ab2c44d35b2f6f16859a5019")
2169 (define %ufoai-revision "0")
2170 (define %ufoai-version (git-version "2.6.0_dev" %ufoai-revision %ufoai-commit))
2171 (define ufoai-source
2172 (origin
2173 (method git-fetch)
2174 (uri (git-reference
2175 (url "git://git.code.sf.net/p/ufoai/code") ;HTTPS fails mid-clone
2176 (commit %ufoai-commit)))
2177 (file-name (string-append "ufoai-" %ufoai-version "-checkout"))
2178 (sha256
2179 (base32
2180 "024s7b9rcg7iw8i2p72gwnvabk23ljlq0nldws0y4b6hpwzyn1wz"))
2181 (modules '((guix build utils)
2182 (srfi srfi-1)
2183 (ice-9 ftw)))
2184 (snippet
2185 '(begin
2186 ;; Delete ~32MiB of bundled dependencies.
2187 (with-directory-excursion "src/libs"
2188 (for-each delete-file-recursively
2189 (lset-difference equal? (scandir ".")
2190 '("." ".." "gtest" "mumble"))))
2191
2192 ;; Use relative path to Lua headers.
2193 (substitute* "src/common/scripts_lua.h"
2194 (("\\.\\./libs/lua/") ""))
2195
2196 ;; Adjust Makefile targets to not depend on 'ufo2map', since we build
2197 ;; it as a separate package. This way we don't need to make the same
2198 ;; adjustments for 'ufoai-data' and 'ufoai' below.
2199 (substitute* "build/maps.mk"
2200 (("\\./ufo2map") "ufo2map")
2201 (("maps: ufo2map") "maps:"))
2202 (substitute* "build/modules/testall.mk"
2203 (("testall: ufo2map") "testall:"))
2204
2205 ;; If no cURL headers are found, the build system will try to include
2206 ;; the bundled version, even when not required. Prevent that.
2207 (substitute* "build/default.mk"
2208 (("^include src/libs/curl/lib/Makefile\\.inc")
2209 ""))
2210
2211 ;; While here, improve reproducibility by adding the '-X' flag to the
2212 ;; zip command used to create the map files, in order to prevent time
2213 ;; stamps from making it into the generated archives.
2214 (substitute* "build/data.mk"
2215 (("\\$\\(call ZIP\\)")
2216 "$(call ZIP) -X"))
2217 #t))))
2218
2219 (define-public ufo2map
2220 (package
2221 (name "ufo2map")
2222 (version %ufoai-version)
2223 (home-page "https://ufoai.org/")
2224 (source ufoai-source)
2225 (build-system gnu-build-system)
2226 (arguments
2227 '(#:configure-flags '("CC=gcc" "CXX=g++"
2228 "--enable-release"
2229 "--enable-ufo2map"
2230 "--disable-uforadiant"
2231 "--disable-cgame-campaign"
2232 "--disable-cgame-multiplayer"
2233 "--disable-cgame-skirmish"
2234 "--disable-game"
2235 "--disable-memory"
2236 "--disable-testall"
2237 "--disable-ufoded"
2238 "--disable-ufo"
2239 "--disable-ufomodel"
2240 "--disable-ufoslicer")
2241 #:tests? #f ;no tests
2242 #:phases (modify-phases %standard-phases
2243 (replace 'configure
2244 (lambda* (#:key (configure-flags '()) #:allow-other-keys)
2245 ;; The home-made configure script does not understand
2246 ;; some of the default flags of gnu-build-system.
2247 (apply invoke "./configure" configure-flags)))
2248 (replace 'install
2249 (lambda* (#:key outputs #:allow-other-keys)
2250 (let ((out (assoc-ref outputs "out")))
2251 (install-file "ufo2map" (string-append out "/bin"))
2252 (install-file "debian/ufo2map.6"
2253 (string-append out "/share/man/man6"))
2254 #t))))))
2255 (native-inputs
2256 `(("pkg-config" ,pkg-config)))
2257 (inputs
2258 `(("libjpeg" ,libjpeg-turbo)
2259 ("libpng" ,libpng)
2260 ("lua" ,lua-5.1)
2261 ("sdl-union" ,(sdl-union (list sdl2 sdl2-mixer sdl2-ttf)))))
2262 (synopsis "UFO: AI map generator")
2263 (description
2264 "This package provides @command{ufo2map}, a program used to generate
2265 maps for the UFO: Alien Invasion strategy game.")
2266 (license license:gpl2+)))
2267
2268 (define ufoai-data
2269 (package
2270 (name "ufoai-data")
2271 (version %ufoai-version)
2272 (home-page "https://ufoai.org/")
2273 (source ufoai-source)
2274 (build-system gnu-build-system)
2275 (arguments
2276 '(#:tests? #f
2277 #:configure-flags '("CC=gcc" "CXX=g++")
2278 #:phases (modify-phases %standard-phases
2279 (replace 'configure
2280 (lambda* (#:key outputs (configure-flags '()) #:allow-other-keys)
2281 (apply invoke "./configure" configure-flags)))
2282 (replace 'build
2283 (lambda* (#:key (parallel-build? #t) #:allow-other-keys)
2284 (invoke "make"
2285 "-j" (if parallel-build?
2286 (number->string (parallel-job-count))
2287 "1")
2288 "maps")))
2289 (add-after 'build 'pack
2290 (lambda _
2291 (invoke "make" "pk3")))
2292 (replace 'install
2293 (lambda* (#:key outputs #:allow-other-keys)
2294 (let ((out (assoc-ref outputs "out")))
2295 (for-each (lambda (file)
2296 (install-file file out))
2297 (find-files "base" "\\.pk3$"))
2298 #t))))))
2299 (native-inputs
2300 `(("python" ,python-2)
2301 ("ufo2map" ,ufo2map)
2302 ("which" ,which)
2303 ("zip" ,zip)))
2304 (synopsis "UFO: AI data files")
2305 (description
2306 "This package contains maps and other assets for UFO: Alien Invasion.")
2307 ;; Most assets are available under either GPL2 or GPL2+. Some use other
2308 ;; licenses, see LICENSES for details.
2309 (license (list license:gpl2+ license:gpl2 license:cc-by3.0
2310 license:cc-by-sa3.0 license:public-domain))))
2311
2312 (define-public ufoai
2313 (package
2314 (name "ufoai")
2315 (version %ufoai-version)
2316 (home-page "https://ufoai.org/")
2317 (source ufoai-source)
2318 (build-system gnu-build-system)
2319 (arguments
2320 `(#:configure-flags
2321 (list (string-append "--prefix=" (assoc-ref %outputs "out"))
2322 (string-append "--datadir=" (assoc-ref %outputs "out")
2323 "/share/games/ufo")
2324 "CC=gcc" "CXX=g++"
2325 "--enable-release"
2326 "--enable-game"
2327 "--disable-ufo2map"
2328 "--disable-dependency-tracking"
2329
2330 ;; Disable hard links to prevent huge NARs.
2331 "--disable-hardlinkedgame"
2332 "--disable-hardlinkedcgame")
2333 #:phases (modify-phases %standard-phases
2334 (add-after 'unpack 'symlink-data-files
2335 (lambda* (#:key inputs #:allow-other-keys)
2336 (let ((data (assoc-ref inputs "ufoai-data")))
2337 ;; Symlink the data files to where the build system
2338 ;; expects to find them. Ultimately these files are
2339 ;; copied to $out/share/games/ufoai/base, losing the
2340 ;; symlinks; we could fix that after install, but it
2341 ;; does not make a big difference in practice due to
2342 ;; deduplication.
2343 (with-directory-excursion "base"
2344 (for-each (lambda (file)
2345 (symlink file (basename file)))
2346 (find-files data "\\.pk3$")))
2347 #t)))
2348 (add-before 'configure 'create-language-files
2349 (lambda _
2350 (invoke "make" "lang")))
2351 (replace 'configure
2352 (lambda* (#:key outputs (configure-flags '()) #:allow-other-keys)
2353 (apply invoke "./configure" configure-flags)))
2354 (replace 'check
2355 (lambda* (#:key tests? #:allow-other-keys)
2356 (if tests?
2357 (invoke "./testall")
2358 (format #t "test suite not run~%"))
2359 #t))
2360 (add-after 'install 'install-man-pages
2361 (lambda* (#:key outputs #:allow-other-keys)
2362 (let* ((out (assoc-ref outputs "out"))
2363 (man6 (string-append out "/share/man/man6")))
2364 (install-file "debian/ufo.6" man6)
2365 (install-file "debian/ufoded.6" man6)
2366 #t))))
2367
2368 ;; TODO: Some map tests occasionally fail because of randomness issues,
2369 ;; e.g. not enough generated aliens. The test runner also fails early
2370 ;; in the build container with 'failed to shutdown server'?
2371 #:tests? #f))
2372 (native-inputs
2373 `(("gettext" ,gettext-minimal)
2374 ("pkg-config" ,pkg-config)
2375 ("python" ,python-2)
2376 ("ufo2map" ,ufo2map)
2377 ("ufoai-data" ,ufoai-data)))
2378 (inputs
2379 `(("curl" ,curl)
2380 ("libjpeg" ,libjpeg-turbo)
2381 ("libogg" ,libogg)
2382 ("libpng" ,libpng)
2383 ("libtheora" ,libtheora)
2384 ("libvorbis" ,libvorbis)
2385 ("libxml2" ,libxml2)
2386 ("lua" ,lua-5.1)
2387 ("mesa" ,mesa)
2388 ("minixml" ,minixml)
2389 ("sdl-union" ,(sdl-union (list sdl2 sdl2-mixer sdl2-ttf)))
2390 ("zlib" ,zlib)))
2391 (synopsis "Turn-based tactical strategy game")
2392 (description
2393 "UFO: Alien Invasion is a tactical strategy game set in the year 2084.
2394 You control a secret organisation charged with defending Earth from a brutal
2395 alien enemy. Build up your bases, prepare your team, and dive head-first into
2396 the fast and flowing turn-based combat.
2397
2398 Over the long term you will need to conduct research into the alien threat to
2399 figure out their mysterious goals and use their powerful weapons for your own
2400 ends. You will produce unique items and use them in combat against your
2401 enemies.
2402
2403 You can also use them against your friends with the multiplayer functionality.
2404
2405 Warning: This is a pre-release version of UFO: AI! Some things may not work
2406 properly.")
2407
2408 ;; The game code and most assets are GPL2+, but we use GPL2 only here
2409 ;; because some assets do not use the "or later" clause. Many individual
2410 ;; assets use Creative Commons or Public Domain; see the LICENSE file.
2411 (license (delete license:gpl2+ (package-license ufoai-data)))))
2412
2413 (define-public xshogi
2414 (package
2415 (name "xshogi")
2416 (version "1.4.2")
2417 (source
2418 (origin
2419 (method url-fetch)
2420 (uri (string-append "mirror://gnu/gnushogi/xshogi-"
2421 version ".tar.gz"))
2422 (sha256
2423 (base32
2424 "1dns0nhymak44by18sv48m4xb2skiwbi2i3nb9hl6w9iwd2i2brf"))))
2425 (build-system gnu-build-system)
2426 (inputs
2427 `(("libxaw" ,libxaw)
2428 ("libxt" ,libxt)))
2429 (home-page "https://www.gnu.org/software/gnushogi/")
2430 (synopsis "User interface for gnushogi")
2431 (description "A graphical user interface for the package @code{gnushogi}.")
2432 ;; Contains a copy of GPLv3 but the licence notices simply
2433 ;; state "GNU General Public Licence" without specifying a version.
2434 (license license:gpl1+)))
2435
2436 (define-public abbaye
2437 (package
2438 (name "abbaye")
2439 (version "2.0.1")
2440 (source
2441 (origin
2442 (method git-fetch)
2443 (uri (git-reference
2444 (url "https://github.com/nevat/abbayedesmorts-gpl")
2445 (commit (string-append "v" version))))
2446 (file-name (git-file-name name version))
2447 (sha256
2448 (base32 "1pwqf7r9bqb2p3xrw9i7y8pgr1401fy3mnnqpb1qkhmdl3gqi9hb"))
2449 (modules '((guix build utils)))
2450 (snippet
2451 ;; Unbundle fonts.
2452 '(begin
2453 (delete-file-recursively "fonts")
2454 #t))))
2455 (build-system gnu-build-system)
2456 (arguments
2457 '(#:make-flags '("CC=gcc")
2458 #:phases (modify-phases %standard-phases
2459 (add-after 'set-paths 'set-sdl-paths
2460 (lambda* (#:key inputs #:allow-other-keys)
2461 (setenv "CPATH"
2462 (string-append (assoc-ref inputs "sdl-union")
2463 "/include/SDL:"
2464 (or (getenv "CPATH") "")))))
2465 (add-after 'patch-source-shebangs 'patch-makefile
2466 (lambda* (#:key outputs #:allow-other-keys)
2467 ;; Replace /usr with package output directory.
2468 (substitute* "Makefile"
2469 (("/usr") (assoc-ref outputs "out")))))
2470 (add-before 'install 'make-install-dirs
2471 (lambda* (#:key outputs #:allow-other-keys)
2472 (let ((prefix (assoc-ref outputs "out")))
2473 ;; Create directories that the makefile assumes exist.
2474 (mkdir-p (string-append prefix "/bin"))
2475 (mkdir-p (string-append prefix "/share/applications"))
2476 (mkdir-p (string-append prefix "/share/pixmaps")))))
2477 ;; No configure script.
2478 (delete 'configure))
2479 #:tests? #f)) ;; No check target.
2480 (native-inputs `(("pkg-config" ,pkg-config)))
2481 (inputs `(("sdl-union" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer)))))
2482 (home-page "https://github.com/nevat/abbayedesmorts-gpl")
2483 (synopsis "GNU/Linux port of the indie game \"l'Abbaye des Morts\"")
2484 (description "L'Abbaye des Morts is a 2D platform game set in 13th century
2485 France. The Cathars, who preach about good Christian beliefs, were being
2486 expelled by the Catholic Church out of the Languedoc region in France. One of
2487 them, called Jean Raymond, found an old church in which to hide, not knowing
2488 that beneath its ruins lay buried an ancient evil.")
2489 (license license:gpl3)))
2490
2491 (define-public angband
2492 (package
2493 (name "angband")
2494 (version "4.2.1")
2495 (source
2496 (origin
2497 (method url-fetch)
2498 (uri (string-append "https://rephial.org/downloads/"
2499 (version-major+minor version)
2500 "/angband-" version ".tar.gz"))
2501 (sha256
2502 (base32 "03qdavkj2ik02mqjxmlm5bn17ba3yxb1rirp8ghnxy3bsk4kbmxc"))
2503 (modules '((guix build utils)))
2504 (snippet
2505 ;; So, some of the sounds/graphics/tilesets are under different
2506 ;; licenses... some of them even nonfree! This is a console-only
2507 ;; version of this package so we just remove them.
2508 ;; In the future, if someone tries to make a graphical variant of
2509 ;; this package, they can deal with that mess themselves. :)
2510 '(begin
2511 (for-each (lambda (subdir)
2512 (let ((lib-subdir (string-append "lib/" subdir)))
2513 (delete-file-recursively lib-subdir)))
2514 '("fonts" "icons" "sounds" "tiles"))
2515 (substitute* "lib/Makefile"
2516 ;; And don't try to invoke makefiles in the directories we removed.
2517 (("gamedata customize help screens fonts tiles sounds icons user")
2518 "gamedata customize help screens user"))
2519 #t))))
2520 (build-system gnu-build-system)
2521 (arguments
2522 `(#:tests? #f ; no check target
2523 #:configure-flags (list (string-append "--bindir=" %output "/bin"))
2524 #:phases
2525 (modify-phases %standard-phases
2526 (replace 'bootstrap
2527 (lambda _
2528 (substitute* "acinclude.m4"
2529 (("ncursesw5-config") "ncursesw6-config"))
2530 (invoke "sh" "autogen.sh"))))))
2531 (native-inputs
2532 `(("autoconf" ,autoconf)
2533 ("automake" ,automake)))
2534 (inputs `(("ncurses" ,ncurses)))
2535 (home-page "https://rephial.org/")
2536 (synopsis "Dungeon exploration roguelike")
2537 (description "Angband is a Classic dungeon exploration roguelike. Explore
2538 the depths below Angband, seeking riches, fighting monsters, and preparing to
2539 fight Morgoth, the Lord of Darkness.")
2540 (license license:gpl2)))
2541
2542 (define-public pingus
2543 (package
2544 (name "pingus")
2545 (version "0.7.6")
2546 (source
2547 (origin
2548 (method git-fetch)
2549 (uri (git-reference
2550 (url "https://gitlab.com/pingus/pingus.git")
2551 (commit (string-append "v" version))))
2552 (file-name (git-file-name name version))
2553 (sha256
2554 (base32
2555 "0wp06kcmknsnxz7bjnsndb8x062z7r23fb3yrnbfnj68qhz18y74"))
2556 (patches (search-patches "pingus-boost-headers.patch"
2557 "pingus-sdl-libs-config.patch"))
2558 (modules '((guix build utils)))
2559 (snippet
2560 '(begin
2561 (substitute* "src/pingus/screens/demo_session.cpp"
2562 (("#include <iostream>")
2563 ;; std::function moved to <functional> with C++ 11.
2564 ;; Remove this for versions newer than 0.7.6.
2565 "#include <iostream>\n#include <functional>"))
2566 #t))))
2567 (build-system gnu-build-system)
2568 (native-inputs `(("pkg-config" ,pkg-config)
2569 ("scons-python2" ,scons-python2)))
2570 (inputs `(("sdl" ,sdl)
2571 ("sdl-image" ,sdl-image)
2572 ("sdl-mixer" ,sdl-mixer)
2573 ("mesa" ,mesa)
2574 ("glu" ,glu)
2575 ("libpng" ,libpng)
2576 ("boost" ,boost)))
2577 (arguments
2578 '(#:make-flags (list (string-append "PREFIX=" %output))
2579 #:tests? #f ; no check target
2580 #:phases
2581 (modify-phases %standard-phases
2582 (delete 'configure)))) ; no configure script
2583 (home-page "https://pingus.seul.org/")
2584 (synopsis "Lemmings clone")
2585 (description
2586 "Pingus is a free Lemmings-like puzzle game in which the player takes
2587 command of a bunch of small animals and has to guide them through levels.
2588 Since the animals walk on their own, the player can only influence them by
2589 giving them commands, like build a bridge, dig a hole, or redirect all animals
2590 in the other direction. Multiple such commands are necessary to reach the
2591 level's exit. The game is presented in a 2D side view.")
2592 ;; Some source files are under bsd-3 and gpl2+ licenses.
2593 (license license:gpl3+)))
2594
2595 (define-public talkfilters
2596 (package
2597 (name "talkfilters")
2598 (version "2.3.8")
2599 (source
2600 (origin
2601 (method url-fetch)
2602 (uri (string-append "http://www.hyperrealm.com/talkfilters/"
2603 "talkfilters-" version ".tar.gz"))
2604 (sha256
2605 (base32 "19nc5vq4bnkjvhk8srqddzhcs93jyvpm9r6lzjzwc1mgf08yg0a6"))))
2606 (build-system gnu-build-system)
2607 (home-page "https://www.gnu.org/software/talkfilters/")
2608 (synopsis "Convert English text to humorous dialects")
2609 (description "The GNU Talk Filters are programs that convert English text
2610 into stereotyped or otherwise humorous dialects. The filters are provided as
2611 a C library, so they can easily be integrated into other programs.")
2612 (license license:gpl2+)))
2613
2614 (define-public taisei
2615 (package
2616 (name "taisei")
2617 (version "1.3.1")
2618 (source
2619 (origin
2620 (method url-fetch)
2621 (uri (string-append "https://github.com/taisei-project/"
2622 "taisei/releases/download/v" version
2623 "/taisei-v" version ".tar.xz"))
2624 (sha256
2625 (base32 "11f9mlqmzy1lszwcc1nsbar9q1hs4ml6pbm52hqfd4q0f4x3ln46"))))
2626 (build-system meson-build-system)
2627 (arguments
2628 `(#:build-type "release" ;comment out for bug-reporting (and cheats)
2629 #:configure-flags
2630 (list "-Dr_default=gles30"
2631 "-Dr_gles20=true"
2632 "-Dr_gles30=true"
2633 "-Dshader_transpiler=true")))
2634 (native-inputs
2635 `(("pkg-config" ,pkg-config)
2636 ("python" ,python)
2637 ("python-docutils" ,python-docutils)
2638 ("python-pygments" ,python-pygments)))
2639 (inputs
2640 `(("freetype" ,freetype)
2641 ("libpng" ,libpng)
2642 ("libwebp" ,libwebp)
2643 ("libzip" ,libzip)
2644 ("mesa" ,mesa)
2645 ("openssl" ,openssl)
2646 ("opusfile" ,opusfile)
2647 ("sdl2" ,sdl2)
2648 ("sdl2-mixer" ,sdl2-mixer)
2649 ("shaderc" ,shaderc)
2650 ("spirv-cross" ,spirv-cross)
2651 ("zlib" ,zlib)))
2652 (home-page "https://taisei-project.org/")
2653 (synopsis "Shoot'em up fangame and libre clone of Touhou Project")
2654 (description
2655 "The player controls a character (one of three: Good, Bad, and Dead),
2656 dodges the missiles (lots of it cover the screen, but the character's hitbox
2657 is very small), and shoot at the adversaries that keep appear on the screen.")
2658 (license (list ;;game
2659 license:expat
2660 ;;resources/00-taisei.pkgdir/bgm/
2661 ;;atlas/portraits/
2662 license:cc-by4.0
2663 ;;miscellaneous
2664 license:cc0
2665 license:public-domain))))
2666
2667 (define-public cmatrix
2668 (package
2669 (name "cmatrix")
2670 (version "2.0")
2671 (source
2672 (origin
2673 (method git-fetch)
2674 (uri (git-reference
2675 (url "https://github.com/abishekvashok/cmatrix")
2676 (commit (string-append "v" version))))
2677 (file-name (git-file-name name version))
2678 (sha256
2679 (base32
2680 "1h9jz4m4s5l8c3figaq46ja0km1gimrkfxm4dg7mf4s84icmasbm"))))
2681 (build-system gnu-build-system)
2682 (native-inputs
2683 `(("autoconf" ,autoconf)
2684 ("automake" ,automake)))
2685 (arguments
2686 '(#:phases
2687 (modify-phases %standard-phases
2688 (replace 'configure
2689 (lambda* (#:key outputs #:allow-other-keys)
2690 ;; This old ‘configure’ script doesn't support
2691 ;; variables passed as arguments.
2692 (let ((out (assoc-ref outputs "out")))
2693 (setenv "CONFIG_SHELL" (which "bash"))
2694 (invoke "./configure"
2695 (string-append "--prefix=" out))))))))
2696 (inputs `(("ncurses" ,ncurses)))
2697 (home-page "http://www.asty.org/cmatrix")
2698 (synopsis "Simulate the display from \"The Matrix\"")
2699 (description "CMatrix simulates the display from \"The Matrix\" and is
2700 based on the screensaver from the movie's website. It works with terminal
2701 settings up to 132x300 and can scroll lines all at the same rate or
2702 asynchronously and at a user-defined speed.")
2703 (license license:gpl2+)))
2704
2705 (define-public chess
2706 (package
2707 (name "chess")
2708 (version "6.2.7")
2709 (source
2710 (origin
2711 (method url-fetch)
2712 (uri (string-append "mirror://gnu/chess/gnuchess-" version
2713 ".tar.gz"))
2714 (sha256
2715 (base32
2716 "0ilq4bfl0lwyzf11q7n2skydjhalfn3bgxhrp5hjxs5bc5d6fdp5"))))
2717 (build-system gnu-build-system)
2718 (home-page "https://www.gnu.org/software/chess/")
2719 (synopsis "Full chess implementation")
2720 (description "GNU Chess is a chess engine. It allows you to compete
2721 against the computer in a game of chess, either through the default terminal
2722 interface or via an external visual interface such as GNU XBoard.")
2723 (properties '((upstream-name . "gnuchess")
2724 (ftp-directory . "/chess")))
2725 (license license:gpl3+)))
2726
2727 (define freedink-engine
2728 (package
2729 (name "freedink-engine")
2730 (version "109.6")
2731 (source (origin
2732 (method url-fetch)
2733 (uri (string-append "mirror://gnu/freedink/freedink-" version
2734 ".tar.gz"))
2735 (patches (search-patches "freedink-engine-fix-sdl-hints.patch"))
2736 (sha256
2737 (base32
2738 "00hhk1bjdrc1np2qz44sa5n1mb62qzwxbvsnws3vpms6iyn3a2sy"))))
2739 (build-system gnu-build-system)
2740 (arguments
2741 `(#:configure-flags '("--disable-embedded-resources")
2742 #:phases
2743 (modify-phases %standard-phases
2744 (add-after 'unpack 'disable-graphical-tests
2745 (lambda _
2746 ;; These tests require a graphical interface.
2747 (substitute* "src/Makefile.am"
2748 (("test_gfx_fonts TestIOGfxDisplay") ""))
2749 #t))
2750 (add-before 'bootstrap 'autoreconf
2751 (lambda _
2752 ;; automake is out of date in the source
2753 ;; autoreconf updates the automake scripts
2754 (invoke "autoreconf")
2755 ;; Build fails when autom4te.cache exists.
2756 (delete-file-recursively "autom4te.cache")
2757 #t)))))
2758 (native-inputs `(("autoconf" ,autoconf)
2759 ("automake" ,automake)
2760 ("cxxtest" ,cxxtest)
2761 ("gettext" ,gettext-minimal)
2762 ("help2man" ,help2man)
2763 ("pkg-config" ,pkg-config)))
2764 (inputs `(("sdl-union" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer
2765 sdl2-ttf sdl2-gfx)))
2766 ("fontconfig" ,fontconfig)
2767 ("glm" ,glm)))
2768 (properties '((ftp-directory . "/freedink")
2769 (upstream-name . "freedink")))
2770 (home-page "https://www.gnu.org/software/freedink/")
2771 (synopsis "Twisted adventures of young pig farmer Dink Smallwood")
2772 (description
2773 "GNU FreeDink is a free and portable re-implementation of the engine
2774 for the role-playing game Dink Smallwood. It supports not only the original
2775 game data files but it also supports user-produced game mods or \"D-Mods\".
2776 To that extent, it also includes a front-end for managing all of your D-Mods.")
2777 (license license:gpl3+)))
2778
2779 (define freedink-data
2780 (package
2781 (name "freedink-data")
2782 (version "1.08.20190120")
2783 (source (origin
2784 (method url-fetch)
2785 (uri (string-append "mirror://gnu/freedink/freedink-data-"
2786 version ".tar.gz"))
2787 (sha256
2788 (base32
2789 "17gvryadlxk172mblbsil7hina1z5wahwaxnr6g3mdq57dvl8pvi"))))
2790 (build-system gnu-build-system)
2791 (arguments
2792 `(#:phases
2793 (modify-phases %standard-phases
2794 (delete 'configure) ; no configure script
2795 (delete 'check)) ; no tests
2796 #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))))
2797 (properties '((ftp-directory . "/freedink")))
2798 (home-page "https://www.gnu.org/software/freedink/")
2799 (synopsis "Game data for GNU Freedink")
2800 (description
2801 "This package contains the game data of GNU Freedink.")
2802 (license license:gpl3+)))
2803
2804 (define-public freedink-dfarc
2805 (package
2806 (name "freedink-dfarc")
2807 (version "3.14")
2808 (source (origin
2809 (method url-fetch)
2810 (uri (string-append "mirror://gnu/freedink/dfarc-"
2811 version ".tar.gz"))
2812 (sha256
2813 (base32
2814 "1yp8n3w426xnlp10xk06vfi2y3k9xrcfyck7s7qs1v0ys7n284d5"))))
2815 (build-system gnu-build-system)
2816 (native-inputs
2817 `(("intltool" ,intltool)))
2818 (inputs
2819 `(("bzip2" ,bzip2)
2820 ("wxwidgets" ,wxwidgets)))
2821 (properties '((ftp-directory . "/freedink")
2822 (upstream-name . "dfarc")))
2823 (home-page "https://www.gnu.org/software/freedink/")
2824 (synopsis "Front-end for managing and playing Dink Modules")
2825 (description "DFArc makes it easy to play and manage the GNU FreeDink game
2826 and its numerous D-Mods.")
2827 (license license:gpl3+)))
2828
2829 (define-public freedink
2830 ;; This is a wrapper that tells the engine where to find the data.
2831 (package (inherit freedink-engine)
2832 (name "freedink")
2833 (build-system trivial-build-system)
2834 (arguments
2835 '(#:builder (begin
2836 (use-modules (guix build utils))
2837
2838 (let* ((output (assoc-ref %outputs "out"))
2839 (bin (string-append output "/bin"))
2840 (executable (string-append bin "/freedink")))
2841 (mkdir-p bin)
2842 (call-with-output-file executable
2843 (lambda (port)
2844 (format port "#!~a/bin/sh
2845 exec ~a/bin/freedink -refdir ~a/share/dink\n"
2846 (assoc-ref %build-inputs "bash")
2847 (assoc-ref %build-inputs "engine")
2848 (assoc-ref %build-inputs "data"))
2849 (chmod port #o777)))
2850 #t))
2851 #:modules ((guix build utils))))
2852 (inputs `(("engine" ,freedink-engine)
2853 ("data" ,freedink-data)
2854 ("bash" ,bash)))
2855 (native-inputs '())))
2856
2857 (define-public xboard
2858 (package
2859 (name "xboard")
2860 (version "4.9.1")
2861 (source
2862 (origin
2863 (method url-fetch)
2864 (uri (string-append "mirror://gnu/xboard/xboard-" version
2865 ".tar.gz"))
2866 (sha256
2867 (base32
2868 "1mkh36xnnacnz9r00b5f9ld9309k32jv6mcavklbdnca8bl56bib"))))
2869 (build-system gnu-build-system)
2870 (inputs
2871 `(("gtk+" ,gtk+-2)
2872 ("librsvg" ,librsvg)))
2873 (native-inputs
2874 `(("texinfo" ,texinfo)
2875 ("pkg-config" ,pkg-config)))
2876 (home-page "https://www.gnu.org/software/xboard/")
2877 (synopsis "Graphical user interface for chess programs")
2878 (description "GNU XBoard is a graphical board for all varieties of chess,
2879 including international chess, xiangqi (Chinese chess), shogi (Japanese chess)
2880 and Makruk. Several lesser-known variants are also supported. It presents a
2881 fully interactive graphical interface and it can load and save games in the
2882 Portable Game Notation.")
2883 (license license:gpl3+)))
2884
2885 (define-public gtypist
2886 (package
2887 (name "gtypist")
2888 (version "2.9.5")
2889 (source (origin
2890 (method url-fetch)
2891 (uri (string-append "mirror://gnu/gtypist/gtypist-"
2892 version ".tar.xz"))
2893 (sha256
2894 (base32
2895 "0xzrkkmj0b1dw3yr0m9hml2y634cc4h61im6zwcq57s7285z8fn1"))
2896 (modules '((guix build utils)))
2897 (snippet
2898 ;; We do not provide `ncurses.h' within an `ncursesw'
2899 ;; sub-directory, so patch the source accordingly. See
2900 ;; <http://bugs.gnu.org/19018>.
2901 '(begin
2902 (for-each (lambda (file)
2903 (substitute* file
2904 (("ncursesw/ncurses.h")
2905 "ncurses.h")))
2906 (find-files "." "configure$|\\.c$"))
2907 #t))))
2908 (build-system gnu-build-system)
2909 (inputs `(("ncurses" ,ncurses)
2910 ("perl" ,perl)))
2911 (home-page "https://www.gnu.org/software/gtypist/")
2912 (synopsis "Typing tutor")
2913 (description
2914 "GNU Typist is a universal typing tutor. It can be used to learn and
2915 practice touch-typing. Several tutorials are included; in addition to
2916 tutorials for the standard QWERTY layout, there are also tutorials for the
2917 alternative layouts Dvorak and Colemak, as well as for the numpad. Tutorials
2918 are primarily in English, however some in other languages are provided.")
2919 (license license:gpl3+)))
2920
2921 (define-public irrlicht
2922 (package
2923 (name "irrlicht")
2924 (version "1.8.4")
2925 (source (origin
2926 (method url-fetch)
2927 (uri (string-append
2928 "mirror://sourceforge/irrlicht/Irrlicht%20SDK/"
2929 (version-major+minor version)
2930 "/" version "/irrlicht-" version ".zip"))
2931 (sha256
2932 (base32
2933 "0cz4z4dwrv5ypl19ll67wl6jjpy5k6ly4vr042w4br88qq5jhazl"))
2934 (patches (search-patches "irrlicht-use-system-libs.patch"))
2935 (modules '((guix build utils)))
2936 (snippet
2937 '(begin
2938 (for-each delete-file-recursively
2939 '("bin" ; bundled compiled Windows binaries"
2940 "source/Irrlicht/MacOSX"
2941 "source/Irrlicht/bzip2"
2942 "source/Irrlicht/jpeglib"
2943 "source/Irrlicht/libpng"
2944 "source/Irrlicht/lzma"
2945 "source/Irrlicht/zlib"))
2946 (delete-file "source/Irrlicht/glext.h")
2947 (delete-file "source/Irrlicht/glxext.h")
2948 (delete-file "source/Irrlicht/wglext.h")
2949 #t))))
2950 (build-system gnu-build-system)
2951 (arguments
2952 `(#:phases
2953 (modify-phases %standard-phases
2954 (add-after 'unpack 'chdir-to-source
2955 (lambda _
2956 ;; The actual source is buried a few directories deep.
2957 (chdir "source/Irrlicht/")
2958 #t))
2959 (add-after 'chdir-to-source 'fix-build-env
2960 (lambda* (#:key outputs #:allow-other-keys)
2961 (let ((out (assoc-ref outputs "out")))
2962 (substitute* "Makefile"
2963 (("INSTALL_DIR = /usr/local/lib")
2964 (string-append "INSTALL_DIR = " out "/lib"))
2965 ;; Add '-fpermissive' to the CXXFLAGS
2966 (("-Wall") "-Wall -fpermissive")) ; CImageLoaderJPG.cpp
2967 ;; The Makefile assumes these directories exist.
2968 (mkdir-p (string-append out "/lib"))
2969 (mkdir-p (string-append out "/include")))))
2970 (delete 'configure)) ; no configure script
2971 #:tests? #f ; no check target
2972 #:make-flags '("CC=gcc" "sharedlib")))
2973 (inputs
2974 `(("bzip2" ,bzip2)
2975 ("libjpeg" ,libjpeg-turbo)
2976 ("libpng" ,libpng)
2977 ("libx11" ,libx11)
2978 ("libxxf86vm" ,libxxf86vm)
2979 ("mesa" ,mesa)))
2980 (synopsis "3D game engine written in C++")
2981 (description
2982 "The Irrlicht Engine is a high performance realtime 3D engine written in
2983 C++. Features include an OpenGL renderer, extensible materials, scene graph
2984 management, character animation, particle and other special effects, support
2985 for common mesh file formats, and collision detection.")
2986 (home-page "http://irrlicht.sourceforge.net/")
2987 (license license:zlib)))
2988
2989 (define-public mars
2990 ;; The latest release on SourceForge relies on an unreleased version of SFML
2991 ;; with a different API, so we take the latest version from the official
2992 ;; repository on Github.
2993 (let ((commit "c855d044094a1d92317e38935d81ba938946132e")
2994 (revision "1"))
2995 (package
2996 (name "mars")
2997 (version (string-append "0.7.5." revision "." (string-take commit 7) ))
2998 (source (origin
2999 (method git-fetch)
3000 (uri (git-reference
3001 (url "https://github.com/thelaui/M.A.R.S.")
3002 (commit commit)))
3003 (file-name (git-file-name name version))
3004 (sha256
3005 (base32
3006 "1r4c5gap1z2zsv4yjd34qriqkxaq4lb4rykapyzkkdf4g36lc3nh"))
3007 (patches (search-patches "mars-sfml-2.3.patch"
3008 "mars-install.patch"))))
3009 (build-system cmake-build-system)
3010 (arguments
3011 `(#:tests? #f ; There are no tests
3012 #:phases
3013 (modify-phases %standard-phases
3014 (add-after 'unpack 'fix-install-path
3015 (lambda _
3016 (substitute* "src/CMakeLists.txt"
3017 (("\\$\\{CMAKE_INSTALL_PREFIX\\}/games")
3018 "${CMAKE_INSTALL_PREFIX}/bin"))
3019 #t))
3020 (add-after 'unpack 'fix-data-path
3021 (lambda* (#:key outputs #:allow-other-keys)
3022 (substitute* "src/System/settings.cpp"
3023 (("C_dataPath = \"./data/\";")
3024 (string-append "C_dataPath = \""
3025 (assoc-ref outputs "out")
3026 "/share/games/marsshooter/\";")))
3027 #t)))))
3028 (inputs
3029 `(("mesa" ,mesa)
3030 ("fribidi" ,fribidi)
3031 ("taglib" ,taglib)
3032 ("sfml" ,sfml)))
3033 (home-page "http://mars-game.sourceforge.net/")
3034 (synopsis "2D space shooter")
3035 (description
3036 "M.A.R.S. is a 2D space shooter with pretty visual effects and
3037 attractive physics. Players can battle each other or computer controlled
3038 enemies in different game modes such as space ball, death match, team death
3039 match, cannon keep, and grave-itation pit.")
3040 (license license:gpl3+))))
3041
3042 (define-public minetest
3043 (package
3044 (name "minetest")
3045 (version "5.3.0")
3046 (source (origin
3047 (method git-fetch)
3048 (uri (git-reference
3049 (url "https://github.com/minetest/minetest")
3050 (commit version)))
3051 (file-name (git-file-name name version))
3052 (sha256
3053 (base32
3054 "03ga3j3cg38w4lg4d4qxasmnjdl8n3lbizidrinanvyfdyvznyh6"))
3055 (modules '((guix build utils)))
3056 (snippet
3057 '(begin
3058 ;; Delete bundled libraries.
3059 (delete-file-recursively "lib")
3060 #t))))
3061 (build-system cmake-build-system)
3062 (arguments
3063 '(#:configure-flags
3064 (list "-DRUN_IN_PLACE=0"
3065 "-DENABLE_FREETYPE=1"
3066 "-DENABLE_GETTEXT=1"
3067 "-DENABLE_SYSTEM_JSONCPP=TRUE"
3068 (string-append "-DIRRLICHT_INCLUDE_DIR="
3069 (assoc-ref %build-inputs "irrlicht")
3070 "/include/irrlicht")
3071 (string-append "-DCURL_INCLUDE_DIR="
3072 (assoc-ref %build-inputs "curl")
3073 "/include/curl"))
3074 #:tests? #f)) ;no check target
3075 (native-search-paths
3076 (list (search-path-specification
3077 (variable "MINETEST_SUBGAME_PATH")
3078 (files '("share/minetest/games")))))
3079 (native-inputs
3080 `(("pkg-config" ,pkg-config)))
3081 (inputs
3082 `(("curl" ,curl)
3083 ("freetype" ,freetype)
3084 ("gettext" ,gettext-minimal)
3085 ("gmp" ,gmp)
3086 ("irrlicht" ,irrlicht)
3087 ("jsoncpp" ,jsoncpp)
3088 ("libjpeg" ,libjpeg-turbo)
3089 ("libpng" ,libpng)
3090 ("libogg" ,libogg)
3091 ("libvorbis" ,libvorbis)
3092 ("libxxf86vm" ,libxxf86vm)
3093 ("luajit" ,luajit)
3094 ("mesa" ,mesa)
3095 ("ncurses" ,ncurses)
3096 ("openal" ,openal)
3097 ("sqlite" ,sqlite)))
3098 (propagated-inputs
3099 `(("minetest-data" ,minetest-data)))
3100 (synopsis "Infinite-world block sandbox game")
3101 (description
3102 "Minetest is a sandbox construction game. Players can create and destroy
3103 various types of blocks in a three-dimensional open world. This allows
3104 forming structures in every possible creation, on multiplayer servers or as a
3105 single player. Mods and texture packs allow players to personalize the game
3106 in different ways.")
3107 (home-page "https://www.minetest.net/")
3108 (license license:lgpl2.1+)))
3109
3110 (define minetest-data
3111 (package
3112 (name "minetest-data")
3113 (version (package-version minetest))
3114 (source (origin
3115 (method git-fetch)
3116 (uri (git-reference
3117 (url "https://github.com/minetest/minetest_game")
3118 (commit version)))
3119 (file-name (git-file-name name version))
3120 (sha256
3121 (base32
3122 "1liciwlh013z5h08ib0psjbwn5wkvlr937ir7kslfk4vly984cjx"))))
3123 (build-system trivial-build-system)
3124 (native-inputs
3125 `(("source" ,source)))
3126 (arguments
3127 `(#:modules ((guix build utils))
3128 #:builder (begin
3129 (use-modules (guix build utils))
3130 (let ((install-dir (string-append
3131 %output
3132 "/share/minetest/games/minetest_game")))
3133 (mkdir-p install-dir)
3134 (copy-recursively
3135 (assoc-ref %build-inputs "source")
3136 install-dir)
3137 #t))))
3138 (synopsis "Main game data for the Minetest game engine")
3139 (description
3140 "Game data for the Minetest infinite-world block sandbox game.")
3141 (home-page "https://www.minetest.net/")
3142 (license license:lgpl2.1+)))
3143
3144 (define-public minetest-mineclone
3145 (package
3146 (name "minetest-mineclone")
3147 (version "0.66.2")
3148 (source (origin
3149 (method git-fetch)
3150 (uri (git-reference
3151 (url "https://git.minetest.land/Wuzzy/MineClone2")
3152 (commit version)))
3153 (file-name (git-file-name name version))
3154 (sha256
3155 (base32
3156 "0miszzlzplpvaj0j1yii9867ydr42wsaqa9g6grxdrci75p05g00"))))
3157 (build-system copy-build-system)
3158 (arguments
3159 `(#:install-plan
3160 '(("." "share/minetest/games/mineclone"))))
3161 (synopsis "Minecraft clone based on Minetest engine")
3162 (description
3163 "MineClone is a Minetest subgame, that aims to recreate Minecraft as
3164 closely as the engine allows.")
3165 (home-page "https://content.minetest.net/packages/Wuzzy/mineclone2/")
3166 (license license:gpl3+)))
3167
3168 (define glkterm
3169 (package
3170 (name "glkterm")
3171 (version "1.0.4")
3172 (source
3173 (origin
3174 (method url-fetch)
3175 (uri (string-append "http://www.ifarchive.org/if-archive/programming/"
3176 "glk/implementations/glkterm-104.tar.gz"))
3177 (sha256
3178 (base32
3179 "0zlj9nlnkdlvgbiliczinirqygiq8ikg5hzh5vgcmnpg9pvnwga7"))))
3180 (build-system gnu-build-system)
3181 (propagated-inputs `(("ncurses" ,ncurses))) ; required by Make.glkterm
3182 (arguments
3183 '(#:tests? #f ; no check target
3184 #:phases
3185 (modify-phases %standard-phases
3186 (replace 'install
3187 (lambda* (#:key outputs #:allow-other-keys)
3188 (let* ((out (assoc-ref outputs "out"))
3189 (inc (string-append out "/include"))
3190 (lib (string-append out "/lib")))
3191 (for-each
3192 (lambda (file)
3193 (install-file file inc))
3194 '("glk.h" "glkstart.h" "gi_blorb.h" "gi_dispa.h" "Make.glkterm"))
3195 (install-file "libglkterm.a" lib))
3196 #t))
3197 (delete 'configure)))) ; no configure script
3198 (home-page "http://www.eblong.com/zarf/glk/")
3199 (synopsis "Curses Implementation of the Glk API")
3200 (description
3201 "Glk defines a portable API for applications with text UIs. It was
3202 primarily designed for interactive fiction, but it should be suitable for many
3203 interactive text utilities, particularly those based on a command line.
3204 This is an implementation of the Glk library which runs in a terminal window,
3205 using the @code{curses.h} library for screen control.")
3206 (license (license:fsf-free "file://README"))))
3207
3208 (define-public glulxe
3209 (package
3210 (name "glulxe")
3211 (version "0.5.4")
3212 (source
3213 (origin
3214 (method url-fetch)
3215 (uri (string-append "http://www.ifarchive.org/if-archive/programming/"
3216 "glulx/interpreters/glulxe/glulxe-054.tar.gz"))
3217 (sha256
3218 (base32
3219 "0vipydg6ra90yf9b3ipgppwxyb2xdhcxwvirgjy0v20wlf56zhhz"))))
3220 (build-system gnu-build-system)
3221 (inputs `(("glk" ,glkterm)))
3222 (arguments
3223 '(#:tests? #f ; no check target
3224 #:make-flags
3225 (let* ((glk (assoc-ref %build-inputs "glk")))
3226 (list (string-append "GLKINCLUDEDIR=" glk "/include")
3227 (string-append "GLKLIBDIR=" glk "/lib")
3228 (string-append "GLKMAKEFILE=" "Make.glkterm")))
3229 #:phases
3230 (modify-phases %standard-phases
3231 (replace 'install
3232 (lambda* (#:key outputs #:allow-other-keys)
3233 (let* ((out (assoc-ref outputs "out"))
3234 (bin (string-append out "/bin")))
3235 (install-file "glulxe" bin))
3236 #t))
3237 (delete 'configure)))) ; no configure script
3238 (home-page "https://www.eblong.com/zarf/glulx/")
3239 (synopsis "Interpreter for Glulx VM")
3240 (description
3241 "Glulx is a 32-bit portable virtual machine intended for writing and
3242 playing interactive fiction. It was designed by Andrew Plotkin to relieve
3243 some of the restrictions in the venerable Z-machine format. This is the
3244 reference interpreter, using the Glk API.")
3245 (license license:expat)))
3246
3247 (define-public fifechan
3248 (package
3249 (name "fifechan")
3250 (version "0.1.5")
3251 (source (origin
3252 (method url-fetch)
3253 (uri (string-append "https://codeload.github.com/fifengine/"
3254 "fifechan/tar.gz/" version))
3255 (file-name (string-append name "-" version ".tar.gz"))
3256 (sha256
3257 (base32
3258 "0wxs9vz5x9y8chghd8vp7vfk089lfb0qnzggi17zrqkrngs5zgi9"))))
3259 (build-system cmake-build-system)
3260 (inputs
3261 `(("sdl2" ,sdl2)
3262 ("sdl2-image" ,sdl2-image)
3263 ("mesa" ,mesa)))
3264 (arguments
3265 '(#:tests? #f)) ; No included tests
3266 (home-page "https://fifengine.github.io/fifechan/")
3267 (synopsis "Cross platform GUI library specifically for games")
3268 (description
3269 "Fifechan is a lightweight cross platform GUI library written in C++
3270 specifically designed for games. It has a built in set of extendable GUI
3271 Widgets, and allows users to create more.")
3272 (license license:lgpl2.1+)))
3273
3274 (define-public fifengine
3275 (package
3276 (name "fifengine")
3277 (version "0.4.2")
3278 (source (origin
3279 (method url-fetch)
3280 (uri (string-append "https://codeload.github.com/fifengine/"
3281 "fifengine/tar.gz/" version))
3282 (file-name (string-append name "-" version ".tar.gz"))
3283 (patches (search-patches "fifengine-swig-compat.patch"))
3284 (sha256
3285 (base32
3286 "1y4grw25cq5iqlg05rnbyxw1njl11ypidnlsm3qy4sm3xxdvb0p8"))))
3287 (build-system cmake-build-system)
3288 (arguments
3289 `(#:tests? #f ; TODO The test running fails to run some tests.
3290 #:modules ((srfi srfi-1)
3291 (guix build cmake-build-system)
3292 (guix build utils))
3293 #:configure-flags
3294 (list
3295 (string-append "-DOPENALSOFT_INCLUDE_DIR="
3296 (assoc-ref %build-inputs "openal")
3297 "/include/AL")
3298 (string-append "-DPYTHON_SITE_PACKAGES="
3299 (assoc-ref %outputs "out")
3300 "/lib/python"
3301 ,(version-major+minor (package-version python))
3302 "/site-packages"))
3303 #:phases
3304 (modify-phases %standard-phases
3305 (add-after 'unpack 'patch-run_tests.py
3306 (lambda _
3307 ;; Patch the test runner to exit with a status of 1 if any test
3308 ;; fails, to allow detecting failures.
3309 (substitute* "run_tests.py"
3310 (("ERROR\\. One or more tests failed!'\\)")
3311 "ERROR. One or more tests failed!')
3312 \t\texit(1)"))
3313 #t))
3314 ;; Run tests after installation so that we can make use of the built
3315 ;; python modules.
3316 (delete 'check)
3317 (add-after 'install 'check
3318 (lambda* (#:key inputs outputs tests? #:allow-other-keys)
3319 (define python-version
3320 (let* ((version (last (string-split
3321 (assoc-ref inputs "python")
3322 #\-)))
3323 (components (string-split version #\.))
3324 (major+minor (take components 2)))
3325 (string-join major+minor ".")))
3326
3327 (when tests?
3328 ;; Set PYTHONPATH so that python finds the installed modules.
3329 (setenv "PYTHONPATH"
3330 (string-append (getenv "PYTHONPATH") ":"
3331 (assoc-ref outputs "out")
3332 "/lib/python"
3333 python-version
3334 "/site-packages"))
3335 ;; The tests require an X server.
3336 (system "Xvfb :1 &")
3337 (setenv "DISPLAY" ":1")
3338 (setenv "XDG_RUNTIME_DIR" "/tmp")
3339 ;; Run tests
3340 (chdir ,(string-append "../" name "-" version))
3341 (invoke "python3" "run_tests.py" "-a"))
3342 #t)))))
3343 (inputs
3344 `(("sdl2" ,sdl2)
3345 ("sdl2-image" ,sdl2-image)
3346 ("sdl2-ttf" ,sdl2-ttf)
3347 ("tinyxml" ,tinyxml)
3348 ("openal" ,openal)
3349 ("libogg" ,libogg)
3350 ("glew" ,glew)
3351 ("libvorbis" ,libvorbis)
3352 ("boost" ,boost)
3353 ("fifechan" ,fifechan)
3354 ("swig" ,swig)
3355 ("python" ,python)))
3356 (native-inputs
3357 `(("python" ,python)
3358 ("swig" ,swig)
3359 ("xvfb" ,xorg-server)))
3360 (propagated-inputs
3361 `(("python-future" ,python-future)))
3362 (home-page "https://www.fifengine.net/")
3363 (synopsis "FIFE is a multi-platform isometric game engine written in C++")
3364 (description
3365 "@acronym{FIFE, Flexible Isometric Free Engine} is a multi-platform
3366 isometric game engine. Python bindings are included allowing users to create
3367 games using Python as well as C++.")
3368 (license license:lgpl2.1+)))
3369
3370 (define-public fizmo
3371 (package
3372 (name "fizmo")
3373 (version "0.8.5")
3374 (source (origin
3375 (method url-fetch)
3376 (uri (string-append "https://fizmo.spellbreaker.org/source/"
3377 "fizmo-" version ".tar.gz"))
3378 (sha256
3379 (base32
3380 "1amyc4n41jf08kxmdgkk30bzzx54miaxa97w28f417qwn8lrl98w"))))
3381 (build-system gnu-build-system)
3382 (arguments
3383 '(#:configure-flags
3384 (let ((libjpeg (assoc-ref %build-inputs "libjpeg"))
3385 (ncurses (assoc-ref %build-inputs "ncurses")))
3386 (list (string-append "--with-jpeg-includedir=" libjpeg "/include")))))
3387 (native-inputs
3388 `(("pkg-config" ,pkg-config)))
3389 (inputs
3390 `(("freetype" ,freetype)
3391 ("libjpeg" ,libjpeg-turbo)
3392 ("libpng" ,libpng)
3393 ("libsndfile" ,libsndfile)
3394 ("libxml2" ,libxml2)
3395 ("ncurses" ,ncurses)
3396 ("sdl2" ,sdl2)))
3397 (home-page "https://fizmo.spellbreaker.org/")
3398 (synopsis "Z-machine interpreter")
3399 (description
3400 "Fizmo is a console-based Z-machine interpreter. It is used to play
3401 interactive fiction, also known as text adventures, which were implemented
3402 either by Infocom or created using the Inform compiler.")
3403 (license license:bsd-3)))
3404
3405 (define-public gnugo
3406 (package
3407 (name "gnugo")
3408 (version "3.8")
3409 (source (origin
3410 (method url-fetch)
3411 (uri (string-append "mirror://gnu/gnugo/gnugo-" version
3412 ".tar.gz"))
3413 (sha256
3414 (base32
3415 "0wkahvqpzq6lzl5r49a4sd4p52frdmphnqsfdv7gdp24bykdfs6s"))))
3416 (build-system gnu-build-system)
3417 (inputs `(("readline" ,readline)))
3418 (synopsis "Play the game of Go")
3419 (description
3420 "GNU Go is a program that plays the game of Go, in which players
3421 place stones on a grid to form territory or capture other stones. While
3422 it can be played directly from the terminal, rendered in ASCII characters,
3423 it is also possible to play GNU Go with 3rd party graphical interfaces or
3424 even in Emacs. It supports the standard game storage format (SGF, Smart
3425 Game Format) and inter-process communication format (GMP, Go Modem
3426 Protocol).")
3427 (home-page "https://www.gnu.org/software/gnugo/")
3428 (license license:gpl3+)))
3429
3430 (define-public extremetuxracer
3431 (package
3432 (name "extremetuxracer")
3433 (version "0.8.0")
3434 (source (origin
3435 (method url-fetch)
3436 (uri (string-append
3437 "mirror://sourceforge/extremetuxracer/releases/"
3438 version "/etr-" version ".tar.xz"))
3439 (sha256
3440 (base32
3441 "05ysaxvsgps9fxc421kdifsxmc1sn6n79cjaa0k0i3fs9qqrja2b"))))
3442 (build-system gnu-build-system)
3443 (native-inputs
3444 `(("pkg-config" ,pkg-config)))
3445 (inputs
3446 `(("glu" ,glu)
3447 ("sfml" ,sfml)))
3448 (synopsis "High-speed arctic racing game based on Tux Racer")
3449 ;; Snarfed straight from Debian.
3450 (description "Extreme Tux Racer, or etracer as it is called for short, is
3451 a simple OpenGL racing game featuring Tux, the Linux mascot. The goal of the
3452 game is to slide down a snow- and ice-covered mountain as quickly as possible,
3453 avoiding the trees and rocks that will slow you down.
3454
3455 Collect herrings and other goodies while sliding down the hill, but avoid fish
3456 bones.
3457
3458 This game is based on the GPL version of the famous game TuxRacer.")
3459 (home-page "https://sourceforge.net/projects/extremetuxracer/")
3460 (license license:gpl2+)))
3461
3462 (define-public supertuxkart
3463 (package
3464 (name "supertuxkart")
3465 (version "1.1")
3466 (source
3467 (origin
3468 (method url-fetch)
3469 (uri (string-append "mirror://sourceforge/supertuxkart/SuperTuxKart/"
3470 version "/supertuxkart-" version "-src.tar.xz"))
3471 (sha256
3472 (base32
3473 "1s0ai07g3sswck9mr0142989mrgzzq1njc1qxk5als5b245jpc79"))
3474 (modules '((guix build utils)))
3475 (snippet
3476 ;; Delete bundled library sources
3477 '(begin
3478 ;; Supertuxkart uses modified versions of the Irrlicht engine
3479 ;; and the bullet library. The developers gave an explanation
3480 ;; here: http://forum.freegamedev.net/viewtopic.php?f=17&t=3906
3481 ;; FIXME: try to unbundle angelscript and libraqm
3482 (for-each delete-file-recursively
3483 '("lib/zlib"
3484 "lib/libpng"
3485 "lib/jpeglib"
3486 "lib/glew"
3487 "lib/wiiuse"
3488 "lib/enet"))
3489 #t))))
3490 (build-system cmake-build-system)
3491 (arguments
3492 `(#:tests? #f ; no check target
3493 #:configure-flags
3494 (list "-DUSE_WIIUSE=0"
3495 ;; Do not use the bundled zlib, glew and enet.
3496 "-DNO_IRR_COMPILE_WITH_ZLIB_=TRUE"
3497 "-DUSE_SYSTEM_GLEW=TRUE"
3498 "-DUSE_SYSTEM_ENET=TRUE"
3499 ;; In order to use the system ENet library, IPv6 support (added in
3500 ;; SuperTuxKart version 1.1) must be disabled.
3501 "-DUSE_IPV6=FALSE"
3502 ;; FIXME: needs libopenglrecorder
3503 "-DBUILD_RECORDER=0"
3504 ;; Irrlicht returns an integer instead of a boolean
3505 "-DCMAKE_C_FLAGS=-fpermissive")))
3506 (inputs
3507 `(("glew" ,glew)
3508 ("zlib" ,zlib)
3509 ("openal" ,openal)
3510 ("libvorbis" ,libvorbis)
3511 ("freetype" ,freetype)
3512 ("fribidi" ,fribidi)
3513 ("harfbuzz" ,harfbuzz)
3514 ("mesa" ,mesa)
3515 ("libx11" ,libx11)
3516 ("libxrandr" ,libxrandr)
3517 ("curl" ,curl)
3518 ;; The following input is needed to build the bundled and modified
3519 ;; version of irrlicht.
3520 ("libjpeg" ,libjpeg-turbo)
3521 ("openssl" ,openssl)
3522 ("enet" ,enet)))
3523 (native-inputs
3524 `(("pkg-config" ,pkg-config)))
3525 (home-page "https://supertuxkart.net/Main_Page")
3526 (synopsis "3D kart racing game")
3527 (description "SuperTuxKart is a 3D kart racing game, with a focus on
3528 having fun over realism. You can play with up to 4 friends on one PC, racing
3529 against each other or just trying to beat the computer; single-player mode is
3530 also available.")
3531 (license license:gpl3+)))
3532
3533 (define-public unknown-horizons
3534 (package
3535 (name "unknown-horizons")
3536 (version "2019.1")
3537 (source (origin
3538 (method url-fetch)
3539 (uri (string-append "https://codeload.github.com/unknown-horizons/"
3540 "unknown-horizons/tar.gz/" version))
3541 (file-name (string-append name "-" version ".tar.gz"))
3542 (sha256
3543 (base32
3544 "1n747p7h0qp48szgp262swg0xh8kxy1bw8ag1qczs4i26hyzs5x4"))
3545 (patches (search-patches "unknown-horizons-python-3.8-distro.patch"))))
3546 (build-system python-build-system)
3547 (arguments
3548 '(#:phases
3549 (modify-phases %standard-phases
3550 (add-before 'build 'set-HOME
3551 (lambda _
3552 (setenv "HOME" "/tmp")
3553 #t))
3554 (add-after 'build 'build-extra
3555 (lambda _
3556 (invoke "python3" "./setup.py" "build_i18n")
3557 (invoke "python3" "horizons/engine/generate_atlases.py" "2048")
3558 #t))
3559 (add-after 'install 'patch
3560 (lambda* (#:key outputs #:allow-other-keys)
3561 (let ((out (assoc-ref outputs "out")))
3562 (substitute* (string-append out "/bin/unknown-horizons")
3563 (("os\\.chdir\\(get\\_content\\_dir\\_parent_path\\(\\)\\)")
3564 (string-append "os.chdir(\""
3565 (assoc-ref outputs "out")
3566 "/share/unknown-horizons\")"))))
3567 #t))
3568 (add-before 'check 'fix-tests-with-pytest>=4
3569 (lambda _
3570 (substitute* "tests/conftest.py"
3571 (("pytest_namespace")
3572 "pytest_configure")
3573 (("get_marker")
3574 "get_closest_marker"))
3575 #t))
3576 ;; TODO: Run GUI tests as well
3577 (replace 'check
3578 (lambda _
3579 (substitute* "horizons/constants.py"
3580 (("IS_DEV_VERSION = False")
3581 "IS_DEV_VERSION = True"))
3582 (invoke "pytest" "tests")
3583 (substitute* "horizons/constants.py"
3584 (("IS_DEV_VERSION = True")
3585 "IS_DEV_VERSION = False"))
3586 #t)))))
3587 (inputs
3588 `(("fifengine" ,fifengine)
3589 ("python:tk" ,python "tk")
3590 ("python-pillow" ,python-pillow)
3591 ("python-pyyaml" ,python-pyyaml)))
3592 (native-inputs
3593 `(("intltool" ,intltool)
3594 ("python-distro" ,python-distro)
3595
3596 ;; Required for tests
3597 ("python-greenlet" ,python-greenlet)
3598 ("python-polib" ,python-polib)
3599 ("python-pytest" ,python-pytest)
3600 ("python-pytest-mock" ,python-pytest-mock)))
3601 (home-page "http://unknown-horizons.org/")
3602 (synopsis "Isometric realtime strategy, economy and city building simulation")
3603 (description
3604 "Unknown Horizons is a 2D realtime strategy simulation with an emphasis
3605 on economy and city building. Expand your small settlement to a strong and
3606 wealthy colony, collect taxes and supply your inhabitants with valuable
3607 goods. Increase your power with a well balanced economy and with strategic
3608 trade and diplomacy.")
3609 (license (list
3610 license:gpl2+ ; Covers code
3611 license:expat ; tests/dummy.py, ext/polib.py
3612 license:cc-by-sa3.0 ; Covers some media content
3613 license:cc-by3.0 ; Covers some media content
3614 license:bsd-3)))) ; horizons/ext/speaklater.py
3615
3616 (define-public gnujump
3617 (package
3618 (name "gnujump")
3619 (version "1.0.8")
3620 (source (origin
3621 (method url-fetch)
3622 (uri (string-append "mirror://gnu/gnujump/gnujump-"
3623 version ".tar.gz"))
3624 (sha256
3625 (base32
3626 "05syy9mzbyqcfnm0hrswlmhwlwx54f0l6zhcaq8c1c0f8dgzxhqk"))))
3627 (build-system gnu-build-system)
3628 (arguments
3629 '(#:phases
3630 (modify-phases %standard-phases
3631 (add-before
3632 'configure 'link-libm
3633 (lambda _ (setenv "LIBS" "-lm")))
3634 (add-after 'install 'create-desktop-entry
3635 (lambda* (#:key outputs #:allow-other-keys)
3636 (let* ((out (assoc-ref outputs "out"))
3637 (apps (string-append out "/share/applications")))
3638 (mkdir-p apps)
3639 (with-output-to-file
3640 (string-append apps "/gnujump.desktop")
3641 (lambda _
3642 (format #t
3643 "[Desktop Entry]~@
3644 Name=GNUjump~@
3645 Comment=Jump up the tower to survive~@
3646 Exec=~a/bin/gnujump~@
3647 Terminal=false~@
3648 Type=Application~@
3649 Categories=Game;ArcadeGame~%"
3650 out)))))))))
3651 (inputs
3652 `(("glu" ,glu)
3653 ("mesa" ,mesa)
3654 ("sdl" ,sdl)
3655 ("sdl-image" ,sdl-image)
3656 ("sdl-mixer" ,sdl-mixer)))
3657 (home-page "http://gnujump.es.gnu.org/")
3658 (synopsis
3659 "Game of jumping to the next floor, trying not to fall")
3660 (description
3661 "GNUjump is a simple, yet addictive game in which you must jump from
3662 platform to platform to avoid falling, while the platforms drop at faster rates
3663 the higher you go. The game features multiplayer, unlimited FPS, smooth floor
3664 falling, themeable graphics and sounds, and replays.")
3665 (license license:gpl3+)))
3666
3667 (define-public wesnoth
3668 (package
3669 (name "wesnoth")
3670 (version "1.14.13")
3671 (source (origin
3672 (method url-fetch)
3673 (uri (string-append "mirror://sourceforge/wesnoth/wesnoth-"
3674 (version-major+minor version)
3675 "/wesnoth-" version "/"
3676 "wesnoth-" version ".tar.bz2"))
3677 (sha256
3678 (base32
3679 "1pmqj4rah0256qi9w394ksb9apid723i5f5agkg6x1lahb1ac91q"))))
3680 (build-system cmake-build-system)
3681 (arguments
3682 `(#:tests? #f)) ;no check target
3683 (native-inputs
3684 `(("gettext" ,gettext-minimal)
3685 ("pkg-config" ,pkg-config)))
3686 (inputs
3687 `(("boost" ,boost)
3688 ("dbus" ,dbus)
3689 ("fribidi" ,fribidi)
3690 ("libvorbis" ,libvorbis)
3691 ("openssl" ,openssl)
3692 ("pango" ,pango)
3693 ("sdl-union" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer sdl2-ttf)))))
3694 (home-page "https://www.wesnoth.org/")
3695 (synopsis "Turn-based strategy game")
3696 (description
3697 "The Battle for Wesnoth is a fantasy, turn based tactical strategy game,
3698 with several single player campaigns, and multiplayer games (both networked and
3699 local).
3700
3701 Battle for control on a range of maps, using variety of units which have
3702 advantages and disadvantages against different types of attacks. Units gain
3703 experience and advance levels, and are carried over from one scenario to the
3704 next campaign.")
3705 (license license:gpl2+)))
3706
3707 (define-public wesnoth-server
3708 (package
3709 (inherit wesnoth)
3710 (name "wesnoth-server")
3711 (inputs
3712 `(("boost" ,boost)
3713 ("icu4c" ,icu4c)
3714 ("openssl" ,openssl)
3715 ("sdl2" ,sdl2)))
3716 (arguments
3717 `(#:configure-flags '("-DENABLE_GAME=OFF")
3718 ,@(package-arguments wesnoth)))
3719 (synopsis "Dedicated @emph{Battle for Wesnoth} server")
3720 (description "This package contains a dedicated server for @emph{The
3721 Battle for Wesnoth}.")))
3722
3723 (define-public gamine
3724 (package
3725 (name "gamine")
3726 (version "1.6")
3727 (source (origin
3728 (method url-fetch)
3729 (uri (string-append "mirror://sourceforge/gamine-game/"
3730 "gamine-" version ".tar.gz"))
3731 (sha256
3732 (base32
3733 "1sc6f4445ciigd6yw0ri92746k4hk6ps0bvj9fm1gbp3c3fslk5n"))))
3734 (build-system gnu-build-system)
3735 (native-inputs
3736 `(("pkg-config" ,pkg-config)
3737 ("intltool" ,intltool)))
3738 (inputs
3739 `(("gstreamer" ,gstreamer)
3740 ("gst-plugins-base" ,gst-plugins-base) ; playbin plugin
3741 ("gst-plugins-good" ,gst-plugins-good) ; for wav playback
3742 ("gtk+" ,gtk+)))
3743 (arguments
3744 `(#:tests? #f
3745 #:make-flags
3746 (let ((out (assoc-ref %outputs "out")))
3747 (list (string-append "PREFIX=" out)
3748 (string-append "SYSCONFDIR=" out "/etc")))
3749 #:phases
3750 (modify-phases %standard-phases
3751 (delete 'configure)
3752 (add-after
3753 'install 'wrap-gamine
3754 (lambda* (#:key outputs #:allow-other-keys)
3755 (let ((out (assoc-ref outputs "out"))
3756 (gst-plugin-path (getenv "GST_PLUGIN_SYSTEM_PATH")))
3757 (wrap-program (string-append out "/bin/gamine")
3758 `("GST_PLUGIN_SYSTEM_PATH" ":" prefix (,gst-plugin-path))))
3759 #t)))))
3760 (home-page "http://gamine-game.sourceforge.net/")
3761 (synopsis "Mouse and keyboard discovery for children")
3762 (description
3763 "Gamine is a game designed for young children who are learning to use the
3764 mouse and keyboard. The child uses the mouse to draw colored dots and lines
3765 on the screen and keyboard to display letters.")
3766 ;; Most files under gpl2+ or gpl3+, but eat.wav under gpl3
3767 (license license:gpl3)))
3768
3769 (define-public manaplus
3770 (package
3771 (name "manaplus")
3772 (version "1.9.3.23")
3773 (source (origin
3774 (method url-fetch)
3775 (uri (string-append
3776 "https://repo.manaplus.org/manaplus/download/"
3777 version "/manaplus-" version ".tar.xz"))
3778 (sha256
3779 (base32
3780 "1ky182p4svwdqm6cf7jbns85hidkhkhq4s17cs2p381f0klapfjz"))))
3781 (build-system gnu-build-system)
3782 (arguments
3783 '(#:configure-flags
3784 (list (string-append "CPPFLAGS=-I"
3785 (assoc-ref %build-inputs "sdl-union")
3786 "/include/SDL"))))
3787 (native-inputs
3788 `(("pkg-config" ,pkg-config)))
3789 (inputs
3790 `(("glu" ,glu)
3791 ("curl" ,curl)
3792 ("libxml2" ,libxml2)
3793 ("mesa" ,mesa)
3794 ("sdl-union" ,(sdl-union))))
3795 (home-page "https://manaplus.org")
3796 (synopsis "Client for 'The Mana World' and similar games")
3797 (description
3798 "ManaPlus is a 2D MMORPG client for game servers. It is the only
3799 fully supported client for @uref{http://www.themanaworld.org, The mana
3800 world}, @uref{http://evolonline.org, Evol Online} and
3801 @uref{http://landoffire.org, Land of fire}.")
3802 ;; "src/debug/*" and "src/sdl2gfx/*" are under Zlib.
3803 ;; "data/themes/{golden-delicious,jewelry}/*" are under CC-BY-SA.
3804 ;; The rest is under GPL2+.
3805 (license (list license:gpl2+ license:zlib license:cc-by-sa4.0))))
3806
3807 (define openttd-engine
3808 (package
3809 (name "openttd-engine")
3810 (version "1.10.0")
3811 (source
3812 (origin (method url-fetch)
3813 (uri (string-append "https://cdn.openttd.org/openttd-releases/"
3814 version "/openttd-" version "-source.tar.xz"))
3815 (sha256
3816 (base32
3817 "0lz2y2rjc23k0d97y65cqhy2splw9cmrbvhgz0iqps8xkan1m8hv"))))
3818 (build-system gnu-build-system)
3819 (arguments
3820 `(#:tests? #f ; no "check" target
3821 #:phases
3822 (modify-phases %standard-phases
3823 ;; The build process fails if the configure script is passed the
3824 ;; option "--enable-fast-install".
3825 (replace 'configure
3826 (lambda* (#:key inputs outputs (configure-flags '())
3827 #:allow-other-keys)
3828 (let ((out (assoc-ref outputs "out"))
3829 (lzo (assoc-ref inputs "lzo")))
3830 (apply invoke "./configure"
3831 (string-append "--prefix=" out)
3832 ;; Provide the "lzo" path.
3833 (string-append "--with-liblzo2="
3834 lzo "/lib/liblzo2.a")
3835 ;; Put the binary in 'bin' instead of 'games'.
3836 "--binary-dir=bin"
3837 configure-flags)))))))
3838 (native-inputs `(("pkg-config" ,pkg-config)))
3839 (inputs
3840 `(("allegro" ,allegro)
3841 ("fontconfig" ,fontconfig)
3842 ("freetype" ,freetype)
3843 ("icu4c" ,icu4c)
3844 ("libpng" ,libpng)
3845 ("lzo" ,lzo)
3846 ("sdl" ,sdl)
3847 ("xz" ,xz)
3848 ("zlib" ,zlib)))
3849 (synopsis "Transportation economics simulator game")
3850 (description "OpenTTD is a game in which you transport goods and
3851 passengers by land, water and air. It is a re-implementation of Transport
3852 Tycoon Deluxe with many enhancements including multiplayer mode,
3853 internationalization support, conditional orders and the ability to clone,
3854 autoreplace and autoupdate vehicles. This package only includes the game
3855 engine. When you start it you will be prompted to download a graphics set.")
3856 (home-page "https://www.openttd.org/")
3857 ;; This package is GPLv2, except for a few files located in
3858 ;; "src/3rdparty/" which are under the 3-clause BSD, LGPLv2.1+ and Zlib
3859 ;; licenses. In addition, this software contains an in-game downloader
3860 ;; from which the user may find non-functional data licensed under
3861 ;; different terms.
3862 (license (list license:bsd-3 license:gpl2 license:lgpl2.1+ license:zlib))))
3863
3864 (define openttd-opengfx
3865 (package
3866 (name "openttd-opengfx")
3867 (version "0.6.0")
3868 (source
3869 (origin
3870 (method url-fetch)
3871 (uri (string-append "https://cdn.openttd.org/opengfx-releases/"
3872 version "/opengfx-" version "-source.tar.xz"))
3873 (sha256
3874 (base32
3875 "0qxc6gl2gxcrn1np88dnjgbaaakkkx96b13rcmy1spryc8c09hyr"))))
3876 (build-system gnu-build-system)
3877 (arguments
3878 '(#:make-flags (list "CC=gcc"
3879 (string-append "INSTALL_DIR="
3880 (assoc-ref %outputs "out")
3881 "/share/games/openttd/baseset/opengfx"))
3882 #:phases
3883 (modify-phases %standard-phases
3884 (replace 'configure
3885 (lambda _
3886 ;; Make sure HOME is writable for GIMP.
3887 (setenv "HOME" (getcwd))
3888
3889 ;; Redirect stdout, not stderr, to /dev/null. This prevents
3890 ;; dos2unix from receiving its version information as a flag.
3891 (substitute* "Makefile"
3892 (("\\$\\(UNIX2DOS\\) -q --version 2>/dev/null")
3893 "$(UNIX2DOS) -q --version 1>/dev/null")))))
3894 ;; The check phase for this package only checks the md5sums of the built
3895 ;; GRF files against the md5sums of the release versions. Because we use
3896 ;; different software versions than upstream does, some of the md5sums
3897 ;; are different. However, the package is still reproducible, it's safe
3898 ;; to disable this test.
3899 #:tests? #f
3900 #:parallel-build? #f))
3901 (native-inputs `(("dos2unix" ,dos2unix)
3902 ("gimp" ,gimp)
3903 ("grfcodec" ,grfcodec)
3904 ("nml" ,nml)
3905 ("which" ,which)
3906 ("python" ,python-2)))
3907 (home-page "http://dev.openttdcoop.org/projects/opengfx")
3908 (synopsis "Base graphics set for OpenTTD")
3909 (description
3910 "The OpenGFX projects is an implementation of the OpenTTD base grahics
3911 set that aims to ensure the best possible out-of-the-box experience.
3912
3913 OpenGFX provides you with...
3914 @enumerate
3915 @item All graphics you need to enjoy OpenTTD.
3916 @item Uniquely drawn rail vehicles for every climate.
3917 @item Completely snow-aware rivers.
3918 @item Different river and sea water.
3919 @item Snow-aware buoys.
3920 @end enumerate")
3921 (license license:gpl2)))
3922
3923 (define openttd-opensfx
3924 (package
3925 (name "openttd-opensfx")
3926 (version "0.2.3")
3927 (source
3928 (origin
3929 (method url-fetch)
3930 (uri (string-append
3931 "https://binaries.openttd.org/extra/opensfx/"
3932 version "/opensfx-" version "-source.tar.gz"))
3933 (sha256
3934 (base32
3935 "03jxgp02ks31hmsdh4xh0xcpkb70ds8jakc9pfc1y9vdrdavh4p5"))))
3936 (build-system gnu-build-system)
3937 (native-inputs
3938 `(("catcodec" ,catcodec)
3939 ("python" ,python-2)))
3940 (arguments
3941 `(#:make-flags
3942 (list (string-append "INSTALL_DIR=" %output
3943 "/share/games/openttd/baseset/opensfx"))
3944 #:phases
3945 (modify-phases %standard-phases
3946 (add-after 'unpack 'make-reproducible
3947 (lambda _
3948 ;; Remove the time dependency of the installed tarball by setting
3949 ;; the modification times if its members to 0.
3950 (substitute* "scripts/Makefile.def"
3951 (("-cf") " --mtime=@0 -cf"))
3952 #t))
3953 (delete 'configure))))
3954 (home-page "http://dev.openttdcoop.org/projects/opensfx")
3955 (synopsis "Base sounds for OpenTTD")
3956 (description "OpenSFX is a set of free base sounds for OpenTTD which make
3957 it possible to play OpenTTD without requiring the proprietary sound files from
3958 the original Transport Tycoon Deluxe.")
3959 (license license:cc-sampling-plus-1.0)))
3960
3961 (define openttd-openmsx
3962 (package
3963 (name "openttd-openmsx")
3964 (version "0.3.1")
3965 (source
3966 (origin
3967 (method url-fetch)
3968 (uri (string-append
3969 "https://binaries.openttd.org/extra/openmsx/"
3970 version "/openmsx-" version "-source.tar.gz"))
3971 (sha256
3972 (base32
3973 "0nskq97a6fsv1v6d62zf3yb8whzhqnlh3lap3va3nzvj7csjgf7c"))))
3974 (build-system gnu-build-system)
3975 (native-inputs
3976 `(("python" ,python-2)))
3977 (arguments
3978 `(#:make-flags
3979 (list (string-append "INSTALL_DIR=" %output
3980 "/share/games/openttd/baseset"))
3981 #:phases
3982 (modify-phases %standard-phases
3983 (delete 'configure)
3984 (add-after 'install 'post-install
3985 ;; Rename openmsx-version to openmsx
3986 (lambda* (#:key outputs #:allow-other-keys)
3987 (let ((install-directory (string-append (assoc-ref outputs "out")
3988 "/share/games/openttd/baseset")))
3989 (rename-file (string-append install-directory "/openmsx-" ,version)
3990 (string-append install-directory "/openmsx"))
3991 #t))))))
3992 (home-page "http://dev.openttdcoop.org/projects/openmsx")
3993 (synopsis "Music set for OpenTTD")
3994 (description "OpenMSX is a music set for OpenTTD which makes it possible
3995 to play OpenTTD without requiring the proprietary music from the original
3996 Transport Tycoon Deluxe.")
3997 (license license:gpl2)))
3998
3999 (define-public openttd
4000 (package
4001 (inherit openttd-engine)
4002 (name "openttd")
4003 (arguments
4004 `(#:configure-flags
4005 (list (string-append "--with-midi=" (assoc-ref %build-inputs "timidity++")
4006 "/bin/timidity"))
4007 ,@(substitute-keyword-arguments (package-arguments openttd-engine)
4008 ((#:phases phases)
4009 `(modify-phases ,phases
4010 (add-after 'install 'install-data
4011 (lambda* (#:key inputs outputs #:allow-other-keys)
4012 (for-each
4013 (lambda (input)
4014 (copy-recursively (assoc-ref inputs input)
4015 (assoc-ref outputs "out")))
4016 (list "opengfx" "openmsx" "opensfx"))
4017 #t)))))))
4018 (inputs
4019 `(("timidity++" ,timidity++)
4020 ,@(package-inputs openttd-engine)))
4021 (native-inputs
4022 `(("opengfx" ,openttd-opengfx)
4023 ("openmsx" ,openttd-openmsx)
4024 ("opensfx" ,openttd-opensfx)
4025 ,@(package-native-inputs openttd-engine)))))
4026
4027 (define openrct2-title-sequences
4028 (package
4029 (name "openrct2-title-sequences")
4030 (version "0.1.2")
4031 (source
4032 (origin
4033 (method url-fetch)
4034 (uri (string-append "https://github.com/OpenRCT2/title-sequences/releases/download/v"
4035 version "/title-sequence-v" version ".zip"))
4036 (file-name (string-append name "-" version ".zip"))
4037 (sha256
4038 (base32
4039 "0qbyxrsw8hlgaq0r5d7lx7an3idy4qbfv7yiw9byhldk763n9cfw"))))
4040 (build-system trivial-build-system)
4041 (native-inputs
4042 `(("bash" ,bash)
4043 ("coreutils" ,coreutils)
4044 ("unzip" ,unzip)))
4045 (arguments
4046 `(#:modules ((guix build utils))
4047 #:builder
4048 (begin
4049 (use-modules (guix build utils))
4050 (let* ((out (assoc-ref %outputs "out"))
4051 (openrct2-title-sequences (string-append out
4052 "/share/openrct2/title-sequences"))
4053 (source (assoc-ref %build-inputs "source"))
4054 (unzip (string-append (assoc-ref %build-inputs "unzip") "/bin/unzip")))
4055 (copy-file source (string-append ,name "-" ,version ".zip"))
4056 (invoke unzip (string-append ,name "-" ,version ".zip"))
4057 (delete-file (string-append ,name "-" ,version ".zip"))
4058 (mkdir-p openrct2-title-sequences)
4059 (copy-recursively "."
4060 openrct2-title-sequences)
4061 #t))))
4062 (home-page "https://github.com/OpenRCT2/OpenRCT2")
4063 (synopsis "Title sequences for OpenRCT2")
4064 (description
4065 "openrct2-title-sequences is a set of title sequences for OpenRCT2.")
4066 (license license:gpl3+)))
4067
4068 (define openrct2-objects
4069 (package
4070 (name "openrct2-objects")
4071 (version "1.0.9")
4072 (source
4073 (origin
4074 (method url-fetch)
4075 (uri (string-append "https://github.com/OpenRCT2/objects/releases/download/v"
4076 version "/objects.zip"))
4077 (file-name (string-append name "-" version ".zip"))
4078 (sha256
4079 (base32 "02apb8h553m7d6jvysgb1zahvxc1yzyygfca2iclb21b3fhpsas4"))))
4080 (build-system trivial-build-system)
4081 (native-inputs
4082 `(("bash" ,bash)
4083 ("coreutils" ,coreutils)
4084 ("unzip" ,unzip)))
4085 (arguments
4086 `(#:modules ((guix build utils))
4087 #:builder
4088 (begin
4089 (use-modules (guix build utils))
4090 (let* ((out (assoc-ref %outputs "out"))
4091 (openrct2-objects (string-append out
4092 "/share/openrct2/objects"))
4093 (source (assoc-ref %build-inputs "source"))
4094 (unzip (string-append (assoc-ref %build-inputs "unzip") "/bin/unzip")))
4095 (copy-file source (string-append ,name "-" ,version ".zip"))
4096 (invoke unzip (string-append ,name "-" ,version ".zip"))
4097 (delete-file (string-append ,name "-" ,version ".zip"))
4098 (mkdir-p openrct2-objects)
4099 (copy-recursively "."
4100 openrct2-objects)
4101 #t))))
4102 (home-page "https://github.com/OpenRCT2/OpenRCT2")
4103 (synopsis "Objects for OpenRCT2")
4104 (description
4105 "openrct2-objects is a set of objects for OpenRCT2.")
4106 (license license:gpl3+)))
4107
4108 (define-public openrct2
4109 (package
4110 (name "openrct2")
4111 (version "0.2.6")
4112 (source
4113 (origin
4114 (method git-fetch)
4115 (uri (git-reference
4116 (url "https://github.com/OpenRCT2/OpenRCT2")
4117 (commit (string-append "v" version))))
4118 (file-name (git-file-name name version))
4119 (sha256
4120 (base32 "1vikbkg3wh5ngzdfilb6irbh6nqinf138qpdz8wz9izlvl8s36k4"))))
4121 (build-system cmake-build-system)
4122 (arguments
4123 `(#:configure-flags (list "-DDOWNLOAD_OBJECTS=OFF"
4124 "-DDOWNLOAD_TITLE_SEQUENCES=OFF")
4125 #:tests? #f ; tests require network access
4126 #:phases
4127 (modify-phases %standard-phases
4128 (add-after 'unpack 'fix-usr-share-paths&add-data
4129 (lambda* (#:key inputs outputs #:allow-other-keys)
4130 (let ((titles (assoc-ref inputs "openrct2-title-sequences"))
4131 (objects (assoc-ref inputs "openrct2-objects")))
4132 ;; Fix some references to /usr/share.
4133 (substitute* "src/openrct2/platform/Platform.Linux.cpp"
4134 (("/usr/share")
4135 (string-append (assoc-ref %outputs "out") "/share")))
4136 (copy-recursively
4137 (string-append titles "/share/openrct2/title-sequences")
4138 "data/title")
4139 (copy-recursively
4140 (string-append objects "/share/openrct2/objects")
4141 "data/object"))))
4142 (add-before 'configure 'get-rid-of-errors
4143 (lambda _
4144 ;; Don't treat warnings as errors.
4145 (substitute* "CMakeLists.txt"
4146 (("-Werror") ""))
4147 #t)))))
4148 (inputs `(("curl" ,curl)
4149 ("fontconfig" ,fontconfig)
4150 ("freetype" ,freetype)
4151 ("icu4c" ,icu4c)
4152 ("jansson" ,jansson)
4153 ("libpng" ,libpng)
4154 ("libzip" ,libzip)
4155 ("mesa" ,mesa)
4156 ("openrct2-objects" ,openrct2-objects)
4157 ("openrct2-title-sequences" ,openrct2-title-sequences)
4158 ("openssl" ,openssl)
4159 ("sdl2" ,sdl2)
4160 ("speexdsp" ,speexdsp)
4161 ("zlib" ,zlib)))
4162 (native-inputs
4163 `(("pkg-config" ,pkg-config)))
4164 (home-page "https://github.com/OpenRCT2/OpenRCT2")
4165 (synopsis "Free software re-implementation of RollerCoaster Tycoon 2")
4166 (description "OpenRCT2 is a free software re-implementation of
4167 RollerCoaster Tycoon 2 (RCT2). The gameplay revolves around building and
4168 maintaining an amusement park containing attractions, shops and facilities.
4169
4170 Note that this package does @emph{not} provide the game assets (sounds,
4171 images, etc.)")
4172 ;; See <https://github.com/OpenRCT2/OpenRCT2/wiki/Required-RCT2-files>
4173 ;; regarding assets.
4174 (license license:gpl3+)))
4175
4176 (define-public pinball
4177 (package
4178 (name "pinball")
4179 (version "0.3.1")
4180 (source
4181 (origin (method url-fetch)
4182 (uri (string-append "mirror://sourceforge/pinball/pinball/"
4183 "pinball-" version "/"
4184 "pinball-" version ".tar.gz"))
4185 (sha256
4186 (base32
4187 "1f2whlrfidwfh8lvr8cspcyirc6840r5d1ajm7x99qmngygrhixs"))
4188 (patches (search-patches "pinball-const-fix.patch"
4189 "pinball-cstddef.patch"
4190 "pinball-missing-separators.patch"
4191 "pinball-src-deps.patch"
4192 "pinball-system-ltdl.patch"))))
4193 (build-system gnu-build-system)
4194 (inputs
4195 `(("glu" ,glu)
4196 ("mesa" ,mesa)
4197 ("sdl" ,sdl)
4198 ("sdl-image" ,sdl-image)
4199 ("sdl-mixer" ,sdl-mixer)))
4200 (arguments
4201 '(#:configure-flags
4202 (list (string-append "CPPFLAGS=-I"
4203 (assoc-ref %build-inputs "sdl-image")
4204 "/include/SDL -I"
4205 (assoc-ref %build-inputs "sdl-mixer")
4206 "/include/SDL"))))
4207 (home-page "http://pinball.sourceforge.net")
4208 (synopsis "Pinball simulator")
4209 (description "The Emilia Pinball Project is a pinball simulator. There
4210 are only two levels to play with, but they are very addictive.")
4211 (license license:gpl2)))
4212
4213 (define-public pioneers
4214 (package
4215 (name "pioneers")
4216 (version "15.6")
4217 (source (origin
4218 (method url-fetch)
4219 (uri (string-append "https://downloads.sourceforge.net/pio/"
4220 "pioneers-" version ".tar.gz"))
4221 (sha256
4222 (base32
4223 "07b3xdd81n8ybsb4fzc5lx0813y9crzp1hj69khncf4faj48sdcs"))))
4224 (build-system gnu-build-system)
4225 (inputs `(("avahi" ,avahi)
4226 ("gtk+" ,gtk+)
4227 ("librsvg" ,librsvg)))
4228 (native-inputs `(("intltool" ,intltool)
4229 ("itstool" ,itstool)
4230 ("libxml2" ,libxml2)
4231 ("pkg-config" ,pkg-config)))
4232 (synopsis "Board game inspired by The Settlers of Catan")
4233 (description "Pioneers is an emulation of the board game The Settlers of
4234 Catan. It can be played on a local network, on the internet, and with AI
4235 players.")
4236 (home-page "http://pio.sourceforge.net/")
4237 (license license:gpl2+)))
4238
4239 (define-public einstein
4240 (package
4241 (name "einstein")
4242 (version "2.0")
4243 (source (origin
4244 (method url-fetch)
4245 (uri (string-append "mirror://debian/pool/main/e/"
4246 "einstein/einstein_2.0.dfsg.2.orig.tar.gz"))
4247 (sha256
4248 (base32
4249 "1hxrlv6n8py48j487i6wbb4n4vd55w0na69r7ccmmr9vmrsw5mlk"))
4250 (patches (search-patches "einstein-build.patch"))))
4251 (build-system gnu-build-system)
4252 (inputs
4253 `(("freetype" ,freetype)
4254 ("sdl" ,(sdl-union (list sdl sdl-mixer sdl-ttf)))
4255 ("zlib" ,zlib)))
4256 (native-inputs
4257 `(("font-dejavu" ,font-dejavu)))
4258 (arguments
4259 `(#:tests? #f ; no check target
4260 #:phases
4261 (modify-phases %standard-phases
4262 (replace 'configure
4263 (lambda* (#:key outputs inputs #:allow-other-keys)
4264 (let ((out (assoc-ref outputs "out"))
4265 (dejavu (string-append (assoc-ref inputs "font-dejavu")
4266 "/share/fonts/truetype/DejaVuSans.ttf")))
4267 (substitute* "Makefile"
4268 (("PREFIX=/usr/local") (string-append "PREFIX=" out)))
4269 ;; The patch above registers a free font for use by the binary,
4270 ;; but the font is copied during the compile phase into a
4271 ;; resources file, so we need to make the ttf file available.
4272 (symlink dejavu "res/DejaVuSans.ttf")
4273 #t))))))
4274 (synopsis "Logic puzzle game")
4275 (description "The goal of this logic game is to open all cards in a 6x6
4276 grid, using a number of hints as to their relative position. The game idea
4277 is attributed to Albert Einstein.")
4278 ;; The original home page has disappeared.
4279 (home-page (string-append "http://web.archive.org/web/20120521062745/"
4280 "http://games.flowix.com/en/index.html"))
4281 ;; License according to
4282 ;; http://web.archive.org/web/20150222180355/http://www.babichev.info/en/projects/index.html
4283 ;; The source code is a DFSG-sanitized tarball and does not contain any
4284 ;; license information.
4285 (license license:gpl3+)))
4286
4287 (define-public powwow
4288 (package
4289 (name "powwow")
4290 (version "1.2.19")
4291 (source (origin
4292 (method url-fetch)
4293 (uri (string-append
4294 "https://www.hoopajoo.net/static/projects/powwow-"
4295 version ".tar.gz"))
4296 (sha256
4297 (base32
4298 "10rjl63hmf62qslyhzqrbw3i2zf09dgxv65avhj0iiz0m4pbc9wy"))))
4299 (inputs
4300 `(("ncurses" ,ncurses)))
4301 (build-system gnu-build-system)
4302 (home-page "https://www.hoopajoo.net/projects/powwow.html")
4303 (synopsis "MUD and telnet client")
4304 (description
4305 "POWWOW is a client software which can be used for telnet as well as for
4306 @dfn{Multi-User Dungeon} (MUD). Additionally it can serve as a nice client for
4307 the chat server psyced with the specific config located at
4308 http://lavachat.symlynx.com/unix/")
4309 (license license:gpl2+)))
4310
4311 (define-public red-eclipse
4312 (let ((release "2.0.0")
4313 (revision 0))
4314 (package
4315 (name "red-eclipse")
4316 (version (if (zero? revision)
4317 release
4318 (string-append release "-"
4319 (number->string revision))))
4320 (source
4321 (origin
4322 (method git-fetch)
4323 (uri (git-reference
4324 (url "https://github.com/redeclipse/base")
4325 (commit (string-append "v" release))
4326 (recursive? #t))) ; for game data
4327 (file-name (git-file-name name version))
4328 (sha256
4329 (base32 "0sz0mqhwx8r9n4mk3qrxw420nlsm3y0n48gd0lazgd64lfqjh3ab"))
4330 (modules '((guix build utils)))
4331 (snippet
4332 ;; Remove proprietary libraries and other pre-compiled binaries.
4333 '(begin
4334 (delete-file-recursively "bin")
4335 #t))))
4336 (build-system gnu-build-system)
4337 (arguments
4338 `(#:tests? #f ; no check target
4339 #:make-flags (list "CC=gcc" "-Csrc"
4340 (string-append "INSTDIR="
4341 (assoc-ref %outputs "out") "/bin")
4342 (string-append "prefix="
4343 (assoc-ref %outputs "out")))
4344 #:phases
4345 (modify-phases %standard-phases
4346 (add-after 'unpack 'add-store-data-package-path-as-default
4347 (lambda* (#:key outputs #:allow-other-keys)
4348 (substitute* "src/engine/server.cpp"
4349 (("data = \"data\"")
4350 (string-append "data = \""
4351 (assoc-ref outputs "out")
4352 "/share/redeclipse/data\"")))
4353 #t))
4354 (delete 'configure) ; no configure script
4355 (add-after 'set-paths 'set-sdl-paths
4356 (lambda* (#:key inputs #:allow-other-keys)
4357 (setenv "CPATH"
4358 (string-append (assoc-ref inputs "sdl-union")
4359 "/include/SDL2:"
4360 (or (getenv "CPATH") "")))
4361 #t))
4362 (add-after 'install 'copy-data
4363 (lambda* (#:key outputs #:allow-other-keys)
4364 (let ((out (assoc-ref outputs "out")))
4365 (copy-recursively "config"
4366 (string-append out "/config"))
4367 (copy-file "doc/examples/servinit.cfg"
4368 (string-append out "/config/servinit.cfg"))
4369 (copy-recursively "data"
4370 (string-append out "/share/redeclipse/data"))
4371 (mkdir-p (string-append out "/lib/redeclipse"))
4372 (symlink (string-append out "/share/redeclipse/data")
4373 (string-append out "/lib/redeclipse/data")))
4374 #t))
4375 (add-after 'copy-data 'wrap-program
4376 (lambda* (#:key inputs outputs #:allow-other-keys)
4377 (let* ((out (assoc-ref outputs "out"))
4378 (bin (string-append out "/bin")))
4379 (with-directory-excursion bin
4380 (rename-file "redeclipse_linux"
4381 ".redeclipse_linux-real")
4382 (rename-file "redeclipse_server_linux"
4383 ".redeclipse_server_linux-real")
4384 (call-with-output-file "redeclipse_linux"
4385 (lambda (port)
4386 (format port "#!~a/bin/sh
4387 # Run the thing from its home, otherwise it just bails out.
4388 cd \"~a\"
4389 exec -a \"$0\" ~a/.redeclipse_linux-real~%"
4390 (assoc-ref inputs "bash") ;implicit input
4391 (string-append out)
4392 (string-append bin))))
4393 (call-with-output-file "redeclipse_server_linux"
4394 (lambda (port)
4395 (format port "#!~a/bin/sh
4396 # Run the thing from its home, otherwise it just bails out.
4397 cd \"~a\"
4398 exec -a \"$0\" ~a/.redeclipse_server_linux-real~%"
4399 (assoc-ref inputs "bash") ;implicit input
4400 (string-append out)
4401 (string-append bin))))
4402 (chmod "redeclipse_linux" #o555)
4403 (chmod "redeclipse_server_linux" #o555)))
4404 #t)))))
4405 (native-inputs
4406 `(("pkg-config" ,pkg-config)))
4407 (inputs
4408 `(("curl" ,curl)
4409 ("freetype" ,freetype)
4410 ("glu" ,glu)
4411 ("sdl-union" ,(sdl-union (list sdl2
4412 sdl2-image
4413 sdl2-mixer)))))
4414 (home-page "https://redeclipse.net/")
4415 (synopsis "Arena shooter derived from the Cube 2 engine")
4416 (description
4417 "Red Eclipse is an arena shooter, created from the Cube2 engine.
4418 Offering an innovative parkour system and distinct but all potent weapons,
4419 Red Eclipse provides fast paced and accessible gameplay.")
4420 ;; The engine is under Zlib; data files are covered by the other
4421 ;; licenses. More details at file:///doc/all-licenses.txt.
4422 (license (list license:expat
4423 license:zlib
4424 license:cc-by-sa4.0
4425 license:cc-by-sa3.0
4426 license:cc-by3.0
4427 license:cc0
4428 license:public-domain
4429 license:silofl1.1)))))
4430
4431 (define-public grue-hunter
4432 (package
4433 (name "grue-hunter")
4434 (version "1.0")
4435 (source (origin
4436 (method url-fetch)
4437 (uri (string-append "https://jxself.org/grue-hunter.tar.gz"))
4438 (sha256
4439 (base32
4440 "1hjcpy5439qs3v2zykis7hsi0i17zjs62gks3zd8mnfw9ni4i2h3"))))
4441 (build-system trivial-build-system) ; no Makefile.PL
4442 (arguments `(#:modules ((guix build utils))
4443 #:builder
4444 (begin
4445 (use-modules (guix build utils))
4446 (use-modules (srfi srfi-1))
4447
4448 (let* ((tarball (assoc-ref %build-inputs "tarball"))
4449 (perl (string-append (assoc-ref %build-inputs
4450 "perl")
4451 "/bin"))
4452 (gzip (string-append (assoc-ref %build-inputs
4453 "gzip")
4454 "/bin/gzip"))
4455 (tar (string-append (assoc-ref %build-inputs
4456 "tar")
4457 "/bin/tar"))
4458 (out (assoc-ref %outputs "out"))
4459 (bin (string-append out "/bin"))
4460 (doc (string-append out
4461 "/share/doc/grue-hunter")))
4462 (copy-file tarball "grue-hunter.tar.gz")
4463 (invoke gzip "-d" "grue-hunter.tar.gz")
4464 (invoke tar "xvf" "grue-hunter.tar")
4465
4466 (mkdir-p bin)
4467 (copy-file "grue-hunter/gh.pl"
4468 (string-append bin "/grue-hunter"))
4469 (patch-shebang (string-append bin "/grue-hunter")
4470 (list perl))
4471
4472 (install-file "grue-hunter/AGPLv3.txt" doc)
4473
4474 #t))))
4475 (inputs `(("perl" ,perl)
4476 ("tar" ,tar)
4477 ("gzip" ,gzip)
4478 ("tarball" ,source)))
4479 (home-page "https://jxself.org/grue-hunter.shtml")
4480 (synopsis "Text adventure game")
4481 (description
4482 "Grue Hunter is a text adventure game written in Perl. You must make
4483 your way through an underground cave system in search of the Grue. Can you
4484 capture it and get out alive?")
4485 (license license:agpl3+)))
4486
4487 (define-public lierolibre
4488 (package
4489 (name "lierolibre")
4490 (version "0.5")
4491 (source (origin
4492 (method url-fetch)
4493 (uri (string-append "https://launchpad.net/lierolibre/trunk/"
4494 version "/+download/lierolibre-"
4495 version ".tar.xz"))
4496 (sha256
4497 (base32
4498 "1cf1gvsn4qq190lrf9k5bpjnqwlcfw7pajvdnh7z5r4jqw0rsbl9"))
4499 (patches
4500 (search-patches "lierolibre-check-unaligned-access.patch"
4501 "lierolibre-try-building-other-arch.patch"
4502 "lierolibre-remove-arch-warning.patch"
4503 "lierolibre-newer-libconfig.patch"
4504 "lierolibre-is-free-software.patch"))
4505 (modules '((guix build utils)))
4506 (snippet
4507 '(begin
4508 ;; Delete pre-compiled files.
4509 (delete-file "data/LIERO.CHR")
4510 (delete-file "data/LIERO.SND")
4511 #t))))
4512 (build-system gnu-build-system)
4513 (native-inputs
4514 `(("imagemagick" ,imagemagick)
4515 ("pkg-config" ,pkg-config)
4516 ("util-linux" ,util-linux)
4517 ("sox" ,sox)))
4518 (inputs
4519 `(("boost" ,boost)
4520 ("libconfig" ,libconfig)
4521 ("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer)))
4522 ("zlib" ,zlib)))
4523 (home-page "https://gitlab.com/lierolibre/lierolibre")
4524 (synopsis "Old-school earthworm action game")
4525 (description
4526 "lierolibre is an earthworm action game where you fight another player
4527 (or the computer) underground using a wide array of weapons.
4528
4529 Features:
4530 @itemize
4531 @item 2 worms, 40 weapons, great playability, two game modes: Kill'em All
4532 and Game of Tag, plus AI-players without true intelligence!
4533 @item Dat nostalgia.
4534 @item Extensions via a hidden F1 menu:
4535 @itemize
4536 @item Replays
4537 @item Game controller support
4538 @item Powerlevel palettes
4539 @end itemize
4540 @item Ability to write game variables to plain text files.
4541 @item Ability to load game variables from both EXE and plain text files.
4542 @item Scripts to extract and repack graphics, sounds and levels.
4543 @end itemize
4544
4545 To switch between different window sizes, use F6, F7 and F8, to switch to
4546 fullscreen, use F5 or Alt+Enter.")
4547 ;; Code mainly BSD-2, some parts under Boost 1.0. All assets are WTFPL2.
4548 (license (list license:bsd-2 license:boost1.0 license:wtfpl2))))
4549
4550 (define-public tennix
4551 (package
4552 (name "tennix")
4553 (version "1.3.1")
4554 (source
4555 (origin
4556 (method git-fetch)
4557 (uri (git-reference
4558 (url "https://repo.or.cz/tennix.git")
4559 (commit (string-append "tennix-" version))))
4560 (file-name (git-file-name name version))
4561 (sha256
4562 (base32 "02cj4lrdrisal5s9pnbf2smx7qz9czczjzndfkhfx0qy67b957sk"))
4563 ;; Remove non-free images.
4564 (modules '((guix build utils)))
4565 (snippet
4566 '(begin
4567 (for-each delete-file
4568 '("data/loc_training_camp.png"
4569 "data/loc_austrian_open.png"
4570 "data/loc_olympic_green_tennis.png"))
4571 #t))))
4572 (build-system gnu-build-system)
4573 (arguments
4574 `(#:tests? #f ;no test
4575 #:phases
4576 (modify-phases %standard-phases
4577 (add-after 'unpack 'fix-include
4578 (lambda _
4579 (substitute* '("src/graphics.h" "src/sound.h")
4580 (("#include \"(SDL_(image|ttf|mixer)\\.h)\"" _ header)
4581 (string-append "#include \"SDL/" header "\"")))
4582 (substitute* '("src/tennix.h" "src/network.h" "src/SDL_rotozoom.h")
4583 (("#include <SDL.h>") "#include <SDL/SDL.h>")
4584 (("#include <SDL_net.h>") "#include <SDL/SDL_net.h>"))
4585 #t))
4586 (add-after 'unpack 'locate-install
4587 ;; Build process cannot expand "$(INSTALL)" in Makefile.
4588 (lambda _
4589 (substitute* "makefile"
4590 (("^CONFIGURE_OUTPUT :=.*" all)
4591 (string-append "INSTALL := install -c\n" all)))
4592 #t))
4593 (replace 'configure
4594 ;; The "configure" script is picky about the arguments it
4595 ;; gets. Call it ourselves.
4596 (lambda _
4597 (invoke "./configure" "--prefix" (assoc-ref %outputs "out")))))))
4598 (native-inputs
4599 `(("which" ,which)))
4600 (inputs
4601 `(("python" ,python-wrapper)
4602 ("sdl" ,(sdl-union (list sdl sdl-image sdl-mixer sdl-ttf sdl-net)))))
4603 (home-page "http://icculus.org/tennix/")
4604 (synopsis "Play tennis against the computer or a friend")
4605 (description "Tennix is a 2D tennis game. You can play against the
4606 computer or against another player using the keyboard. The game runs
4607 in-window at 640x480 resolution or fullscreen.")
4608 ;; Project is licensed under GPL2+ terms. It includes images
4609 ;; released under Public Domain terms, and SDL_rotozoom, released
4610 ;; under LGPL2.1 terms.
4611 (license (list license:gpl2+ license:public-domain license:lgpl2.1))))
4612
4613 (define-public warzone2100
4614 (package
4615 (name "warzone2100")
4616 (version "3.4.1")
4617 (source
4618 (origin
4619 (method url-fetch)
4620 (uri (string-append "mirror://sourceforge/warzone2100/releases/"
4621 version
4622 "/warzone2100_src.tar.xz"))
4623 (sha256
4624 (base32 "0savalmw1kp1sf8vg5aqrl5hc77p4jacxy5y9qj8k2hi2vqdfb7a"))
4625 (modules '((guix build utils)))
4626 (snippet
4627 '(begin
4628 (with-directory-excursion "3rdparty"
4629 (for-each
4630 delete-file-recursively
4631 '("discord-rpc"
4632 "miniupnp"
4633 "utfcpp")))
4634 #t))))
4635 (build-system cmake-build-system)
4636 (arguments
4637 `(#:configure-flags '("-DWZ_DISTRIBUTOR=Guix"
4638 "-DENABLE_DISCORD=off")
4639 #:tests? #f ; TODO: Tests seem to be broken, configure.ac is missing.
4640 #:phases
4641 (modify-phases %standard-phases
4642 (add-after 'unpack 'fix-utfcpp-include
4643 (lambda _
4644 (substitute* "lib/framework/wzstring.cpp"
4645 (("<utfcpp/source/utf8.h>") "<utf8.h>"))
4646 #t))
4647 (add-after 'unpack 'link-tests-with-qt
4648 (lambda _
4649 (substitute* "tests/Makefile.am"
4650 (("(framework_linktest_LDADD|maptest_LDADD) = " prefix)
4651 (string-append prefix "$(QT5_LIBS) ")))
4652 #t))
4653 (add-after 'unpack 'fix-ivis-linktest
4654 (lambda _
4655 (substitute* "tests/ivis_linktest.cpp"
4656 (("iV_DrawTextRotated.*;")
4657 (string-append "iV_DrawTextRotated(\"Press ESC to exit.\", "
4658 "100, 100, 0.0f, font_regular);")))
4659 #t)))))
4660 (native-inputs `(("asciidoc" ,asciidoc)
4661 ("asciidoctor" ,ruby-asciidoctor)
4662 ("gettext" ,gettext-minimal)
4663 ("pkg-config" ,pkg-config)
4664 ("unzip" ,unzip)
4665 ;; 7z is used to create .zip archive, not `zip' as in version 3.2.*.
4666 ("p7zip" ,p7zip)))
4667 (inputs `(("curl" ,curl)
4668 ("fontconfig" ,fontconfig)
4669 ("freetype" ,freetype)
4670 ("glew" ,glew)
4671 ("harfbuzz" ,harfbuzz)
4672 ("libtheora" ,libtheora)
4673 ("libvorbis" ,libvorbis)
4674 ("libxrandr" ,libxrandr)
4675 ("libsodium" ,libsodium)
4676 ("miniupnpc" ,miniupnpc)
4677 ("openal" ,openal)
4678 ("physfs" ,physfs)
4679 ("qtbase" ,qtbase)
4680 ("qtscript" ,qtscript)
4681 ("openssl" ,openssl)
4682 ("sdl2" ,sdl2)
4683 ("utfcpp" ,utfcpp)))
4684 (home-page "https://wz2100.net")
4685 (synopsis "3D Real-time strategy and real-time tactics game")
4686 (description
4687 "Warzone 2100 offers campaign, multi-player, and single-player skirmish
4688 modes. An extensive tech tree with over 400 different technologies, combined
4689 with the unit design system, allows for a wide variety of possible units and
4690 tactics.")
4691 ;; Everything is GPLv2+ unless otherwise specified in COPYING.NONGPL
4692 (license (list license:bsd-3
4693 license:cc0
4694 license:cc-by-sa3.0
4695 license:expat
4696 license:gpl2+
4697 license:lgpl2.1+))))
4698
4699 (define-public widelands
4700 (package
4701 (name "widelands")
4702 (version "21")
4703 (source
4704 (origin
4705 (method url-fetch)
4706 (uri (string-append "https://launchpad.net/widelands/"
4707 "build" version "/build" version "/+download/"
4708 "widelands-build" version "-source.tar.gz"))
4709 (sha256
4710 (base32 "0mz3jily0w1zxxqbnkqrp6hl88xhrwzbil9crq7gpcwidx60w7k0"))
4711 (modules '((guix build utils)))
4712 (snippet
4713 '(begin
4714 (delete-file-recursively "src/third_party/minizip")
4715 #t))
4716 (patches
4717 ;; Use system Minizip. Patch is provided by Debian, and discussed
4718 ;; upstream at <https://github.com/widelands/widelands/issues/399>.
4719 (search-patches "widelands-system-wide_minizip.patch"))))
4720 (build-system cmake-build-system)
4721 (arguments
4722 `(#:configure-flags
4723 (let* ((out (assoc-ref %outputs "out"))
4724 (share (string-append out "/share")))
4725 (list (string-append "-DCMAKE_INSTALL_PREFIX=" out "/bin")
4726 (string-append "-DWL_INSTALL_BASEDIR=" share "/widelands")
4727 (string-append "-DWL_INSTALL_DATADIR=" share "/widelands")
4728 "-DOPTION_BUILD_WEBSITE_TOOLS=OFF"
4729 ;; CMakeLists.txt does not handle properly RelWithDebInfo build
4730 ;; type. When used, no game data is installed!
4731 "-DCMAKE_BUILD_TYPE=Release"))
4732 #:phases
4733 (modify-phases %standard-phases
4734 (add-after 'unpack 'unbundle-fonts
4735 ;; Unbundle fonts already packaged in Guix. XXX: missing fonts are
4736 ;; amiri, Culmus, mmrCensus, Nakula, and Sinhala.
4737 (lambda* (#:key inputs #:allow-other-keys)
4738 (with-directory-excursion "data/i18n/fonts"
4739 (for-each (lambda (font)
4740 (delete-file-recursively font)
4741 (symlink (string-append (assoc-ref inputs font)
4742 "/share/fonts/truetype")
4743 font))
4744 '("DejaVu" "MicroHei")))
4745 #t)))))
4746 (native-inputs
4747 `(("gettext" ,gettext-minimal)
4748 ("python" ,python-wrapper)))
4749 (inputs
4750 `(("boost" ,boost)
4751 ("glew" ,glew)
4752 ("icu4c" ,icu4c)
4753 ("libpng" ,libpng)
4754 ("minizip" ,minizip)
4755 ("sdl" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer sdl2-ttf)))
4756 ("zlib" ,zlib)
4757 ;; Fonts for the ‘unbundle-fonts’ phase. Case matters in name!
4758 ("DejaVu" ,font-dejavu)
4759 ("MicroHei" ,font-wqy-microhei)))
4760 (home-page "https://www.widelands.org/")
4761 (synopsis "Fantasy real-time strategy game")
4762 (description
4763 "In Widelands, you are the regent of a small clan. You start out with
4764 nothing but your headquarters, where all your resources are stored.
4765
4766 In the course of the game, you will build an ever growing settlement. Every
4767 member of your clan will do his or her part to produce more resources---wood,
4768 food, iron, gold and more---to further this growth. The economic network is
4769 complex and different in the four tribes (Barbarians, Empire, Atlanteans, and
4770 Frisians).
4771
4772 As you are not alone in the world, you will meet other clans sooner or later.
4773 Some of them may be friendly and you may eventually trade with them. However,
4774 if you want to rule the world, you will have to train soldiers and fight.
4775
4776 Widelands offers single-player mode with different campaigns; the campaigns
4777 all tell stories of tribes and their struggle in the Widelands universe!
4778 However, settling really starts when you unite with friends over the Internet
4779 or LAN to build up new empires together---or to crush each other in the dusts
4780 of war. Widelands also offers an Artificial Intelligence to challenge you.")
4781 ;; Game is released as GPL2+. Some parts, e.g., art, are released under
4782 ;; different licenses.
4783 (license (list license:gpl2+
4784 license:expat ;src/third_party/eris
4785 license:silofl1.1 ;Widelands.ttf
4786 license:cc-by-sa3.0)))) ;some music files
4787
4788 (define-public starfighter
4789 (package
4790 (name "starfighter")
4791 (version "2.3.1")
4792 (source (origin
4793 (method url-fetch)
4794 (uri (string-append
4795 "https://github.com/pr-starfighter/starfighter/releases"
4796 "/download/v" version "/starfighter-"
4797 version "-src.tar.gz"))
4798 (sha256
4799 (base32
4800 "13396hvsj4cswlrw52kwqn37dadxps00vhr0hrqgm87fl4ih5yyx"))))
4801 (build-system gnu-build-system)
4802 (native-inputs
4803 `(("pkg-config" ,pkg-config)))
4804 (inputs
4805 `(("pango" ,pango)
4806 ("sdl2" ,sdl2)
4807 ("sdl2-image" ,sdl2-image)
4808 ("sdl2-mixer" ,sdl2-mixer)
4809 ("sdl2-ttf" ,sdl2-ttf)))
4810 (home-page "https://pr-starfighter.github.io/")
4811 (synopsis "2D scrolling shooter game")
4812 (description
4813 "In the year 2579, the intergalactic weapons corporation, WEAPCO, has
4814 dominated the galaxy. Guide Chris Bainfield and his friend Sid Wilson on
4815 their quest to liberate the galaxy from the clutches of WEAPCO. Along the
4816 way, you will encounter new foes, make new allies, and assist local rebels
4817 in strikes against the evil corporation.")
4818 ;; gfx and music are under CC-BY 3.0, CC-BY-SA 3.0, CC0 or Public Domain.
4819 (license (list license:gpl3+
4820 license:cc-by3.0
4821 license:cc-by-sa3.0
4822 license:cc0
4823 license:public-domain))))
4824
4825 (define-public chromium-bsu
4826 (package
4827 (name "chromium-bsu")
4828 (version "0.9.16.1")
4829 (source (origin
4830 (method url-fetch)
4831 (uri (string-append "mirror://sourceforge/chromium-bsu"
4832 "/Chromium B.S.U. source code/"
4833 "chromium-bsu-" version ".tar.gz"))
4834 (sha256
4835 (base32
4836 "0jk2w5b6s6nkzri585bbz16cif2fhqcnl5l1mq3rd98r9nil3hd1"))))
4837 (build-system gnu-build-system)
4838 (native-inputs `(("pkg-config" ,pkg-config)))
4839 (inputs `(("gettext" ,gettext-minimal)
4840 ("glu" ,glu)
4841 ("quesoglc" ,quesoglc)
4842 ("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer)))))
4843 (home-page "http://chromium-bsu.sourceforge.net/")
4844 (synopsis "Fast-paced, arcade-style, top-scrolling space shooter")
4845 (description
4846 "In this game you are the captain of the cargo ship Chromium B.S.U. and
4847 are responsible for delivering supplies to the troops on the front line. Your
4848 ship has a small fleet of robotic fighters which you control from the relative
4849 safety of the Chromium vessel.")
4850 ;; Clarified Artistic License for everything but sound, which is covered
4851 ;; by the Expat License.
4852 (license (list license:clarified-artistic license:expat))))
4853
4854 (define-public tuxpaint
4855 (package
4856 (name "tuxpaint")
4857 (version "0.9.23") ;keep VER_DATE below in sync
4858 (source
4859 (origin
4860 (method url-fetch)
4861 (uri (string-append "mirror://sourceforge/tuxpaint/tuxpaint/"
4862 version "/tuxpaint-" version ".tar.gz"))
4863 (sha256
4864 (base32
4865 "09k9pxi88r3dx6dyjwf9h85d4qpva4i29qz63dc558hg9v21k69l"))
4866 (modules '((guix build utils)))
4867 (snippet
4868 '(begin
4869 ;; Remove win32 directory which contains binary dll's and the
4870 ;; deprecated visualc directory.
4871 (for-each delete-file-recursively '("win32" "visualc"))
4872 (substitute* "Makefile"
4873 ;; Do not rely on $(GPERF) being an absolute file name
4874 (("\\[ -x \\$\\(GPERF\\) \\]")
4875 "$(GPERF) --version >/dev/null 2>&1"))
4876 #t))
4877 (patches (search-patches "tuxpaint-stamps-path.patch"))))
4878 (build-system gnu-build-system)
4879 (native-inputs
4880 `(("gperf" ,gperf)
4881 ("pkg-config" ,pkg-config)))
4882 (inputs
4883 `(("cairo" ,cairo)
4884 ("fribidi" ,fribidi)
4885 ("gettext" ,gettext-minimal)
4886 ("libpng" ,libpng)
4887 ("librsvg" ,librsvg)
4888 ("libpaper" ,libpaper)
4889 ("netpbm" ,netpbm)
4890 ("sdl" ,(sdl-union (list sdl sdl-mixer sdl-ttf sdl-image)))))
4891 ;; TODO: Use system fonts rather than those in data/fonts
4892 (arguments
4893 `(#:make-flags `("VER_DATE=2018-09-02"
4894 "GPERF=gperf" "CC=gcc"
4895 "SDL_PCNAME=sdl SDL_image SDL_mixer SDL_ttf"
4896 ,(string-append "PREFIX=" %output)
4897 "KDE_PREFIX=$(PREFIX)/share/applications"
4898 "KDE_ICON_PREFIX=$(PREFIX)/share/icons/"
4899 "COMPLETIONDIR=$(PREFIX)/etc/bash_completion.d")
4900 #:parallel-build? #f ;fails on some systems
4901 #:tests? #f ;No tests
4902 #:phases (modify-phases %standard-phases
4903 (delete 'configure) ;no configure phase
4904 (add-before 'install 'no-sys-cache
4905 (lambda _ ;do not rebuild system conf cache
4906 (substitute* "Makefile"
4907 (("kbuildsycoca4") ""))
4908 #t))
4909 (add-after 'install 'fix-import
4910 (lambda* (#:key inputs outputs #:allow-other-keys)
4911 (let* ((out (assoc-ref outputs "out"))
4912 (net (assoc-ref inputs "netpbm"))
4913 (tpi (string-append out "/bin/tuxpaint-import")))
4914 (substitute* tpi
4915 ;; Point to installation prefix so that the default
4916 ;; configure file is found.
4917 (("/usr/local") out))
4918 ;; tuxpaint-import uses a bunch of programs from
4919 ;; netpbm, so make sure it knows where those are
4920 (wrap-program tpi
4921 `("PATH" ":" prefix
4922 (,(string-append net "/bin"))))))))))
4923 (native-search-paths
4924 (list (search-path-specification
4925 (variable "TUXPAINT_STAMPS_PATH")
4926 (files '("share/tuxpaint/stamps")))))
4927 (home-page "http://www.tuxpaint.org")
4928 (synopsis "Drawing software for children")
4929 (description
4930 "Tux Paint is a free drawing program designed for young children (kids
4931 ages 3 and up). It has a simple, easy-to-use interface; fun sound effects;
4932 and an encouraging cartoon mascot who helps guide children as they use the
4933 program. It provides a blank canvas and a variety of drawing tools to help
4934 your child be creative.")
4935 (license license:gpl2+)))
4936
4937 (define-public tuxpaint-stamps
4938 (package
4939 (name "tuxpaint-stamps")
4940 (version "2018.09.01")
4941 (source
4942 (origin
4943 (method url-fetch)
4944 (uri (string-append "mirror://sourceforge/tuxpaint/tuxpaint-stamps/"
4945 (string-map (λ (x) (if (eq? x #\.) #\- x)) version)
4946 "/tuxpaint-stamps-" version ".tar.gz"))
4947 (sha256
4948 (base32
4949 "1skr23k27yj3vgwfazpzxp90lb2a278gxrkr3bxw7az6zpkmb3yp"))))
4950 (build-system trivial-build-system)
4951 (native-inputs
4952 `(("tar" ,tar)
4953 ("gzip" ,gzip)))
4954 (arguments
4955 `(#:modules ((guix build utils))
4956 #:builder (begin
4957 (use-modules (guix build utils))
4958 (setenv "PATH"
4959 (string-append
4960 (assoc-ref %build-inputs "tar") "/bin" ":"
4961 (assoc-ref %build-inputs "gzip") "/bin"))
4962 (invoke "tar" "xvf" (assoc-ref %build-inputs "source"))
4963 (chdir (string-append ,name "-" ,version))
4964 (let ((dir (string-append %output "/share/tuxpaint/stamps")))
4965 (mkdir-p dir)
4966 (copy-recursively "stamps" dir))
4967 #t)))
4968 (home-page (package-home-page tuxpaint))
4969 (synopsis "Stamp images for Tux Paint")
4970 (description
4971 "This package contains a set of \"Rubber Stamp\" images which can be used
4972 with the \"Stamp\" tool within Tux Paint.")
4973 (license license:gpl2+)))
4974
4975 (define-public tuxpaint-config
4976 (package
4977 (name "tuxpaint-config")
4978 (version "0.0.14") ;keep VER_DATE below in sync
4979 (source
4980 (origin
4981 (method url-fetch)
4982 (uri (string-append "mirror://sourceforge/tuxpaint/tuxpaint-config/"
4983 version "/tuxpaint-config-" version ".tar.gz"))
4984 (sha256
4985 (base32
4986 "0zkgxk436nqcp43zghkfmh397c7dvh5bwn2as7gwvv208bzyij6g"))))
4987 (build-system gnu-build-system)
4988 (native-inputs
4989 `(("gettext" ,gettext-minimal)))
4990 (inputs
4991 `(("fltk" ,fltk)
4992 ("libpaper" ,libpaper)
4993 ;; TODO: Should the following be propagated by fltk?
4994 ("libx11" ,libx11)
4995 ("libxft" ,libxft)
4996 ("mesa" ,mesa)))
4997 (arguments
4998 `(#:make-flags `("VER_DATE=2018-09-01"
4999 "CONFDIR=/etc/tuxpaint" ;don't write to store
5000 ,(string-append "PREFIX=" %output)
5001 "GNOME_PREFIX=$(PREFIX)")
5002 #:parallel-build? #f ;race conditions
5003 #:tests? #f ;no tests
5004 #:phases (modify-phases %standard-phases
5005 (delete 'configure) ;no configure phase
5006 (add-before 'install 'gzip-no-name
5007 (lambda* _
5008 (substitute* "Makefile"
5009 ;; tuxpaint-config compresses its own documentation;
5010 ;; make sure it uses flags for reproducibility.
5011 (("gzip") "gzip --no-name"))))
5012 (add-before 'install 'make-install-dirs
5013 (lambda* (#:key outputs #:allow-other-keys)
5014 (let ((out (assoc-ref outputs "out")))
5015 (mkdir-p (string-append out "/bin"))
5016 #t))))))
5017 (home-page (package-home-page tuxpaint))
5018 (synopsis "Configure Tux Paint")
5019 (description
5020 "Tux Paint Config is a graphical configuration editor for Tux Paint.")
5021 (license license:gpl2))) ;no "or later" present
5022
5023 (define-public supertux
5024 (package
5025 (name "supertux")
5026 (version "0.6.2")
5027 (source (origin
5028 (method url-fetch)
5029 (uri (string-append "https://github.com/SuperTux/supertux/"
5030 "releases/download/v" version "/SuperTux-v"
5031 version "-Source.tar.gz"))
5032 (file-name (string-append name "-" version ".tar.gz"))
5033 (sha256
5034 (base32
5035 "167m3z4m8n76dvbv42m1fnvabpbpsxvr28zk9641916jl9pfba96"))
5036 (patches
5037 (search-patches "supertux-unbundle-squirrel.patch"))))
5038 (arguments
5039 '(#:tests? #f
5040 #:configure-flags '("-DINSTALL_SUBDIR_BIN=bin"
5041 "-DUSE_SYSTEM_PHYSFS=ON")
5042 #:phases
5043 (modify-phases %standard-phases
5044 (add-after 'unpack 'patch-squirrel-path
5045 (lambda* (#:key inputs #:allow-other-keys)
5046 (let ((squirrel (assoc-ref inputs "squirrel")))
5047 (substitute* "CMakeLists.txt"
5048 (("set\\(SQUIRREL_PREFIX.*")
5049 (string-append "set(SQUIRREL_PREFIX " squirrel ")"))
5050 (("add_dependencies\\(supertux2_lib squirrel\\)") "")
5051 (("\\$\\{SQUIRREL_PREFIX\\}/include")
5052 (string-append "${SQUIRREL_PREFIX}/include/squirrel"))))
5053 #t)))))
5054 (build-system cmake-build-system)
5055 (inputs `(("sdl2" ,sdl2)
5056 ("sdl2-image" ,sdl2-image)
5057 ("sdl2-mixer" ,sdl2-mixer)
5058 ("openal" ,openal)
5059 ("mesa" ,mesa)
5060 ("glew" ,glew)
5061 ("libvorbis" ,libvorbis)
5062 ("libogg" ,libogg)
5063 ("physfs" ,physfs)
5064 ("curl" ,curl)
5065 ("boost" ,boost)
5066 ("freetype" ,freetype)
5067 ("squirrel" ,squirrel)))
5068 (native-inputs
5069 `(("pkg-config" ,pkg-config)))
5070 (synopsis "2D platformer game")
5071 (description "SuperTux is a classic 2D jump'n run sidescroller game in
5072 a style similar to the original Super Mario games.")
5073 (home-page "https://supertux.org/")
5074 (license license:gpl3+)))
5075
5076 (define-public tintin++
5077 (package
5078 (name "tintin++")
5079 (version "2.02.02")
5080 (source
5081 (origin
5082 (method url-fetch)
5083 (uri (string-append "mirror://sourceforge/tintin/TinTin++ Source Code/"
5084 (string-drop-right version 1)
5085 "/tintin-" version ".tar.gz"))
5086 (sha256
5087 (base32 "11ylbp8ip7dwmh4gzb53z147pcfxkl3lwhyy8ngyn2zc634vdn65"))))
5088 (inputs
5089 `(("gnutls" ,gnutls)
5090 ("pcre" ,pcre)
5091 ("readline" ,readline)
5092 ("zlib" ,zlib)))
5093 (arguments
5094 '(#:tests? #f ; no test suite
5095 #:phases
5096 (modify-phases %standard-phases
5097 ;; The source is in tt/src.
5098 (add-before 'configure 'chdir
5099 (lambda _
5100 (chdir "src")
5101 #t)))))
5102 (build-system gnu-build-system)
5103 (home-page "https://tintin.mudhalla.net/")
5104 (synopsis "MUD client")
5105 (description
5106 "TinTin++ is a MUD client which supports MCCP (Mud Client Compression
5107 Protocol), MMCP (Mud Master Chat Protocol), xterm 256 colors, most TELNET
5108 options used by MUDs, as well as those required to login via telnet on
5109 Linux / Mac OS X servers, and an auto mapper with a VT100 map display.")
5110 (license license:gpl3+)))
5111
5112 (define-public laby
5113 (package
5114 (name "laby")
5115 (version "0.6.4")
5116 (source
5117 (origin (method git-fetch)
5118 (uri (git-reference
5119 (url "https://github.com/sgimenez/laby")
5120 (commit (string-append name "-" version))))
5121 (file-name (git-file-name name version))
5122 (sha256
5123 (base32
5124 "12fq9hhrxpzgfinmj9ra9ckss9yficwdlrmgjvvsq7agvh3sgyl1"))
5125 (patches (search-patches "laby-make-install.patch"))))
5126 (build-system gnu-build-system)
5127 (inputs
5128 `(("lablgtk" ,lablgtk)
5129 ("ocaml" ,ocaml)
5130 ("ocaml-findlib" ,ocaml-findlib)
5131 ("ocamlbuild" ,ocamlbuild)))
5132 (arguments
5133 '(#:phases
5134 (modify-phases %standard-phases
5135 (delete 'configure)
5136 (add-before 'build 'allow-unsafe-strings
5137 ;; Fix a build failure with ocaml >=4.06.0.
5138 ;; See <https://github.com/sgimenez/laby/issues/53>.
5139 (lambda _
5140 (setenv "OCAMLPARAM" "safe-string=0,_")
5141 #t))
5142 (add-before 'build 'set-library-path
5143 (lambda* (#:key inputs #:allow-other-keys)
5144 (let ((lablgtk (assoc-ref inputs "lablgtk")))
5145 (setenv "LD_LIBRARY_PATH"
5146 (string-append lablgtk "/lib/ocaml/stublibs"))))))
5147 #:tests? #f ; no 'check' target
5148 #:make-flags
5149 (list (string-append "PREFIX=" (assoc-ref %outputs "out")) "all")))
5150 (home-page "https://sgimenez.github.io/laby/")
5151 (synopsis "Programming game")
5152 (description "Learn programming, playing with ants and spider webs ;-)
5153 Your robot ant can be programmed in many languages: OCaml, Python, C, C++,
5154 Java, Ruby, Lua, JavaScript, Pascal, Perl, Scheme, Vala, Prolog. Experienced
5155 programmers may also add their own favorite language.")
5156 (license license:gpl3+)))
5157
5158 (define-public bambam
5159 (package
5160 (name "bambam")
5161 (version "1.0.0")
5162 (source
5163 (origin
5164 (method git-fetch)
5165 (uri (git-reference
5166 (url "https://github.com/porridge/bambam")
5167 (commit (string-append "v" version))))
5168 (file-name (git-file-name name version))
5169 (sha256
5170 (base32 "18cwd1wpyyx8y61cags9bkdhx9x858xicc4y1c9c2s0xjmgzhl3i"))))
5171 (build-system python-build-system)
5172 (arguments
5173 `(#:tests? #f ; no tests
5174 #:phases
5175 (modify-phases %standard-phases
5176 (delete 'build) ; nothing to build
5177 (replace 'install
5178 (lambda* (#:key outputs #:allow-other-keys)
5179 (let* ((out (assoc-ref outputs "out"))
5180 (bin (string-append out "/bin"))
5181 (share (string-append out "/share")))
5182 (mkdir-p bin)
5183 (copy-file "bambam.py" (string-append bin "/bambam"))
5184 (install-file "bambam.6" (string-append share "/man/man6"))
5185 (copy-recursively "data" (string-append share "/bambam/data")))
5186 #t)))))
5187 (inputs
5188 `(("python-pygame" ,python-pygame)))
5189 (home-page "https://github.com/porridge/bambam")
5190 (synopsis "Keyboard mashing and doodling game for babies")
5191 (description "Bambam is a simple baby keyboard (and gamepad) masher
5192 application that locks the keyboard and mouse and instead displays bright
5193 colors, pictures, and sounds.")
5194 (license license:gpl3+)))
5195
5196 (define-public mrrescue
5197 (package
5198 (name "mrrescue")
5199 (version "1.02e")
5200 (source (origin
5201 (method url-fetch)
5202 (uri (string-append
5203 "https://github.com/SimonLarsen/mrrescue/releases/"
5204 "download/" version "/mrrescue" version ".love"))
5205 (file-name (string-append name "-" version ".love"))
5206 (sha256
5207 (base32
5208 "0jwzbwkgp1l5ia6c7s760gmdirbsncp6nfqp7vqdqsfb63la9gl2"))))
5209 (build-system trivial-build-system)
5210 (arguments
5211 `(#:modules ((guix build utils))
5212 #:builder
5213 (begin
5214 (use-modules (guix build utils))
5215 (let* ((out (assoc-ref %outputs "out"))
5216 (script (string-append out "/bin/" ,name))
5217 (data (string-append out "/share/" ,name))
5218 (source (assoc-ref %build-inputs "source"))
5219 (unzip (string-append (assoc-ref %build-inputs "unzip")
5220 "/bin/unzip"))
5221 (patch (string-append (assoc-ref %build-inputs "patch")
5222 "/bin/patch"))
5223 (bash (string-append (assoc-ref %build-inputs "bash")
5224 "/bin/bash"))
5225 (love (string-append (assoc-ref %build-inputs "love")
5226 "/bin/love")))
5227
5228 (mkdir-p (dirname script))
5229 (with-output-to-file script
5230 (lambda ()
5231 (format #t "#!~a~%" bash)
5232 (format #t "exec -a ~a \"~a\" \"~a\"~%" ,name love data)))
5233 (chmod script #o755)
5234
5235 ;; The better way to package this game would be to install *only* the
5236 ;; script above, pointing to the unextracted .love file in the store.
5237 ;; However, mrrescue 1.02e needs to be patched to work with Love 11.
5238 ;; Instead of extracting the .love file, patching it, and re-zipping
5239 ;; it to the store, simply point the script to the extracted patched
5240 ;; data directory directly.
5241 (mkdir-p data)
5242 (with-directory-excursion data
5243 (invoke unzip source)
5244 (invoke patch "-p1" "-i"
5245 (assoc-ref %build-inputs "love-11.patch")))
5246 #t))))
5247 (native-inputs
5248 `(("unzip" ,unzip)
5249 ("patch" ,patch)
5250 ("love-11.patch" ,(search-patch "mrrescue-support-love-11.patch"))))
5251 (inputs
5252 `(("bash" ,bash)
5253 ("love" ,love)))
5254 (home-page "https://tangramgames.dk/games/mrrescue")
5255 (synopsis "Arcade-style fire fighting game")
5256 (description
5257 "Mr. Rescue is an arcade styled 2d action game centered around evacuating
5258 civilians from burning buildings. The game features fast-paced fire
5259 extinguishing action, intense boss battles, a catchy soundtrack, and lots of
5260 throwing people around in pseudo-randomly generated buildings.")
5261 (license (list license:zlib ; for source code
5262 license:cc-by-sa3.0)))) ; for graphics and music assets
5263
5264 (define-public hyperrogue
5265 (package
5266 (name "hyperrogue")
5267 (version "11.3a")
5268 ;; When updating this package, be sure to update the "hyperrogue-data"
5269 ;; origin in native-inputs.
5270 (source (origin
5271 (method url-fetch)
5272 (uri (string-append
5273 "https://www.roguetemple.com/z/hyper/hyperrogue"
5274 (string-join (string-split version #\.) "")
5275 "-src.tgz"))
5276 (sha256
5277 (base32
5278 "1yxabbswq02fc5frigvs43f83m5vlxybc7n5mynkwzj2c70lfp2k"))))
5279 (build-system gnu-build-system)
5280 (arguments
5281 `(#:tests? #f ; no check target
5282 #:make-flags '("HYPERROGUE_USE_GLEW=1"
5283 "HYPERROGUE_USE_PNG=1")
5284 #:phases
5285 (modify-phases %standard-phases
5286 (add-after 'set-paths 'set-sdl-paths
5287 (lambda* (#:key inputs #:allow-other-keys)
5288 (setenv "CPATH"
5289 (string-append (or (getenv "CPATH") "") ":"
5290 (assoc-ref inputs "sdl-union")
5291 "/include/SDL"))))
5292 (replace 'configure
5293 (lambda* (#:key inputs outputs #:allow-other-keys)
5294 (let* ((out (assoc-ref outputs "out"))
5295 (share-dir (string-append out "/share/hyperrogue"))
5296 (dejavu-dir (string-append
5297 (assoc-ref inputs "font-dejavu")
5298 "/share/fonts/truetype"))
5299 (dejavu-font "DejaVuSans-Bold.ttf")
5300 (music-file "hyperrogue-music.txt"))
5301 ;; Fix font and music paths.
5302 (substitute* "basegraph.cpp"
5303 ((dejavu-font)
5304 (string-append dejavu-dir "/" dejavu-font)))
5305 (substitute* music-file
5306 (("\\*/")
5307 (string-append share-dir "/sounds/")))
5308 (substitute* "sound.cpp"
5309 (("musicfile = \"\"")
5310 (string-append "musicfile = \""
5311 share-dir "/" music-file "\"")))
5312 ;; Disable build machine CPU optimizations and warnings treated
5313 ;; as errors.
5314 (substitute* "Makefile"
5315 (("-march=native") "")
5316 (("-Werror") "")))
5317 #t))
5318 (replace 'install
5319 (lambda* (#:key inputs outputs #:allow-other-keys)
5320 (let* ((out (assoc-ref outputs "out"))
5321 (bin (string-append out "/bin"))
5322 (share-dir (string-append out "/share/hyperrogue")))
5323 (mkdir-p bin)
5324 (install-file "hyperrogue" bin)
5325 (install-file "hyperrogue-music.txt" share-dir))
5326 #t))
5327 (add-after 'install 'install-data
5328 (lambda* (#:key inputs outputs #:allow-other-keys)
5329 (let* ((data (assoc-ref inputs "hyperrogue-data"))
5330 (out (assoc-ref outputs "out"))
5331 (sounds (string-append out "/share/hyperrogue/sounds"))
5332 (unzip (string-append (assoc-ref inputs "unzip") "/bin/unzip")))
5333 ;; Extract media license information into sounds directory.
5334 (invoke unzip "-j" data
5335 (string-append
5336 "hyperrogue"
5337 (string-join (string-split ,version #\.) "")
5338 "/sounds/credits.txt") "-d" sounds)
5339 ;; Extract sounds and music into sounds directory.
5340 (invoke "unzip" "-j" data
5341 (string-append
5342 "hyperrogue"
5343 (string-join (string-split ,version #\.) "")
5344 "/*.ogg") "-d" sounds)))))))
5345 (native-inputs
5346 `(("hyperrogue-data"
5347 ,(origin
5348 (method url-fetch)
5349 (uri
5350 (string-append
5351 "https://www.roguetemple.com/z/hyper/hyperrogue"
5352 (string-join (string-split version #\.) "")
5353 "-win.zip"))
5354 (sha256
5355 (base32
5356 "11yhbia45f1w9z0j67h9nynwjqmvakr9l6rnrmdrdkzin6lvzzj4"))))
5357 ("unzip" ,unzip)))
5358 (inputs
5359 `(("font-dejavu" ,font-dejavu)
5360 ("glew" ,glew)
5361 ("libpng" ,libpng)
5362 ("sdl-union" ,(sdl-union (list sdl
5363 sdl-gfx
5364 sdl-mixer
5365 sdl-ttf)))))
5366 (home-page "https://www.roguetemple.com/z/hyper/")
5367 (synopsis "Non-euclidean graphical rogue-like game")
5368 (description
5369 "HyperRogue is a game in which the player collects treasures and fights
5370 monsters -- rogue-like but for the fact that it is played on the hyperbolic
5371 plane and not in euclidean space.
5372
5373 In HyperRogue, the player can move through different parts of the world, which
5374 are home to particular creatures and may be subject to their own rules of
5375 \"physics\".
5376
5377 While the game can use ASCII characters to display the the classical rogue
5378 symbols, it still needs graphics to render the non-euclidean world.")
5379 (license (list license:bsd-3 ; glew.c, mtrand.*
5380 license:cc-by-sa3.0 ; music
5381 license:cc-by-sa4.0 ; sounds
5382 license:cc0
5383 license:public-domain ; direntx.*, some sounds
5384 license:zlib ; savepng.*
5385 license:gpl2+)))) ; remaining files
5386
5387 (define-public kobodeluxe
5388 (package
5389 (name "kobodeluxe")
5390 (version "0.5.1")
5391 (source (origin
5392 (method url-fetch)
5393 (uri (string-append "http://olofson.net/kobodl/download/KoboDeluxe-"
5394 version ".tar.bz2"))
5395 (sha256
5396 (base32
5397 "0b2wvdpnmaibsy419c16dfwj5kvd3pccby2aaqvm964x74592yqg"))
5398 (patches (search-patches
5399 "kobodeluxe-const-charp-conversion.patch"
5400 "kobodeluxe-enemies-pipe-decl.patch"
5401 "kobodeluxe-graphics-window-signed-char.patch"
5402 "kobodeluxe-manpage-minus-not-hyphen.patch"
5403 "kobodeluxe-midicon-segmentation-fault.patch"
5404 "kobodeluxe-paths.patch"))))
5405 (build-system gnu-build-system)
5406 (arguments
5407 '(#:configure-flags
5408 (list (string-append "CPPFLAGS=-I"
5409 (assoc-ref %build-inputs "sdl-union")
5410 "/include/SDL"))))
5411 (inputs
5412 `(("glu" ,glu)
5413 ("sdl-union" ,(sdl-union (list sdl sdl-image)))))
5414 (synopsis "Shooter with space station destruction")
5415 (description
5416 "Kobo Deluxe is an enhanced version of Akira Higuchi's XKobo graphical game
5417 for Un*x systems with X11.")
5418 (home-page "http://olofson.net/kobodl/")
5419 (license license:gpl2+)))
5420
5421 (define-public freeciv
5422 (package
5423 (name "freeciv")
5424 (version "2.6.2")
5425 (source
5426 (origin
5427 (method url-fetch)
5428 (uri (list (string-append
5429 "http://files.freeciv.org/stable/freeciv-"
5430 version ".tar.bz2")
5431 (string-append
5432 "mirror://sourceforge/freeciv/Freeciv%20"
5433 (version-major+minor version) "/" version
5434 "/freeciv-" version ".tar.bz2")))
5435 (sha256
5436 (base32 "13vc2xg1cf19rhbnr7k38b56b2hdapqymq5vma1l69kn7hyyz0b1"))))
5437 (build-system gnu-build-system)
5438 (inputs
5439 `(("curl" ,curl)
5440 ("cyrus-sasl" ,cyrus-sasl)
5441 ("gtk+" ,gtk+)
5442 ("sdl-mixer" ,sdl-mixer)
5443 ("zlib" ,zlib)))
5444 (native-inputs
5445 `(("pkg-config" ,pkg-config)))
5446 (home-page "http://www.freeciv.org/")
5447 (synopsis "Turn-based empire building strategy game")
5448 (description "Freeciv is a turn-based empire building strategy game
5449 inspired by the history of human civilization. The game commences in
5450 prehistory and your mission is to lead your tribe from the Stone Age
5451 into the Space Age.")
5452 (license license:gpl2+)))
5453
5454 (define-public no-more-secrets
5455 (package
5456 (name "no-more-secrets")
5457 (version "0.3.3")
5458 (source
5459 (origin
5460 (method git-fetch)
5461 (uri (git-reference
5462 (url "https://github.com/bartobri/no-more-secrets")
5463 (commit (string-append "v" version))))
5464 (file-name (git-file-name name version))
5465 (sha256
5466 (base32 "1zfv4qabikf8w9winsr4brxrdvs3f0d7xvydksyx8bydadsm2v2h"))))
5467 (build-system gnu-build-system)
5468 (arguments
5469 `(#:tests? #f
5470 #:make-flags (list "CC=gcc" "all-ncurses"
5471 (string-append "prefix="
5472 (assoc-ref %outputs "out")))
5473 #:phases
5474 (modify-phases %standard-phases
5475 (delete 'configure))))
5476 (inputs
5477 `(("ncurses" ,ncurses)))
5478 (home-page "https://github.com/bartobri/no-more-secrets")
5479 (synopsis "Recreation of data decryption effect in \"Sneakers\"")
5480 (description
5481 "@code{No More Secrets} provides a command line tool called \"nms\"
5482 that recreates the famous data decryption effect seen on screen in the 1992
5483 movie \"Sneakers\".
5484
5485 This command works on piped data. Pipe any ASCII or UTF-8 text to nms, and
5486 it will apply the hollywood effect, initially showing encrypted data, then
5487 starting a decryption sequence to reveal the original plaintext characters.")
5488 (license license:expat)))
5489
5490 (define-public megaglest-data
5491 (package
5492 (name "megaglest-data")
5493 (version "3.13.0")
5494 (source
5495 (origin
5496 (method url-fetch)
5497 (uri (string-append
5498 "https://github.com/MegaGlest/megaglest-data"
5499 "/releases/download/" version "/megaglest-data-"
5500 version ".tar.xz"))
5501 (sha256
5502 (base32
5503 "0ipgza33z89fw3si32iafm981f3fvm0zldvbxj29whghd2k3rpj3"))))
5504 (build-system cmake-build-system)
5505 (arguments
5506 `(#:tests? #f))
5507 (home-page "https://megaglest.org/")
5508 (synopsis "Data files for MegaGlest")
5509 (description "This package contains the data files required for MegaGlest.")
5510 (license license:cc-by-sa3.0)))
5511
5512 (define-public megaglest
5513 (package
5514 (name "megaglest")
5515 (version "3.13.0")
5516 (source
5517 (origin
5518 (method url-fetch)
5519 (uri (string-append
5520 "https://github.com/MegaGlest/megaglest-source"
5521 "/releases/download/" version "/megaglest-source-"
5522 version ".tar.xz"))
5523 (sha256
5524 (base32
5525 "1ffck3ii1wp5k3nn5p0ga06jgp7pzk4zw0xln3xim2w7qrxzdzh9"))))
5526 (build-system cmake-build-system)
5527 (inputs
5528 `(("curl" ,curl)
5529 ("fontconfig" ,fontconfig)
5530 ("ftgl" ,ftgl)
5531 ("glew" ,glew)
5532 ("libjpeg-turbo" ,libjpeg-turbo)
5533 ("megaglest-data" ,megaglest-data)
5534 ("mesa" ,mesa)
5535 ("miniupnpc" ,miniupnpc)
5536 ("openal" ,openal)
5537 ("libircclient" ,libircclient)
5538 ("libpng" ,libpng)
5539 ("libvorbis" ,libvorbis)
5540 ("lua" ,lua)
5541 ("sdl2" ,sdl2)
5542 ("wxwidgets" ,wxwidgets)))
5543 (native-inputs
5544 `(("cppunit" ,cppunit)
5545 ("pkg-config" ,pkg-config)))
5546 (arguments
5547 `(#:configure-flags
5548 (list (string-append "-DCUSTOM_DATA_INSTALL_PATH="
5549 (assoc-ref %build-inputs "megaglest-data")
5550 "/share/megaglest")
5551 "-DBUILD_MEGAGLEST_TESTS=ON")
5552 #:phases
5553 (modify-phases %standard-phases
5554 (add-after 'unpack 'fix-ini-search-path
5555 (lambda* (#:key outputs #:allow-other-keys)
5556 (substitute* "source/glest_game/global/config.cpp"
5557 (("/usr/share/megaglest/")
5558 (string-append (assoc-ref outputs "out")
5559 "/share/megaglest/"))))))
5560 #:test-target "megaglest_tests"))
5561 (home-page "https://megaglest.org/")
5562 (synopsis "3D real-time strategy (RTS) game")
5563 (description "MegaGlest is a cross-platform 3D real-time strategy (RTS)
5564 game, where you control the armies of one of seven different factions: Tech,
5565 Magic, Egypt, Indians, Norsemen, Persian or Romans.")
5566 (license license:gpl2+)))
5567
5568 (define-public freegish
5569 (let ((commit "8795cd7adc95957883f2d3465eb9036a774667a7")
5570 (revision "1"))
5571 (package
5572 (name "freegish")
5573 (version (string-append "0-" revision "." (string-take commit 9)))
5574 (source (origin
5575 (method git-fetch)
5576 (uri (git-reference
5577 (url "https://github.com/freegish/freegish")
5578 (commit commit)))
5579 (file-name (git-file-name name version))
5580 (sha256
5581 (base32
5582 "1p1zf5qqagmcpi1db2bs02cnalpy3qiymp6yzan7k1bhmv859gsx"))
5583 (modules '((guix build utils)))
5584 ;; The audio files in the "music" directory are licensed under
5585 ;; CC-BY-NC, so we delete them.
5586 (snippet
5587 '(begin
5588 (delete-file-recursively "music")
5589 #t))))
5590 (build-system cmake-build-system)
5591 (arguments
5592 `(#:tests? #f ; no tests included
5593 #:configure-flags
5594 (list "-DCMAKE_INSTALL_FHS=ON")
5595 #:phases
5596 (modify-phases %standard-phases
5597 (add-after 'unpack 'set-DATAPATH
5598 (lambda* (#:key outputs #:allow-other-keys)
5599 (substitute* "CMakeLists.txt"
5600 (("^option\\(INSTALL_FHS" line)
5601 (string-append "add_definitions(-DDATAPATH=\""
5602 (assoc-ref outputs "out") "/share/freegish\")\n"
5603 line)))
5604 #t)))))
5605 (inputs
5606 `(("sdl-union" ,(sdl-union (list sdl sdl-mixer)))
5607 ("openal" ,openal)
5608 ("libvorbis" ,libvorbis)
5609 ("libogg" ,libogg)
5610 ("mesa" ,mesa)
5611 ("libpng" ,libpng)
5612 ("zlib" ,zlib)))
5613 (home-page "https://github.com/freegish/freegish")
5614 (synopsis "Side-scrolling physics platformer with a ball of tar")
5615 (description "In FreeGish you control Gish, a ball of tar who lives
5616 happily with his girlfriend Brea, until one day a mysterious dark creature
5617 emerges from a sewer hole and pulls her below ground.")
5618 ;; The textures are available under the Expat license. All other assets
5619 ;; (including levels) are covered under CC-BY-SA or public domain. The
5620 ;; source code is under GPLv2+.
5621 (license (list license:gpl2+
5622 license:expat
5623 license:public-domain
5624 license:cc-by-sa3.0)))))
5625
5626 (define-public cdogs-sdl
5627 (package
5628 (name "cdogs-sdl")
5629 (version "0.8.0")
5630 (source
5631 (origin
5632 (method git-fetch)
5633 (uri (git-reference
5634 (url "https://github.com/cxong/cdogs-sdl")
5635 (commit version)))
5636 (file-name (git-file-name name version))
5637 (sha256
5638 (base32 "0vx37zb2iw7sfw5a2bs97ydlmb301nvy485ybdm8g46c5hn9s13c"))))
5639 (build-system cmake-build-system)
5640 (arguments
5641 `(#:configure-flags
5642 (list (string-append "-DCDOGS_DATA_DIR="
5643 (assoc-ref %outputs "out")
5644 "/share/cdogs-sdl/"))))
5645 (native-inputs
5646 `(("pkg-config" ,pkg-config)))
5647 (inputs
5648 `(("gtk+" ,gtk+)
5649 ("mesa" ,mesa)
5650 ("sdl2" ,sdl2)
5651 ("sdl2-image" ,sdl2-image)
5652 ("sdl2-mixer" ,sdl2-mixer)))
5653 (home-page "https://cxong.github.io/cdogs-sdl/")
5654 (synopsis "Classic overhead run-and-gun game")
5655 (description "C-Dogs SDL is a classic overhead run-and-gun game,
5656 supporting up to 4 players in co-op and deathmatch modes. Customize your
5657 player, choose from many weapons, and blast, slide and slash your way through
5658 over 100 user-created campaigns.")
5659 ;; GPLv2+ for code (includes files under BSD-2 and BSD-3),
5660 ;; CC0/CC-BY/CC-BY-SA for assets.
5661 (license (list license:gpl2+
5662 license:bsd-2
5663 license:bsd-3
5664 license:cc0
5665 license:cc-by3.0
5666 license:cc-by-sa3.0))))
5667
5668 (define-public kiki
5669 (package
5670 (name "kiki")
5671 (version "1.0.2")
5672 (source (origin
5673 (method url-fetch)
5674 (uri (string-append "mirror://sourceforge/kiki/kiki-src/"
5675 version "/kiki-" version "-src.tgz"))
5676 (sha256
5677 (base32
5678 "0ihjdsxbn8z3cz0gpcprafiipcqaiskgdnh1rhmw4qff8dszalbn"))
5679 (modules '((guix build utils)))
5680 (snippet
5681 '(begin
5682 (for-each delete-file (find-files "." "\\.dll$"))
5683 #t))
5684 (patches
5685 (search-patches "kiki-level-selection-crash.patch"
5686 "kiki-makefile.patch"
5687 "kiki-missing-includes.patch"
5688 "kiki-portability-64bit.patch"))))
5689 (build-system gnu-build-system)
5690 (arguments
5691 `(#:tests? #f ; there are no tests
5692 #:make-flags '("CXX=g++")
5693 #:phases
5694 (modify-phases %standard-phases
5695 (replace 'configure
5696 (lambda* (#:key inputs outputs #:allow-other-keys)
5697 (setenv "CPLUS_INCLUDE_PATH"
5698 (string-append (assoc-ref inputs "sdl-union")
5699 "/include/SDL:"
5700 (assoc-ref inputs "python")
5701 "/include/python2.7:"
5702 (or (getenv "CPLUS_INCLUDE_PATH") "")))
5703 (substitute* "src/main/main.cpp"
5704 (("#include <SDL.h>" line)
5705 (string-append line "
5706 #define K_INCLUDE_GLUT
5707 #include \"KIncludeTools.h\""))
5708 (("// initialize SDL" line)
5709 (string-append "glutInit(&argc,argv);\n" line)))
5710 (substitute* "src/main/KikiController.cpp"
5711 (("getenv\\(\"KIKI_HOME\"\\)")
5712 (string-append "\"" (assoc-ref outputs "out") "/share/kiki/\"")))
5713 (substitute* "linux/Makefile"
5714 (("CXXOPTS =" line)
5715 (string-append line " -fpermissive"))
5716 (("PYTHON_VERSION=.*") "PYTHON_VERSION=2.7")
5717 (("PYTHONHOME =.*")
5718 (string-append "PYTHONHOME = "
5719 (assoc-ref inputs "python")
5720 "/lib/python2.7/"))
5721 (("\\$\\(GLLIBS\\)" line)
5722 (string-append line " -lm -lpython2.7")))
5723 (substitute* "src/main/KikiPythonWidget.h"
5724 (("#define __KikiPythonWidget" line)
5725 (string-append line "\n#include \"KikiPython.h\"")))
5726 #t))
5727 (add-before 'build 'build-kodilib
5728 (lambda* (#:key make-flags #:allow-other-keys)
5729 (with-directory-excursion "kodilib/linux"
5730 (apply invoke "make" make-flags))))
5731 (add-after 'build-kodilib 'chdir
5732 (lambda _ (chdir "linux") #t))
5733 (replace 'install
5734 (lambda* (#:key outputs #:allow-other-keys)
5735 (let* ((out (assoc-ref outputs "out"))
5736 (bin (string-append out "/bin"))
5737 (share (string-append out "/share/kiki")))
5738 (mkdir-p bin)
5739 (mkdir-p share)
5740 (install-file "kiki" bin)
5741 (copy-recursively "../py" (string-append share "/py"))
5742 (copy-recursively "../sound" (string-append share "/sound"))
5743 #t))))))
5744 (inputs
5745 `(("glu" ,glu)
5746 ;; Kiki builds fine with freeglut 3.0.0 but segfaults on start.
5747 ("freeglut" ,freeglut-2.8)
5748 ("sdl-union" ,(sdl-union (list sdl
5749 sdl-mixer
5750 sdl-image)))
5751 ("python" ,python-2)))
5752 (native-inputs
5753 `(("swig" ,swig)))
5754 (home-page "http://kiki.sourceforge.net/")
5755 (synopsis "3D puzzle game")
5756 (description "Kiki the nano bot is a 3D puzzle game. It is basically a
5757 mixture of the games Sokoban and Kula-World. Your task is to help Kiki, a
5758 small robot living in the nano world, repair its maker.")
5759 ;; See <http://metadata.ftp-master.debian.org/changelogs/main/k/
5760 ;; kiki-the-nano-bot/kiki-the-nano-bot_1.0.2+dfsg1-4_copyright>
5761 ;; for a statement from the author.
5762 (license license:public-domain)))
5763
5764 (define-public teeworlds
5765 (package
5766 (name "teeworlds")
5767 (version "0.7.5")
5768 (source (origin
5769 (method git-fetch)
5770 (uri (git-reference
5771 (url "https://github.com/teeworlds/teeworlds")
5772 (commit version)))
5773 (file-name (git-file-name name version))
5774 (sha256
5775 (base32
5776 "169dl83q08zl4h813az8hjs4rs3dms9yjn6bnsld4fjcj0imvvc6"))
5777 (modules '((guix build utils)
5778 (ice-9 ftw)
5779 (ice-9 regex)
5780 (srfi srfi-1)
5781 (srfi srfi-26)))
5782 (snippet ; remove bundled libraries except md5
5783 '(let ((base-dir "src/engine/external/"))
5784 (for-each (compose (cut delete-file-recursively <>)
5785 (cut string-append base-dir <>))
5786 (remove (cut string-match "(^.)|(^md5$)" <>)
5787 (scandir base-dir)))
5788 #t))))
5789 (build-system gnu-build-system)
5790 (arguments
5791 `(#:tests? #f ; no tests included
5792 #:modules ((guix build gnu-build-system)
5793 (guix build utils)
5794 (srfi srfi-26))
5795 #:phases
5796 (modify-phases %standard-phases
5797 (replace 'configure
5798 (lambda* (#:key outputs #:allow-other-keys)
5799 ;; Embed path to assets.
5800 (substitute* "src/engine/shared/storage.cpp"
5801 (("#define DATA_DIR.*")
5802 (string-append "#define DATA_DIR \""
5803 (assoc-ref outputs "out")
5804 "/share/teeworlds/data"
5805 "\"")))
5806
5807 ;; Bam expects all files to have a recent time stamp.
5808 (for-each (cut utime <> 1 1)
5809 (find-files "."))
5810
5811 ;; Do not use bundled libraries.
5812 (substitute* "bam.lua"
5813 (("local json = Compile.+$")
5814 "local json = nil
5815 settings.link.libs:Add(\"jsonparser\")")
5816 (("local png = Compile.+$")
5817 "local png = nil
5818 settings.link.libs:Add(\"pnglite\")")
5819 (("local wavpack = Compile.+$")
5820 "local wavpack = nil
5821 settings.link.libs:Add(\"wavpack\")")
5822 (("if config\\.zlib\\.value == 1")
5823 "if config.zlib.value"))
5824 (substitute* "src/engine/client/graphics_threaded.cpp"
5825 (("engine/external/pnglite/pnglite\\.h")
5826 "pnglite.h"))
5827 (substitute* "src/engine/client/sound.cpp"
5828 (("engine/external/wavpack/wavpack\\.h")
5829 "wavpack/wavpack.h"))
5830 #t))
5831 (replace 'build
5832 (lambda _
5833 (invoke "bam" "-a" "-v" "conf=release")))
5834 (replace 'install
5835 (lambda* (#:key outputs #:allow-other-keys)
5836 (let* ((arch ,(system->linux-architecture
5837 (or (%current-target-system)
5838 (%current-system))))
5839 (build (string-append "build/" (if (string=? arch "i386")
5840 "x86" arch)
5841 "/release/"))
5842 (data-built (string-append build "data/"))
5843 (out (assoc-ref outputs "out"))
5844 (bin (string-append out "/bin/"))
5845 (data (string-append out "/share/teeworlds/data/")))
5846 (for-each (cut install-file <> bin)
5847 (map (cut string-append build <>)
5848 '("teeworlds" "teeworlds_srv")))
5849 (copy-recursively data-built data)
5850 #t))))))
5851 (inputs
5852 `(("freetype" ,freetype)
5853 ("glu" ,glu)
5854 ("json-parser" ,json-parser)
5855 ("mesa" ,mesa)
5856 ("pnglite" ,pnglite)
5857 ("sdl2" ,sdl2)
5858 ("sdl2-image" ,sdl2-image)
5859 ("sdl2-mixer" ,sdl2-mixer)
5860 ("wavpack" ,wavpack)
5861 ("zlib" ,zlib)))
5862 (native-inputs
5863 `(("bam" ,bam)
5864 ("python" ,python-wrapper)
5865 ("pkg-config" ,pkg-config)))
5866 (home-page "https://www.teeworlds.com")
5867 (synopsis "2D retro multiplayer shooter game")
5868 (description "Teeworlds is an online multiplayer game. Battle with up to
5869 16 players in a variety of game modes, including Team Deathmatch and Capture
5870 The Flag. You can even design your own maps!")
5871 (license license:bsd-3)))
5872
5873 (define-public enigma
5874 (package
5875 (name "enigma")
5876 (version "1.21")
5877 (source (origin
5878 (method url-fetch)
5879 (uri (string-append "mirror://sourceforge/enigma-game/"
5880 "Release%20" version "/enigma-"
5881 version ".tar.gz"))
5882 (sha256
5883 (base32
5884 "00ffh9pypj1948pg3q9sjp1nmiabh52p5c8wpg9n1dcfgl3cywnq"))))
5885 (build-system gnu-build-system)
5886 (arguments
5887 `(#:configure-flags
5888 (list "--with-system-enet")
5889 #:phases
5890 (modify-phases %standard-phases
5891 (add-after 'unpack 'fix-build-with-new-gcc
5892 (lambda _
5893 ;; Fix build with GCC6 and later by avoiding comparing ifstream
5894 ;; to NULL. Can be removed for versions > 1.21.
5895 (substitute* "src/lev/Proxy.cc"
5896 (("ifs != NULL")
5897 "ifs"))
5898 #t))
5899 (add-after 'unpack 'find-sdl
5900 (lambda _
5901 (substitute* "configure"
5902 (("SDL_ttf.h") "SDL/SDL_ttf.h"))
5903 (substitute* '("tools/ttf2bmf.cc"
5904 "lib-src/enigma-core/ecl_font.cc"
5905 "lib-src/enigma-core/ecl_video.cc"
5906 "lib-src/enigma-core/ecl_buffer.hh"
5907 "src/SoundEngine.cc"
5908 "src/SoundEngine.hh"
5909 "src/MusicManager.cc"
5910 "src/MusicManager.hh"
5911 "src/d_models.cc"
5912 "src/main.cc"
5913 "src/network.cc")
5914 (("#include \"SDL_(image|ttf|mixer|types|syswm|mutex).h\"" line header)
5915 (string-append "#include \"SDL/SDL_" header ".h\"")))
5916 (substitute* "src/main.cc"
5917 (("#include <SDL_(image|ttf|mixer).h>" line header)
5918 (string-append "#include \"SDL/SDL_" header ".h\"")))
5919 #t)))))
5920 (inputs
5921 `(("xerces-c" ,xerces-c)
5922 ("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer sdl-ttf)))
5923 ("curl" ,curl)
5924 ("enet" ,enet)))
5925 (native-inputs
5926 `(("pkg-config" ,pkg-config)
5927 ("imagemagick" ,imagemagick)))
5928 (home-page "https://www.nongnu.org/enigma")
5929 (synopsis "Puzzle game with a dexterity component")
5930 (description "Enigma is a puzzle game with 550 unique levels. The object
5931 of the game is to find and uncover pairs of identically colored ‘Oxyd’ stones.
5932 Simple? Yes. Easy? Certainly not! Hidden traps, vast mazes, laser beams,
5933 and most of all, countless hairy puzzles usually block your direct way to the
5934 Oxyd stones. Enigma’s game objects (and there are hundreds of them, lest you
5935 get bored) interact in many unexpected ways, and since many of them follow the
5936 laws of physics (Enigma’s special laws of physics, that is), controlling them
5937 with the mouse isn’t always trivial.")
5938 (license license:gpl2+)))
5939
5940 (define-public chroma
5941 (package
5942 (name "chroma")
5943 (version "1.17")
5944 (source (origin
5945 (method url-fetch)
5946 (uri (string-append "http://level7.org.uk/chroma/download/chroma-"
5947 version ".tar.bz2"))
5948 (sha256
5949 (base32
5950 "047sf00x71xbmi8bqrhfbmr9bk89l2gbykkqsfpw4wz6yfjscs6y"))))
5951 (build-system gnu-build-system)
5952 (arguments
5953 `(#:tests? #f ; no tests included
5954 #:configure-flags '("CFLAGS=-fgnu89-inline"))) ; fix inlines
5955 (inputs
5956 `(("sdl-union" ,(sdl-union (list sdl sdl-image sdl-mixer sdl-ttf)))
5957 ("freetype" ,freetype)
5958 ("ncurses" ,ncurses)
5959 ("fontconfig" ,fontconfig)
5960 ("libxft" ,libxft)))
5961 (native-inputs
5962 `(("pkg-config" ,pkg-config)))
5963 (home-page "http://level7.org.uk/chroma/")
5964 (synopsis "Abstract puzzle game")
5965 (description "Chroma is an abstract puzzle game. A variety of colourful
5966 shapes are arranged in a series of increasingly complex patterns, forming
5967 fiendish traps that must be disarmed and mysterious puzzles that must be
5968 manipulated in order to give up their subtle secrets. Initially so
5969 straightforward that anyone can pick it up and begin to play, yet gradually
5970 becoming difficult enough to tax even the brightest of minds.")
5971 (license license:gpl2+)))
5972
5973 (define-public fillets-ng
5974 (package
5975 (name "fillets-ng")
5976 (version "1.0.1")
5977 (source (origin
5978 (method url-fetch)
5979 (uri (string-append "mirror://sourceforge/fillets/"
5980 "Fish%20Fillets%20-%20Next%20Generation/"
5981 version "/fillets-ng-" version ".tar.gz"))
5982 (sha256
5983 (base32
5984 "1nljp75aqqb35qq3x7abhs2kp69vjcj0h1vxcpdyn2yn2nalv6ij"))))
5985 (build-system gnu-build-system)
5986 (arguments
5987 `(#:configure-flags
5988 (list (string-append "--with-lua="
5989 (assoc-ref %build-inputs "lua")))
5990 #:make-flags
5991 (list (string-append "CFLAGS=-I"
5992 (assoc-ref %build-inputs "sdl-union")
5993 "/include/SDL")
5994 (string-append "CXXFLAGS=-I"
5995 (assoc-ref %build-inputs "sdl-union")
5996 "/include/SDL"))
5997 #:phases
5998 (modify-phases %standard-phases
5999 ;; Lua 5.1 does not provide it.
6000 (add-after 'unpack 'do-not-link-with-lualib
6001 (lambda _
6002 (substitute* "configure"
6003 (("-llualib") ""))
6004 #t))
6005 (add-after 'install 'install-data
6006 (lambda* (#:key inputs outputs #:allow-other-keys)
6007 (let ((data (string-append (assoc-ref outputs "out")
6008 "/share/games/fillets-ng")))
6009 (mkdir-p data)
6010 (invoke "tar" "-xvf"
6011 (assoc-ref inputs "fillets-ng-data")
6012 "--strip-components=1"
6013 "-C" data)))))))
6014 (inputs
6015 `(("sdl-union" ,(sdl-union (list sdl
6016 sdl-mixer
6017 sdl-image
6018 sdl-ttf)))
6019 ("fribidi" ,fribidi)
6020 ("libx11" ,libx11)
6021 ("lua" ,lua-5.1)))
6022 (native-inputs
6023 `(("pkg-config" ,pkg-config)
6024 ("fillets-ng-data"
6025 ,(origin
6026 (method url-fetch)
6027 (uri (string-append "mirror://sourceforge/fillets/"
6028 "Fish%20Fillets%20-%20Next%20Generation/"
6029 version "/fillets-ng-data-" version ".tar.gz"))
6030 (sha256
6031 (base32
6032 "169p0yqh2gxvhdilvjc2ld8aap7lv2nhkhkg4i1hlmgc6pxpkjgh"))))))
6033 (home-page "http://fillets.sourceforge.net/")
6034 (synopsis "Puzzle game")
6035 (description "Fish Fillets NG is strictly a puzzle game. The goal in
6036 every of the seventy levels is always the same: find a safe way out. The fish
6037 utter witty remarks about their surroundings, the various inhabitants of their
6038 underwater realm quarrel among themselves or comment on the efforts of your
6039 fish. The whole game is accompanied by quiet, comforting music.")
6040 (license license:gpl2+)))
6041
6042 (define-public crawl
6043 (package
6044 (name "crawl")
6045 (version "0.25.0")
6046 (source
6047 (origin
6048 (method url-fetch)
6049 (uri (list
6050 ;; Older releases get moved into a versioned directory
6051 (string-append "http://crawl.develz.org/release/"
6052 (version-major+minor version) "/stone_soup-"
6053 version "-nodeps.tar.xz")
6054 ;; Only the latest release is in this directory
6055 (string-append "http://crawl.develz.org/release/stone_soup-"
6056 version "-nodeps.tar.xz")))
6057 (sha256
6058 (base32 "0rn1wjxdqw33caiwisfypm1j8cid3c9pz01ahicl17144zs29z3d"))
6059 (patches (search-patches "crawl-upgrade-saves.patch"))
6060 ;; The 0.25.0 -nodeps.tar.xz was built from an OSX machine; normally
6061 ;; apparently it's built from a Debian machine before the Debian
6062 ;; packages are made. These ._* files are binary and have the string
6063 ;; "Mac OS X" in them... removing these seems to result in compilation
6064 ;; again.
6065 (modules '((guix build utils)))
6066 (snippet
6067 '(begin
6068 (for-each delete-file (find-files "." "^\\._"))
6069 #t))))
6070 (build-system gnu-build-system)
6071 (inputs
6072 `(("lua51" ,lua-5.1)
6073 ("ncurses" ,ncurses)
6074 ("sqlite" ,sqlite)
6075 ("zlib" ,zlib)))
6076 (native-inputs
6077 `(("bison" ,bison)
6078 ("flex" ,flex)
6079 ("perl" ,perl)
6080 ("python" ,python-wrapper)
6081 ("python-pyyaml" ,python-pyyaml)
6082 ("pkg-config" ,pkg-config)))
6083 (arguments
6084 `(#:make-flags
6085 (let* ((sqlite (assoc-ref %build-inputs "sqlite"))
6086 (out (assoc-ref %outputs "out")))
6087 (list (string-append "SQLITE_INCLUDE_DIR=" sqlite "/include")
6088 (string-append "prefix=" out)
6089 "SAVEDIR=~/.crawl"
6090 ;; Don't compile with SSE on systems which don't have it.
6091 ,@(match (%current-system)
6092 ((or "i686-linux" "x86_64-linux")
6093 '())
6094 (_ '("NOSSE=TRUE")))
6095 ;; don't build any bundled dependencies
6096 "BUILD_LUA="
6097 "BUILD_SQLITE="
6098 "BUILD_ZLIB="
6099 "-Csource"))
6100 #:phases
6101 (modify-phases %standard-phases
6102 (add-after 'unpack 'find-SDL-image
6103 (lambda _
6104 (substitute* "source/windowmanager-sdl.cc"
6105 (("SDL_image.h") "SDL2/SDL_image.h"))
6106 #t))
6107 (delete 'configure)
6108 (replace 'check
6109 (lambda* (#:key inputs outputs make-flags #:allow-other-keys)
6110 (setenv "HOME" (getcwd))
6111 ;; Fake a terminal for the test cases.
6112 (setenv "TERM" "xterm-256color")
6113 ;; Run the tests that don't require a debug build.
6114 (apply invoke "make" "nondebugtest"
6115 (format #f "-j~d" (parallel-job-count))
6116 ;; Force command line build for test cases.
6117 (append make-flags '("GAME=crawl" "TILES="))))))))
6118 (synopsis "Roguelike dungeon crawler game")
6119 (description "Dungeon Crawl Stone Soup (also known as \"Crawl\" or DCSS
6120 for short) is a roguelike adventure through dungeons filled with dangerous
6121 monsters in a quest to find the mystifyingly fabulous Orb of Zot.")
6122 (home-page "https://crawl.develz.org")
6123 (license (list license:gpl2+
6124 license:bsd-2
6125 license:bsd-3
6126 license:cc0
6127 license:expat
6128 license:zlib
6129 license:asl2.0))))
6130
6131 ;; The linter here claims that patch file names should start with the package
6132 ;; name. But, in this case, the patches are inherited from crawl with the
6133 ;; "crawl-" prefix instead of "crawl-tiles-".
6134 (define-public crawl-tiles
6135 (package
6136 (inherit crawl)
6137 (name "crawl-tiles")
6138 (arguments
6139 (substitute-keyword-arguments
6140 (package-arguments crawl)
6141 ((#:make-flags flags)
6142 `(let ((dejavu (assoc-ref %build-inputs "font-dejavu")))
6143 (cons*
6144 (string-append "PROPORTIONAL_FONT=" dejavu
6145 "/share/fonts/truetype/DejaVuSans.ttf")
6146 (string-append "MONOSPACED_FONT=" dejavu
6147 "/share/fonts/truetype/DejaVuSansMono.ttf")
6148 "TILES=y"
6149 ;; Rename the executable to allow parallel installation with crawl.
6150 "GAME=crawl-tiles"
6151 ,flags)))))
6152 (inputs
6153 `(,@(package-inputs crawl)
6154 ("font-dejavu" ,font-dejavu)
6155 ("freetype6" ,freetype)
6156 ("glu" ,glu)
6157 ("libpng" ,libpng)
6158 ("sdl2" ,sdl2)
6159 ("sdl2-image" ,sdl2-image)
6160 ("sdl2-mixer" ,sdl2-mixer)))
6161 (native-inputs
6162 `(,@(package-native-inputs crawl)
6163 ("pngcrush" ,pngcrush)
6164 ("which" ,which)))
6165 (synopsis "Graphical roguelike dungeon crawler game")))
6166
6167 (define-public lugaru
6168 (package
6169 (name "lugaru")
6170 (version "1.2")
6171 (source (origin
6172 (method url-fetch)
6173 (uri (string-append "https://bitbucket.org/osslugaru/lugaru/downloads/"
6174 "lugaru-" version ".tar.xz"))
6175 (sha256
6176 (base32
6177 "15zgcshy22q51rm72zi6y9z7qlgnz5iw3gczjdlir4bqmxy4gspk"))))
6178 (build-system cmake-build-system)
6179 (arguments
6180 `(#:configure-flags
6181 (list "-DSYSTEM_INSTALL=ON")
6182 ;; no test target
6183 #:tests? #f))
6184 (native-inputs
6185 `(("pkg-config" ,pkg-config)))
6186 (inputs
6187 `(("sdl2" ,sdl2)
6188 ("glu" ,glu)
6189 ("libjpeg" ,libjpeg-turbo)
6190 ("libpng" ,libpng)
6191 ("openal" ,openal)
6192 ("vorbis" ,libvorbis)
6193 ("zlib" ,zlib)))
6194 (home-page "https://osslugaru.gitlab.io")
6195 (synopsis "Cross-platform third-person action game")
6196 (description "Lugaru is a third-person action game. The main character,
6197 Turner, is an anthropomorphic rebel bunny rabbit with impressive combat skills.
6198 In his quest to find those responsible for slaughtering his village, he uncovers
6199 a far-reaching conspiracy involving the corrupt leaders of the rabbit republic
6200 and the starving wolves from a nearby den. Turner takes it upon himself to
6201 fight against their plot and save his fellow rabbits from slavery.")
6202 (license (list license:gpl2+ ; code
6203 ;; assets:
6204 license:cc-by-sa3.0
6205 license:cc-by-sa4.0))))
6206
6207 (define-public 0ad-data
6208 (package
6209 (name "0ad-data")
6210 (version "0.0.23b-alpha")
6211 (source
6212 (origin
6213 (method url-fetch)
6214 (uri (string-append "https://releases.wildfiregames.com/0ad-"
6215 version "-unix-data.tar.xz"))
6216 (file-name (string-append name "-" version ".tar.xz"))
6217 (sha256
6218 (base32
6219 "04x7729hk6zw1xj3n4s4lvaviijsnbjf5rhzvjxlr5fygvg4l6z1"))
6220 (modules '((guix build utils)))
6221 (snippet
6222 #~(begin
6223 (for-each (lambda (name)
6224 (let* ((dir (string-append "binaries/data/mods/" name))
6225 (file (string-append dir "/" name ".zip"))
6226 (unzip #$(file-append unzip "/bin/unzip")))
6227 (invoke unzip "-d" dir file)
6228 (delete-file file)))
6229 '("mod" "public"))
6230 #t))))
6231 (build-system trivial-build-system)
6232 (native-inputs `(("tar" ,tar)
6233 ("xz" ,xz)))
6234 (arguments
6235 `(#:modules ((guix build utils))
6236 #:builder
6237 (begin
6238 (use-modules (guix build utils))
6239 (let ((out (assoc-ref %outputs "out"))
6240 (source (assoc-ref %build-inputs "source"))
6241 (tar (string-append (assoc-ref %build-inputs "tar") "/bin/tar"))
6242 (xz-path (string-append (assoc-ref %build-inputs "xz") "/bin")))
6243 (setenv "PATH" xz-path)
6244 (mkdir out)
6245 (invoke tar "xvf" source "-C" out "--strip=3")))))
6246 (synopsis "Data files for 0ad")
6247 (description "0ad-data provides the data files required by the game 0ad.")
6248 (home-page "https://play0ad.com")
6249 (license (list (license:fsdg-compatible
6250 "http://tavmjong.free.fr/FONTS/ArevCopyright.txt"
6251 "Similar to the license of the Bitstream Vera fonts.")
6252 (license:fsdg-compatible
6253 "https://www.gnome.org/fonts/#Final_Bitstream_Vera_Fonts")
6254 license:cc-by-sa3.0
6255 license:expat
6256 license:gfl1.0
6257 license:gpl2+
6258 license:gpl3+))))
6259
6260 (define-public 0ad
6261 (package
6262 (name "0ad")
6263 (version "0.0.23b-alpha")
6264 (source
6265 (origin
6266 (method url-fetch)
6267 (uri (string-append "https://releases.wildfiregames.com/0ad-"
6268 version "-unix-build.tar.xz"))
6269 (file-name (string-append name "-" version ".tar.xz"))
6270 (sha256
6271 (base32
6272 "0draa53xg69i5qhqym85658m45xhwkbiimaldj4sr3703rjgggq1"))))
6273 ;; A snippet here would cause a build failure because of timestamps
6274 ;; reset. See https://bugs.gnu.org/26734.
6275 (inputs
6276 `(("0ad-data" ,0ad-data)
6277 ("curl" ,curl)
6278 ("enet" ,enet)
6279 ("gloox" ,gloox)
6280 ("icu4c" ,icu4c)
6281 ("libpng" ,libpng)
6282 ("libsodium" ,libsodium)
6283 ("libvorbis" ,libvorbis)
6284 ("libxcursor" ,libxcursor)
6285 ("libxml2" ,libxml2)
6286 ("miniupnpc" ,miniupnpc)
6287 ("mozjs-38" ,mozjs-38)
6288 ("openal" ,openal)
6289 ("sdl2" ,sdl2)
6290 ("wxwidgets" ,wxwidgets)
6291 ("zlib" ,zlib)))
6292 (native-inputs
6293 `(("boost" ,boost)
6294 ("cmake" ,cmake-minimal)
6295 ("mesa" ,mesa)
6296 ("pkg-config" ,pkg-config)
6297 ("python-2" ,python-2)))
6298 (build-system gnu-build-system)
6299 (arguments
6300 `(#:make-flags '("config=release" "verbose=1" "-C" "build/workspaces/gcc")
6301 #:phases
6302 (modify-phases %standard-phases
6303 (add-after 'unpack 'delete-bundles
6304 (lambda _
6305 (delete-file-recursively "libraries/source/spidermonkey")
6306 #t))
6307 (add-after 'unpack 'fix-x11-includes
6308 (lambda _
6309 (substitute* "source/lib/sysdep/os/unix/x/x.cpp"
6310 (("<Xlib.h>") "<X11/Xlib.h>"))
6311 (substitute* "source/lib/sysdep/os/unix/x/x.cpp"
6312 (("<Xatom.h>") "<X11/Xatom.h>"))
6313 (substitute* "source/lib/sysdep/os/unix/x/x.cpp"
6314 (("<Xcursor/Xcursor.h>") "<X11/Xcursor/Xcursor.h>"))
6315 #t))
6316 (replace 'configure
6317 (lambda* (#:key inputs outputs #:allow-other-keys)
6318 (let* ((jobs (number->string (parallel-job-count)))
6319 (out (assoc-ref outputs "out"))
6320 (lib (string-append out "/lib"))
6321 (data (string-append out "/share/0ad")))
6322 (setenv "JOBS" (string-append "-j" jobs))
6323 (setenv "CC" "gcc")
6324 (with-directory-excursion "build/workspaces"
6325 (invoke "./update-workspaces.sh"
6326 (string-append "--libdir=" lib)
6327 (string-append "--datadir=" data)
6328 ;; TODO: "--with-system-nvtt"
6329 "--with-system-mozjs38")))))
6330 (delete 'check)
6331 (replace 'install
6332 (lambda* (#:key inputs outputs #:allow-other-keys)
6333 (chdir "binaries")
6334 (let* ((out (assoc-ref outputs "out"))
6335 (bin (string-append out "/bin"))
6336 (lib (string-append out "/lib"))
6337 (data (string-append out "/share/0ad"))
6338 (applications (string-append out "/share/applications"))
6339 (pixmaps (string-append out "/share/pixmaps"))
6340 (0ad-data (assoc-ref inputs "0ad-data")))
6341 ;; data
6342 (copy-recursively "data" data)
6343 (for-each (lambda (file)
6344 (symlink (string-append 0ad-data "/" file)
6345 (string-append data "/" file)))
6346 '("config" "mods/mod" "mods/public" "tools"))
6347 ;; libraries
6348 (for-each (lambda (file)
6349 (install-file file lib))
6350 (find-files "system" "\\.so$"))
6351 ;; binaries
6352 (install-file "system/pyrogenesis" bin)
6353 (with-directory-excursion bin
6354 (symlink "pyrogenesis" "0ad"))
6355 ;; resources
6356 (with-directory-excursion "../build/resources"
6357 (install-file "0ad.desktop" applications)
6358 (install-file "0ad.png" pixmaps))
6359 #t)))
6360 (add-after 'install 'check
6361 (lambda _
6362 (with-directory-excursion "system"
6363 (invoke "./test")))))))
6364 (home-page "https://play0ad.com")
6365 (synopsis "3D real-time strategy game of ancient warfare")
6366 (description "0 A.D. is a real-time strategy (RTS) game of ancient
6367 warfare. It's a historically-based war/economy game that allows players to
6368 relive or rewrite the history of twelve ancient civilizations, each depicted
6369 at their peak of economic growth and military prowess.
6370
6371 0ad needs a window manager that supports 'Extended Window Manager Hints'.")
6372 (license (list license:bsd-2
6373 license:bsd-3
6374 license:expat
6375 license:gpl2+
6376 license:ibmpl1.0
6377 license:isc
6378 license:lgpl2.1
6379 license:lgpl3
6380 license:mpl2.0
6381 license:zlib))))
6382
6383 ;; There have been no official releases.
6384 (define-public open-adventure
6385 (let* ((commit "d43854f0f6bb8e9eea7fbce80348150e7e7fc34d")
6386 (revision "2"))
6387 (package
6388 (name "open-adventure")
6389 (version (string-append "2.5-" revision "." (string-take commit 7)))
6390 (source (origin
6391 (method git-fetch)
6392 (uri (git-reference
6393 (url "https://gitlab.com/esr/open-adventure")
6394 (commit commit)))
6395 (file-name (string-append name "-" version "-checkout"))
6396 (sha256
6397 (base32
6398 "08bwrvf4axb1rsfd6ia1fddsky9pc1p350vjskhaakg2czc6dsk0"))))
6399 (build-system gnu-build-system)
6400 (arguments
6401 `(#:make-flags (list "CC=gcc")
6402 #:parallel-build? #f ; not supported
6403 #:phases
6404 (modify-phases %standard-phases
6405 (replace 'configure
6406 (lambda* (#:key inputs outputs #:allow-other-keys)
6407 ;; Linenoise is meant to be included, so we have to
6408 ;; copy it into the working directory.
6409 (let* ((linenoise (assoc-ref inputs "linenoise"))
6410 (noisepath (string-append linenoise "/include/linenoise"))
6411 (out (assoc-ref outputs "out")))
6412 (copy-recursively noisepath "linenoise"))
6413 #t))
6414 (add-before 'build 'use-echo
6415 (lambda _
6416 (substitute* "tests/Makefile"
6417 (("/bin/echo") (which "echo")))
6418 #t))
6419 (add-after 'build 'build-manpage
6420 (lambda _
6421 ;; This target is missing a dependency
6422 (substitute* "Makefile"
6423 ((".adoc.6:" line)
6424 (string-append line " advent.adoc")))
6425 (invoke "make" ".adoc.6")))
6426 ;; There is no install target
6427 (replace 'install
6428 (lambda* (#:key outputs #:allow-other-keys)
6429 (let* ((out (assoc-ref outputs "out"))
6430 (bin (string-append out "/bin"))
6431 (man (string-append out "/share/man/man6")))
6432 (install-file "advent" bin)
6433 (install-file "advent.6" man))
6434 #t)))))
6435 (native-inputs
6436 `(("asciidoc" ,asciidoc)
6437 ("linenoise" ,linenoise)
6438 ("python" ,python)
6439 ("python-pyyaml" ,python-pyyaml)))
6440 (home-page "https://gitlab.com/esr/open-adventure")
6441 (synopsis "Colossal Cave Adventure")
6442 (description "The original Colossal Cave Adventure from 1976 was the
6443 origin of all text adventures, dungeon-crawl (computer) games, and
6444 computer-hosted roleplaying games. This is the last version released by
6445 Crowther & Woods, its original authors, in 1995. It has been known as
6446 \"adventure 2.5\" and \"430-point adventure\".")
6447 (license license:bsd-2))))
6448
6449 (define-public tome4
6450 (package
6451 (name "tome4")
6452 (version "1.6.7")
6453 (synopsis "Single-player, RPG roguelike game set in the world of Eyal")
6454 (source
6455 (origin
6456 (method url-fetch)
6457 (uri (string-append "https://te4.org/dl/t-engine/t-engine4-src-"
6458 version ".tar.bz2"))
6459 (sha256
6460 (base32 "0283hvms5hr29zr0grd6gq059k0hg8hcz3fsmwjmysiih8790i68"))
6461 (modules '((guix build utils)))
6462 (snippet
6463 '(begin
6464 (substitute* '("src/music.h" "src/tSDL.h")
6465 (("#elif defined(__FreeBSD__)" line)
6466 (string-append
6467 line " || defined(__GNUC__)")))
6468 (substitute* '("src/tgl.h")
6469 (("#include <GL/glext.h>") ""))
6470 #t))))
6471 (build-system gnu-build-system)
6472 (native-inputs
6473 `(("unzip" ,unzip)))
6474 (inputs
6475 `(("sdl-union" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer sdl2-ttf)))
6476 ("glu" ,glu)
6477 ("premake4" ,premake4)
6478 ("openal" ,openal)
6479 ("vorbis" ,libvorbis)
6480 ("luajit" ,luajit)))
6481 (arguments
6482 `(#:make-flags '("CC=gcc" "config=release")
6483 ;; XXX: Building in parallel occasionally causes this build failure:
6484 ;; ../src/luajit2/src/host/buildvm.c:73:10: fatal error: buildvm_arch.h:
6485 ;; No such file or directory
6486 #:parallel-build? #f
6487 #:phases (modify-phases %standard-phases
6488 (delete 'bootstrap)
6489 (replace 'configure
6490 (lambda _
6491 (invoke "premake4" "gmake")
6492 #t))
6493 (add-after 'set-paths 'set-sdl-paths
6494 (lambda* (#:key inputs #:allow-other-keys)
6495 (setenv "CPATH"
6496 (string-append (assoc-ref inputs "sdl-union")
6497 "/include/SDL2:"
6498 (or (getenv "CPATH") "")))
6499 #t))
6500 (delete 'check)
6501 ;; premake doesn't provide install target
6502 (replace 'install
6503 (lambda* (#:key inputs outputs #:allow-other-keys)
6504 (let* ((out (assoc-ref outputs "out"))
6505 (usr (string-append out "/usr"))
6506 (bin (string-append out "/bin"))
6507 (licenses (string-append out "/share/licenses"))
6508 (documents (string-append out "/share/doc"))
6509 (pixmaps (string-append out "/share/pixmaps"))
6510 (icon "te4-icon.png")
6511 (data (string-append out "/share/" ,name))
6512 (applications (string-append
6513 out "/share/applications"))
6514 (unzip (string-append
6515 (assoc-ref inputs "unzip") "/bin/unzip"))
6516 (wrapper (string-append bin "/" ,name)))
6517 ;; icon
6518 (mkdir-p pixmaps)
6519 (invoke unzip "-j"
6520 (string-append
6521 "game/engines/te4-" ,version ".teae")
6522 (string-append
6523 "data/gfx/" icon) "-d" pixmaps)
6524 ;; game executable
6525 (install-file "t-engine" data)
6526 (mkdir-p bin)
6527 (with-output-to-file wrapper
6528 (lambda ()
6529 (display
6530 (string-append
6531 "#!/bin/sh\n"
6532 ;; No bootstrap code found,
6533 ;; defaulting to working directory
6534 ;; for engine code!
6535 "cd " data "\n"
6536 "exec -a tome4 ./t-engine \"$@\"\n"))))
6537 (chmod wrapper #o555)
6538 ;; licenses
6539 (for-each (lambda (file)
6540 (install-file file licenses))
6541 '("COPYING" "COPYING-MEDIA"))
6542 ;; documents
6543 (for-each (lambda (file)
6544 (install-file file documents))
6545 '("CONTRIBUTING" "CREDITS"))
6546 ;; data
6547 (copy-recursively "bootstrap" (string-append
6548 data "/bootstrap"))
6549 (copy-recursively "game" (string-append data "/game"))
6550 ;; launcher
6551 (mkdir-p applications)
6552 (make-desktop-entry-file
6553 (string-append applications "/" ,name ".desktop")
6554 #:name "ToME4"
6555 #:comment ,synopsis
6556 #:exec ,name
6557 #:icon icon
6558 #:categories '("Game" "RolePlaying")))
6559 #t)))))
6560 (home-page "https://te4.org")
6561 (description "Tales of Maj’Eyal (ToME) RPG, featuring tactical turn-based
6562 combat and advanced character building. Play as one of many unique races and
6563 classes in the lore-filled world of Eyal, exploring random dungeons, facing
6564 challenging battles, and developing characters with your own tailored mix of
6565 abilities and powers. With a modern graphical and customisable interface,
6566 intuitive mouse control, streamlined mechanics and deep, challenging combat,
6567 Tales of Maj’Eyal offers engaging roguelike gameplay for the 21st century.")
6568 (license license:gpl3+)))
6569
6570 (define-public quakespasm
6571 (package
6572 (name "quakespasm")
6573 (version "0.93.2")
6574 (source
6575 (origin
6576 (method url-fetch)
6577 (uri (string-append "mirror://sourceforge/quakespasm/Source/quakespasm-"
6578 version ".tgz"))
6579 (sha256
6580 (base32 "0qm0j5drybvvq8xadfyppkpk3rxqsxbywzm6iwsjwdf0iia3gss5"))))
6581 (arguments
6582 `(#:tests? #f
6583 #:make-flags '("CC=gcc"
6584 "MP3LIB=mpg123"
6585 "USE_CODEC_FLAC=1"
6586 "USE_CODEC_MIKMOD=1"
6587 "USE_SDL2=1"
6588 "-CQuake")
6589 #:phases (modify-phases %standard-phases
6590 (delete 'configure)
6591 (add-after 'unpack 'fix-makefile-paths
6592 (lambda* (#:key outputs #:allow-other-keys)
6593 (let ((out (assoc-ref outputs "out")))
6594 (mkdir-p (string-append out "/bin"))
6595 (substitute* "Quake/Makefile"
6596 (("/usr/local/games")
6597 (string-append out "/bin")))
6598 #t))))))
6599 (build-system gnu-build-system)
6600 (inputs `(("libmikmod" ,libmikmod)
6601 ("libvorbis" ,libvorbis)
6602 ("flac" ,flac)
6603 ("mesa" ,mesa)
6604 ("mpg123" ,mpg123)
6605 ("sdl2" ,sdl2)))
6606 (synopsis "First person shooter engine for Quake 1")
6607 (description "Quakespasm is a modern engine for id software's Quake 1.
6608 It includes support for 64 bit CPUs, custom music playback, a new sound driver,
6609 some graphical niceities, and numerous bug-fixes and other improvements.")
6610 (home-page "http://quakespasm.sourceforge.net/")
6611 (license license:gpl2+)))
6612
6613 (define-public vkquake
6614 (package
6615 (inherit quakespasm)
6616 (name "vkquake")
6617 (version "1.01.0")
6618 (source
6619 (origin
6620 (method git-fetch)
6621 (uri (git-reference
6622 (url "https://github.com/Novum/vkQuake")
6623 (commit version)))
6624 (file-name (git-file-name name version))
6625 (sha256
6626 (base32 "1iwin8j5kbyrknbkhjgpy8nmm7pxqzr0daa9gn7p38qhg2mh0a39"))))
6627 (arguments
6628 `(#:make-flags
6629 (let ((vulkanlib (string-append (assoc-ref %build-inputs
6630 "vulkan-loader") "/lib")))
6631 (list "CC=gcc"
6632 "MP3LIB=mpg123"
6633 "USE_CODEC_FLAC=1"
6634 "USE_CODEC_MIKMOD=1"
6635 "USE_SDL2=1"
6636 (string-append "LDFLAGS=-Wl,-rpath=" vulkanlib)
6637 "-CQuake"))
6638 #:phases (modify-phases %standard-phases
6639 (add-after 'unpack 'patch-for-new-vulkan
6640 (lambda _
6641 ;; Mimic upstream commit a869a22d9b51c68e for
6642 ;; compatibility with newer vulkan-headers.
6643 (substitute* "Quake/gl_rmisc.c"
6644 (("VK_DYNAMIC_STATE_RANGE_SIZE")
6645 "3"))
6646 #t))
6647 (delete 'configure)
6648 (add-after 'unpack 'fix-makefile-paths
6649 (lambda* (#:key outputs #:allow-other-keys)
6650 (let ((vulkan (assoc-ref %build-inputs
6651 "vulkan-loader"))
6652 (out (assoc-ref outputs "out")))
6653 (mkdir-p (string-append out "/bin"))
6654 (substitute* "Quake/Makefile" ((" /usr")
6655 (string-append " " out)))
6656 (substitute* "Quake/Makefile" (("/games")
6657 (string-append "/bin")))
6658 (substitute* "Quake/Makefile" (("..VULKAN_SDK.") vulkan))
6659 #t))))
6660 ,@(strip-keyword-arguments '(#:make-flags #:phases)
6661 (package-arguments quakespasm))))
6662 (inputs `(("vulkan-headers" ,vulkan-headers)
6663 ("vulkan-loader" ,vulkan-loader)
6664 ,@(package-inputs quakespasm)))
6665 (description "vkquake is a modern engine for id software's Quake 1.
6666 It includes support for 64 bit CPUs, custom music playback, a new sound driver,
6667 some graphical niceities, and numerous bug-fixes and other improvements.")
6668 (home-page "https://github.com/Novum/vkQuake")))
6669
6670 (define-public yamagi-quake2
6671 (package
6672 (name "yamagi-quake2")
6673 (version "7.10")
6674 (source
6675 (origin
6676 (method url-fetch)
6677 (uri (string-append "https://deponie.yamagi.org/quake2/quake2-"
6678 version ".tar.xz"))
6679 (sha256
6680 (base32
6681 "0psinbg25mysd58k99s1n34w31w5hj1vppb39gdjb0zqi6sl6cps"))))
6682 (build-system gnu-build-system)
6683 (arguments
6684 `(#:tests? #f
6685 #:make-flags
6686 (list "CC=gcc"
6687 ;; link openAL instead of using dlopen at runtime
6688 "DLOPEN_OPENAL=\"no\""
6689 ;; an optional directory where it will look for quake2 data files
6690 ;; in addition to the current working directory
6691 "WITH_SYSTEMWIDE=yes"
6692 "WITH_SYSTEMDIR=\"/opt/quake2\"")
6693 #:phases
6694 (modify-phases %standard-phases
6695 (delete 'configure)
6696 (replace 'install
6697 (lambda* (#:key outputs #:allow-other-keys)
6698 (let ((out (assoc-ref outputs "out")))
6699 (mkdir-p (string-append out "/lib"))
6700 (mkdir-p (string-append out "/bin"))
6701 ;; The yamagi-quake2 binary must be in the same directory
6702 ;; as it's engine libraries, but symlinking it to /bin is okay
6703 ;; https://github.com/yquake2/yquake2/blob/master/stuff/packaging.md
6704 (copy-recursively "release"
6705 (string-append out "/lib/yamagi-quake2"))
6706 (symlink (string-append out "/lib/yamagi-quake2/quake2")
6707 (string-append out "/bin/yamagi-quake2"))
6708 (symlink (string-append out "/lib/yamagi-quake2/q2ded")
6709 (string-append out "/bin/yamagi-q2ded"))))))))
6710 (inputs `(("sdl2" ,sdl2)
6711 ("mesa" ,mesa)
6712 ("libvorbis" ,libvorbis)
6713 ("zlib" ,zlib)
6714 ("openal" ,openal)))
6715 (native-inputs `(("pkg-config" ,pkg-config)))
6716 (synopsis "First person shooter engine based on quake2")
6717 (description "Yamagi Quake II is an enhanced client for id Software's Quake II.
6718 The main focus is an unchanged single player experience like back in 1997,
6719 thus the gameplay and the graphics are unaltered. However the user may use one
6720 of the unofficial retexturing packs. In comparison with the official client,
6721 over 1000 bugs were fixed and an extensive code audit done,
6722 making Yamagi Quake II one of the most solid Quake II implementations available.")
6723 (home-page "https://www.yamagi.org/quake2/")
6724 (license (list license:gpl2+ ; game and server
6725 (license:non-copyleft ; info-zip
6726 "file://LICENSE"
6727 "See Info-Zip section.")
6728 license:public-domain)))) ; stb
6729
6730 (define-public nudoku
6731 (package
6732 (name "nudoku")
6733 (version "1.0.0")
6734 (source (origin
6735 (method url-fetch)
6736 (uri (string-append "https://github.com/jubalh/nudoku/"
6737 "releases/download/" version
6738 "/nudoku-" version ".tar.xz"))
6739 (sha256
6740 (base32
6741 "0nr2j2z07nxk70s8xnmmpzccxicf7kn5mbwby2kg6aq8paarjm8k"))))
6742 (build-system gnu-build-system)
6743 (inputs `(("ncurses" ,ncurses)))
6744 (home-page "https://jubalh.github.io/nudoku/")
6745 (synopsis "Sudoku for your terminal")
6746 (description "Nudoku is a ncurses-based Sudoku game for your terminal.")
6747 (license license:gpl3+)))
6748
6749 (define-public the-butterfly-effect
6750 (package
6751 (name "the-butterfly-effect")
6752 (version "0.9.3.1")
6753 (source
6754 (origin
6755 (method git-fetch)
6756 (uri (git-reference
6757 (url "https://github.com/the-butterfly-effect/tbe")
6758 (commit (string-append "v" version))))
6759 (file-name (git-file-name name version))
6760 (sha256
6761 (base32
6762 "1ag2cp346f9bz9qy6za6q54id44d2ypvkyhvnjha14qzzapwaysj"))))
6763 (build-system gnu-build-system)
6764 (arguments
6765 `(#:phases
6766 (modify-phases %standard-phases
6767 (delete 'configure)
6768 ;; There is no "install" phase. By default, tbe is installed
6769 ;; in the build directory. Provide our own installation.
6770 (replace 'install
6771 (lambda* (#:key outputs #:allow-other-keys)
6772 (let* ((out (assoc-ref outputs "out"))
6773 (bin (string-append out "/bin"))
6774 (share (string-append out "/share")))
6775 (install-file "usr/games/tbe" bin)
6776 (mkdir-p share)
6777 (copy-recursively "usr/share" share)
6778 #t))))
6779 ;; Test suite requires a running Xorg server. Even when
6780 ;; provided, it fails with "D-Bus library appears to be
6781 ;; incorrectly set up; failed to read machine uuid: Failed to
6782 ;; open "/etc/machine-id": No such file or directory" along
6783 ;; with multiple "QPainter:: ... Painter not active" warnings.
6784 #:tests? #f))
6785 (inputs
6786 `(("qtbase" ,qtbase)
6787 ("qtsvg" ,qtsvg)))
6788 (native-inputs
6789 `(("cmake" ,cmake-minimal)
6790 ("gettext-minimal" ,gettext-minimal)
6791 ("qttools" ,qttools)))
6792 (synopsis "Realistic physics puzzle game")
6793 (description "The Butterfly Effect (tbe) is a game that uses
6794 realistic physics simulations to combine lots of simple mechanical
6795 elements to achieve a simple goal in the most complex way possible.")
6796 (home-page "http://the-butterfly-effect.org/")
6797 ;; Main license is GPL2-only. However, artwork is distributed
6798 ;; under various licenses, listed here.
6799 (license (list license:gpl2 license:public-domain license:expat
6800 license:cc-by-sa3.0 license:gpl3+ license:wtfpl2))))
6801
6802 (define-public pioneer
6803 (package
6804 (name "pioneer")
6805 (version "20200203")
6806 (source (origin
6807 (method git-fetch)
6808 (uri (git-reference
6809 (url "https://github.com/pioneerspacesim/pioneer")
6810 (commit version)))
6811 (file-name (git-file-name name version))
6812 (sha256
6813 (base32
6814 "1011xsi94jhw98mhm8kryq8ajig0qfbrdx5xdasi92bd4nk7lcp8"))))
6815 (build-system cmake-build-system)
6816 (native-inputs
6817 `(("pkg-config" ,pkg-config)))
6818 (inputs
6819 `(("assimp" ,assimp)
6820 ("curl" ,curl)
6821 ("freetype" ,freetype)
6822 ("glew" ,glew)
6823 ("glu" ,glu)
6824 ("libpng" ,libpng)
6825 ("libsigc++" ,libsigc++)
6826 ("libvorbis" ,libvorbis)
6827 ("lua" ,lua-5.2) ;not compatible with 5.3
6828 ("mesa" ,mesa)
6829 ("sdl" ,(sdl-union (list sdl2 sdl2-image)))))
6830 (arguments
6831 `(#:tests? #f ;tests are broken
6832 #:configure-flags (list "-DUSE_SYSTEM_LIBLUA:BOOL=YES"
6833 (string-append "-DPIONEER_DATA_DIR="
6834 %output "/share/games/pioneer"))))
6835 (home-page "https://pioneerspacesim.net")
6836 (synopsis "Game of lonely space adventure")
6837 (description
6838 "Pioneer is a space adventure game set in our galaxy at the turn of the
6839 31st century. The game is open-ended, and you are free to eke out whatever
6840 kind of space-faring existence you can think of. Look for fame or fortune by
6841 exploring the millions of star systems. Turn to a life of crime as a pirate,
6842 smuggler or bounty hunter. Forge and break alliances with the various
6843 factions fighting for power, freedom or self-determination. The universe is
6844 whatever you make of it.")
6845 (license license:gpl3)))
6846
6847 (define-public badass
6848 (let ((commit "3c3cd669b4fc8f73a102e3702788f7b28dc47dbb")
6849 (revision "0"))
6850 (package
6851 (name "badass")
6852 (version (git-version "0.0" revision commit))
6853 (source (origin
6854 (method git-fetch)
6855 (uri (git-reference
6856 (url "https://github.com/umayr/badass")
6857 (commit commit)))
6858 (file-name (git-file-name name version))
6859 (sha256
6860 (base32
6861 "05c9vdcb5ym3z0n5ll3v39mw4yl9jcjnlydmn0yl89ai9pv71zb6"))))
6862 (build-system go-build-system)
6863 (arguments
6864 '(#:import-path "github.com/umayr/badass"))
6865 (synopsis "Hacking contribution graphs in git")
6866 (description
6867 "Badass generates false commits for a range of dates, essentially
6868 hacking the gamification of contribution graphs on platforms such as
6869 Github or Gitlab.")
6870 (home-page "https://github.com/umayr/badass")
6871 (license license:expat))))
6872
6873 (define-public colobot
6874 (package
6875 (name "colobot")
6876 (version "0.1.12-alpha")
6877 (source
6878 (origin
6879 (method git-fetch)
6880 (uri (git-reference
6881 (url "https://github.com/colobot/colobot")
6882 (commit (string-append "colobot-gold-" version))
6883 (recursive? #t))) ;for "data/" subdir
6884 (file-name (git-file-name name version))
6885 (sha256
6886 (base32
6887 "1c181cclkrnspgs07lvndg2c81cjq3smkv7qim8c470cj88rcrp2"))))
6888 (build-system cmake-build-system)
6889 (arguments
6890 `(#:tests? #f ;no test
6891 #:phases
6892 (modify-phases %standard-phases
6893 (add-after 'unpack 'make-git-checkout-writable
6894 (lambda _
6895 (for-each make-file-writable (find-files "."))
6896 #t))
6897 (add-after 'unpack 'fix-directories
6898 (lambda _
6899 (substitute* "CMakeLists.txt"
6900 (("(\\$\\{CMAKE_INSTALL_PREFIX\\})/games" _ prefix)
6901 (string-append prefix "/bin"))
6902 (("(\\$\\{CMAKE_INSTALL_PREFIX\\}/share)/games/colobot" _ prefix)
6903 (string-append prefix "/colobot")))
6904 #t))
6905 (add-after 'fix-directories 'install-music
6906 ;; Retrieve and install music files.
6907 (lambda* (#:key inputs #:allow-other-keys)
6908 ;; Installation process tries to download music files using
6909 ;; "wget" if not already present. Since we are going another
6910 ;; route, skip "wget" command check.
6911 (substitute* "data/music/CMakeLists.txt"
6912 (("find_program\\(WGET wget\\)") ""))
6913 ;; Populate "music/" directory.
6914 (let ((data (assoc-ref inputs "colobot-music")))
6915 (invoke "tar" "-xvf" data "-Cdata/music"))
6916 #t)))))
6917 (native-inputs
6918 `(("colobot-music"
6919 ,(origin
6920 (method url-fetch)
6921 (uri (string-append "https://colobot.info/files/music/"
6922 "colobot-music_ogg_" version ".tar.gz"))
6923 (sha256
6924 (base32
6925 "1s86cd36rwkff329mb1ay1wi5qqyi35564ppgr3f4qqz9wj9vs2m"))))
6926 ("gettext" ,gettext-minimal)
6927 ("librsvg" ,librsvg)
6928 ("po4a" ,po4a)
6929 ("python" ,python-wrapper)))
6930 (inputs
6931 `(("boost" ,boost)
6932 ("glew" ,glew)
6933 ("libogg" ,libogg)
6934 ("libpng" ,libpng)
6935 ("libsndfile" ,libsndfile)
6936 ("libvorbis" ,libvorbis)
6937 ("openal" ,openal)
6938 ("physfs" ,physfs)
6939 ("sdl" ,(sdl-union (list sdl2 sdl2-image sdl2-ttf)))))
6940 (synopsis "Educational programming strategy game")
6941 (description "Colobot: Gold Edition is a real-time strategy game, where
6942 you can program your units (bots) in a language called CBOT, which is similar
6943 to C++ and Java. Your mission is to find a new planet to live and survive.
6944 You can save humanity and get programming skills!")
6945 (home-page "https://colobot.info")
6946 (license license:gpl3+)))
6947
6948 (define-public gzdoom
6949 (package
6950 (name "gzdoom")
6951 (version "4.3.2")
6952 (source
6953 (origin
6954 (method git-fetch)
6955 (uri (git-reference
6956 (url "https://github.com/coelckers/gzdoom")
6957 (commit (string-append "g" version))))
6958 (file-name (git-file-name name version))
6959 (sha256
6960 (base32 "0i4hyg72z84fc6ca2ic9q82q5cbgrbd7bynl3kpkypxvyasq08wz"))
6961 (patches (search-patches "gzdoom-search-in-installed-share.patch"
6962 "gzdoom-find-system-libgme.patch"))
6963 (modules '((guix build utils)))
6964 (snippet
6965 '(begin
6966 ;; Remove some bundled libraries. XXX There are more, but removing
6967 ;; them would require, at least, patching the build system.
6968 (with-directory-excursion "libraries"
6969 (delete-file-recursively "bzip2")
6970 (delete-file-recursively "game-music-emu")
6971 (delete-file-recursively "jpeg")
6972 (delete-file-recursively "zlib"))
6973 #t))))
6974 (arguments
6975 '(#:tests? #f
6976 #:configure-flags
6977 (let ((out (assoc-ref %outputs "out")))
6978 (list
6979 (string-append
6980 "-DCMAKE_CXX_FLAGS:="
6981 "-DSHARE_DIR=\\\"" out "/share/\\\" "
6982 "-DGUIX_OUT_PK3=\\\"" out "/share/games/doom\\\"")
6983
6984 ;; The build requires some extra convincing not to use the bundled
6985 ;; libgme previously deleted in the soure snippet.
6986 "-DFORCE_INTERNAL_GME=OFF"
6987
6988 ;; Link libraries at build time instead of loading them at run time.
6989 "-DDYN_OPENAL=OFF"
6990 "-DDYN_FLUIDSYNTH=OFF"
6991 "-DDYN_GTK=OFF"
6992 "-DDYN_MPG123=OFF"
6993 "-DDYN_SNDFILE=OFF"))
6994 #:phases
6995 (modify-phases %standard-phases
6996 (add-before 'configure 'fix-referenced-paths
6997 (lambda* (#:key inputs outputs #:allow-other-keys)
6998 (let ((fluid-3 (assoc-ref inputs "fluid-3"))
6999 (timidity++ (assoc-ref inputs "timidity++"))
7000 (out (assoc-ref outputs "out")))
7001
7002 (substitute*
7003 "src/CMakeLists.txt"
7004 (("COMMAND /bin/sh")
7005 (string-append "COMMAND " (which "sh"))))
7006
7007 (substitute*
7008 "libraries/zmusic/mididevices/music_fluidsynth_mididevice.cpp"
7009 (("/usr/share/sounds/sf2/FluidR3_GM.sf2")
7010 (string-append fluid-3 "/share/soundfonts/FluidR3Mono_GM.sf3")))
7011
7012 (substitute*
7013 "libraries/zmusic/mididevices/music_timiditypp_mididevice.cpp"
7014 (("exename = \"timidity\"")
7015 (string-append "exename = \"" timidity++ "/bin/timidity\"")))
7016 #t))))))
7017 (build-system cmake-build-system)
7018 (inputs `(("bzip2" ,bzip2)
7019 ("fluid-3" ,fluid-3)
7020 ("fluidsynth" ,fluidsynth)
7021 ("gtk+3" ,gtk+)
7022 ("libgme" ,libgme)
7023 ("libjpeg" ,libjpeg-turbo)
7024 ("libsndfile" ,libsndfile)
7025 ("mesa" ,mesa)
7026 ("mpg123" ,mpg123)
7027 ("openal" ,openal)
7028 ("sdl2" ,sdl2)
7029 ("timidity++" ,timidity++)
7030 ("zlib" ,zlib)))
7031 (native-inputs `(("pkg-config" ,pkg-config)
7032 ("unzip" ,unzip)))
7033 (synopsis "Modern Doom 2 source port")
7034 (description "GZdoom is a port of the Doom 2 game engine, with a modern
7035 renderer. It improves modding support with ZDoom's advanced mapping features
7036 and the new ZScript language. In addition to Doom, it supports Heretic, Hexen,
7037 Strife, Chex Quest, and fan-created games like Harmony, Hacx and Freedoom.")
7038 (home-page "https://zdoom.org/index")
7039 ;; The source uses x86 assembly
7040 (supported-systems '("x86_64-linux" "i686-linux"))
7041 (license (list license:gpl3+ ; gzdoom game
7042 license:lgpl3+ ; gzdoom renderer
7043 license:expat ; gdtoa
7044 (license:non-copyleft ; modified dumb
7045 "file://dumb/licence.txt"
7046 "Dumb license, explicitly GPL compatible.")))))
7047
7048 (define-public odamex
7049 (package
7050 (name "odamex")
7051 (version "0.8.3")
7052 (source
7053 (origin
7054 (method url-fetch)
7055 (uri (string-append
7056 "mirror://sourceforge/odamex/Odamex/" version "/"
7057 "odamex-src-" version ".tar.gz"))
7058 (sha256
7059 (base32 "0f887g87bmcq4dpcga7xc2mpxs947dkbc934ir9xs55gz6z13q96"))))
7060 (build-system cmake-build-system)
7061 (arguments `(#:tests? #f)) ; no tests
7062 (inputs
7063 `(("sdl" ,sdl)
7064 ("sdl-mixer" ,sdl-mixer)
7065 ("zlib" ,zlib)
7066 ("libpng" ,libpng)
7067 ("alsa-lib" ,alsa-lib)))
7068 (home-page "https://odamex.net/")
7069 (synopsis "Multiplayer Doom port")
7070 (description "Odamex is a modification of the Doom engine that
7071 allows players to easily join servers dedicated to playing Doom
7072 online.")
7073 (license license:gpl2+)))
7074
7075 (define-public chocolate-doom
7076 (package
7077 (name "chocolate-doom")
7078 (version "3.0.1")
7079 (source (origin
7080 (method url-fetch)
7081 (uri (string-append "https://www.chocolate-doom.org/downloads/"
7082 version
7083 "/chocolate-doom-"
7084 version
7085 ".tar.gz"))
7086 (sha256
7087 (base32
7088 "1iy8rx7kjvi1zjiw4zh77szzmd1sgpqajvbhprh1sj93fhbxcdfl"))))
7089 (build-system gnu-build-system)
7090 (inputs `(("sdl2-net" ,sdl2-net)
7091 ("sdl2-mixer" , sdl2-mixer)
7092 ("sdl2" ,sdl2)))
7093 (native-inputs
7094 `(("pkg-config" ,pkg-config)))
7095 (synopsis "Doom source port preserving the look, feel, and bugs of vanilla
7096 Doom")
7097 (description
7098 "Chocolate Doom takes a different approach to other source ports. Its
7099 aim is to accurately reproduce the experience of playing Vanilla Doom. It is
7100 a conservative, historically accurate Doom source port, which is compatible
7101 with the thousands of mods and levels that were made before the Doom source
7102 code was released. Rather than flashy new graphics, Chocolate Doom's main
7103 features are its accurate reproduction of the game as it was played in the
7104 1990s. The project is developed around a carefully-considered philosophy that
7105 intentionally restricts which features may be added (and rejects any that
7106 affect gameplay).")
7107 (home-page "https://www.chocolate-doom.org/wiki/index.php/Chocolate_Doom")
7108 (license license:gpl2)))
7109
7110 (define-public crispy-doom
7111 (package
7112 (inherit chocolate-doom)
7113 (name "crispy-doom")
7114 (version "5.8.0")
7115 (source (origin
7116 (method git-fetch)
7117 (uri (git-reference
7118 (url "https://github.com/fabiangreffrath/crispy-doom")
7119 (commit (string-append "crispy-doom-" version))))
7120 (file-name (git-file-name name version))
7121 (sha256
7122 (base32 "1b6gn0dysv631jynh769whww9xcss1gms78sz3nrn855q1dsvcb4"))))
7123 (native-inputs
7124 (append
7125 (package-native-inputs chocolate-doom)
7126 `(("automake" ,automake)
7127 ("autoreconf" ,autoconf))))
7128 (arguments
7129 `(#:phases
7130 (modify-phases %standard-phases
7131 (replace 'bootstrap
7132 ;; The bundled autogen.sh script unconditionally runs ./configure.
7133 (lambda _ (invoke "autoreconf" "-vif"))))))
7134 (synopsis "Limit-removing enhanced-resolution Doom source port based on
7135 Chocolate Doom")
7136 (description
7137 "Crispy Doom is a friendly fork of Chocolate Doom that provides a higher
7138 display resolution, removes the static limits of the Doom engine and offers
7139 further optional visual, tactical and physical enhancements while remaining
7140 entirely config file, savegame, netplay and demo compatible with the
7141 original.")
7142 (home-page "https://www.chocolate-doom.org/wiki/index.php/Crispy_Doom")))
7143
7144 (define shlomif-cmake-modules
7145 (origin
7146 (method url-fetch)
7147 (uri (string-append "https://bitbucket.org/shlomif/shlomif-cmake-modules/"
7148 "raw/c505713d7a7cda608f97f01577e5868a711b883e/"
7149 "shlomif-cmake-modules/Shlomif_Common.cmake"))
7150 (sha256
7151 (base32 "0kx9s1qqhhzprp1w3b67xmsns0n0v506bg5hgrshxaxpy6lqiwb2"))))
7152
7153 (define-public rinutils
7154 (package
7155 (name "rinutils")
7156 (version "0.2.0")
7157 (source (origin
7158 (method git-fetch)
7159 (uri (git-reference
7160 (url "https://github.com/shlomif/rinutils")
7161 (commit version)))
7162 (file-name (git-file-name name version))
7163 (sha256
7164 (base32
7165 "1fpxyg86ggv0h7j8aarjjxrvwlj7jycd3bw066c0dwkq2fszxsf2"))))
7166 (native-inputs
7167 `(("perl" ,perl)
7168 ;; The following is only needed for tests.
7169 ("perl-file-find-object" ,perl-file-find-object)
7170 ("perl-test-differences" ,perl-test-differences)
7171 ("perl-class-xsaccessor" ,perl-class-xsaccessor)
7172 ("perl-io-all" ,perl-io-all)
7173 ("perl-test-runvalgrind" ,perl-test-runvalgrind)
7174 ("cmake-rules" ,shlomif-cmake-modules)
7175 ("pkg-config" ,pkg-config)))
7176 (inputs
7177 `(("cmocka" ,cmocka)
7178 ("perl-env-path", perl-env-path)
7179 ("perl-inline" ,perl-inline)
7180 ("perl-inline-c" ,perl-inline-c)
7181 ("perl-string-shellquote" ,perl-string-shellquote)
7182 ("perl-test-trailingspace" ,perl-test-trailingspace)
7183 ("perl-file-find-object-rule" ,perl-file-find-object-rule)
7184 ("perl-text-glob" ,perl-text-glob)
7185 ("perl-number-compare" ,perl-number-compare)
7186 ("perl-moo" ,perl-moo)))
7187 (arguments
7188 `(#:phases
7189 (modify-phases %standard-phases
7190 (add-after 'unpack 'fix-build-env
7191 (lambda* (#:key inputs #:allow-other-keys)
7192 (use-modules (guix build utils))
7193 (let* ((cmake-rules (assoc-ref inputs "cmake-rules")))
7194 (copy-file cmake-rules
7195 (string-append "cmake/"
7196 (strip-store-file-name cmake-rules)))
7197 #t)))
7198 (replace 'check
7199 (lambda _
7200 (with-directory-excursion "../source"
7201 (setenv "FCS_TEST_BUILD" "1")
7202 (setenv "RINUTILS_TEST_BUILD" "1")
7203 ;; TODO: Run tests after setting RINUTILS_TEST_TIDY to `1',
7204 ;; which requires tidy-all.
7205 ;; (setenv "RINUTILS_TEST_TIDY" "1")
7206 (invoke "perl" "CI-testing/continuous-integration-testing.pl")))))))
7207 (build-system cmake-build-system)
7208 (home-page "https://www.shlomifish.org/open-source/projects/")
7209 (synopsis "C11 / gnu11 utilities C library")
7210 (description "This package provides C11 / gnu11 utilities C library")
7211 (license license:expat)))
7212
7213 (define-public fortune-mod
7214 (package
7215 (name "fortune-mod")
7216 (version "2.28.0")
7217 (source
7218 (origin
7219 (method git-fetch)
7220 (uri (git-reference
7221 (url "https://github.com/shlomif/fortune-mod")
7222 (commit (string-append "fortune-mod-" version))))
7223 (file-name (git-file-name name version))
7224 (sha256
7225 (base32 "1ppzgnffgdcmq6fq4gmdq2ig10ip2bnfgklkb3i8nc6bdxm7pb89"))))
7226 (build-system cmake-build-system)
7227 (arguments
7228 `(#:test-target "check"
7229 #:phases
7230 (modify-phases %standard-phases
7231 (add-after 'unpack 'fix-build-env
7232 (lambda* (#:key inputs #:allow-other-keys)
7233 (use-modules (guix build utils))
7234 (let* ((cmake-rules (assoc-ref inputs "cmake-rules")))
7235 (copy-file cmake-rules
7236 (string-append "fortune-mod/cmake/"
7237 (strip-store-file-name cmake-rules)))
7238 (chdir "fortune-mod")
7239 ;; TODO: Valgrind tests fail for some reason.
7240 ;; Similar issue: https://github.com/shlomif/fortune-mod/issues/21 (?)
7241 (delete-file "tests/t/valgrind.t")
7242 #t)))
7243 (add-after 'install 'fix-install-directory
7244 (lambda* (#:key outputs #:allow-other-keys)
7245 ;; Move binary from "games/" to "bin/" and remove the latter. This
7246 ;; is easier than patching CMakeLists.txt since the tests hard-code
7247 ;; the location as well.
7248 (let* ((out (assoc-ref outputs "out"))
7249 (bin (string-append out "/bin"))
7250 (games (string-append out "/games")))
7251 (rename-file (string-append games "/fortune")
7252 (string-append bin "/fortune"))
7253 (rmdir games)
7254 #t))))))
7255 (inputs `(("recode" ,recode)))
7256 (native-inputs
7257 `(("perl" ,perl)
7258 ;; The following is only needed for tests.
7259 ("perl-file-find-object" ,perl-file-find-object)
7260 ("perl-test-differences" ,perl-test-differences)
7261 ("perl-class-xsaccessor" ,perl-class-xsaccessor)
7262 ("perl-io-all" ,perl-io-all)
7263 ("perl-test-runvalgrind" ,perl-test-runvalgrind)
7264 ("cmake-rules" ,shlomif-cmake-modules)
7265 ("rinutils" ,rinutils)))
7266 (home-page "https://www.shlomifish.org/open-source/projects/fortune-mod/")
7267 (synopsis "The Fortune Cookie program from BSD games")
7268 (description "Fortune is a command-line utility which displays a random
7269 quotation from a collection of quotes.")
7270 (license license:bsd-4)))
7271
7272 (define xonotic-data
7273 (package
7274 (name "xonotic-data")
7275 (version "0.8.2")
7276 (source
7277 (origin
7278 (method url-fetch)
7279 (uri (string-append "http://dl.xonotic.org/xonotic-"
7280 version ".zip"))
7281 (file-name (string-append name "-" version ".zip"))
7282 (sha256
7283 (base32
7284 "1mcs6l4clvn7ibfq3q69k2p0z6ww75rxvnngamdq5ic6yhq74bx2"))))
7285 (build-system trivial-build-system)
7286 (native-inputs
7287 `(("unzip" ,unzip)))
7288 (arguments
7289 `(#:modules ((guix build utils))
7290 #:builder
7291 (begin
7292 (use-modules (guix build utils))
7293 (let* ((out (assoc-ref %outputs "out"))
7294 (xonotic (string-append out "/share/xonotic"))
7295 (source (assoc-ref %build-inputs "source"))
7296 (unzip (string-append (assoc-ref %build-inputs "unzip") "/bin/unzip")))
7297 (copy-file source (string-append ,name "-" ,version ".zip"))
7298 (invoke unzip (string-append ,name "-" ,version ".zip"))
7299 (mkdir-p out)
7300 (mkdir-p xonotic)
7301 (chdir "Xonotic")
7302 (copy-recursively "data"
7303 (string-append xonotic "/data"))
7304 (copy-recursively "server"
7305 (string-append xonotic "/server"))
7306 (install-file "key_0.d0pk" xonotic)))))
7307 (home-page "http://xonotic.org")
7308 (synopsis "Data files for Xonotic")
7309 (description
7310 "Xonotic-data provides the data files required by the game Xonotic.")
7311 (license (list license:gpl2+
7312 (license:x11-style "file://server/rcon.pl")))))
7313
7314 (define-public xonotic
7315 (package
7316 (name "xonotic")
7317 (version "0.8.2")
7318 (source
7319 (origin
7320 (method url-fetch)
7321 (uri (string-append "http://dl.xonotic.org/xonotic-"
7322 version "-source.zip"))
7323 (file-name (string-append name "-" version ".zip"))
7324 (sha256
7325 (base32
7326 "0axxw04fyz6jlfqd0kp7hdrqa0li31sx1pbipf2j5qp9wvqicsay"))))
7327 (build-system gnu-build-system)
7328 (arguments
7329 `(#:configure-flags (list (string-append "--prefix="
7330 (assoc-ref %outputs "out"))
7331 "--disable-rijndael")
7332 #:phases
7333 (modify-phases %standard-phases
7334 (add-before 'configure 'make-darkplaces
7335 (lambda* (#:key outputs #:allow-other-keys)
7336 (let* ((out (assoc-ref outputs "out"))
7337 (sharedir (string-append out "/share/xonotic/")))
7338 (invoke "make" "-C" "source/darkplaces"
7339 (string-append "DP_FS_BASEDIR="
7340 sharedir)
7341 "DP_LINK_TO_LIBJPEG=1"
7342 "DP_SOUND_API=ALSA"
7343 "CC=gcc"
7344 "-f" "makefile"
7345 "cl-release")
7346 (invoke "make" "-C" "source/darkplaces"
7347 (string-append "DP_FS_BASEDIR="
7348 sharedir)
7349 "DP_LINK_TO_LIBJPEG=1"
7350 "DP_SOUND_API=ALSA"
7351 "CC=gcc"
7352 "-f" "makefile"
7353 "sdl-release")
7354 (invoke "make" "-C" "source/darkplaces"
7355 (string-append "DP_FS_BASEDIR="
7356 sharedir)
7357 "DP_LINK_TO_LIBJPEG=1"
7358 "DP_SOUND_API=ALSA"
7359 "CC=gcc"
7360 "-f" "makefile"
7361 "sv-release"))))
7362 (add-before 'configure 'bootstrap
7363 (lambda _
7364 (chdir "source/d0_blind_id")
7365 (invoke "sh" "autogen.sh")))
7366 (add-after 'build 'install-desktop-entry
7367 (lambda* (#:key outputs #:allow-other-keys)
7368 ;; Add .desktop files for the 2 variants and the symlink
7369 (let* ((output (assoc-ref outputs "out"))
7370 (apps (string-append output "/share/applications")))
7371 (mkdir-p apps)
7372 (with-output-to-file
7373 (string-append apps "/xonotic-glx.desktop")
7374 (lambda _
7375 (format #t
7376 "[Desktop Entry]~@
7377 Name=xonotic-glx~@
7378 Comment=Xonotic glx~@
7379 Exec=~a/bin/xonotic-glx~@
7380 TryExec=~@*~a/bin/xonotic-glx~@
7381 Icon=xonotic~@
7382 Categories=Game~@
7383 Type=Application~%"
7384 output)))
7385 (with-output-to-file
7386 (string-append apps "/xonotic-sdl.desktop")
7387 (lambda _
7388 (format #t
7389 "[Desktop Entry]~@
7390 Name=xonotic-sdl~@
7391 Comment=Xonotic sdl~@
7392 Exec=~a/bin/xonotic-sdl~@
7393 TryExec=~@*~a/bin/xonotic-sdl~@
7394 Icon=xonotic~@
7395 Categories=Game~@
7396 Type=Application~%"
7397 output)))
7398 (with-output-to-file
7399 (string-append apps "/xonotic.desktop")
7400 (lambda _
7401 (format #t
7402 "[Desktop Entry]~@
7403 Name=xonotic~@
7404 Comment=Xonotic~@
7405 Exec=~a/bin/xonotic-glx~@
7406 TryExec=~@*~a/bin/xonotic~@
7407 Icon=xonotic~@
7408 Categories=Game~@
7409 Type=Application~%"
7410 output)))
7411 #t)))
7412 (add-after 'install-desktop-entry 'install-icons
7413 (lambda* (#:key outputs #:allow-other-keys)
7414 (let ((out (assoc-ref outputs "out")))
7415 (with-directory-excursion "../../misc/logos/icons_png/"
7416 (for-each
7417 (lambda (file)
7418 (let* ((size (string-filter char-numeric? file))
7419 (icons (string-append out "/share/icons/hicolor/"
7420 size "x" size "/apps")))
7421 (mkdir-p icons)
7422 (copy-file file (string-append icons "/xonotic.png"))))
7423 '("xonotic_16.png" "xonotic_22.png" "xonotic_24.png"
7424 "xonotic_32.png" "xonotic_48.png" "xonotic_64.png"
7425 "xonotic_128.png" "xonotic_256.png" "xonotic_512.png"))))))
7426 (add-after 'install-icons 'install-binaries
7427 (lambda* (#:key outputs #:allow-other-keys)
7428 (let ((out (assoc-ref outputs "out")))
7429 (define (install src dst)
7430 (let ((dst (string-append out dst)))
7431 (mkdir-p (dirname dst))
7432 (copy-file src dst)))
7433 (mkdir-p (string-append out "/bin"))
7434 (install "../darkplaces/darkplaces-dedicated"
7435 "/bin/xonotic-dedicated")
7436 (install "../darkplaces/darkplaces-glx"
7437 "/bin/xonotic-glx")
7438 (install "../darkplaces/darkplaces-sdl"
7439 "/bin/xonotic-sdl")
7440 ;; Provide a default xonotic executable, defaulting to SDL.
7441 (symlink (string-append out "/bin/xonotic-sdl")
7442 (string-append out "/bin/xonotic"))
7443 #t)))
7444 (add-after 'install-binaries 'install-data
7445 (lambda* (#:key outputs inputs #:allow-other-keys)
7446 (let* ((out (assoc-ref outputs "out"))
7447 (data (assoc-ref inputs "xonotic-data")))
7448 (symlink (string-append data "/share/xonotic")
7449 (string-append out "/share/xonotic"))
7450 #t)))
7451 (add-after 'install-binaries 'wrap-binaries
7452 (lambda* (#:key outputs inputs #:allow-other-keys)
7453 ;; Curl and libvorbis need to be wrapped so that we get
7454 ;; sound and networking.
7455 (let* ((out (assoc-ref outputs "out"))
7456 (bin (string-append out "/bin/xonotic"))
7457 (bin-sdl (string-append out "/bin/xonotic-sdl"))
7458 (bin-glx (string-append out "/bin/xonotic-glx"))
7459 (bin-dedicated (string-append out "/bin/xonotic-dedicated"))
7460 (curl (assoc-ref inputs "curl"))
7461 (vorbis (assoc-ref inputs "libvorbis")))
7462 (wrap-program bin
7463 `("LD_LIBRARY_PATH" ":" prefix
7464 (,(string-append curl "/lib:" vorbis "/lib"))))
7465 (wrap-program bin-sdl
7466 `("LD_LIBRARY_PATH" ":" prefix
7467 (,(string-append curl "/lib:" vorbis "/lib"))))
7468 (wrap-program bin-glx
7469 `("LD_LIBRARY_PATH" ":" prefix
7470 (,(string-append curl "/lib:" vorbis "/lib"))))
7471 (wrap-program bin-dedicated
7472 `("LD_LIBRARY_PATH" ":" prefix
7473 (,(string-append curl "/lib:" vorbis "/lib"))))
7474 #t))))))
7475 (inputs
7476 `(("xonotic-data" ,xonotic-data)
7477 ("alsa-lib" ,alsa-lib)
7478 ("curl" ,curl)
7479 ("libjpeg" ,libjpeg-turbo)
7480 ("libmodplug" ,libmodplug)
7481 ("libvorbis" ,libvorbis)
7482 ("libogg" ,libogg)
7483 ("libxpm" ,libxpm)
7484 ("libxxf86dga" ,libxxf86dga)
7485 ("libxxf86vm" ,libxxf86vm)
7486 ("libx11" ,libx11)
7487 ("libxext" ,libxext)
7488 ("libxau" ,libxau)
7489 ("libxdmcp" ,libxdmcp)
7490 ("mesa" ,mesa)
7491 ("glu" ,glu)
7492 ("freetype" ,freetype)
7493 ("sdl2" ,sdl2)
7494 ("libpng" ,libpng)
7495 ("hicolor-icon-theme" ,hicolor-icon-theme)))
7496 (native-inputs
7497 `(("unzip" ,unzip)
7498 ("autoconf" ,autoconf)
7499 ("automake" ,automake)
7500 ("pkg-config" ,pkg-config)
7501 ("libtool" ,libtool)
7502 ("gmp" ,gmp)))
7503 (home-page "https://xonotic.org")
7504 (synopsis "Fast-paced first-person shooter game")
7505 (description
7506 "Xonotic is a free, fast-paced first-person shooter.
7507 The project is geared towards providing addictive arena shooter
7508 gameplay which is all spawned and driven by the community itself.
7509 Xonotic is a direct successor of the Nexuiz project with years of
7510 development between them, and it aims to become the best possible
7511 open-source FPS of its kind.")
7512 (license (list license:gpl2+
7513 license:bsd-3 ; /source/d0_blind_id folder and others
7514 (license:x11-style "" "See file rcon.pl.")))))
7515
7516 (define-public frotz
7517 (package
7518 (name "frotz")
7519 (version "2.44")
7520 (source (origin
7521 (method url-fetch)
7522 (uri (list (string-append
7523 "http://www.ifarchive.org/if-archive/infocom/interpreters/"
7524 "frotz/frotz-" version ".tar.gz")
7525 (string-append
7526 "ftp://ftp.ifarchive.org/if-archive/infocom/interpreters/"
7527 "frotz/frotz-" version ".tar.gz")))
7528 (sha256
7529 (base32
7530 "1v735xr3blznac8fnwa27s1vhllx4jpz7kw7qdw1bsfj6kq21v3k"))))
7531 (build-system gnu-build-system)
7532 (arguments
7533 `(#:tests? #f ; there are no tests
7534 #:phases
7535 (modify-phases %standard-phases
7536 (delete 'configure)
7537 (add-before 'build 'curses
7538 (lambda _
7539 (substitute* "Makefile"
7540 (("lcurses") "lncurses"))
7541 #t))
7542 (replace 'install
7543 (lambda* (#:key outputs #:allow-other-keys)
7544 (let* ((out (assoc-ref outputs "out"))
7545 (bin (string-append out "/bin"))
7546 (man (string-append out "/share/man/man6")))
7547 (install-file "frotz" bin)
7548 (mkdir-p man)
7549 (install-file "doc/frotz.6" man)
7550 #t))))))
7551 (inputs `(("libmodplug" ,libmodplug)
7552 ("libsamplerate" ,libsamplerate)
7553 ("libsndfile" ,libsndfile)
7554 ("libvorbis" ,libvorbis)
7555 ("ncurses" ,ncurses)))
7556 (synopsis "Portable Z-machine interpreter (ncurses version) for text adventure games")
7557 (description "Frotz is an interpreter for Infocom games and other Z-machine
7558 games in the text adventure/interactive fiction genre. This version of Frotz
7559 complies with standard 1.0 of Graham Nelson's specification. It plays all
7560 Z-code games V1-V8, including V6, with sound support through libao, and uses
7561 ncurses for text display.")
7562 (home-page "http://frotz.sourceforge.net")
7563 (license license:gpl2+)))
7564
7565 (define-public frotz-dumb-terminal
7566 (package
7567 (name "frotz-dumb-terminal")
7568 (version "2.44")
7569 (source (origin
7570 (method url-fetch)
7571 (uri (list (string-append
7572 "http://www.ifarchive.org/if-archive/infocom/interpreters/"
7573 "frotz/frotz-" version ".tar.gz")
7574 (string-append
7575 "ftp://ftp.ifarchive.org/if-archive/infocom/interpreters/"
7576 "frotz/frotz-" version ".tar.gz")))
7577 (sha256
7578 (base32
7579 "1v735xr3blznac8fnwa27s1vhllx4jpz7kw7qdw1bsfj6kq21v3k"))))
7580 (build-system gnu-build-system)
7581 (arguments
7582 `(#:tests? #f ; there are no tests
7583 #:phases
7584 (modify-phases %standard-phases
7585 (delete 'configure)
7586 (replace 'build
7587 (lambda _
7588 (invoke "make" "dumb")))
7589 (replace 'install
7590 (lambda* (#:key outputs #:allow-other-keys)
7591 (let* ((out (assoc-ref outputs "out"))
7592 (bin (string-append out "/bin"))
7593 (man (string-append out "/share/man/man6")))
7594 (install-file "dfrotz" bin)
7595 (mkdir-p man)
7596 (install-file "doc/dfrotz.6" man)
7597 #t))))))
7598 (synopsis "Portable Z-machine dumb interpreter for text adventure games")
7599 (description "Frotz is an interpreter for Infocom games and
7600 other Z-machine games in the text adventure/interactive fiction genre.
7601 dfrotz is the dumb interface version. You get no screen control; everything
7602 is just printed to the terminal line by line. The terminal handles all the
7603 scrolling. Maybe you'd like to experience what it's like to play Adventure on
7604 a teletype. A much cooler use for compiling Frotz with the dumb interface is
7605 that it can be wrapped in CGI scripting, PHP, and the like to allow people
7606 to play games on webpages. It can also be made into a chat bot.")
7607 (home-page "http://frotz.sourceforge.net")
7608 (license license:gpl2+)))
7609
7610 (define-public frotz-sdl
7611 (let* ((commit "4de8c34f2116fff554af6216c30ec9d41bf50b24"))
7612 (package
7613 (name "frotz-sdl")
7614 (version "2.45pre")
7615 (source (origin
7616 (method git-fetch)
7617 (uri (git-reference
7618 (url "https://gitlab.com/DavidGriffith/frotz")
7619 (commit commit)))
7620 (sha256
7621 (base32
7622 "18ms21pcrl7ipcnyqnf8janamkryzx78frsgd9kfk67jvbj0z2k8"))
7623 (file-name (git-file-name name version))))
7624 (build-system gnu-build-system)
7625 (arguments
7626 `(#:tests? #f ; there are no tests
7627 #:phases
7628 (modify-phases %standard-phases
7629 (delete 'configure)
7630 (add-before 'build 'patch-makefile
7631 (lambda _
7632 (substitute* "Makefile"
7633 (("lcurses") "lncurses")
7634 (("^BUILD_DATE_TIME =.*$")
7635 "BUILD_DATE_TIME = \"2.45pre-20180907.00000\"\n"))
7636 #t))
7637 (replace 'build
7638 (lambda _
7639 (invoke "make" "sdl")))
7640 (replace 'install
7641 (lambda* (#:key outputs #:allow-other-keys)
7642 (let* ((out (assoc-ref outputs "out"))
7643 (bin (string-append out "/bin"))
7644 (man (string-append out "/share/man/man6")))
7645 (install-file "sfrotz" bin)
7646 (mkdir-p man)
7647 (install-file "doc/sfrotz.6" man)
7648 #t))))))
7649 (native-inputs
7650 `(("pkg-config" ,pkg-config)
7651 ("which" ,which)
7652 ("perl" ,perl)))
7653 (inputs `(("sdl2" ,sdl2)
7654 ("sdl2-mixer" ,sdl2-mixer)
7655 ("libmodplug" ,libmodplug)
7656 ("libsamplerate" ,libsamplerate)
7657 ("libsndfile" ,libsndfile)
7658 ("libvorbis" ,libvorbis)
7659 ("ncurses" ,ncurses)
7660 ("freetype" ,freetype)
7661 ("libjpeg-turbo" ,libjpeg-turbo)))
7662 (synopsis "Portable Z-machine interpreter (SDL port) for text adventure games")
7663 (description "Frotz is an interpreter for Infocom games and other Z-machine
7664 games in the text adventure/interactive fiction genre. This version of Frotz
7665 using SDL fully supports all these versions of the Z-Machine including the
7666 graphical version 6. Graphics and sound are created through the use of the SDL
7667 libraries. AIFF sound effects and music in MOD and OGG formats are supported
7668 when packaged in Blorb container files or optionally from individual files.")
7669 (home-page "http://frotz.sourceforge.net")
7670 (license license:gpl2+))))
7671
7672 (define-public frozen-bubble
7673 ;; Last official release is very outdated (2010). Use latest commit (2017).
7674 (let ((commit "d6a029110ad6ab9e4960052e175addc98807fb7e")
7675 (revision "1"))
7676 (package
7677 (name "frozen-bubble")
7678 (version (git-version "2.2.1" revision commit))
7679 (source
7680 (origin
7681 (method git-fetch)
7682 (uri (git-reference
7683 (url "https://github.com/kthakore/frozen-bubble")
7684 (commit commit)))
7685 (file-name (git-file-name name version))
7686 (sha256
7687 (base32 "1rfrcym5lf4qac2qdklikb1ywijyxypq298azzxahy461dadl6cx"))))
7688 (build-system perl-build-system)
7689 (arguments
7690 `(#:phases
7691 (modify-phases %standard-phases
7692 ;; Build process needs to create files in the "server"
7693 ;; directory.
7694 (add-after 'unpack 'fix-permissions
7695 (lambda _
7696 (for-each make-file-writable
7697 (find-files "server" "." #:directories? #t))))
7698 ;; By default, build stops at warnings.
7699 (add-after 'unpack 'prevent-build-error
7700 (lambda _
7701 (substitute* "inc/My/Builder.pm"
7702 (("-Werror") ""))
7703 #t))
7704 (add-after 'install 'install-desktop-file-and-icons
7705 (lambda* (#:key outputs #:allow-other-keys)
7706 (let* ((share (string-append (assoc-ref outputs "out") "/share"))
7707 (hicolor (string-append share "/icons/hicolor")))
7708 ;; Create desktop entry.
7709 (make-desktop-entry-file
7710 (string-append share "/applications/" ,name ".desktop")
7711 #:name "Frozen Bubble"
7712 #:comment "Frozen Bubble arcade game"
7713 #:exec ,name
7714 #:icon ,name
7715 #:categories '("Game" "ArcadeGame"))
7716 ;; Add icons.
7717 (with-directory-excursion "share/icons"
7718 (for-each
7719 (lambda (size)
7720 (let* ((dim (string-append size "x" size))
7721 (dir (string-append hicolor "/" dim "/apps")))
7722 (mkdir-p dir)
7723 (copy-file
7724 (string-append "frozen-bubble-icon-" dim ".png")
7725 (string-append dir "/frozen-bubble.png"))))
7726 '("16" "32" "48" "64"))))
7727 #t))
7728 (add-after 'install 'wrap-perl-libs
7729 (lambda* (#:key outputs #:allow-other-keys)
7730 (let ((out (assoc-ref outputs "out"))
7731 (perl5lib (getenv "PERL5LIB")))
7732 (for-each (lambda (prog)
7733 (wrap-program (string-append out "/" prog)
7734 `("PERL5LIB" ":" prefix
7735 (,(string-append perl5lib ":" out
7736 "/lib/perl5/site_perl")))))
7737 (find-files "bin" ".")))
7738 #t)))))
7739 (native-inputs
7740 `(("perl-alien-sdl" ,perl-alien-sdl)
7741 ("perl-capture-tiny" ,perl-capture-tiny)
7742 ("perl-locale-maketext-lexicon" ,perl-locale-maketext-lexicon)
7743 ("perl-module-build" ,perl-module-build)
7744 ("pkg-config" ,pkg-config)))
7745 (inputs
7746 `(("glib" ,glib)
7747 ("perl-compress-bzip2" ,perl-compress-bzip2)
7748 ("perl-file-sharedir" ,perl-file-sharedir)
7749 ("perl-file-slurp" ,perl-file-slurp)
7750 ("perl-file-which" ,perl-file-which)
7751 ("perl-ipc-system-simple" ,perl-ipc-system-simple)
7752 ("perl-sdl" ,perl-sdl)
7753 ("sdl" ,(sdl-union (list sdl sdl-image sdl-mixer sdl-pango sdl-ttf)))))
7754 (home-page "http://frozen-bubble.org/")
7755 (synopsis "Puzzle with bubbles")
7756 (description
7757 "Frozen-Bubble is a clone of the popular Puzzle Bobble game, in which
7758 you attempt to shoot bubbles into groups of the same color to cause them to
7759 pop.
7760
7761 Players compete as penguins and must use the arrow keys to aim a colored
7762 bubble at groups of bubbles. The objective is to clear all the bubbles off
7763 the screen before a bubble passes below a line at the bottom.
7764
7765 It features 100 single-player levels, a two-player mode, music and striking
7766 graphics. A level editor is also included to allow players to create and play
7767 their own levels.")
7768 (license license:gpl2))))
7769
7770 (define-public libmanette
7771 (package
7772 (name "libmanette")
7773 (version "0.2.4")
7774 (source (origin
7775 (method url-fetch)
7776 (uri (string-append "mirror://gnome/sources/libmanette/"
7777 (version-major+minor version) "/"
7778 "libmanette-" version ".tar.xz"))
7779 (sha256
7780 (base32
7781 "1xrc6rh73v5w3kbkflzv1yg8sbxk4wf06hfk95raxhxlssza9q2g"))))
7782 (build-system meson-build-system)
7783 (native-inputs
7784 `(("glib" ,glib "bin") ; for glib-compile-resources
7785 ("gobject-introspection" ,gobject-introspection)
7786 ("pkg-config" ,pkg-config)
7787 ("vala" ,vala)))
7788 (inputs
7789 `(("libevdev" ,libevdev)
7790 ("libgudev" ,libgudev)))
7791 (home-page "https://wiki.gnome.org/Apps/Games")
7792 (synopsis "Game controller library")
7793 (description "Libmanette is a small GObject library giving you simple
7794 access to game controllers. It supports the de-facto standard gamepads as
7795 defined by the W3C standard Gamepad specification or as implemented by the SDL
7796 GameController.")
7797 (license license:lgpl2.1+)))
7798
7799 (define-public quadrapassel
7800 (package
7801 (name "quadrapassel")
7802 (version "3.36.05")
7803 (source (origin
7804 (method url-fetch)
7805 (uri (string-append "mirror://gnome/sources/quadrapassel/"
7806 (version-major+minor version) "/"
7807 "quadrapassel-" version ".tar.xz"))
7808 (sha256
7809 (base32
7810 "04abxmimh5npw8rhz1sfi6wxilgc6i1wka9mlnfwp8v1p1cb00cv"))))
7811 (build-system meson-build-system)
7812 (arguments
7813 '(#:glib-or-gtk? #t
7814 #:phases
7815 (modify-phases %standard-phases
7816 (add-after 'unpack 'skip-gtk-update-icon-cache
7817 ;; Don't create 'icon-theme.cache'.
7818 (lambda _
7819 (substitute* "build-aux/meson_post_install.py"
7820 (("gtk-update-icon-cache") (which "true")))
7821 #t)))))
7822 (native-inputs
7823 `(("desktop-file-utils" ,desktop-file-utils) ;for desktop-file-validate
7824 ("gettext" ,gettext-minimal)
7825 ("glib" ,glib "bin") ;for glib-compile-resources
7826 ("itstool" ,itstool)
7827 ("libxml2" ,libxml2) ;for xmllint
7828 ("pkg-config" ,pkg-config)
7829 ("vala" ,vala)))
7830 (inputs
7831 `(("clutter" ,clutter)
7832 ("clutter-gtk" ,clutter-gtk)
7833 ("gsound" ,gsound)
7834 ("gtk+" ,gtk+)
7835 ("libcanberra" ,libcanberra)
7836 ("libmanette" ,libmanette)
7837 ("librsvg" ,librsvg)))
7838 (home-page "https://wiki.gnome.org/Apps/Quadrapassel")
7839 (synopsis "GNOME version of Tetris")
7840 (description "Quadrapassel comes from the classic falling-block game,
7841 Tetris. The goal of the game is to create complete horizontal lines of
7842 blocks, which will disappear. The blocks come in seven different shapes made
7843 from four blocks each: one straight, two L-shaped, one square, and two
7844 S-shaped. The blocks fall from the top center of the screen in a random
7845 order. You rotate the blocks and move them across the screen to drop them in
7846 complete lines. You score by dropping blocks fast and completing lines. As
7847 your score gets higher, you level up and the blocks fall faster.")
7848 (license license:gpl2+)))
7849
7850 (define-public endless-sky
7851 (package
7852 (name "endless-sky")
7853 (version "0.9.12")
7854 (source
7855 (origin
7856 (method git-fetch)
7857 (uri (git-reference
7858 (url "https://github.com/endless-sky/endless-sky")
7859 (commit (string-append "v" version))))
7860 (file-name (git-file-name name version))
7861 (sha256
7862 (base32 "18nkl4s3r5sy3sd9lhbdg9160c7fggklklprx0d5azifc8g6k0wj"))))
7863 (build-system scons-build-system)
7864 (arguments
7865 `(#:scons ,scons-python2
7866 #:scons-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
7867 #:tests? #f ; no tests
7868 #:phases
7869 (modify-phases %standard-phases
7870 (add-after 'unpack 'patch-resource-locations
7871 (lambda* (#:key outputs #:allow-other-keys)
7872 (substitute* "source/Files.cpp"
7873 (("/usr/local/")
7874 (string-append (assoc-ref outputs "out") "/")))
7875 #t))
7876 (add-after 'unpack 'patch-scons
7877 (lambda _
7878 (substitute* "SConstruct"
7879 ;; Keep environmental variables
7880 (("Environment\\(\\)")
7881 "Environment(ENV = os.environ)")
7882 ;; Install into %out/bin
7883 (("games\"") "bin\""))
7884 #t)))))
7885 (inputs
7886 `(("glew" ,glew)
7887 ("libjpeg" ,libjpeg-turbo)
7888 ("libmad" ,libmad)
7889 ("libpng" ,libpng)
7890 ("openal" ,openal)
7891 ("sdl2" ,sdl2)))
7892 (home-page "https://endless-sky.github.io/")
7893 (synopsis "2D space trading and combat game")
7894 (description "Endless Sky is a 2D space trading and combat game. Explore
7895 other star systems. Earn money by trading, carrying passengers, or completing
7896 missions. Use your earnings to buy a better ship or to upgrade the weapons and
7897 engines on your current one. Blow up pirates. Take sides in a civil war. Or
7898 leave human space behind and hope to find friendly aliens whose culture is more
7899 civilized than your own.")
7900 (license (list license:gpl3+
7901 license:cc-by-sa3.0
7902 license:cc-by-sa4.0
7903 license:public-domain))))
7904
7905 (define-public stepmania
7906 (package
7907 (name "stepmania")
7908 (version "5.1.0-b2")
7909 (source
7910 (origin
7911 (method git-fetch)
7912 (uri (git-reference
7913 (url "https://github.com/stepmania/stepmania")
7914 (commit (string-append "v" version))))
7915 (file-name (git-file-name name version))
7916 (sha256
7917 (base32
7918 "0a7y9l7xm510vgnpmj1is7p9m6d6yd0fcaxrjcickz295k5w3rdn"))
7919 (modules '((guix build utils)))
7920 (snippet
7921 '(begin
7922 ;; Remove song files, which are licensed under a non-commercial
7923 ;; clause, and a course pointing to them.
7924 (for-each delete-file-recursively
7925 '("Songs/StepMania 5/Goin' Under"
7926 "Songs/StepMania 5/MechaTribe Assault"
7927 "Songs/StepMania 5/Springtime"))
7928 (for-each delete-file '("Courses/Default/Jupiter.crs"
7929 "Courses/Default/Jupiter.png"))
7930 ;; Unbundle libpng.
7931 (substitute* "extern/CMakeLists.txt"
7932 (("include\\(CMakeProject-png.cmake\\)") ""))
7933 (delete-file-recursively "extern/libpng")
7934 #t))))
7935 (build-system cmake-build-system)
7936 (arguments
7937 `(#:tests? #f ;FIXME: couldn't find how to run tests
7938 #:build-type "Release"
7939 #:out-of-source? #f ;for the 'install-desktop' phase
7940 #:configure-flags
7941 (list "-DWITH_SYSTEM_FFMPEG=1"
7942 ;; SSE instructions are available on Intel systems only.
7943 ,@(if (any (cute string-prefix? <> (or (%current-target-system)
7944 (%current-system)))
7945 '("x86_64" "i686"))
7946 '()
7947 '("-DWITH_SSE2=NO"))
7948 ;; Configuration cannot find GTK2 without the two following
7949 ;; flags.
7950 (string-append "-DGTK2_GDKCONFIG_INCLUDE_DIR="
7951 (assoc-ref %build-inputs "gtk+")
7952 "/lib/gtk-2.0/include")
7953 (string-append "-DGTK2_GLIBCONFIG_INCLUDE_DIR="
7954 (assoc-ref %build-inputs "glib")
7955 "/lib/glib-2.0/include"))
7956 #:phases
7957 (modify-phases %standard-phases
7958 (add-after 'unpack 'ensure-application-files-can-be-found
7959 (lambda* (#:key outputs #:allow-other-keys)
7960 (let ((out (assoc-ref outputs "out")))
7961 (substitute* "src/arch/LoadingWindow/LoadingWindow_Gtk.cpp"
7962 (("RageFileManagerUtil::sDirOfExecutable \\+ \"/\" \\+ \"GtkModule.so\"")
7963 (string-append "\"" out
7964 "/share/stepmania/GtkModule.so\"")))
7965 (substitute* "src/arch/ArchHooks/ArchHooks_Unix.cpp"
7966 (("Root = sDirOfExecutable")
7967 (string-append "Root = \"" out "/share/stepmania/\""))
7968 (("sDirOfExecutable \\+ \"/(Packages|Songs)\"" _ dir)
7969 (string-append "\"" out "/share/stepmania/" dir "\"")))
7970 (substitute* "src/RageFileManager.cpp"
7971 (("RageFileManagerUtil::sDirOfExecutable \\+ \"/\"")
7972 (string-append "\"" out "/share/stepmania/\""))))
7973 #t))
7974 (add-after 'unpack 'fix-install-subdir
7975 ;; Installation would be done in "%out/stepmania-X.Y", but we
7976 ;; prefer the more common layout "%out/share/stepmania".
7977 (lambda _
7978 (substitute* "src/CMakeLists.txt"
7979 (("\"stepmania-.*?\"") "\"share/stepmania\""))
7980 #t))
7981 (add-after 'unpack 'unbundle-libpng
7982 (lambda* (#:key inputs #:allow-other-keys)
7983 (substitute* "src/CMakeLists.txt"
7984 (("\\$\\{SM_EXTERN_DIR\\}/libpng/include")
7985 (string-append (assoc-ref inputs "libpng") "/include")))
7986 #t))
7987 (add-after 'install 'install-executable
7988 (lambda* (#:key outputs #:allow-other-keys)
7989 (let* ((out (assoc-ref outputs "out"))
7990 (bin (string-append out "/bin"))
7991 (exe (string-append out "/share/stepmania/stepmania")))
7992 (mkdir-p bin)
7993 (symlink exe (string-append bin "/stepmania"))
7994 #t)))
7995 (add-after 'install-executable 'install-desktop
7996 (lambda* (#:key outputs #:allow-other-keys)
7997 (let* ((out (assoc-ref outputs "out"))
7998 (share (string-append out "/share"))
7999 (applications (string-append share "/applications"))
8000 (icons (string-append share "/icons")))
8001 (install-file "stepmania.desktop" applications)
8002 (mkdir-p icons)
8003 (copy-recursively "icons" icons)
8004 #t)))
8005 ;; Move documentation in a more usual place, i.e.,
8006 ;; "%out/share/doc/stepmania/".
8007 (add-after 'install-desktop 'install-doc
8008 (lambda* (#:key outputs #:allow-other-keys)
8009 (let* ((out (assoc-ref outputs "out"))
8010 (share (string-append out "/share")))
8011 (with-directory-excursion share
8012 (mkdir-p "doc")
8013 (symlink "../stepmania/Docs" "doc/stepmania"))
8014 #t))))))
8015 (native-inputs
8016 `(("pkg-config" ,pkg-config)
8017 ("yasm" ,yasm)))
8018 (inputs
8019 `(("alsa-lib" ,alsa-lib)
8020 ;; Per upstream, StepMania is only guaranteed to work with a very
8021 ;; specific FFmpeg version, which is included in the repository as
8022 ;; a Git submodule. This particular version requirement usually
8023 ;; changes every few years.
8024 ("ffmpeg" ,ffmpeg-for-stepmania)
8025 ("glib" ,glib)
8026 ("glew" ,glew)
8027 ("gtk+" ,gtk+-2)
8028 ("jsoncpp" ,jsoncpp)
8029 ("libpng" ,libpng)
8030 ("libjpeg" ,libjpeg-turbo)
8031 ("libmad" ,libmad)
8032 ("libogg" ,libogg)
8033 ("libva" ,libva)
8034 ("libvorbis" ,libvorbis)
8035 ("libxinerama" ,libxinerama)
8036 ("libxrandr" ,libxrandr)
8037 ("mesa" ,mesa)
8038 ("pcre" ,pcre)
8039 ("pulseaudio" ,pulseaudio)
8040 ("sdl" ,sdl2)
8041 ("udev" ,eudev)
8042 ("zlib" ,zlib)))
8043 (synopsis "Advanced rhythm game designed for both home and arcade use")
8044 (description "StepMania is a dance and rhythm game. It features 3D
8045 graphics, keyboard and dance pad support, and an editor for creating your own
8046 steps.
8047
8048 This package provides the core application, but no song is shipped. You need
8049 to download and install them in @file{$HOME/.stepmania-X.Y/Songs} directory.")
8050 (home-page "https://www.stepmania.com")
8051 (license license:expat)))
8052
8053 (define-public btanks
8054 (package
8055 (name "btanks")
8056 (version "0.9.8083")
8057 (source
8058 (origin
8059 (method url-fetch)
8060 (uri (string-append "mirror://sourceforge/btanks/btanks-source/"
8061 "btanks-" version ".tar.bz2"))
8062 (sha256
8063 (base32
8064 "0ha35kxc8xlbg74wsrbapfgxvcrwy6psjkqi7c6adxs55dmcxliz"))))
8065 (build-system scons-build-system)
8066 (arguments
8067 `(#:tests? #f ; there are none
8068 #:scons ,scons-python2
8069 #:scons-flags (list (string-append "prefix=" (assoc-ref %outputs "out")))
8070 #:phases
8071 (modify-phases %standard-phases
8072 (add-after 'unpack 'replace-removed-scons-syntax
8073 (lambda _
8074 (substitute* "SConstruct"
8075 (("Options") "Variables")
8076 (("opts.Add\\(BoolOption.*") "opts.Add('gcc_visibility', 'gcc visibility', 'true')")
8077 (("opts.Add\\(EnumOption.*") "opts.Add('mode', 'build mode', 'release')"))
8078 #t))
8079 (add-after 'set-paths 'set-sdl-paths
8080 (lambda* (#:key inputs #:allow-other-keys)
8081 (setenv "CPATH"
8082 (string-append (assoc-ref inputs "sdl")
8083 "/include/SDL:"
8084 (or (getenv "CPATH") "")))
8085 #t))
8086 (add-after 'unpack 'fix-compilation-errors
8087 (lambda _
8088 (substitute* "mrt/base_file.h"
8089 (("#include <string>" m)
8090 (string-append m "\n#include <sys/types.h>")))
8091 (substitute* '("engine/sl08/sl08.h"
8092 "engine/sl08/sl08.py")
8093 (("signal = NULL") "signal = 0")
8094 (("object\\(NULL\\)") "object(0)")
8095 (("func\\(NULL\\)") "func(0)")
8096 ((" connect\\(signal_ref\\)")
8097 " this->connect(signal_ref)"))
8098 (substitute* "math/range_list.h"
8099 ((" lower_bound\\(value\\)")
8100 " this->lower_bound(value)")
8101 ((" erase\\(i\\)")
8102 " this->erase(i)"))
8103 (substitute* "clunk/source.cpp"
8104 (("using namespace clunk" m)
8105 (string-append "# define pow10f(x) exp10f(x)\n" m)))
8106 #t))
8107 (add-after 'unpack 'find-lua
8108 (lambda _
8109 (substitute* "engine/SConscript"
8110 (("lua5.1") "lua-5.1")
8111 (("bt_libs.append\\(lua\\)")
8112 "bt_libs.append(\"lua\")"))
8113 #t)))))
8114 (inputs
8115 `(("expat" ,expat)
8116 ("glu" ,glu)
8117 ("libsmpeg" ,libsmpeg-with-sdl1)
8118 ("libvorbis" ,libvorbis)
8119 ("lua51" ,lua-5.1)
8120 ("sdl" ,(sdl-union (list sdl
8121 sdl-mixer
8122 sdl-image
8123 sdl-ttf)))
8124 ("zlib" ,zlib)))
8125 (native-inputs
8126 `(("pkg-config" ,pkg-config)
8127 ("zip" ,zip)))
8128 (home-page "http://btanks.sourceforge.net")
8129 (synopsis "Multiplayer tank battle game")
8130 (description "Battle Tanks (also known as \"btanks\") is a funny battle
8131 game, where you can choose one of three vehicles and eliminate your enemy
8132 using the whole arsenal of weapons. It has original cartoon-like graphics and
8133 cool music, it’s fun and dynamic, it has several network modes for deathmatch
8134 and cooperative.")
8135 ;; Some parts (e.g. mrt/b64.cpp) are LGPLv2.1+, but the whole package is
8136 ;; released under GPLv2 or later. It comes with extra exceptions for the
8137 ;; developers.
8138 (license (list license:gpl2+ license:lgpl2.1+))))
8139
8140 (define-public slingshot
8141 (package
8142 (name "slingshot")
8143 (version "0.9")
8144 (source
8145 (origin
8146 (method git-fetch)
8147 (uri (git-reference
8148 (url "https://github.com/ryanakca/slingshot")
8149 (commit version)))
8150 (file-name (git-file-name name version))
8151 (sha256
8152 (base32
8153 "19m8b6nsi786bc6gmkp185mwri3r5y249gjmqd5qsc23nnfhgrs1"))))
8154 (build-system python-build-system)
8155 (arguments
8156 `(#:python ,python-2))
8157 (inputs
8158 `(("python-pygame" ,python2-pygame)))
8159 (home-page "https://github.com/ryanakca/slingshot")
8160 (synopsis "Simple 2D shooting strategy game set in space")
8161 (description "Slingshot is a two-dimensional strategy game where two
8162 players attempt to shoot one another through a section of space populated by
8163 planets. The main feature of the game is that the shots, once fired, are
8164 affected by the gravity of the planets.")
8165 (license license:gpl2+)))
8166
8167 (define-public 4dtris
8168 (package
8169 (name "4dtris")
8170 (version "0.4.3")
8171 (source
8172 (origin
8173 (method url-fetch)
8174 (uri (string-append "https://launchpad.net/4dtris/"
8175 (version-major+minor version)
8176 "/" version "/+download/4dtris_"
8177 version ".orig.tar.gz"))
8178 (sha256
8179 (base32
8180 "1nfkhcm0l89jyw8yr65na97g4l385zhjf7whkyg47c3v5sdqq2g7"))))
8181 (build-system gnu-build-system)
8182 (arguments
8183 `(#:phases
8184 (modify-phases %standard-phases
8185 (add-after 'unpack 'fix-install-directories
8186 (lambda* (#:key outputs #:allow-other-keys)
8187 (let ((out (assoc-ref outputs "out")))
8188 (substitute* "Makefile.in"
8189 (("bindir = /usr/games")
8190 (string-append "bindir = " out "/bin"))
8191 (("/usr/share/applications")
8192 (string-append out "/share/applications"))
8193 (("/usr/share/games/4dtris")
8194 (string-append out "/share/4dtris"))))
8195 #t))
8196 (add-after 'set-paths 'set-sdl-paths
8197 (lambda* (#:key inputs #:allow-other-keys)
8198 (setenv "CPATH"
8199 (string-append (assoc-ref inputs "sdl")
8200 "/include/SDL:"
8201 (or (getenv "CPATH") "")))
8202 #t)))))
8203 (inputs
8204 `(("fontconfig" ,fontconfig)
8205 ("freeglut" ,freeglut)
8206 ("sdl" ,(sdl-union (list sdl sdl-ttf)))))
8207 (home-page "https://launchpad.net/4dtris/")
8208 (synopsis "4D Tetris")
8209 (description "4D-TRIS is an alteration of the well-known Tetris game. The
8210 game field is extended to 4D space, which has to filled up by the gamer with
8211 4D hyper cubes.")
8212 (license license:gpl3)))
8213
8214 (define-public arx-libertatis
8215 (package
8216 (name "arx-libertatis")
8217 (version "1.1.2")
8218 (source
8219 (origin
8220 (method url-fetch)
8221 (uri (string-append "http://arx-libertatis.org/files/arx-libertatis-"
8222 version ".tar.xz"))
8223 (sha256
8224 (base32
8225 "0hjfxlsmp8wwqr06snv2dlly2s79ra0d9aw49gkp6rn8m50b9bc2"))))
8226 (build-system cmake-build-system)
8227 (outputs '("out" "installer"))
8228 (arguments
8229 '(#:tests? #f ; No tests.
8230 #:phases
8231 (modify-phases %standard-phases
8232 (add-after 'unpack 'fix-install-helper-paths
8233 (lambda* (#:key inputs #:allow-other-keys)
8234 (let ((p7zip (assoc-ref inputs "p7zip"))
8235 (innoextract (assoc-ref inputs "innoextract"))
8236 (wget (assoc-ref inputs "wget"))
8237 (zenity (assoc-ref inputs "zenity")))
8238 (substitute* "scripts/arx-install-data"
8239 (("have innoextract")
8240 (string-append "have " innoextract "/bin/innoextract"))
8241 (("then innoextract")
8242 (string-append "then " innoextract "/bin/innoextract"))
8243 (("else innoextract")
8244 (string-append "else " innoextract "/bin/innoextract"))
8245 (("for _extract_zip_sz in 7za 7z")
8246 (string-append "for _extract_zip_sz in " p7zip "/bin/7za"))
8247 (("else if have 7z")
8248 (string-append "else if have " p7zip "/bin/7za"))
8249 (("7z x -tiso")
8250 (string-append p7zip "/bin/7z x -tiso"))
8251 (("if have wget")
8252 (string-append "if have " wget "/bin/wget"))
8253 (("wget -O")
8254 (string-append wget "/bin/wget -O"))
8255 (("for backend in \\$preferred zenity")
8256 (string-append "for backend in $preferred " zenity "/bin/zenity"))
8257 (("zenity +--title")
8258 (string-append zenity "/bin/zenity --title"))
8259 (("^zenity\\)")
8260 (string-append zenity "/bin/zenity)"))))
8261 #t))
8262 (add-after 'install 'move-installer
8263 (lambda* (#:key outputs #:allow-other-keys)
8264 (let ((out (assoc-ref outputs "out"))
8265 (installer (assoc-ref outputs "installer")))
8266 (mkdir-p (string-append installer "/bin"))
8267 (rename-file (string-append out "/bin/arx-install-data")
8268 (string-append installer "/bin/arx-install-data"))))))))
8269 (inputs
8270 `(("sdl" ,sdl) ; Switch to sdl2 in >1.1.2.
8271 ("mesa" ,mesa) ; Switch to libepoxy in >1.1.2.
8272 ("glew" ,glew)
8273 ("openal" ,openal)
8274 ("zlib" ,zlib)
8275 ("boost" ,boost)
8276 ("glm" ,glm)
8277 ("freetype" ,freetype)
8278 ;; The following are only needed by the arx-install-data script.
8279 ("p7zip" ,p7zip) ; Install-helper uses it to extract ISO and .cab archives.
8280 ("zenity" ,zenity) ; GUI for install-helper.
8281 ("wget" ,wget) ; Used by the install-helper to download the patch.
8282 ;; The install-helper needs it to extract the patch.
8283 ("innoextract" ,innoextract)))
8284 (home-page "https://arx-libertatis.org/")
8285 (synopsis "Port of Arx Fatalis, a first-person role-playing game")
8286 (description "Arx Libertatis is a cross-platform port of Arx Fatalis, a 2002
8287 first-person role-playing game / dungeon crawler developed by Arkane Studios.
8288 This port however does not include the game data, so you need to obtain a copy
8289 of the original Arx Fatalis or its demo to play Arx Libertatis. Arx Fatalis
8290 features crafting, melee and ranged combat, as well as a unique casting system
8291 where the player draws runes in real time to effect the desired spell.")
8292 (license license:gpl3+)))
8293
8294 (define-public edgar
8295 (package
8296 (name "edgar")
8297 (version "1.33")
8298 (source
8299 (origin
8300 (method url-fetch)
8301 (uri
8302 (string-append "https://github.com/riksweeney/edgar/releases/download/"
8303 version "/edgar-" version "-1.tar.gz"))
8304 (sha256
8305 (base32 "1mbx7dvizdca4g1blcv3bdh6yxd13k47rkya4rdzg0nvvz24m175"))))
8306 (build-system gnu-build-system)
8307 (arguments '(#:tests? #f ; there are no tests
8308 #:make-flags
8309 (list "CC=gcc"
8310 (string-append "PREFIX=" (assoc-ref %outputs "out"))
8311 (string-append "BIN_DIR=" (assoc-ref %outputs "out") "/bin/"))
8312 #:phases
8313 (modify-phases %standard-phases
8314 (delete 'configure)
8315 (add-before 'build 'fix-env
8316 (lambda* (#:key inputs #:allow-other-keys)
8317 (setenv "CPATH"
8318 (string-append (assoc-ref inputs "sdl2-union")
8319 "/include/SDL2:"
8320 (or (getenv "CPATH") "")))
8321 #t)))))
8322 (inputs
8323 `(("sdl2-union" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer sdl2-ttf)))
8324 ("zlib" ,zlib)))
8325 (native-inputs
8326 `(("pkg-config" ,pkg-config)
8327 ("autoconf" ,autoconf)
8328 ("automake" ,automake)
8329 ("gnu-gettext" ,gettext-minimal)
8330 ("libtool" ,libtool)
8331 ("which" ,which)))
8332 (synopsis "2d action platformer game")
8333 (description "The Legend of Edgar is a 2D platform game with a persistent world.
8334 When Edgar's father fails to return home after venturing out one dark and stormy night,
8335 Edgar fears the worst: he has been captured by the evil sorcerer who lives in
8336 a fortress beyond the forbidden swamp.")
8337 (home-page "https://www.parallelrealities.co.uk/games/edgar/")
8338 (license license:gpl2+)))
8339
8340 (define-public openclonk
8341 (package
8342 (name "openclonk")
8343 (version "8.1")
8344 (source (origin
8345 (method url-fetch)
8346 (uri (string-append
8347 "https://www.openclonk.org/builds/release/" version "/"
8348 "openclonk-" version "-src.tar.bz2"))
8349 (sha256
8350 (base32
8351 "0imkqjp8lww5p0cnqf4k4mb2v682mnsas63qmiz17rspakr7fxik"))))
8352 (build-system cmake-build-system)
8353 (arguments
8354 `(#:configure-flags '("-DAudio_TK=OpenAL")
8355 #:test-target "tests"
8356 #:phases
8357 (modify-phases %standard-phases
8358 (add-after 'unpack 'prepare-gmock
8359 (lambda* (#:key inputs #:allow-other-keys)
8360 (mkdir "gmock")
8361 (copy-recursively (assoc-ref inputs "googlemock") "gmock")
8362 (substitute* "tests/CMakeLists.txt"
8363 (("/usr/src/gmock")
8364 (string-append (getcwd) "/gmock/googlemock"))
8365 (("/usr/src/gtest")
8366 (string-append (getcwd) "/gmock/googletest"))
8367 (("PATH_SUFFIXES \"src\" \"gtest\"")
8368 "PATH_SUFFIXES \"src\""))
8369 #t))
8370 (add-after 'unpack 'adjust-backward-cpp-includes
8371 (lambda _
8372 ;; XXX: The bundled backward-cpp exports a CMake "interface"
8373 ;; that includes external libraries such as libdl from glibc.
8374 ;; By default, CMake interface includes are treated as "system
8375 ;; headers", and GCC behaves poorly when glibc is passed as a
8376 ;; system header (causing #include_next failures).
8377
8378 ;; Here we prevent targets that consume the Backward::Backward
8379 ;; interface from treating it as "system includes".
8380 (substitute* "CMakeLists.txt"
8381 (("target_link_libraries\\((.+) Backward::Backward\\)" all target)
8382 (string-append "set_property(TARGET " target " PROPERTY "
8383 "NO_SYSTEM_FROM_IMPORTED true)\n"
8384 all)))
8385 #t))
8386 (add-after 'unpack 'add-libiberty
8387 ;; Build fails upon linking executables without this.
8388 (lambda _
8389 (substitute* "thirdparty/backward-cpp/BackwardConfig.cmake"
8390 (("set\\(LIBBFD_LIBRARIES (.*?)\\)" _ libraries)
8391 (string-append "set(LIBBFD_LIBRARIES " libraries " iberty)")))
8392 #t))
8393 (add-after 'add-libiberty 'lax-freealut-requirement
8394 ;; TODO: We provide freealut 1.1.0, but pkg-config somehow detects
8395 ;; it as 1.0.1. Force minimal version.
8396 (lambda _
8397 (substitute* "cmake/FindAudio.cmake"
8398 (("freealut>=1.1.0") "freealut>=1.0.1"))
8399 #t))
8400 (add-after 'lax-freealut-requirement 'fix-directories
8401 ;; Prefer "$out/share/openclonk" over
8402 ;; "$out/share/games/openclonk". Also install "openclonk"
8403 ;; binary in "bin/", not "games/".
8404 (lambda _
8405 (substitute* "CMakeLists.txt"
8406 (("share/games/openclonk") "share/openclonk")
8407 (("TARGETS openclonk DESTINATION games")
8408 "TARGETS openclonk DESTINATION bin"))
8409 #t)))))
8410 (native-inputs
8411 `(("googlemock" ,(package-source googletest))
8412 ("googletest" ,googletest)
8413 ("pkg-config" ,pkg-config)))
8414 (inputs
8415 `(("freealut" ,freealut)
8416 ("freetype" ,freetype)
8417 ("glew" ,glew)
8418 ("libiberty" ,libiberty)
8419 ("libjpeg" ,libjpeg-turbo)
8420 ("libogg" ,libogg)
8421 ("libpng" ,libpng)
8422 ("libvorbis" ,libvorbis)
8423 ("libxrandr" ,libxrandr)
8424 ("mesa" ,mesa)
8425 ("miniupnpc" ,miniupnpc)
8426 ("openal" ,openal)
8427 ("qtbase" ,qtbase)
8428 ("readline" ,readline)
8429 ("sdl" ,sdl2)
8430 ("tinyxml" ,tinyxml)
8431 ("zlib" ,zlib)))
8432 (home-page "https://www.openclonk.org/")
8433 (synopsis
8434 "Multiplayer action game where you control small and nimble humanoids")
8435 (description "OpenClonk is a multiplayer action/tactics/skill game. It is
8436 often referred to as a mixture of The Settlers and Worms. In a simple 2D
8437 antfarm-style landscape, the player controls a crew of Clonks, small but
8438 robust humanoid beings. The game encourages free play but the normal goal is
8439 to either exploit valuable resources from the earth by building a mine or
8440 fight each other on an arena-like map.")
8441 ;; Software as a whole is licensed under ISC, artwork under CC-BY.
8442 (license (list license:isc license:cc-by3.0))))
8443
8444 (define-public flare-engine
8445 (package
8446 (name "flare-engine")
8447 (version "1.11")
8448 (source (origin
8449 (method git-fetch)
8450 (uri (git-reference
8451 (url "https://github.com/flareteam/flare-engine")
8452 (commit (string-append "v" version))))
8453 (file-name (git-file-name name version))
8454 (sha256
8455 (base32
8456 "1mqr1s72p5bdh4kq2a8hg72dk8lwnddicjnd2cdp1sbfa9lmjym8"))))
8457 (build-system cmake-build-system)
8458 (arguments
8459 `(#:tests? #f ;no test
8460 #:configure-flags '("-DBINDIR=bin" "-DDATADIR=share/flare")))
8461 (inputs
8462 `(("hicolor-icon-theme" ,hicolor-icon-theme)
8463 ("python" ,python-wrapper)
8464 ("sdl" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer sdl2-ttf)))))
8465 (home-page "http://www.flarerpg.org/")
8466 (synopsis "Action Roleplaying Engine")
8467 (description "Flare (Free Libre Action Roleplaying Engine) is a simple
8468 game engine built to handle a very specific kind of game: single-player 2D
8469 action RPGs.")
8470 (license license:gpl3+)))
8471
8472 (define-public flare-game
8473 (package
8474 (name "flare-game")
8475 (version "1.11")
8476 (source (origin
8477 (method git-fetch)
8478 (uri (git-reference
8479 (url "https://github.com/flareteam/flare-game")
8480 (commit (string-append "v" version))))
8481 (file-name (git-file-name name version))
8482 (sha256
8483 (base32
8484 "0bd5g7sd89a9176ilr408hdqzdfv4j7wj0idd685c1n6s01c3h6p"))))
8485 (build-system cmake-build-system)
8486 (arguments
8487 `(#:tests? #f ;no test
8488 #:configure-flags '("-DDATADIR=share/flare")
8489 #:phases
8490 (modify-phases %standard-phases
8491 ;; Flare expects the mods to be located in the same folder.
8492 ;; Yet, "default" mod is in the engine, whereas the others
8493 ;; are in the current package. Merge everything here with
8494 ;; a symlink.
8495 (add-after 'install 'add-default-mod
8496 (lambda* (#:key inputs outputs #:allow-other-keys)
8497 (let* ((out (assoc-ref outputs "out"))
8498 (mods (string-append out "/share/flare/mods")))
8499 (with-directory-excursion mods
8500 (symlink (string-append (assoc-ref inputs "flare-engine")
8501 "/share/flare/mods/default")
8502 "default")))
8503 #t))
8504 (add-after 'install 'install-executable
8505 ;; The package only provides assets for the game, the
8506 ;; executable coming from "flare-engine". Since more than
8507 ;; one game may use the engine, we create a new executable,
8508 ;; "flare-game", which launches the engine with appropriate
8509 ;; parameters.
8510 (lambda* (#:key inputs outputs #:allow-other-keys)
8511 (let* ((out (assoc-ref outputs "out"))
8512 (bash (string-append (assoc-ref inputs "bash")
8513 "/bin/bash"))
8514 (flare (string-append (assoc-ref inputs "flare-engine")
8515 "/bin/flare"))
8516 (script (string-append out "/bin/flare-game")))
8517 (mkdir-p (dirname script))
8518 (call-with-output-file script
8519 (lambda (port)
8520 (format port
8521 "#!~a
8522 exec ~a --data-path=~a/share/flare --mods=empyrean_campaign~%"
8523 bash
8524 flare
8525 out)))
8526 (chmod script #o755))
8527 #t)))))
8528 (inputs
8529 `(("flare-engine" ,flare-engine)))
8530 (home-page "http://www.flarerpg.org/")
8531 (synopsis "Fantasy action RPG using the FLARE engine")
8532 (description "Flare is a single-player 2D action RPG with
8533 fast-paced action and a dark fantasy style.")
8534 (license license:cc-by-sa3.0)))
8535
8536 (define-public meritous
8537 (package
8538 (name "meritous")
8539 (version "1.5")
8540 (source (origin
8541 (method git-fetch)
8542 (uri (git-reference
8543 (url "https://gitlab.com/meritous/meritous.git")
8544 (commit (string-append "v" version))))
8545 (file-name (git-file-name name version))
8546 (sha256
8547 (base32
8548 "0n5jm4g0arjllgqmd2crv8h02i6hs3hlh1zyc7ng7yfpg1mbd8p8"))))
8549 (build-system gnu-build-system)
8550 (arguments
8551 `(#:tests? #f ;no test
8552 #:make-flags
8553 (list "CC=gcc"
8554 (string-append "prefix=" (assoc-ref %outputs "out")))
8555 #:phases
8556 (modify-phases %standard-phases
8557 (delete 'configure)
8558 (add-after 'unpack 'fix-sdl-path
8559 ;; XXX: For some reason, `sdl-config' reports stand-alone SDL
8560 ;; directory, not SDL-union provided as an input to the package.
8561 ;; We force the latter with "--prefix=" option.
8562 (lambda* (#:key inputs #:allow-other-keys)
8563 (substitute* "Makefile"
8564 (("sdl-config" command)
8565 (string-append command " --prefix=" (assoc-ref inputs "sdl"))))
8566 #t))
8567 (add-after 'unpack 'fix-crash
8568 ;; XXX: Songs are not present in the repository, due to licensing
8569 ;; issues. Yet, the game tries to load them, and, since it cannot
8570 ;; find them, crashes. Users cannot add them back, the store being
8571 ;; read-only, so we turn off background music altogether.
8572 (lambda _
8573 (substitute* "src/audio.c"
8574 (("PlayBackgroundMusic\\(new_track\\);" all)
8575 (string-append "// " all)))
8576 #t)))))
8577 (native-inputs
8578 `(("intltool" ,intltool)))
8579 (inputs
8580 `(("sdl" ,(sdl-union (list sdl sdl-image sdl-mixer)))
8581 ("zlib" ,zlib)))
8582 (home-page "https://gitlab.com/meritous/meritous")
8583 (synopsis "Action-adventure dungeon crawl game")
8584 (description "Far below the surface of the planet is a place of limitless
8585 power. Those that seek to control such a utopia will soon bring an end to
8586 themselves. Seeking an end to the troubles that plague him, PSI user Merit
8587 journeys into the hallowed Orcus Dome in search of answers.
8588
8589 Meritous is a action-adventure game with simple controls but a challenge to
8590 find a balance of power versus recovery time during real-time battles. Set in
8591 a procedurally generated world, the player can explore thousands of rooms in
8592 search of powerful artifacts, tools to help them, and to eventually free the
8593 Orcus Dome from evil.")
8594 (license license:gpl3+)))
8595
8596 (define-public marble-marcher
8597 (let ((commit "e580460a0c3826f9b28ab404607942a8ecb625d7")
8598 (revision "1"))
8599 (package
8600 (name "marble-marcher")
8601 (version (git-version "0" revision commit))
8602 (source (origin
8603 (method git-fetch)
8604 (uri (git-reference
8605 (url "https://github.com/HackerPoet/MarbleMarcher")
8606 (commit commit)))
8607 (file-name (git-file-name name version))
8608 (sha256
8609 (base32
8610 "0jjv832hl1v170n6gryp2sr3lgqndi9ab841qvgqk68bks8701mx"))))
8611 (build-system cmake-build-system)
8612 (arguments
8613 `(#:tests? #f ; there are none
8614 #:phases
8615 (modify-phases %standard-phases
8616 (add-after 'unpack 'embed-asset-directory
8617 (lambda* (#:key outputs #:allow-other-keys)
8618 (let ((assets (string-append (assoc-ref outputs "out")
8619 "/share/marble-marcher/assets/")))
8620 ;; Some of the files we're patching are
8621 ;; ISO-8859-1-encoded, so choose it as the default
8622 ;; encoding so the byte encoding is preserved.
8623 (with-fluids ((%default-port-encoding #f))
8624 (substitute* "src/Resource.rc"
8625 (("../assets/icon.ico")
8626 (string-append assets "icon.ico")))
8627 (substitute* "src/Res.h"
8628 (("assets/") assets))))
8629 #t))
8630 (replace 'install
8631 (lambda* (#:key outputs #:allow-other-keys)
8632 (let* ((out (assoc-ref outputs "out"))
8633 (assets (string-append out "/share/marble-marcher/assets"))
8634 (bin (string-append out "/bin/")))
8635 (mkdir-p bin)
8636 (mkdir-p assets)
8637 (copy-recursively "../source/assets" assets)
8638 (install-file "MarbleMarcher" bin))
8639 #t)))))
8640 (inputs
8641 `(("eigen" ,eigen)
8642 ("mesa" ,mesa)
8643 ("sfml" ,sfml)))
8644 (native-inputs
8645 `(("pkg-config" ,pkg-config)))
8646 (home-page "https://codeparade.itch.io/marblemarcher")
8647 (synopsis "Guide a marble across fractal landscapes")
8648 (description "Marble Marcher is a video game that uses a fractal physics
8649 engine and fully procedural rendering to produce beautiful and unique
8650 gameplay. The game is played on the surface of evolving fractals. The goal
8651 of the game is to get your marble to the flag as quickly as possible. But be
8652 careful not to fall off the level or get crushed by the fractal! There are 24
8653 levels to unlock.")
8654 ;; Code is under GPLv2+, assets are under CC-BY-SA 3.0 and OFL 1.1.
8655 (license (list license:gpl2+
8656 license:silofl1.1
8657 license:cc-by-sa3.0)))))
8658
8659 ;; This must be updated together with flightgear.
8660 (define simgear
8661 (package
8662 (name "simgear")
8663 (version "2018.3.5")
8664 (source
8665 (origin
8666 (method url-fetch)
8667 (uri (string-append "mirror://sourceforge/flightgear/release-"
8668 (version-major+minor version) "/"
8669 "simgear-" version ".tar.bz2"))
8670 (sha256
8671 (base32 "1vkqm66r1205k3hdjmx5wmx5kvmsb0dgfzrs8n5gqnxj8szs42dl"))))
8672 (build-system cmake-build-system)
8673 (arguments
8674 `(#:phases
8675 (modify-phases %standard-phases
8676 (replace 'check
8677 (lambda _
8678 ;; Skip tests that require internet access.
8679 (invoke "ctest" "-E" "(http|dns)"))))))
8680 (inputs
8681 `(("boost" ,boost-for-mysql) ; fails with 1.69
8682 ("curl" ,curl)
8683 ("expat" ,expat)
8684 ("mesa" ,mesa)
8685 ("openal" ,openal)
8686 ("openscenegraph" ,openscenegraph-3.4)
8687 ("zlib" ,zlib)))
8688 (home-page "https://home.flightgear.org/")
8689 (synopsis "Libraries for 3D simulations and games")
8690 (description "SimGear is a set of libraries designed to be used as
8691 building blocks for quickly assembling 3D simulations, games, and
8692 visualization applications. SimGear is developed by the FlightGear project
8693 and also provides the base for the FlightGear Flight Simulator.")
8694 (license license:lgpl2.0+)))
8695
8696 (define-public flightgear
8697 (package
8698 (name "flightgear")
8699 (version (package-version simgear))
8700 (source
8701 (origin
8702 (method url-fetch)
8703 (uri (string-append "mirror://sourceforge/flightgear/release-"
8704 (version-major+minor version) "/"
8705 "flightgear-" version ".tar.bz2"))
8706 (sha256
8707 (base32 "0ya3vb539kwi1qrifqhsj5j3k4w6s06hrllp2vdzxf6id7cgf0hc"))
8708 (modules '((guix build utils)))
8709 (snippet
8710 '(begin
8711 ;; There are some bundled libraries.
8712 (for-each delete-file-recursively
8713 '("3rdparty/sqlite3/"))
8714 #t))))
8715 (build-system cmake-build-system)
8716 (arguments
8717 `(#:configure-flags
8718 (list "-DSYSTEM_SQLITE=ON"
8719 (string-append "-DFG_DATA_DIR="
8720 (assoc-ref %outputs "out")
8721 "/share/flightgear"))
8722 ;; TODO: test cannot be run because the "run_test_suite" executable
8723 ;; does not seem to be built.
8724 #:tests? #f
8725 #:phases
8726 (modify-phases %standard-phases
8727 (add-after 'install 'wrap-executable
8728 (lambda* (#:key inputs outputs #:allow-other-keys)
8729 (let ((out (assoc-ref outputs "out")))
8730 (wrap-program (string-append out "/bin/fgfs")
8731 `("QT_PLUGIN_PATH" ":" prefix
8732 ,(map (lambda (label)
8733 (string-append (assoc-ref inputs label)
8734 "/lib/qt5/plugins"))
8735 '("qtbase" "qtdeclarative" "qtsvg")))
8736 `("QML2_IMPORT_PATH" ":" prefix
8737 ,(map (lambda (label)
8738 (string-append (assoc-ref inputs label)
8739 "/lib/qt5/qml"))
8740 '("qtdeclarative" "qtsvg"))))
8741 #t)))
8742 (add-after 'install 'install-data
8743 (lambda* (#:key inputs outputs #:allow-other-keys)
8744 (let ((share (string-append (assoc-ref outputs "out") "/share/flightgear")))
8745 (mkdir-p share)
8746 (with-directory-excursion share
8747 (invoke "tar" "xf" (assoc-ref inputs "flightgear-data")
8748 "--strip-components=1")))
8749 #t)))))
8750 (inputs
8751 `(("boost" ,boost-for-mysql) ; same as simgear
8752 ("dbus" ,dbus)
8753 ("eudev" ,eudev)
8754 ("freeglut" ,freeglut)
8755 ("freetype" ,freetype)
8756 ("glew" ,glew)
8757 ("libpng" ,libpng)
8758 ("openal" ,openal)
8759 ("openscenegraph" ,openscenegraph-3.4)
8760 ("plib" ,plib)
8761 ("qtbase" ,qtbase)
8762 ("qtdeclarative" ,qtdeclarative)
8763 ("qtsvg" ,qtsvg)
8764 ("simgear" ,simgear)
8765 ("speexdsp" ,speexdsp)
8766 ("sqlite" ,sqlite)
8767 ("zlib" ,zlib)))
8768 (native-inputs
8769 `(("cppunit" ,cppunit)
8770 ("pkg-config" ,pkg-config)
8771 ("qttools" ,qttools)
8772 ("flightgear-data"
8773 ,(origin
8774 (method url-fetch)
8775 (uri (string-append "mirror://sourceforge/flightgear/release-"
8776 (version-major+minor version) "/"
8777 "FlightGear-" version "-data.tar.bz2"))
8778 (sha256
8779 (base32
8780 "04fv9za5zlyxlyfh6jx78y42l3jazvzl9dq2y6rzxqlcc9g5swhk"))))))
8781 (home-page "https://home.flightgear.org/")
8782 (synopsis "Flight simulator")
8783 (description "The goal of the FlightGear project is to create a
8784 sophisticated flight simulator framework for use in research or academic
8785 environments, pilot training, as an industry engineering tool, for DIY-ers to
8786 pursue their favorite interesting flight simulation idea, and last but
8787 certainly not least as a fun, realistic, and challenging desktop flight
8788 simulator.")
8789 (license license:gpl2+)))
8790
8791 (define-public jumpnbump
8792 (package
8793 (name "jumpnbump")
8794 (version "1.61")
8795 (source (origin
8796 (method git-fetch)
8797 (uri (git-reference
8798 (url "https://gitlab.com/LibreGames/jumpnbump.git")
8799 (commit version)))
8800 (file-name (git-file-name name version))
8801 (sha256
8802 (base32
8803 "12lwl5sl5n009nb83r8l4lakb9286csqdf1ynpmwwydy17giqsdp"))))
8804 (build-system gnu-build-system)
8805 (arguments
8806 `(#:make-flags
8807 (list "CC=gcc"
8808 (string-append "PREFIX=" (assoc-ref %outputs "out")))
8809 #:tests? #f ;no test
8810 #:phases
8811 (modify-phases %standard-phases
8812 (delete 'configure) ;no configure script
8813 (add-after 'unpack 'fix-sdl-path
8814 ;; XXX: For some reason, `sdl2-config' reports stand-alone SDL
8815 ;; directory, not SDL-union provided as an input to the package.
8816 ;; We force the latter with "--prefix=" option.
8817 (lambda* (#:key inputs #:allow-other-keys)
8818 (substitute* "Makefile"
8819 (("sdl2-config" command)
8820 (string-append command " --prefix=" (assoc-ref inputs "sdl"))))
8821 #t)))))
8822 (inputs
8823 `(("bzip2" ,bzip2)
8824 ("sdl" ,(sdl-union (list sdl2 sdl2-mixer sdl2-net)))
8825 ("zlib" ,zlib)))
8826 (native-inputs
8827 `(("gettext" ,gettext-minimal))) ;for msgfmt
8828 (home-page "https://gitlab.com/LibreGames/jumpnbump")
8829 (synopsis "Multiplayer platform game with bunnies")
8830 (description "You, as a bunny, have to jump on your opponents to make them
8831 explode. It is a true multiplayer game; you cannot play this alone. You can
8832 play with up to four players simultaneously. It has network support.")
8833 (license license:gpl2+)))
8834
8835 (define-public hedgewars
8836 (package
8837 (name "hedgewars")
8838 (version "1.0.0")
8839 (source (origin
8840 (method url-fetch)
8841 (uri (string-append "https://www.hedgewars.org/download/releases/"
8842 "hedgewars-src-" version ".tar.bz2"))
8843 (sha256
8844 (base32
8845 "0nqm9w02m0xkndlsj6ys3wr0ik8zc14zgilq7k6fwjrf3zk385i1"))))
8846 (build-system cmake-build-system)
8847 (arguments
8848 ;; XXX: Engine is built as Pascal source code, requiring Free Pascal
8849 ;; Compiler, which we haven't packaged yet. With the flag below, we use
8850 ;; a Pascal to C translator and Clang instead.
8851 `(#:configure-flags (list "-DBUILD_ENGINE_C=ON"
8852 "-Dhaskell_flags=-dynamic;-fPIC")
8853 #:phases
8854 (modify-phases %standard-phases
8855 (replace 'check
8856 (lambda _ (invoke "ctest")))
8857 (add-after 'install 'install-icon
8858 (lambda _
8859 ;; Install icon for the desktop file.
8860 (let* ((out (assoc-ref %outputs "out"))
8861 (icons (string-append out "/share/icons/hicolor/512x512/apps")))
8862 (with-directory-excursion (string-append "../hedgewars-src-" ,version)
8863 (install-file "misc/hedgewars.png" icons)))
8864 #t)))))
8865 (inputs
8866 `(("ffmpeg" ,ffmpeg)
8867 ("freeglut" ,freeglut)
8868 ("ghc-entropy" ,ghc-entropy)
8869 ("ghc-hslogger" ,ghc-hslogger)
8870 ("ghc-network" ,ghc-network)
8871 ("ghc-random" ,ghc-random)
8872 ("ghc-regex-tdfa" ,ghc-regex-tdfa)
8873 ("ghc-sandi" ,ghc-sandi)
8874 ("ghc-sha" ,ghc-sha)
8875 ("ghc-utf8-string" ,ghc-utf8-string)
8876 ("ghc-vector" ,ghc-vector)
8877 ("ghc-zlib" ,ghc-zlib)
8878 ("glew" ,glew)
8879 ("libpng" ,libpng)
8880 ("lua" ,lua-5.1)
8881 ("physfs" ,physfs)
8882 ("qtbase" ,qtbase)
8883 ("sdl" ,(sdl-union
8884 (list sdl2 sdl2-mixer sdl2-net sdl2-ttf sdl2-image)))))
8885 (native-inputs
8886 `(("clang" ,clang)
8887 ("ghc" ,ghc)
8888 ("pkg-config" ,pkg-config)
8889 ("qttools" ,qttools)))
8890 (home-page "https://hedgewars.org/")
8891 (synopsis "Turn-based artillery game featuring fighting hedgehogs")
8892 (description
8893 "Hedgewars is a turn based strategy, artillery, action and comedy game,
8894 featuring the antics of pink hedgehogs with attitude as they battle from the
8895 depths of hell to the depths of space.
8896
8897 As commander, it's your job to assemble your crack team of hedgehog soldiers
8898 and bring the war to your enemy.")
8899 ;; Software as a whole is licensed under GPL-2 terms. Artwork and
8900 ;; scripts are distributed under various terms.
8901 (license (list license:gpl2
8902 license:bsd-2 license:bsd-3 license:cc-by3.0 license:cc0
8903 license:expat license:fdl1.3+ license:public-domain
8904 license:zlib))))
8905
8906 (define-public harmonist
8907 (package
8908 (name "harmonist")
8909 (version "0.3.0")
8910 (source (origin
8911 (method git-fetch)
8912 (uri (git-reference
8913 (url "https://git.tuxfamily.org/harmonist/harmonist.git")
8914 (commit (string-append "v" version))))
8915 (file-name (git-file-name name version))
8916 (sha256
8917 (base32
8918 "146wiyanag0zqj6fhyll2sw6sydnnll8mgxhhqf9sjqsl2rx4s5r"))))
8919 (build-system go-build-system)
8920 (arguments
8921 '(#:import-path "git.tuxfamily.org/harmonist/harmonist"))
8922 (inputs
8923 `(("go-github.com-nsf-termbox-go" ,go-github.com-nsf-termbox-go)))
8924 (home-page "https://harmonist.tuxfamily.org/")
8925 (synopsis "Stealth coffee-break roguelike game")
8926 (description "Harmonist: Dayoriah Clan Infiltration is a stealth
8927 coffee-break roguelike game. The game has a heavy focus on tactical
8928 positioning, light and noise mechanisms, making use of various terrain types
8929 and cones of view for monsters. Aiming for a replayable streamlined experience,
8930 the game avoids complex inventory management and character building, relying
8931 on items and player adaptability for character progression.")
8932 (license license:isc)))
8933
8934 (define-public harmonist-tk
8935 (package
8936 (inherit harmonist)
8937 (name "harmonist-tk")
8938 (arguments
8939 (append
8940 (package-arguments harmonist)
8941 `(#:phases
8942 (modify-phases %standard-phases
8943 (replace 'build
8944 (lambda _
8945 (invoke "go" "install" "-v" "-x" "--tags" "tk"
8946 "git.tuxfamily.org/harmonist/harmonist")))
8947 (replace 'check
8948 (lambda _
8949 (invoke "go" "test" "--tags" "tk"
8950 "git.tuxfamily.org/harmonist/harmonist")))))))
8951 (inputs
8952 `(("go-github.com-nsf-gothic" ,go-github.com-nsf-gothic)))))
8953
8954 (define-public drascula
8955 (package
8956 (name "drascula")
8957 (version "1.0")
8958 (source (origin
8959 (method url-fetch)
8960 (uri (string-append "mirror://sourceforge/scummvm/extras/"
8961 "Drascula_%20The%20Vampire%20Strikes%20Back/"
8962 "drascula-" version ".zip"))
8963 (sha256
8964 (base32
8965 "1pj29rpb754sn6a56f8brfv6f2m1p5qgaqik7d68pfi2bb5zccdp"))))
8966 (build-system trivial-build-system)
8967 (arguments
8968 `(#:modules ((guix build utils))
8969 #:builder
8970 (begin
8971 (use-modules (guix build utils)
8972 (ice-9 match))
8973 (let* ((out (assoc-ref %outputs "out"))
8974 (share (string-append out "/share/drascula"))
8975 (scummvm (assoc-ref %build-inputs "scummvm")))
8976 ;; Install data.
8977 (let ((unzip (string-append (assoc-ref %build-inputs "unzip")
8978 "/bin/unzip"))
8979 (doc (string-append out "/share/doc/" ,name "-" ,version)))
8980 (for-each
8981 (lambda (input)
8982 (invoke unzip
8983 "-j"
8984 (assoc-ref %build-inputs input)
8985 "-x" "__MACOSX")
8986 ;; Every input provides "readme.txt", and we want to
8987 ;; preserve them all. Therefore we rename them first.
8988 (match input
8989 ("drascula-int"
8990 (rename-file "readme.txt" "readme-international.txt"))
8991 ("drascula-audio"
8992 (rename-file "readme.txt" "readme-audio.txt"))
8993 (_ #f))
8994 ;; Install documentation.
8995 (for-each (lambda (f) (install-file f doc))
8996 (find-files "." "\\.(txt|doc)$"))
8997 ;; Install data.
8998 (for-each (lambda (f) (install-file f share))
8999 (find-files "." "\\.(ogg|00[0-9])$")))
9000 '("drascula-audio" "drascula-int" "source")))
9001 ;; Create standalone executable.
9002 (let* ((bin (string-append out "/bin"))
9003 (executable (string-append bin "/drascula"))
9004 (bash (string-append (assoc-ref %build-inputs "bash")
9005 "/bin/bash")))
9006 (mkdir-p bin)
9007 (with-output-to-file executable
9008 (lambda ()
9009 (format #t "#!~a~%" bash)
9010 (format #t
9011 "exec ~a/bin/scummvm --path=~a drascula~%"
9012 scummvm share)))
9013 (chmod executable #o755))
9014 ;; Create desktop file. There is no dedicated icon for the
9015 ;; game, so we borrow SCUMMVM's.
9016 (let ((apps (string-append out "/share/applications")))
9017 (mkdir-p apps)
9018 (make-desktop-entry-file
9019 (string-append apps "/drascula.desktop")
9020 #:name "Drascula: The Vampire Strikes Back"
9021 #:generic-name "Drascula"
9022 #:exec (string-append out "/bin/drascula")
9023 #:icon (string-append scummvm "/share/icons/hicolor/scalable/apps/scummvm.svg")
9024 #:categories '("AdventureGame" "Game" "RolePlaying")
9025 #:keywords '("game" "adventure" "roleplaying" "2D" "fantasy")
9026 #:comment '((#f "Classic 2D point and click adventure game")
9027 ("de" "Klassisches 2D-Abenteuerspiel in Zeigen-und-Klicken-Manier")
9028 ("fr" "Jeu classique d'aventure pointer-et-cliquer en 2D")
9029 ("it" "Gioco classico di avventura punta e clicca 2D"))))
9030 #t))))
9031 (native-inputs
9032 `(("bash" ,bash)
9033 ("unzip" ,unzip)))
9034 (inputs
9035 `(("scummvm" ,scummvm)
9036 ("drascula-int"
9037 ,(let ((version "1.1"))
9038 (origin
9039 (method url-fetch)
9040 (uri (string-append "mirror://sourceforge/scummvm/extras/"
9041 "Drascula_%20The%20Vampire%20Strikes%20Back/"
9042 "drascula-int-" version ".zip"))
9043 (sha256
9044 (base32
9045 "12236i7blamal92p1i8dgp3nhp2yicics4whsl63v682bj999n14")))))
9046 ("drascula-audio"
9047 ,(let ((version "2.0"))
9048 (origin
9049 (method url-fetch)
9050 (uri (string-append "mirror://sourceforge/scummvm/extras/"
9051 "Drascula_%20The%20Vampire%20Strikes%20Back/"
9052 "drascula-audio-" version ".zip"))
9053 (sha256
9054 (base32
9055 "00g4izmsqzxb8ry1vhfx6jrygl58lvlij09nw01ds4zddsiznsky")))))))
9056 (home-page "https://www.scummvm.org")
9057 (synopsis "Classic 2D point and click adventure game")
9058 (description "Drascula: The Vampire Strikes Back is a classic humorous 2D
9059 point and click adventure game.
9060
9061 In Drascula you play the role of John Hacker, a British estate agent, that
9062 gets to meet a gorgeous blond girl who is kidnapped by the notorious vampire
9063 Count Drascula and embark on a fun yet dangerous quest to rescue her.
9064 Unfortunately, Hacker is not aware of Drascula's real ambitions: DOMINATING
9065 the World and demonstrating that he is even more evil than his brother Vlad.")
9066 ;; Drascula uses a BSD-like license.
9067 (license (license:non-copyleft "file:///readme.txt"))))
9068
9069 (define (make-lure-package name language hash)
9070 (package
9071 (name name)
9072 (version "1.1")
9073 (source
9074 (origin
9075 (method url-fetch)
9076 (uri (string-append
9077 "mirror://sourceforge/scummvm/extras/"
9078 "Lure%20of%20the%20Temptress/"
9079 name "-" version ".zip"))
9080 (sha256
9081 (base32 hash))))
9082 (build-system trivial-build-system)
9083 (arguments
9084 `(#:modules ((guix build utils))
9085 #:builder
9086 (begin
9087 (use-modules (guix build utils))
9088 (let* ((out (assoc-ref %outputs "out"))
9089 (share (string-append out "/share"))
9090 (data (string-append share "/" ,name "/" ,language))
9091 (apps (string-append share "/applications"))
9092 (bin (string-append out "/bin"))
9093 (executable (string-append bin "/" ,name))
9094 (scummvm (assoc-ref %build-inputs "scummvm")))
9095 (let ((unzip (string-append (assoc-ref %build-inputs "unzip")
9096 "/bin/unzip")))
9097 (invoke unzip "-j" (assoc-ref %build-inputs "source")))
9098 (let ((doc (string-append share "/doc/" ,name "-" ,version)))
9099 (for-each (lambda (f) (install-file f doc))
9100 (find-files "." "\\.(txt|PDF|pdf)$")))
9101 (for-each (lambda (f) (install-file f data))
9102 (find-files "." "\\.(vga|VGA)$"))
9103 ;; Build the executable.
9104 (mkdir-p bin)
9105 (let ((bash (assoc-ref %build-inputs "bash")))
9106 (with-output-to-file executable
9107 (lambda ()
9108 (format #t "#!~a/bin/bash~%" bash)
9109 (format #t "exec ~a/bin/scummvm -q ~a -p ~a lure~%"
9110 scummvm ,language data))))
9111 (chmod executable #o755)
9112 ;; Create desktop file. There is no dedicated
9113 ;; icon for the game, so we borrow SCUMMVM's.
9114 (mkdir-p apps)
9115 (with-output-to-file (string-append apps "/" ,name ".desktop")
9116 (lambda _
9117 (format #t
9118 "[Desktop Entry]~@
9119 Name=Lure of the Temptress~@
9120 GenericName=Lure~@
9121 Exec=~a~@
9122 Icon=~a/share/icons/hicolor/scalable/apps/scummvm.svg~@
9123 Categories=AdventureGame;Game;RolePlaying;~@
9124 Keywords=game;adventure;roleplaying;2D,fantasy;~@
9125 Comment=Classic 2D point and click adventure game~@
9126 Comment[de]=klassisches 2D-Abenteuerspiel in Zeigen-und-Klicken-Manier~@
9127 Comment[fr]=Jeu classique d'aventure pointer-et-cliquer en 2D~@
9128 Comment[it]=Gioco classico di avventura punta e clicca 2D~@
9129 Type=Application~%"
9130 executable scummvm)))
9131 #t))))
9132 (native-inputs
9133 `(("unzip" ,unzip)))
9134 (inputs
9135 `(("bash" ,bash)
9136 ("scummvm" ,scummvm)))
9137 (home-page "https://www.scummvm.org")
9138 (synopsis "2D point and click fantasy adventure game")
9139 (description
9140 "Lure of the Temptress is a classic 2D point and click adventure game.
9141
9142 You are Diermot, an unwilling hero who'd prefer a quiet life, and are, to all
9143 intents and purposes, a good man. After decades of unrest the King has united
9144 the warring factions in his kingdom and all his lands are at peace, except
9145 a remote region around a town called Turnvale. A revolt has recently taken
9146 place in Turnvale, a revolt orchestrated by an apprentice sorceress called
9147 Selena, the titular temptress. The king calls together his finest horsemen
9148 and heads off (with you in tow) to Turnvale just to witness how hellish
9149 mercenary monsters called Skorl are invading the town.
9150
9151 The king's men are defeated, the king is killed and you fall of your horse and
9152 bang your head heavily on the ground. You have been *unconscious for a while
9153 when you realize that you are in a dingy cell guarded by a not so friendly
9154 Skorl. Maybe it would be an idea to try and escape...")
9155 (license (license:non-copyleft "file:///README"))))
9156
9157 (define-public lure
9158 (make-lure-package
9159 "lure" "en" "0201i70qcs1m797kvxjx3ygkhg6kcl5yf49sihba2ga8l52q45zk"))
9160
9161 (define-public lure-de
9162 (make-lure-package
9163 "lure-de" "de" "0sqq7h5llml6rv85x0bfv4bgzwhs4c82p4w4zmfcaab6cjlad0sy"))
9164
9165 (define-public lure-es
9166 (make-lure-package
9167 "lure-es" "es" "1dvv5znvlsakw6w5r16calv9jkgw27aymgybsf4q22lcmpxbj1lk"))
9168
9169 (define-public lure-fr
9170 (make-lure-package
9171 "lure-fr" "fr" "1y51jjb7f8023832g44vd1jsb6ni85586pi2n5hjg9qjk6gi90r9"))
9172
9173 (define-public lure-it
9174 (make-lure-package
9175 "lure-it" "it" "1ks6n39r1cllisrrh6pcr39swsdv7ng3gx5c47vaw71zzfr70hjj"))
9176
9177 (define (make-queen-package name file-prefix release language hash)
9178 (package
9179 (name name)
9180 (version release)
9181 (source
9182 (origin
9183 (method url-fetch)
9184 (uri (string-append "mirror://sourceforge/scummvm/extras/"
9185 "Flight%20of%20the%20Amazon%20Queen/"
9186 file-prefix release ".zip"))
9187 (sha256
9188 (base32 hash))))
9189 (build-system trivial-build-system)
9190 (arguments
9191 `(#:modules ((guix build utils))
9192 #:builder
9193 (begin
9194 (use-modules (guix build utils))
9195 (let* ((out (assoc-ref %outputs "out"))
9196 (share (string-append out "/share"))
9197 (data (string-append share "/" ,name))
9198 (apps (string-append share "/applications"))
9199 (bin (string-append out "/bin"))
9200 (executable (string-append bin "/" ,name))
9201 (scummvm (assoc-ref %build-inputs "scummvm")))
9202 (let ((unzip (string-append (assoc-ref %build-inputs "unzip")
9203 "/bin/unzip")))
9204 (invoke unzip "-j" (assoc-ref %build-inputs "source")))
9205 (let ((doc (string-append share "/doc/" ,name "-" ,version)))
9206 (install-file "readme.txt" doc))
9207 (install-file "queen.1c" data)
9208 (mkdir-p bin)
9209 (let ((bash (assoc-ref %build-inputs "bash")))
9210 (with-output-to-file executable
9211 (lambda ()
9212 (format #t "#!~a/bin/bash~%" bash)
9213 (format #t "exec ~a/bin/scummvm -q fr -p ~a queen~%"
9214 scummvm data))))
9215 (chmod executable #o755)
9216 ;; Create desktop file. There is no dedicated
9217 ;; icon for the game, so we borrow SCUMMVM's.
9218 (mkdir-p apps)
9219 (with-output-to-file (string-append apps "/" ,name ".desktop")
9220 (lambda _
9221 (format #t
9222 "[Desktop Entry]~@
9223 Name=Flight of the Amazon Queen~@
9224 GenericName=Queen~@
9225 Comment=Embark on a quest to rescue a kidnapped princess and in the process, discover the true sinister intentions of a suspiciously located Lederhosen company~@
9226 Comment[de]=Begib dich auf ein Abenteuer, um eine entführte Prinzessin zu retten und entdecke die wahren, finsteren Absichten eines verdächtig erscheinenden Lederhosen-Unternehmens~@
9227 Type=Application~@
9228 Exec=~a~@
9229 Icon=~a/share/icons/hicolor/scalable/apps/scummvm.svg~@
9230 Categories=AdventureGame;Game;RolePlaying;~@
9231 Keywords=adventure;game;roleplaying;fantasy;~%"
9232 executable scummvm))))
9233 #t)))
9234 (native-inputs
9235 `(("unzip" ,unzip)))
9236 (inputs
9237 `(("bash" ,bash)
9238 ("scummvm" ,scummvm)))
9239 (home-page "https://www.scummvm.org/")
9240 (synopsis "Classic 2D point and click adventure game")
9241 (description "Flight of the Amazon Queen is a 2D point-and-click
9242 adventure game set in the 1940s.
9243
9244 You assume the role of Joe King, a pilot for hire who is given the job
9245 of flying Faye Russell (a famous movie star) into the Amazon jungle
9246 for a photo shoot. Of course, things never go according to plans.
9247 After an unfortunate turn of events they find themselves stranded in
9248 the heart of the Amazon jungle, where Joe will embark on a quest to
9249 rescue a kidnapped princess and in the process, discover the true
9250 sinister intentions of a suspiciously located Lederhosen company. In
9251 a rich 2D environment, Joe will cross paths with a variety of unlikely
9252 jungle inhabitants including, but not limited to, a tribe of Amazon
9253 women and 6-foot-tall pygmies.")
9254 (license (license:non-copyleft "file:///readme.txt"))))
9255
9256 (define-public queen
9257 (make-queen-package
9258 "queen" "FOTAQ_Talkie-" "1.1" "en"
9259 "1a6q71q1dl9vvw2qqsxk5h1sv0gaqy6236zr5905w2is01gdsp52"))
9260
9261 (define-public queen-de
9262 (make-queen-package
9263 "queen-de" "FOTAQ_Ger_talkie-" "1.0" "de"
9264 "13vn43x7214vyprlpqabvv71k890nff3d6fjscflr1ll7acjca3f"))
9265
9266 (define-public queen-fr
9267 (make-queen-package
9268 "queen-fr" "FOTAQ_Fr_Talkie_" "1.0" "fr"
9269 "0hq5g4qrkcwm2kn5i4kv4hijs9hi7bw9xl1vrwd1l69qqn30crwy"))
9270
9271 (define-public queen-it
9272 (make-queen-package
9273 "queen-it" "FOTAQ_It_Talkie_" "1.0" "it"
9274 "1h76y70lrpzfjkm53n4nr364nhyka54vbz9r7sadzyzl7c7ilv4d"))
9275
9276 (define-public sky
9277 (package
9278 (name "sky")
9279 (version "1.2") ;1.3 is floppy version
9280 (source
9281 (origin
9282 (method url-fetch)
9283 (uri (string-append "mirror://sourceforge/scummvm/extras/"
9284 "Beneath%20a%20Steel%20Sky/"
9285 "bass-cd-" version ".zip"))
9286 (sha256
9287 (base32 "14s5jz67kavm8l15gfm5xb7pbpn8azrv460mlxzzvdpa02a9n82k"))))
9288 (build-system trivial-build-system)
9289 (arguments
9290 `(#:modules ((guix build utils))
9291 #:builder
9292 (begin
9293 (use-modules (guix build utils))
9294 (let* ((out (assoc-ref %outputs "out"))
9295 (share (string-append out "/share"))
9296 (data (string-append share "/" ,name))
9297 (apps (string-append share "/applications"))
9298 (bin (string-append out "/bin"))
9299 (executable (string-append bin "/" ,name))
9300 (scummvm (assoc-ref %build-inputs "scummvm")))
9301 (let ((unzip (string-append (assoc-ref %build-inputs "unzip")
9302 "/bin/unzip")))
9303 (invoke unzip "-j" (assoc-ref %build-inputs "source")))
9304 (let ((doc (string-append share "/doc/bass-" ,version)))
9305 (install-file "readme.txt" doc))
9306 (for-each (lambda (f) (install-file f data))
9307 (find-files "." "^sky\\."))
9308 ;; Build the executable.
9309 (mkdir-p bin)
9310 (let ((bash (assoc-ref %build-inputs "bash")))
9311 (with-output-to-file executable
9312 (lambda ()
9313 (format #t "#!~a/bin/bash~%" bash)
9314 (format #t "exec ~a/bin/scummvm -p ~a sky~%" scummvm data))))
9315 (chmod executable #o755)
9316 ;; Create desktop file. There is no dedicated
9317 ;; icon for the game, so we borrow SCUMMVM's.
9318 (mkdir-p apps)
9319 (with-output-to-file (string-append apps "/" ,name ".desktop")
9320 (lambda _
9321 (format #t
9322 "[Desktop Entry]~@
9323 Name=Beneath a Steel Sky~@
9324 GenericName=Bass~@
9325 Exec=~a~@
9326 Icon=~a/share/icons/hicolor/scalable/apps/scummvm.svg~@
9327 Categories=AdventureGame;Game;RolePlaying;~@
9328 Keywords=adventure;game;roleplaying;cyberpunk;~@
9329 Comment=A science-fiction adventure game set in a bleak post-apocalyptic vision of the future~@
9330 Comment[de]=Ein Science-Fiction-Abenteuerspiel \
9331 angesiedelt in einer düsteren, postapokalyptischen Vision der Zukunft~@
9332 Type=Application~%"
9333 executable scummvm)))
9334 #t))))
9335 (native-inputs
9336 `(("unzip" ,unzip)))
9337 (inputs
9338 `(("bash" ,bash)
9339 ("scummvm" ,scummvm)))
9340 (home-page "https://www.scummvm.org/")
9341 (synopsis "Classic 2D point an click science-fiction adventure game")
9342 (description
9343 "Beneath a Steel Sky is a science-fiction thriller set in a bleak
9344 post-apocalyptic vision of the future. It revolves around Union City,
9345 where selfishness, rivalry, and corruption by its citizens seems to be
9346 all too common, those who can afford it live underground, away from
9347 the pollution and social problems which are plaguing the city.
9348
9349 You take on the role of Robert Foster, an outcast of sorts from the
9350 city since a boy who was raised in a remote environment outside of
9351 Union City simply termed ``the gap''. Robert's mother took him away
9352 from Union City as a child on their way to ``Hobart'' but the
9353 helicopter crashed on its way. Unfortunately, Robert's mother died,
9354 but he survived and was left to be raised by a local tribe from the
9355 gap.
9356
9357 Years later, Union City security drops by and abducts Robert, killing
9358 his tribe in the process; upon reaching the city the helicopter taking
9359 him there crashes with him escaping, high upon a tower block in the
9360 middle of the city. He sets out to discover the truth about his past,
9361 and to seek vengeance for the killing of his tribe.")
9362 (license (license:non-copyleft "file:///readme.txt"))))
9363
9364 (define-public gnurobots
9365 (package
9366 (name "gnurobots")
9367 (version "1.2.0")
9368 (source
9369 (origin
9370 (method url-fetch)
9371 (uri (string-append "mirror://gnu/gnurobots/gnurobots-"
9372 version ".tar.gz"))
9373 (sha256
9374 (base32
9375 "07gi3lsmbzzsjambgixj6xy79lh22km84z7bnzgwzxdy806lyvwb"))))
9376 (build-system gnu-build-system)
9377 (inputs
9378 `(("glib" ,glib)
9379 ("gtk+" ,gtk+-2)
9380 ("vte" ,vte/gtk+-2)
9381 ("readline" ,readline)
9382 ("guile" ,guile-1.8)))
9383 (native-inputs
9384 `(("pkg-config" ,pkg-config)))
9385 (arguments
9386 `(#:make-flags
9387 (list
9388 ;; Do not abort build on "deprecated-declarations" warnings.
9389 "CFLAGS=-Wno-error=deprecated-declarations"
9390 ;; Find readline headers in sub-directory.
9391 (string-append "READLINE_CFLAGS=-I"
9392 (assoc-ref %build-inputs "readline")
9393 "/include/readline/"))
9394 #:phases
9395 (modify-phases %standard-phases
9396 (add-after 'install 'install-doc
9397 (lambda* (#:key outputs #:allow-other-keys)
9398 (install-file "doc/Robots-HOWTO"
9399 (string-append (assoc-ref outputs "out")
9400 "/share/doc/gnurobots-"
9401 ,version))
9402 #t)))))
9403 (home-page "https://www.gnu.org/software/gnurobots/")
9404 (synopsis "Program a little robot and watch it explore a world")
9405 (description
9406 "GNU Robots is a game in which you program a robot to explore a world
9407 full of enemies that can hurt it, obstacles and food to be eaten. The goal of
9408 the game is to stay alive and collect prizes. The robot program conveniently
9409 may be written in a plain text file in the Scheme programming language.")
9410 (license license:gpl3+)))
9411
9412 (define-public ri-li
9413 (package
9414 (name "ri-li")
9415 (version "2.0.1")
9416 (source (origin
9417 (method url-fetch)
9418 (uri (string-append "mirror://sourceforge/ri-li/"
9419 "Ri-li%20Linux_Unix/Ri-li%20V" version "/"
9420 "Ri-li-" version ".tar.bz2"))
9421 (sha256
9422 (base32
9423 "1gcdsgnnbbn1mb1hkpwniv3fhkaj1nn8gq33v5c16q3wqchcq77p"))
9424 ;; Taken from
9425 ;; <https://github.com/NixOS/nixpkgs/blob/master/pkgs/games/rili/moderinze_cpp.patch>.
9426 ;; It doesn't build otherwise.
9427 (patches (search-patches "ri-li-modernize_cpp.patch"))))
9428 (build-system gnu-build-system)
9429 (arguments
9430 `(#:phases
9431 (modify-phases %standard-phases
9432 ;; Remove "gentoo" subdirectory from Makefile, as it is
9433 ;; missing a make file and generates a build failure.
9434 (add-after 'configure 'fix-build
9435 (lambda _
9436 (substitute* "Makefile"
9437 ((" gentoo") ""))
9438 #t))
9439 (add-after 'install 'install-desktop-file
9440 (lambda* (#:key outputs #:allow-other-keys)
9441 (let* ((out (assoc-ref outputs "out"))
9442 (apps (string-append out "/share/applications"))
9443 (pixmaps (string-append out "/share/pixmaps")))
9444 (for-each (lambda (f) (install-file f pixmaps))
9445 (find-files "data" "\\.(png|ico)$"))
9446 (mkdir-p apps)
9447 (with-output-to-file (string-append apps "/ri-li.desktop")
9448 (lambda _
9449 (format #t
9450 "[Desktop Entry]~@
9451 Name=Ri-li~@
9452 Exec=~a/bin/Ri_li~@
9453 Icon=~a/Ri-li-icon-32x32.png~@
9454 Categories=Game;ArcadeGame;~@
9455 Keywords=toy;train;wooden;snake-like;engine;~@
9456 Comment=a toy simulator game~@
9457 Comment[de]=Ein Spiel mit einem kleinen Zug~@
9458 Comment[fr]=un jeu de petit train~@
9459 Comment[ro_RO]=un joc cu un tren de jucărie~@
9460 Terminal=false~@
9461 Type=Application~%"
9462 out pixmaps))))
9463 #t))
9464 (add-after 'install-desktop-file 'remove-spurious-files
9465 ;; Delete redundant files already installed somewhere else.
9466 (lambda* (#:key outputs #:allow-other-keys)
9467 (let ((out (assoc-ref outputs "out")))
9468 (for-each delete-file
9469 (find-files (string-append out "/share/Ri-li")
9470 "\\.(png|ico)|COPYING"))
9471 #t))))))
9472 (inputs
9473 `(("sdl" ,(sdl-union (list sdl sdl-mixer)))))
9474 (home-page "http://www.ri-li.org")
9475 (synopsis "Toy train simulation game")
9476 (description "Ri-li is a game in which you drive a wooden toy
9477 steam locomotive across many levels and collect all the coaches to
9478 win.")
9479 ;; The project is dual-licensed GPL2+ and GPL3+.
9480 (license (list license:gpl2+ license:gpl3+))))
9481
9482 (define-public freeorion
9483 (package
9484 (name "freeorion")
9485 (version "0.4.10")
9486 (source
9487 (origin
9488 (method url-fetch)
9489 (uri (string-append "https://github.com/freeorion/freeorion/releases/"
9490 "download/v" version "/FreeOrion_v" version
9491 "_2020-07-10.f3d403e_Source.tar.gz"))
9492 (sha256
9493 (base32 "12xspixrkx6mmmsdqjha0hg02r4y73pk229l0wjq9s0yp8nb8ap7"))
9494 (modules '((guix build utils)))
9495 (snippet
9496 '(begin
9497 ;; There are some bundled fonts.
9498 (for-each delete-file-recursively '("default/data/fonts"))
9499 #t))))
9500 (build-system cmake-build-system)
9501 (arguments
9502 '(#:tests? #f ;no test
9503 #:phases
9504 (modify-phases %standard-phases
9505 (add-after 'unpack 'unbundle-fonts
9506 (lambda* (#:key inputs #:allow-other-keys)
9507 (let ((roboto-dir (string-append (assoc-ref inputs "font-roboto")
9508 "/share/fonts/truetype/")))
9509 (substitute* "UI/ClientUI.cpp"
9510 (("\\(GetRootDataDir.*?Roboto-(Bold|Regular)\\.ttf\"\\)\\.string\\(\\)\\);"
9511 all type)
9512 (string-append "\"" roboto-dir "Roboto-" type ".ttf\");")))
9513 #t))))))
9514 (inputs
9515 `(("boost" ,boost)
9516 ("boost_signals" ,boost-signals2)
9517 ("font-dejavu" ,font-dejavu)
9518 ("font-roboto" ,font-google-roboto)
9519 ("freetype2" ,freetype)
9520 ("glew" ,glew)
9521 ("glu" ,glu)
9522 ("libogg" ,libogg)
9523 ("libpng" ,libpng)
9524 ("libvorbis" ,libvorbis)
9525 ("openal" ,openal)
9526 ("python" ,python)
9527 ("sdl2" ,sdl2)
9528 ("zlib" ,zlib)))
9529 (home-page "https://www.freeorion.org/index.php/Main_Page")
9530 (synopsis "Turn-based space empire and galactic conquest computer game")
9531 (description
9532 "FreeOrion is a turn-based space empire and galactic conquest (4X)
9533 computer game being designed and built by the FreeOrion project. Control an
9534 empire with the goal of exploring the galaxy, expanding your territory,
9535 exploiting the resources, and exterminating rival alien empires. FreeOrion is
9536 inspired by the tradition of the Master of Orion games, but is not a clone or
9537 remake of that series or any other game.")
9538 ;; Source code is released under gpl2. Artwork, music and sounds, and
9539 ;; in-game text are released under cc-by-sa3.0. Game content scripts are
9540 ;; released under both gpl2 and cc-by-sa3.0. Bundled Gigi library is
9541 ;; released under lgpl2.1+.
9542 (license (list license:gpl2 license:cc-by-sa3.0 license:lgpl2.1+))))
9543
9544 (define-public leela-zero
9545 (package
9546 (name "leela-zero")
9547 (version "0.17")
9548 (source
9549 (origin
9550 (method git-fetch)
9551 (uri (git-reference
9552 (url "https://github.com/leela-zero/leela-zero")
9553 (commit (string-append "v" version))))
9554 (file-name (git-file-name name version))
9555 (sha256
9556 (base32
9557 "17px5iny8mql5c01bymcli7zfssswkzvb2i8gnsmjcck6i2n8srl"))
9558 (patches (search-patches "leela-zero-gtest.patch"))))
9559 (build-system cmake-build-system)
9560 (native-inputs
9561 `(("googletest" ,googletest)))
9562 (inputs
9563 `(("boost" ,boost)
9564 ("ocl-icd" ,ocl-icd)
9565 ("openblas" ,openblas)
9566 ("opencl-headers" ,opencl-headers)
9567 ("qtbase" ,qtbase)
9568 ("zlib" ,zlib)))
9569 (arguments
9570 '(#:configure-flags '("-DUSE_BLAS=YES")
9571 #:phases (modify-phases %standard-phases
9572 (add-before 'configure 'fix-tests
9573 (lambda* (#:key outputs #:allow-other-keys)
9574 (let ((home (getcwd)))
9575 (setenv "HOME" home)
9576 (substitute* "src/tests/gtests.cpp"
9577 (("\\.\\./src/tests/0k\\.txt")
9578 (string-append home "/src/tests/0k.txt"))
9579 (("cfg_gtp_mode = true;")
9580 "cfg_gtp_mode = true; cfg_cpu_only = true;")))
9581 #t))
9582 (replace 'check
9583 (lambda _
9584 (invoke "./tests"))))))
9585 (home-page "https://github.com/leela-zero/leela-zero")
9586 (synopsis "Program playing the game of Go")
9587 (description
9588 "Leela-zero is a Go engine with no human-provided knowledge, modeled after
9589 the AlphaGo Zero paper. The current best network weights file for the engine
9590 can be downloaded from @url{https://zero.sjeng.org/best-network}.")
9591 (license license:gpl3+)))
9592
9593 (define-public q5go
9594 (package
9595 (name "q5go")
9596 (version "1.0")
9597 (source (origin
9598 (method git-fetch)
9599 (uri (git-reference
9600 (url "https://github.com/bernds/q5Go")
9601 (commit (string-append "q5go-" version))))
9602 (file-name (git-file-name name version))
9603 (sha256
9604 (base32
9605 "1gdlfqcqkqv7vph3qwq78d0qz6dhmdsranxq9bmixiisbzkqby31"))))
9606 (build-system gnu-build-system)
9607 (native-inputs
9608 `(("pkg-config" ,pkg-config)))
9609 (inputs
9610 `(("qtbase" ,qtbase)
9611 ("qtmultimedia" ,qtmultimedia)
9612 ("qtsvg" ,qtsvg)))
9613 (arguments
9614 '(#:phases
9615 (modify-phases %standard-phases
9616 (add-after 'unpack 'fix-configure-script
9617 (lambda _
9618 ;; Bypass the unavailable qtchooser program.
9619 (substitute* "configure"
9620 (("test -z \"QTCHOOSER\"")
9621 "false")
9622 (("qtchooser -run-tool=(.*) -qt=qt5" _ command)
9623 command))
9624 #t))
9625 (add-after 'unpack 'fix-paths
9626 (lambda _
9627 (substitute* '("src/pics/Makefile.in"
9628 "src/translations/Makefile.in")
9629 (("\\$\\(datadir\\)/qGo/")
9630 "$(datadir)/q5go/"))
9631 #t))
9632 (add-after 'install 'install-desktop-file
9633 (lambda* (#:key outputs #:allow-other-keys)
9634 (let* ((out (assoc-ref outputs "out"))
9635 (apps (string-append out "/share/applications"))
9636 (pics (string-append out "/share/q5go/pics")))
9637 (delete-file-recursively (string-append out "/share/applnk"))
9638 (delete-file-recursively (string-append out "/share/mimelnk"))
9639 (install-file "../source/src/pics/Bowl.ico" pics)
9640 (mkdir-p apps)
9641 (with-output-to-file (string-append apps "/q5go.desktop")
9642 (lambda _
9643 (format #t
9644 "[Desktop Entry]~@
9645 Name=q5go~@
9646 Exec=~a/bin/q5go~@
9647 Icon=~a/Bowl.ico~@
9648 Categories=Game;~@
9649 Comment=Game of Go~@
9650 Comment[de]=Spiel des Go~@
9651 Comment[eo]=Goo~@
9652 Comment[es]=Juego de Go~@
9653 Comment[fr]=Jeu de Go~@
9654 Comment[ja]=囲碁~@
9655 Comment[ko]=바둑~@
9656 Comment[zh]=围棋~@
9657 Terminal=false~@
9658 Type=Application~%"
9659 out pics))))
9660 #t)))))
9661 (synopsis "Qt GUI to play the game of Go")
9662 (description
9663 "This a tool for Go players which performs the following functions:
9664 @itemize
9665 @item SGF editor,
9666 @item Analysis frontend for Leela Zero (or compatible engines),
9667 @item GTP interface (to play against an engine),
9668 @item IGS client (to play on the internet),
9669 @item Export games to a variety of formats.
9670 @end itemize")
9671 (home-page "https://github.com/bernds/q5Go")
9672 (license license:gpl2+)))
9673
9674 (define-public ktuberling
9675 (package
9676 (name "ktuberling")
9677 (version "19.08.3")
9678 (source
9679 (origin
9680 (method url-fetch)
9681 (uri (string-append "mirror://kde/stable/applications/" version
9682 "/src/ktuberling-" version ".tar.xz"))
9683 (sha256
9684 (base32 "1qdf4q6wjh1lnlqw5c8z4rpj9w5vbyjfri1dah6yjm3mwppbc12j"))))
9685 (build-system qt-build-system)
9686 (native-inputs
9687 `(("extra-cmake-modules" ,extra-cmake-modules)
9688 ("perl" ,perl)))
9689 (inputs
9690 `(("kcompletion" ,kcompletion)
9691 ("kconfigwidgets" ,kconfigwidgets)
9692 ("kcoreaddons" ,kcoreaddons)
9693 ("kcrash" ,kcrash)
9694 ("kdbusaddons" ,kdbusaddons)
9695 ("kdelibs4support" ,kdelibs4support)
9696 ("ki18n" ,ki18n)
9697 ("kwidgetsaddons" ,kwidgetsaddons)
9698 ("kxmlgui" ,kxmlgui)
9699 ("libkdegames" ,libkdegames)
9700 ("qtbase" ,qtbase)
9701 ("qtmultimedia" ,qtmultimedia)
9702 ("qtdeclarative" ,qtdeclarative)
9703 ("qtsvg" ,qtsvg)))
9704 (home-page "https://games.kde.org/")
9705 (synopsis "Stamp drawing toy")
9706 (description "KTuberling is a drawing toy intended for small children and
9707 adults who remain young at heart. The game has no winner; the only purpose is
9708 to make the funniest faces you can. Several activities are possible, e.g.:
9709
9710 @itemize
9711 @item Give the potato a funny face, clothes, and other goodies
9712 @item Build a small town, complete with school, zoo, and fire department
9713 @item Create a fantastic moonscape with spaceships and aliens
9714 @item Top a pizza
9715 @end itemize
9716
9717 KTuberling can speak the name of each the object in several languages,
9718 to assist in learning basic vocabulary.
9719
9720 This package is part of the KDE games module.")
9721 (license (list license:gpl2+ license:fdl1.2+))))
9722
9723 (define-public picmi
9724 (package
9725 (name "picmi")
9726 (version "19.08.3")
9727 (source
9728 (origin
9729 (method url-fetch)
9730 (uri (string-append "mirror://kde/stable/applications/" version
9731 "/src/picmi-" version ".tar.xz"))
9732 (sha256
9733 (base32 "0z9mpmv49w914gqdx274brdzl6d1bz9j9nkvbwgmr3iq1ba49m3f"))))
9734 (build-system qt-build-system)
9735 (native-inputs
9736 `(("extra-cmake-modules" ,extra-cmake-modules)
9737 ("kdoctools" ,kdoctools)))
9738 (inputs
9739 `(("kcoreaddons" ,kcoreaddons)
9740 ("kcrash" ,kcrash)
9741 ("kdbusaddons" ,kdbusaddons)
9742 ("kdeclarative" ,kdeclarative)
9743 ("ki18n" ,ki18n)
9744 ("kio" ,kio)
9745 ("knewstuff" ,knewstuff)
9746 ("kxmlgui" ,kxmlgui)
9747 ("libkdegames" ,libkdegames)
9748 ("qtbase" ,qtbase)
9749 ("qtdeclarative" ,qtdeclarative)
9750 ("qtsvg" ,qtsvg)))
9751 (home-page "https://games.kde.org/")
9752 (synopsis "Number logic game")
9753 (description "Picmi is a number logic game in which cells in a grid have
9754 to be colored or left blank according to numbers given at the side of the
9755 grid. The aim is to reveal a hidden picture.
9756
9757 This package is part of the KDE games module.")
9758 (license (list license:gpl2+ license:fdl1.2+))))
9759
9760 (define-public kolf
9761 (package
9762 (name "kolf")
9763 (version "19.08.3")
9764 (source
9765 (origin
9766 (method url-fetch)
9767 (uri (string-append "mirror://kde/stable/applications/" version
9768 "/src/kolf-" version ".tar.xz"))
9769 (sha256
9770 (base32 "06sfd0llr5cc3zf1vrpcxgw9bm009ky7y8822kynic9ipcd4z1hw"))))
9771 (build-system qt-build-system)
9772 (native-inputs
9773 `(("extra-cmake-modules" ,extra-cmake-modules)
9774 ("kdoctools" ,kdoctools)))
9775 (inputs
9776 `(("kcompletion" ,kcompletion)
9777 ("kconfigwidgets" ,kconfigwidgets)
9778 ("kcoreaddons" ,kcoreaddons)
9779 ("kcrash" ,kcrash)
9780 ("kdbusaddons" ,kdbusaddons)
9781 ("ki18n" ,ki18n)
9782 ("kio" ,kio)
9783 ("kwidgetsaddons" ,kwidgetsaddons)
9784 ("kxmlgui" ,kxmlgui)
9785 ("ktextwidgets" ,ktextwidgets)
9786 ("libkdegames" ,libkdegames)
9787 ("qtbase" ,qtbase)
9788 ("qtdeclarative" ,qtdeclarative)))
9789 (home-page "https://games.kde.org/")
9790 (synopsis "Miniature golf game")
9791 (description "Kolf is a miniature golf game for one to ten players. The
9792 game is played from an overhead view, with a short bar representing the golf
9793 club. Kolf features many different types of objects, such as water hazards,
9794 slopes, sand traps, and black holes (warps), among others.
9795
9796 Features are:
9797 @itemize
9798 @item Single and Multi-player (up to ten players) modes
9799 @item High scores table
9800 @item Dynamic courses
9801 @item Third-party courses
9802 @item Course editor
9803 @end itemize
9804
9805 This package is part of the KDE games module.")
9806 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
9807
9808 (define-public libkmahjongg
9809 (package
9810 (name "libkmahjongg")
9811 (version "19.08.3")
9812 (source
9813 (origin
9814 (method url-fetch)
9815 (uri (string-append "mirror://kde/stable/applications/"
9816 version "/src/libkmahjongg-" version ".tar.xz"))
9817 (sha256
9818 (base32 "0rdimk11hrc8qrmiv26z0ddjzi1k6806c0rfskx4cwmildmh6zgx"))))
9819 (build-system qt-build-system)
9820 (native-inputs
9821 `(("extra-cmake-modules" ,extra-cmake-modules)))
9822 (inputs
9823 `(("kauth" ,kauth)
9824 ("kcompletion" ,kcompletion)
9825 ;("kconfig" ,kconfig)
9826 ("kcodecs" ,kcodecs)
9827 ("kconfigwidgets" ,kconfigwidgets)
9828 ("kcoreaddons" ,kcoreaddons)
9829 ("ki18n" ,ki18n)
9830 ("kwidgetsaddons" ,kwidgetsaddons)
9831 ("qtbase" ,qtbase)
9832 ("qtsvg" ,qtsvg)))
9833 (home-page "https://games.kde.org/")
9834 (synopsis "Shared library for kmahjongg and kshisen")
9835 (description "Shared library and common files for kmahjongg, kshisen and
9836 other Mah Jongg like games.")
9837 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
9838
9839 (define-public kmahjongg
9840 (package
9841 (name "kmahjongg")
9842 (version "19.08.3")
9843 (source
9844 (origin
9845 (method url-fetch)
9846 (uri (string-append "mirror://kde/stable/applications/"
9847 version "/src/kmahjongg-" version ".tar.xz"))
9848 (sha256
9849 (base32 "08na845h0nhmfrszdmvfq5y1dy7kgbrlzjp0f5snvbbf7w44ci6p"))))
9850 (build-system qt-build-system)
9851 (native-inputs
9852 `(("extra-cmake-modules" ,extra-cmake-modules)
9853 ("kdoctools" ,kdoctools)))
9854 (inputs
9855 `(("kcompletion" ,kcompletion)
9856 ("kcrash" ,kcrash)
9857 ("kdbusaddons" ,kdbusaddons)
9858 ("kdeclarative" ,kdeclarative)
9859 ("ki18n" ,ki18n)
9860 ("knewstuff" ,knewstuff)
9861 ("kxmlgui" ,kxmlgui)
9862 ("libkdegames" ,libkdegames)
9863 ("libkmahjongg" ,libkmahjongg)
9864 ("qtbase" ,qtbase)
9865 ("qtdeclarative" ,qtdeclarative)
9866 ("qtsvg" ,qtsvg)))
9867 (home-page "https://games.kde.org/")
9868 (synopsis "Tile laying patience")
9869 (description "In KMahjongg the tiles are scrambled and staked on top of
9870 each other to resemble a certain shape. The player is then expected to remove
9871 all the tiles off the game board by locating each tile's matching pair.
9872
9873 A variety of tile layouts are included, as well as an editor to create new
9874 layouts.
9875
9876 This package is part of the KDE games module.")
9877 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
9878
9879 (define-public kshisen
9880 (package
9881 (name "kshisen")
9882 (version "19.08.3")
9883 (source
9884 (origin
9885 (method url-fetch)
9886 (uri (string-append "mirror://kde/stable/applications/"
9887 version "/src/kshisen-" version ".tar.xz"))
9888 (sha256
9889 (base32 "1bq5m48af4h5apfp3bfsp76nlpv6h5sc0gd544zv7cgpfznz1sds"))))
9890 (build-system qt-build-system)
9891 (native-inputs
9892 `(("extra-cmake-modules" ,extra-cmake-modules)
9893 ;("perl" ,perl)
9894 ;("pkg-config" ,pkg-config)
9895 ("kdoctools" ,kdoctools)))
9896 (inputs
9897 `(("kauth" ,kauth)
9898 ("kcompletion" ,kcompletion)
9899 ("kconfigwidgets" ,kconfigwidgets)
9900 ("kcoreaddons" ,kcoreaddons)
9901 ("kcrash" ,kcrash)
9902 ("kdbusaddons" ,kdbusaddons)
9903 ("ki18n" ,ki18n)
9904 ("kxmlgui" ,kxmlgui)
9905 ("libkdegames" ,libkdegames)
9906 ("libkmahjongg" ,libkmahjongg)
9907 ("qtbase" ,qtbase)
9908 ("qtdeclarative" ,qtdeclarative)))
9909 (home-page "https://games.kde.org/")
9910 (synopsis "Shisen-Sho solitaire game")
9911 (description "KShisen is a solitaire-like game played using the standard
9912 set of Mahjong tiles. Unlike Mahjong however, KShisen has only one layer of
9913 scrambled tiles
9914
9915 This package is part of the KDE games module.")
9916 (license license:gpl2+)))
9917
9918 (define-public kajongg
9919 (package
9920 (name "kajongg")
9921 (version "19.08.3")
9922 (source
9923 (origin
9924 (method url-fetch)
9925 (uri (string-append "mirror://kde/stable/applications/"
9926 version "/src/kajongg-" version ".tar.xz"))
9927 (sha256
9928 (base32 "0ql6p5zifdpdf65r7ki9ml123azpwwk9x3x8r9ij6xhjnf7p7x6w"))))
9929 (build-system qt-build-system)
9930 (native-inputs
9931 `(("extra-cmake-modules" ,extra-cmake-modules)
9932 ;("perl" ,perl)
9933 ("kdoctools" ,kdoctools)))
9934 (inputs
9935 `(("kconfig" ,kconfig)
9936 ("kconfigwidgets" ,kconfigwidgets)
9937 ("kcoreaddons" ,kcoreaddons)
9938 ("ki18n" ,ki18n)
9939 ("libkmahjongg" ,libkmahjongg)
9940 ("python" ,python)
9941 ("qtbase" ,qtbase)
9942 ("qtsvg" ,qtsvg)))
9943 (propagated-inputs
9944 `(("python-twisted" ,python-twisted)
9945 ("python-pyqt" ,python-pyqt)))
9946 ;; FIXME: Need to wrap PYTHONPATH
9947 (home-page "https://games.kde.org/")
9948 (synopsis "Classical Mah Jongg game for 4 players")
9949 (description "Kajongg is the ancient Chinese board game for 4 players.
9950
9951 If you are looking for the Mah Jongg solitaire please use the application
9952 kmahjongg.
9953
9954 Kajongg can be used in two different ways: Scoring a manual game where you
9955 play as always and use Kajongg for the computation of scores and for
9956 bookkeeping. Or you can use Kajongg to play against any combination of other
9957 human players or computer players.
9958
9959 This package is part of the KDE games module.")
9960 (license (list license:gpl2+ license:fdl1.2+))))
9961
9962 (define-public kbreakout
9963 (package
9964 (name "kbreakout")
9965 (version "19.08.3")
9966 (source
9967 (origin
9968 (method url-fetch)
9969 (uri (string-append "mirror://kde/stable/applications/" version
9970 "/src/kbreakout-" version ".tar.xz"))
9971 (sha256
9972 (base32 "0gwzx1z9mxrjlcjzglg8cxkyd6900whcar3b5j9laxxarc6xhj8w"))))
9973 (build-system qt-build-system)
9974 (native-inputs
9975 `(("extra-cmake-modules" ,extra-cmake-modules)
9976 ("kdoctools" ,kdoctools)))
9977 (inputs
9978 `(("kcompletion" ,kcompletion)
9979 ("kconfig" ,kconfig)
9980 ("kconfigwidgets" ,kconfigwidgets)
9981 ("kcoreaddons" ,kcoreaddons)
9982 ("kcrash" ,kcrash)
9983 ("kdbusaddons" ,kdbusaddons)
9984 ("ki18n" ,ki18n)
9985 ("kwidgetsaddons" ,kwidgetsaddons)
9986 ("kxmlgui" ,kxmlgui)
9987 ("libkdegames" ,libkdegames)
9988 ("qtbase" ,qtbase)
9989 ("qtdeclarative" ,qtdeclarative)))
9990 (home-page "https://games.kde.org/")
9991 (synopsis "Breakout like game")
9992 (description "KBreakout is similar to the classics breakout and xboing,
9993 featuring a number of added graphical enhancements and effects. You control a
9994 paddle at the bottom of the playing-field, and must destroy bricks at the top
9995 by bouncing balls against them.
9996
9997 This package is part of the KDE games module.")
9998 (license (list license:gpl2+ license:fdl1.2+))))
9999
10000 (define-public kmines
10001 (package
10002 (name "kmines")
10003 (version "19.08.3")
10004 (source
10005 (origin
10006 (method url-fetch)
10007 (uri (string-append "mirror://kde/stable/applications/" version
10008 "/src/kmines-" version ".tar.xz"))
10009 (sha256
10010 (base32 "0ac3za36lh8hpx6mqfic9amwmzhzhzplm9hg3pw12gxl5a9mvfsf"))))
10011 (build-system qt-build-system)
10012 (native-inputs
10013 `(("extra-cmake-modules" ,extra-cmake-modules)
10014 ("kdoctools" ,kdoctools)))
10015 (inputs
10016 `(("kcompletion" ,kcompletion)
10017 ("kconfig" ,kconfig)
10018 ("kconfigwidgets" ,kconfigwidgets)
10019 ("kcoreaddons" ,kcoreaddons)
10020 ("kcrash" ,kcrash)
10021 ("kdbusaddons" ,kdbusaddons)
10022 ("ki18n" ,ki18n)
10023 ("ktextwidgets" ,ktextwidgets)
10024 ("kwidgetsaddons" ,kwidgetsaddons)
10025 ("kxmlgui" ,kxmlgui)
10026 ("libkdegames" ,libkdegames)
10027 ("qtbase" ,qtbase)
10028 ("qtdeclarative" ,qtdeclarative)))
10029 (home-page "https://games.kde.org/")
10030 (synopsis "Classical mine sweeper game")
10031 (description "KMines is a classic Minesweeper game. The idea is to
10032 uncover all the squares without blowing up any mines. When a mine is blown
10033 up, the game is over.
10034
10035 This package is part of the KDE games module.")
10036 (license (list license:gpl2+ license:fdl1.2+))))
10037
10038 (define-public konquest
10039 (package
10040 (name "konquest")
10041 (version "19.08.3")
10042 (source
10043 (origin
10044 (method url-fetch)
10045 (uri (string-append "mirror://kde/stable/applications/"
10046 version "/src/konquest-" version ".tar.xz"))
10047 (sha256
10048 (base32 "02gjxskhi10a1sqh3skcild8zria7wncz1a4sbz7ax1p851q76k1"))))
10049 (build-system qt-build-system)
10050 (native-inputs
10051 `(("extra-cmake-modules" ,extra-cmake-modules)
10052 ("kdoctools" ,kdoctools)))
10053 (inputs
10054 `(("kcompletion" ,kcompletion)
10055 ("kconfig" ,kconfig)
10056 ("kcoreaddons" ,kcoreaddons)
10057 ("kcrash" ,kcrash)
10058 ("kdbusaddons" ,kdbusaddons)
10059 ("kguiaddons" ,kguiaddons)
10060 ("ki18n" ,ki18n)
10061 ("kwidgetsaddons" ,kwidgetsaddons)
10062 ("kxmlgui" ,kxmlgui)
10063 ("libkdegames" ,libkdegames)
10064 ("qtbase" ,qtbase)
10065 ("qtdeclarative" ,qtdeclarative)
10066 ("qtsvg" ,qtsvg)))
10067 (home-page "https://games.kde.org/")
10068 (synopsis "Simple turn-based strategy game")
10069 (description "Konquest is the KDE version of Gnu-Lactic Konquest. Players
10070 conquer other planets by sending ships to them. The goal is to build an
10071 interstellar empire and ultimately conquer all other player's planets. The
10072 game can be played with up to nine empires, commanded either by the computer
10073 or by puny earthlings.
10074
10075 This package is part of the KDE games module.")
10076 (license (list license:gpl2+ license:fdl1.2+))))
10077
10078 (define-public kbounce
10079 (package
10080 (name "kbounce")
10081 (version "19.08.3")
10082 (source
10083 (origin
10084 (method url-fetch)
10085 (uri (string-append "mirror://kde/stable/applications/"
10086 version "/src/kbounce-" version ".tar.xz"))
10087 (sha256
10088 (base32 "02rfv0qzz5cmyfx8f56a45hbm9gsp6m3dcy8ajwx88rw5wpbrr11"))))
10089 (build-system qt-build-system)
10090 (native-inputs
10091 `(("extra-cmake-modules" ,extra-cmake-modules)
10092 ("kdoctools" ,kdoctools)))
10093 (inputs
10094 `(("kcompletion" ,kcompletion)
10095 ("kconfigwidgets" ,kconfigwidgets)
10096 ("kcoreaddons" ,kcoreaddons)
10097 ("kcrash" ,kcrash)
10098 ("kdbusaddons" ,kdbusaddons)
10099 ("ki18n" ,ki18n)
10100 ("kio" ,kio)
10101 ("kwidgetsaddons" ,kwidgetsaddons)
10102 ("kxmlgui" ,kxmlgui)
10103 ("libkdegames" ,libkdegames)
10104 ("qtbase" ,qtbase)
10105 ("qtdeclarative" ,qtdeclarative)
10106 ("qtsvg" ,qtsvg)))
10107 (home-page "https://games.kde.org/")
10108 (synopsis "Jezzball arcade game")
10109 (description "KBounce is a single player arcade game with the elements of
10110 puzzle. It is played on a field, surrounded by wall, with two or more balls
10111 bouncing around within the walls. The object of the game is to build new
10112 walls to decrease the size of the active field.
10113
10114 This package is part of the KDE games module.")
10115 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
10116
10117 (define-public kblocks
10118 (package
10119 (name "kblocks")
10120 (version "19.08.3")
10121 (source
10122 (origin
10123 (method url-fetch)
10124 (uri (string-append "mirror://kde/stable/applications/"
10125 version "/src/kblocks-" version ".tar.xz"))
10126 (sha256
10127 (base32 "0qrm0dihzhkxsq9l49ndzms802x6jn92vvabb2zf2q9z593m69cx"))))
10128 (build-system qt-build-system)
10129 (native-inputs
10130 `(("extra-cmake-modules" ,extra-cmake-modules)
10131 ("kdoctools" ,kdoctools)))
10132 (inputs
10133 `(("kcompletion" ,kcompletion)
10134 ("kconfig" ,kconfig)
10135 ("kconfigwidgets" ,kconfigwidgets)
10136 ("kcoreaddons" ,kcoreaddons)
10137 ("kcrash" ,kcrash)
10138 ("kdbusaddons" ,kdbusaddons)
10139 ("ki18n" ,ki18n)
10140 ("kwidgetsaddons" ,kwidgetsaddons)
10141 ("kxmlgui" ,kxmlgui)
10142 ("libkdegames" ,libkdegames)
10143 ("qtbase" ,qtbase)
10144 ("qtdeclarative" ,qtdeclarative)
10145 ("qtsvg" ,qtsvg)))
10146 (home-page "https://games.kde.org/")
10147 (synopsis "Single player falling blocks puzzle game")
10148 (description "KBlocks is the classic Tetris-like falling blocks game.
10149
10150 The idea is to stack the falling blocks to create horizontal lines without any
10151 gaps. When a line is completed it is removed, and more space is available in
10152 the play area. When there is not enough space for blocks to fall, the game is
10153 over.
10154
10155 This package is part of the KDE games module.")
10156 (license (list license:gpl2+ license:fdl1.2+))))
10157
10158 (define-public ksudoku
10159 (package
10160 (name "ksudoku")
10161 (version "19.08.3")
10162 (source
10163 (origin
10164 (method url-fetch)
10165 (uri (string-append "mirror://kde/stable/applications/"
10166 version "/src/ksudoku-" version ".tar.xz"))
10167 (sha256
10168 (base32 "0rcscz91hilm7l3am5w02n0n8l7xhi4l0n4sskznh68kblw0ggw2"))))
10169 (build-system qt-build-system)
10170 (native-inputs
10171 `(("extra-cmake-modules" ,extra-cmake-modules)
10172 ("kdoctools" ,kdoctools)))
10173 (inputs
10174 `(("karchive", karchive)
10175 ("kconfig" ,kconfig)
10176 ("kconfigwidgets" ,kconfigwidgets)
10177 ("kcoreaddons" ,kcoreaddons)
10178 ("kcrash" ,kcrash)
10179 ("kguiaddons" ,kguiaddons)
10180 ("ki18n" ,ki18n)
10181 ("kiconthemes" ,kiconthemes)
10182 ("kio" ,kio)
10183 ("kwidgetsaddons" ,kwidgetsaddons)
10184 ("kxmlgui" ,kxmlgui)
10185 ("libkdegames" ,libkdegames)
10186 ("glu" ,glu)
10187 ("qtbase" ,qtbase)
10188 ("qtdeclarative" ,qtdeclarative)
10189 ("qtsvg" ,qtsvg)))
10190 (home-page "https://games.kde.org/")
10191 (synopsis "Sudoku puzzle game and solver")
10192 (description "KSudoku is a Sudoku game and solver, supporting a range of
10193 2D and 3D Sudoku variants. In addition to playing Sudoku, it can print Sudoku
10194 puzzle sheets and find the solution to any Sudoku puzzle.
10195
10196 The word Sudoku means \"single number in an allotted place\" in Japanese.
10197 These are the basic rules: Every Sudoku is a square divided into 3x3
10198 subsquares with 3x3 cells each.
10199
10200 Some cells are filled with a number at the beginning. The remaining ones are
10201 to be filled by the player using numbers from 1 to 9, without repeating a
10202 number twice on each column, row or subsquare (each of them must contain only
10203 one 1, one 2, one 3, and so on). The game requires logic and patience.
10204 Solving takes usually 10 to 30 minutes, depending on puzzle level, your skill
10205 and experience.
10206
10207 The numerals in Sudoku puzzles are used for convenience (for example in 16x16
10208 board we use letters): arithmetic relationships between numbers are
10209 irrelevant.
10210
10211 This program supports also 16x16 games with numbers from 1 to 16 and 256
10212 cells with 16 cols, rows and subsquares!
10213
10214 More information at http://en.wikipedia.org/wiki/Sudoku
10215
10216 This package is part of the KDE games module.")
10217 (license (list license:gpl2+ license:fdl1.2+))))
10218
10219 (define-public klines
10220 (package
10221 (name "klines")
10222 (version "19.08.3")
10223 (source
10224 (origin
10225 (method url-fetch)
10226 (uri (string-append "mirror://kde/stable/applications/" version
10227 "/src/klines-" version ".tar.xz"))
10228 (sha256
10229 (base32 "1g1f46jp0rb8gpqkgcf915ydpsscn1sxk3gjvm8bcqgx9ddq59xa"))))
10230 (build-system qt-build-system)
10231 (native-inputs
10232 `(("extra-cmake-modules" ,extra-cmake-modules)
10233 ("kdoctools" ,kdoctools)))
10234 (inputs
10235 `(("kcompletion" ,kcompletion)
10236 ("kconfigwidgets" ,kconfigwidgets)
10237 ("kcoreaddons" ,kcoreaddons)
10238 ("kcrash" ,kcrash)
10239 ("kdbusaddons" ,kdbusaddons)
10240 ("ki18n" ,ki18n)
10241 ("kwidgetsaddons" ,kwidgetsaddons)
10242 ("kxmlgui" ,kxmlgui)
10243 ("libkdegames" ,libkdegames)
10244 ("qtbase" ,qtbase)
10245 ("qtdeclarative" ,qtdeclarative)))
10246 (home-page "https://games.kde.org/")
10247 (synopsis "Place 5 equal pieces together, but wait, there are 3 new ones")
10248 (description "KLines is a simple but highly addictive one player game.
10249
10250 The player has to move the colored balls around the game board, gathering them
10251 into the lines of the same color by five. Once the line is complete it is
10252 removed from the board, therefore freeing precious space. In the same time
10253 the new balls keep arriving by three after each move, filling up the game
10254 board.
10255
10256 KLines is a single-player game where the player removes colored balls from the
10257 board by arranging them into lines of five or more. However, every time the
10258 player moves a ball, three more balls are added to the board.
10259
10260 This package is part of the KDE games module.")
10261 (license (list license:gpl2+ license:fdl1.2+))))
10262
10263 (define-public kgoldrunner
10264 (package
10265 (name "kgoldrunner")
10266 (version "19.08.3")
10267 (source
10268 (origin
10269 (method url-fetch)
10270 (uri (string-append "mirror://kde/stable/applications/" version "/src/kgoldrunner-"
10271 version ".tar.xz"))
10272 (sha256
10273 (base32 "16rcvq796r3asz4v4ap75xvwnxd3dd2nsq5r9vxvzl6rrf1w9bj4"))))
10274 (build-system qt-build-system)
10275 (native-inputs
10276 `(("extra-cmake-modules" ,extra-cmake-modules)
10277 ("kdoctools" ,kdoctools)))
10278 (inputs
10279 `(("kcompletion" ,kcompletion)
10280 ("kcoreaddons" ,kcoreaddons)
10281 ("kcrash" ,kcrash)
10282 ("kdbusaddons" ,kdbusaddons)
10283 ("ki18n" ,ki18n)
10284 ("kio" ,kio)
10285 ("kwidgetsaddons" ,kwidgetsaddons)
10286 ("kxmlgui" ,kxmlgui)
10287 ("libkdegames" ,libkdegames)
10288 ("qtbase" ,qtbase)
10289 ("qtdeclarative" ,qtdeclarative)))
10290 (home-page "https://games.kde.org/")
10291 (synopsis "Action and puzzle solving game")
10292 (description "KGoldrunner is an action game where the hero runs through a
10293 maze, climbs stairs, dig holes and dodges enemies in order to collect all the
10294 gold nuggets and escape to the next level. Your enemies are also after the
10295 gold. Worse still, they are after you!.
10296
10297 KGoldrunner is a fast-paced platform game where the player must navigate a
10298 maze while collecting gold nuggets and avoiding enemies. A variety of level
10299 packs are included, as well as an editor to create new levels.
10300
10301 This package is part of the KDE games module.")
10302 (license (list license:gpl2+ license:fdl1.2+))))
10303
10304 (define-public kdiamond
10305 (package
10306 (name "kdiamond")
10307 (version "19.08.3")
10308 (source
10309 (origin
10310 (method url-fetch)
10311 (uri (string-append "mirror://kde/stable/applications/" version
10312 "/src/kdiamond-" version ".tar.xz"))
10313 (sha256
10314 (base32 "1v5yb9hb26lk277zhw8d37ks829yfqr5anzx1qhms44gca5kqhva"))))
10315 (build-system qt-build-system)
10316 (native-inputs
10317 `(("extra-cmake-modules" ,extra-cmake-modules)
10318 ("kdoctools" ,kdoctools)))
10319 (inputs
10320 `(("kcompletion", kcompletion)
10321 ("kconfig" ,kconfig)
10322 ("kconfigwidgets" ,kconfigwidgets)
10323 ("kcoreaddons" ,kcoreaddons)
10324 ("kcrash" ,kcrash)
10325 ("kdbusaddons" ,kdbusaddons)
10326 ("ki18n" ,ki18n)
10327 ("knotifications" ,knotifications)
10328 ("knotifyconfig" ,knotifyconfig)
10329 ("kwidgetsaddons" ,kwidgetsaddons)
10330 ("kxmlgui" ,kxmlgui)
10331 ("libkdegames" ,libkdegames)
10332 ("qtbase" ,qtbase)
10333 ("qtdeclarative" ,qtdeclarative)))
10334 (home-page "https://games.kde.org/")
10335 (synopsis "Three-in-a-row game")
10336 (description "KDiamond is a three-in-a-row game like Bejeweled. It
10337 features unlimited fun with randomly generated games and five difficulty
10338 levels with varying number of diamond colors and board sizes.
10339
10340 This package is part of the KDE games module.")
10341 (license (list license:gpl2+ license:fdl1.2+))))
10342
10343 (define-public kfourinline
10344 (package
10345 (name "kfourinline")
10346 (version "19.08.3")
10347 (source
10348 (origin
10349 (method url-fetch)
10350 (uri (string-append "mirror://kde/stable/applications/" version
10351 "/src/kfourinline-" version ".tar.xz"))
10352 (sha256
10353 (base32 "1vprs6dc1ccn3g6k594i9s94xy4b91vzlqjysyc6fqcq2fs54ny3"))))
10354 (build-system qt-build-system)
10355 (native-inputs
10356 `(("extra-cmake-modules" ,extra-cmake-modules)
10357 ("kdoctools" ,kdoctools)))
10358 (inputs
10359 `(("kcompletion" ,kcompletion)
10360 ("kconfig" ,kconfig)
10361 ("kconfigwidgets" ,kconfigwidgets)
10362 ("kcoreaddons" ,kcoreaddons)
10363 ("kcrash" ,kcrash)
10364 ("kdelibs4support" ,kdelibs4support)
10365 ("kdnssd" ,kdnssd)
10366 ("ki18n" ,ki18n)
10367 ("kxmlgui" ,kxmlgui)
10368 ("libkdegames" ,libkdegames)
10369 ("qtbase" ,qtbase)
10370 ("qtdeclarative" ,qtdeclarative)
10371 ("qtsvg" ,qtsvg)))
10372 (home-page "https://games.kde.org/")
10373 (synopsis "Place 4 pieces in a row")
10374 (description "KFourInLine is a board game for two players based on the
10375 Connect-Four game.
10376
10377 KFourInLine is a game where two players take turns dropping pieces into a
10378 grid, the winner being the first to place four pieces in a line.
10379
10380 This package is part of the KDE games module.")
10381 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
10382
10383 (define-public kblackbox
10384 (package
10385 (name "kblackbox")
10386 (version "19.08.3")
10387 (source
10388 (origin
10389 (method url-fetch)
10390 (uri (string-append "mirror://kde/stable/applications/" version
10391 "/src/kblackbox-" version ".tar.xz"))
10392 (sha256
10393 (base32 "1x42sfpf75c6mavwkc7g7dm11y9s5dpj8igphly5kvm0pajqby0n"))))
10394 (build-system qt-build-system)
10395 (native-inputs
10396 `(("extra-cmake-modules" ,extra-cmake-modules)
10397 ("kdoctools" ,kdoctools)))
10398 (inputs
10399 `(("karchive" ,karchive)
10400 ("kcompletion" ,kcompletion)
10401 ("kconfig" ,kconfig)
10402 ("kcoreaddons" ,kcoreaddons)
10403 ("kcrash" ,kcrash)
10404 ("kdbusaddons" ,kdbusaddons)
10405 ("ki18n" ,ki18n)
10406 ("ktextwidgets" ,ktextwidgets)
10407 ("kxmlgui" ,kxmlgui)
10408 ("libkdegames" ,libkdegames)
10409 ("qtbase" ,qtbase)
10410 ("qtdeclarative" ,qtdeclarative)
10411 ("qtsvg" ,qtsvg)))
10412 (home-page "https://games.kde.org/")
10413 (synopsis "Find atoms in a grid by shooting electrons")
10414 (description "KBlackbox is a game of hide and seek played on a grid of
10415 boxes where the computer has hidden several balls. The position of the hidden
10416 balls can be deduced by shooting beams into the box
10417
10418 KBlackBox is a game of hide and seek played on an grid of boxes, where the
10419 player shoots rays into the grid to deduce the positions of hidden objects.
10420
10421 This package is part of the KDE games module.")
10422 (license (list license:gpl2+ license:fdl1.2+))))
10423
10424 (define-public knetwalk
10425 (package
10426 (name "knetwalk")
10427 (version "19.08.3")
10428 (source
10429 (origin
10430 (method url-fetch)
10431 (uri (string-append "mirror://kde/stable/applications/" version
10432 "/src/knetwalk-" version ".tar.xz"))
10433 (sha256
10434 (base32 "1i340salzgqdw8y33wrrydmpgx3pvwf5wrbljlh67cjf6s4csx7d"))))
10435 (build-system qt-build-system)
10436 (native-inputs
10437 `(("extra-cmake-modules" ,extra-cmake-modules)
10438 ("kdoctools" ,kdoctools)))
10439 (inputs
10440 `(("kcompletion" ,kcompletion)
10441 ("kconfig" ,kconfig)
10442 ("kconfigwidgets" ,kconfigwidgets)
10443 ("kcoreaddons" ,kcoreaddons)
10444 ("kcrash" ,kcrash)
10445 ("kdbusaddons" ,kdbusaddons)
10446 ("ki18n" ,ki18n)
10447 ("ktextwidgets" ,ktextwidgets)
10448 ("kwidgetsaddons" ,kwidgetsaddons)
10449 ("kxmlgui" ,kxmlgui)
10450 ("libkdegames" ,libkdegames)
10451 ("qtbase" ,qtbase)
10452 ("qtdeclarative" ,qtdeclarative)))
10453 (home-page "https://games.kde.org/")
10454 (synopsis "Turn the board pieces to get all computers connected")
10455 (description "KNetWalk is a small game where you have to build up a
10456 computer network by rotating the wires to connect the terminals to the server.
10457 When the network is build, a highscore-list comes up where competitions can be
10458 fought out.
10459
10460 KNetwalk is a puzzle game where the player arranges sections of wire to
10461 connect all the computers on the board.
10462
10463 This package is part of the KDE games module.")
10464 (license (list license:gpl2+ license:fdl1.2+))))
10465
10466 (define-public bomber
10467 (package
10468 (name "bomber")
10469 (version "19.08.3")
10470 (source
10471 (origin
10472 (method url-fetch)
10473 (uri (string-append "mirror://kde/stable/applications/" version
10474 "/src/bomber-" version ".tar.xz"))
10475 (sha256
10476 (base32 "1lvzd0mzgq25akvwvkm57l3plm65k731v2i1ahakn985bb5gc3is"))))
10477 (build-system qt-build-system)
10478 (native-inputs
10479 `(("extra-cmake-modules" ,extra-cmake-modules)
10480 ("kdoctools" ,kdoctools)))
10481 (inputs
10482 `(("kcompletiom" ,kcompletion)
10483 ("kconfig" ,kconfig)
10484 ("kcoreaddons" ,kcoreaddons)
10485 ("kcrash" ,kcrash)
10486 ("kdbusaddons" ,kdbusaddons)
10487 ("ki18n" ,ki18n)
10488 ("kxmlgui" ,kxmlgui)
10489 ("libkdegames" ,libkdegames)
10490 ("qtbase" ,qtbase)
10491 ("qtdeclarative" ,qtdeclarative)))
10492 (home-page "https://games.kde.org/")
10493 (synopsis "Arcade bombing game")
10494 (description "Bomber is a single player arcade game.
10495
10496 The player is invading various cities in a plane that is decreasing in height.
10497 The goal of the game is to destroy all the buildings and advance to the next
10498 level. Each level gets a bit harder by increasing the speed of the plane and
10499 the height of the buildings.
10500
10501 Bomber is a game where you fly a spaceship and attempt to bomb the buildings
10502 below you. Each pass the spaceship makes, it gets lower and lower. If you've
10503 not destroyed a building in your path, you will crash into it.
10504
10505 This package is part of the KDE games module.")
10506 (license (list license:gpl2+ license:fdl1.2+))))
10507
10508 (define-public granatier
10509 (package
10510 (name "granatier")
10511 (version "19.08.3")
10512 (source
10513 (origin
10514 (method url-fetch)
10515 (uri (string-append "mirror://kde/stable/applications/" version
10516 "/src/granatier-" version ".tar.xz"))
10517 (sha256
10518 (base32 "141qmdinz7ikbbrs8dq6cap3nl22sl7pw62r80pf3xxwn2q4phpa"))))
10519 (build-system qt-build-system)
10520 (native-inputs
10521 `(("extra-cmake-modules" ,extra-cmake-modules)
10522 ("kdoctools" ,kdoctools)))
10523 (inputs
10524 `(("kcompletion" ,kcompletion)
10525 ("kconfig" ,kconfig)
10526 ("kconfigwidgets" ,kconfigwidgets)
10527 ("kcoreaddons" ,kcoreaddons)
10528 ("kcrash" ,kcrash)
10529 ("kdbusaddons" ,kdbusaddons)
10530 ("ki18n" ,ki18n)
10531 ("knewstuff" ,knewstuff)
10532 ("kwidgetsaddons" ,kwidgetsaddons)
10533 ("kxmlgui" ,kxmlgui)
10534 ("libkdegames" ,libkdegames)
10535 ("qtbase" ,qtbase)
10536 ("qtdeclarative" ,qtdeclarative)
10537 ("qtsvg" ,qtsvg)))
10538 (home-page "https://games.kde.org/")
10539 (synopsis "Bomberman clone")
10540 (description "Granatier is a clone of the classic Bomberman game,
10541 inspired by the work of the Clanbomber clone.
10542
10543 This package is part of the KDE games module.")
10544 (license (list license:gpl2+ license:fdl1.2+))))
10545
10546 (define-public ksirk
10547 (package
10548 (name "ksirk")
10549 (version "19.08.3")
10550 (source
10551 (origin
10552 (method url-fetch)
10553 (uri (string-append "mirror://kde/stable/applications/" version
10554 "/src/ksirk-" version ".tar.xz"))
10555 (sha256
10556 (base32 "1b1wixs2hp5qnvdygfwa3kvy0kn94ysa4ifmx90q6r3yfr2lpfca"))))
10557 (build-system qt-build-system)
10558 (native-inputs
10559 `(("extra-cmake-modules" ,extra-cmake-modules)
10560 ("kdoctools" ,kdoctools)))
10561 (inputs
10562 `(("kcrash" ,kcrash)
10563 ("ki18n" ,ki18n)
10564 ("kiconthemes" ,kiconthemes)
10565 ("kio" ,kio)
10566 ("knewstuff" ,knewstuff)
10567 ("kwallet" ,kwallet)
10568 ("kxmlgui" ,kxmlgui)
10569 ("libkdegames" ,libkdegames)
10570 ("phonon" ,phonon)
10571 ("qca" ,qca)
10572 ("qtbase" ,qtbase)
10573 ("qtdeclarative" ,qtdeclarative)
10574 ("qtsvg" ,qtsvg)
10575 ("zlib" ,zlib)))
10576 (home-page "https://games.kde.org/")
10577 (synopsis "Computerized version of the well known strategy board game
10578 'Risk'")
10579 (description "KsirK is a multi-player network-enabled game. The goal of
10580 the game is simply to conquer the world by attacking your neighbors with your
10581 armies.
10582
10583 At the beginning of the game, countries are distributed to all the players.
10584 Each country contains one army represented by an infantryman. Each player has
10585 some armies to distribute to his countries. On each turn, each player can
10586 attack his neighbours, eventually conquering one or more countries. At the
10587 end of each turn, some bonus armies are distributed to the players in function
10588 of the number of countries they own. The winner is the player that conquered
10589 all the world.
10590
10591 Features:
10592 @itemize
10593 @item Support for 1-6 human or computer players
10594 @item Multi-player gaming over a network
10595 @item You can easily create new skins with SVG graphics and the skin editor
10596 @item Hot New Stuff support. You can easily download and install new skins
10597 @end itemize
10598
10599 This package is part of the KDE games module.")
10600 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
10601
10602 (define-public palapeli
10603 (package
10604 (name "palapeli")
10605 (version "19.08.3")
10606 (source
10607 (origin
10608 (method url-fetch)
10609 (uri (string-append "mirror://kde/stable/applications/" version
10610 "/src/palapeli-" version ".tar.xz"))
10611 (sha256
10612 (base32 "1g91ydbc0x2y2gn3lcb5w03mn7k78l5bq4cb1s59kx6yjbflv3pw"))))
10613 (build-system qt-build-system)
10614 (native-inputs
10615 `(("extra-cmake-modules" ,extra-cmake-modules)
10616 ("kdoctools" ,kdoctools)))
10617 (inputs
10618 `(("karchive" ,karchive)
10619 ("kcompletion" ,kcompletion)
10620 ("kconfig" ,kconfig)
10621 ("kconfigwidgets" ,kconfigwidgets)
10622 ("kcoreaddons" ,kcoreaddons)
10623 ("kcrash" ,kcrash)
10624 ("kcrash" ,kcrash)
10625 ("ki18n" ,ki18n)
10626 ("ki18n" ,ki18n)
10627 ("kio" ,kio)
10628 ("kitemviews" ,kitemviews)
10629 ("knotifications" ,knotifications)
10630 ("kservice" ,kservice)
10631 ("kwidgetsaddons" ,kwidgetsaddons)
10632 ("kxmlgui" ,kxmlgui)
10633 ("libkdegames" ,libkdegames)
10634 ("qtbase" ,qtbase)
10635 ("qtdeclarative" ,qtdeclarative)
10636 ("qtsvg" ,qtsvg)
10637 ("shared-mime-info" ,shared-mime-info)))
10638 (home-page "https://games.kde.org/")
10639 (synopsis "Jigsaw puzzle game")
10640 (description "Palapeli is a jigsaw puzzle game. Unlike other games in
10641 that genre, you are not limited to aligning pieces on imaginary grids. The
10642 pieces are freely moveable. Also, Palapeli features real persistency, i.e.
10643 everything you do is saved on your disk immediately.
10644
10645 Palapeli is the Finnish word for jigsaw puzzle.
10646
10647 This package is part of the KDE games module.")
10648 (license license:gpl2+)))
10649
10650 (define-public kiriki
10651 (package
10652 (name "kiriki")
10653 (version "19.08.3")
10654 (source
10655 (origin
10656 (method url-fetch)
10657 (uri (string-append "mirror://kde/stable/applications/" version
10658 "/src/kiriki-" version ".tar.xz"))
10659 (sha256
10660 (base32 "1xg25dj95g81dc5l7k47am4j52abrwwfx4h73lvsbn4lc8lfmshw"))))
10661 (build-system qt-build-system)
10662 (native-inputs
10663 `(("extra-cmake-modules" ,extra-cmake-modules)
10664 ("kdoctools" ,kdoctools)))
10665 (inputs
10666 `(("kcompletion" ,kcompletion)
10667 ("kconfig" ,kconfig)
10668 ("kconfigwidgets" ,kconfigwidgets)
10669 ("kcoreaddons" ,kcoreaddons)
10670 ("kcrash" ,kcrash)
10671 ("kdbusaddons" ,kdbusaddons)
10672 ("ki18n" ,ki18n)
10673 ("kiconthemes" ,kiconthemes)
10674 ("kxmlgui" ,kxmlgui)
10675 ("libkdegames" ,libkdegames)
10676 ("qtbase" ,qtbase)
10677 ("qtdeclarative" ,qtdeclarative)))
10678 (home-page "https://games.kde.org/")
10679 (synopsis "Yahtzee dice game")
10680 (description "Kiriki is an addictive and fun dice game, designed to be
10681 played by as many as six players.
10682
10683 Participants have to collect points by rolling five dice for up to three times
10684 per single turn to make combinations with the highest score.
10685
10686 This package is part of the KDE games module.")
10687 (license (list license:gpl2+ license:fdl1.2+))))
10688
10689 (define-public kigo
10690 (package
10691 (name "kigo")
10692 (version "19.08.3")
10693 (source
10694 (origin
10695 (method url-fetch)
10696 (uri (string-append "mirror://kde/stable/applications/" version
10697 "/src/kigo-" version ".tar.xz"))
10698 (sha256
10699 (base32 "00l5gcbi8xyj9c1lngkrddka3a4m4cd78prfplrpq32ma9xq681f"))))
10700 (build-system qt-build-system)
10701 (native-inputs
10702 `(("extra-cmake-modules" ,extra-cmake-modules)
10703 ("kdoctools" ,kdoctools)))
10704 (inputs
10705 `(("kconfig" ,kconfig)
10706 ("kconfigwidgets" ,kconfigwidgets)
10707 ("kcoreaddons" ,kcoreaddons)
10708 ("kcrash" ,kcrash)
10709 ("kdbusaddons" ,kdbusaddons)
10710 ("ki18n" ,ki18n)
10711 ("kio" ,kio)
10712 ("knewstuff", knewstuff)
10713 ("ktextwidgets" ,ktextwidgets)
10714 ("kxmlgui" ,kxmlgui)
10715 ("libkdegames" ,libkdegames)
10716 ("qtbase" ,qtbase)
10717 ("qtdeclarative" ,qtdeclarative)
10718 ("qtsvg" ,qtsvg)))
10719 (home-page "https://games.kde.org/")
10720 (synopsis "Go board game")
10721 (description "Kigo is an open-source implementation of the popular Go
10722 game.
10723
10724 Go is a strategic board game for two players. It is also known as
10725 igo (Japanese), weiqi or wei ch'i (Chinese) or baduk (Korean). Go is noted
10726 for being rich in strategic complexity despite its simple rules. The game is
10727 played by two players who alternately place black and white stones (playing
10728 pieces, now usually made of glass or plastic) on the vacant intersections of a
10729 grid of 19x19 lines (9x9 or 13x13 for easier games).
10730
10731 You also need to install a go engine, e.g. @code{gnugo}.
10732
10733 This package is part of the KDE games module.")
10734 (license license:gpl3+)))
10735
10736 (define-public kubrick
10737 (package
10738 (name "kubrick")
10739 (version "19.08.3")
10740 (source
10741 (origin
10742 (method url-fetch)
10743 (uri (string-append "mirror://kde/stable/applications/" version
10744 "/src/kubrick-" version ".tar.xz"))
10745 (sha256
10746 (base32 "0ma8wja4rqlsmsr8cyicfpkwlgqva4450ls4c0ql53p0kabf04gx"))))
10747 (build-system qt-build-system)
10748 (native-inputs
10749 `(("extra-cmake-modules" ,extra-cmake-modules)
10750 ("kdoctools" ,kdoctools)))
10751 (inputs
10752 `(("glu" ,glu)
10753 ("kconfig" ,kconfig)
10754 ("kconfigwidgets" ,kconfigwidgets)
10755 ("kcoreaddons" ,kcoreaddons)
10756 ("kcrash" ,kcrash)
10757 ("ki18n" ,ki18n)
10758 ("kio" ,kio)
10759 ("kwidgetsaddons" ,kwidgetsaddons)
10760 ("kxmlgui" ,kxmlgui)
10761 ("libkdegames" ,libkdegames)
10762 ("qtbase" ,qtbase)
10763 ("qtdeclarative" ,qtdeclarative)
10764 ("qtsvg" ,qtsvg)))
10765 (home-page "https://games.kde.org/")
10766 (synopsis "Game based on Rubik's Cube")
10767 (description "Kubrick is a game based on the Rubik's Cube puzzle.
10768
10769 The cube sizes range from 2x2x2 up to 6x6x6, or you can play with irregular
10770 \"bricks\" such as 5x3x2 or \"mats\" such as 6x4x1 or 2x2x1. The game has a
10771 selection of puzzles at several levels of difficulty, as well as demos of
10772 pretty patterns and solution moves, or you can make up your own puzzles. The
10773 game has unlimited undo, redo, save and reload capabilities.
10774
10775 This package is part of the KDE games module.")
10776 (license (list license:gpl2+ license:fdl1.2+))))
10777
10778 (define-public lskat
10779 (package
10780 (name "lskat")
10781 (version "19.08.3")
10782 (source
10783 (origin
10784 (method url-fetch)
10785 (uri (string-append "mirror://kde/stable/applications/" version
10786 "/src/lskat-" version ".tar.xz"))
10787 (sha256
10788 (base32 "1qk5hd27zb42pbcxq5wyzz62nj5f0qdmgy54r9rnk92pzzzk94s9"))))
10789 (build-system qt-build-system)
10790 (native-inputs
10791 `(("extra-cmake-modules" ,extra-cmake-modules)
10792 ("kdoctools" ,kdoctools)))
10793 (inputs
10794 `(("kcompletion" ,kcompletion)
10795 ("kconfig" ,kconfig)
10796 ("kcoreaddons" ,kcoreaddons)
10797 ("kcrash" ,kcrash)
10798 ("kguiaddons" ,kguiaddons)
10799 ("ki18n" ,ki18n)
10800 ("kwidgetsaddons" ,kwidgetsaddons)
10801 ("kxmlgui" ,kxmlgui)
10802 ("libkdegames" ,libkdegames)
10803 ("qtbase" ,qtbase)
10804 ("qtdeclarative" ,qtdeclarative)
10805 ("qtsvg" ,qtsvg)))
10806 (home-page "https://games.kde.org/")
10807 (synopsis "Lieutnant Skat card game")
10808 (description "Lieutnant Skat (from German \"Offiziersskat\") is a fun and
10809 engaging card game for two players, where the second player is either live
10810 opponent, or a built in artificial intelligence.
10811
10812 Lieutnant Skat is a simplified variant of the Skat card game for two players.
10813
10814 This package is part of the KDE games module.")
10815 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
10816
10817 (define-public kapman
10818 (package
10819 (name "kapman")
10820 (version "19.08.3")
10821 (source
10822 (origin
10823 (method url-fetch)
10824 (uri (string-append "mirror://kde/stable/applications/" version
10825 "/src/kapman-" version ".tar.xz"))
10826 (sha256
10827 (base32 "03pq38caam30q4bw14c045kayw2d87xq1yaa3s2jkrylylfq3p0f"))))
10828 (build-system qt-build-system)
10829 (native-inputs
10830 `(("extra-cmake-modules" ,extra-cmake-modules)
10831 ("kdoctools" ,kdoctools)))
10832 (inputs
10833 `(("kcompletion" ,kcompletion)
10834 ("kconfig" ,kconfig)
10835 ("kconfigwidgets" ,kconfigwidgets)
10836 ("kcoreaddons" ,kcoreaddons)
10837 ("kcrash" ,kcrash)
10838 ("kdbusaddons" ,kdbusaddons)
10839 ("ki18n" ,ki18n)
10840 ("kxmlgui" ,kxmlgui)
10841 ("libkdegames" ,libkdegames)
10842 ("qtbase" ,qtbase)
10843 ("qtdeclarative" ,qtdeclarative)
10844 ("qtsvg" ,qtsvg)))
10845 (home-page "https://games.kde.org/")
10846 (synopsis "Pac-Man clone")
10847 (description "Kapman is a clone of the well known game Pac-Man.
10848
10849 You must run through the maze to eat all pills without being captured by a
10850 ghost. By eating an energizer, Kapman gets the ability to eat ghosts for a
10851 few seconds. When a stage is cleared of pills and energizer the player is
10852 taken to the next stage with slightly increased game speed
10853
10854 This package is part of the KDE games module.")
10855 (license (list license:gpl2+ license:fdl1.2+))))
10856
10857 (define-public kspaceduel
10858 (package
10859 (name "kspaceduel")
10860 (version "19.08.3")
10861 (source
10862 (origin
10863 (method url-fetch)
10864 (uri (string-append "mirror://kde/stable/applications/" version
10865 "/src/kspaceduel-" version ".tar.xz"))
10866 (sha256
10867 (base32 "1hppni0ihs7psc0dly5rxyy2a38nzhlig9yfyhi3lkh36z05pql8"))))
10868 (build-system qt-build-system)
10869 (native-inputs
10870 `(("extra-cmake-modules" ,extra-cmake-modules)
10871 ("kdoctools" ,kdoctools)))
10872 (inputs
10873 `(("kcompletion" ,kcompletion)
10874 ("kconfig" ,kconfig)
10875 ("kconfigwidgets" ,kconfigwidgets)
10876 ("kcoreaddons" ,kcoreaddons)
10877 ("kcrash" ,kcrash)
10878 ("kdbusaddons" ,kdbusaddons)
10879 ("ki18n" ,ki18n)
10880 ("kxmlgui" ,kxmlgui)
10881 ("libkdegames" ,libkdegames)
10882 ("qtbase" ,qtbase)
10883 ("qtdeclarative" ,qtdeclarative)
10884 ("qtsvg" ,qtsvg)))
10885 (home-page "https://games.kde.org/")
10886 (synopsis "Two player game with shooting spaceships flying around a sun")
10887 (description "KSpaceduel is a space battle game for one or two players,
10888 where two ships fly around a star in a struggle to be the only survivor.
10889
10890 This package is part of the KDE games module.")
10891 (license (list license:gpl2+ license:fdl1.2+))))
10892
10893 (define-public bovo
10894 (package
10895 (name "bovo")
10896 (version "19.08.3")
10897 (source
10898 (origin
10899 (method url-fetch)
10900 (uri (string-append "mirror://kde/stable/applications/" version
10901 "/src/bovo-" version ".tar.xz"))
10902 (sha256
10903 (base32 "0dbpng0w52nahmx7brsll66zw23ql1g6pcvn2k4g2lnvxch0i59g"))))
10904 (build-system qt-build-system)
10905 (native-inputs
10906 `(("extra-cmake-modules" ,extra-cmake-modules)
10907 ("kdoctools" ,kdoctools)))
10908 (inputs
10909 `(("kcompletion" ,kcompletion)
10910 ("kcoreaddons" ,kcoreaddons)
10911 ("kcrash" ,kcrash)
10912 ("kdbusaddons" ,kdbusaddons)
10913 ("ki18n" ,ki18n)
10914 ("kxmlgui" ,kxmlgui)
10915 ("libkdegames" ,libkdegames)
10916 ("qtbase" ,qtbase)
10917 ("qtdeclarative" ,qtdeclarative)
10918 ("qtsvg" ,qtsvg)))
10919 (home-page "https://games.kde.org/")
10920 (synopsis "Classic pen and paper game: five in a line")
10921 (description "Bovo is a Gomoku (from Japanese 五目並べ - lit. \"five
10922 points\") like game for two players, where the opponents alternate in placing
10923 their respective pictogram on the game board. The winner is the first to
10924 complete a line of five markers. (Also known as: Connect Five, Five in a row,
10925 X and O, Naughts and Crosses)
10926
10927 This package is part of the KDE games module.")
10928 (license (list license:gpl2+ license:fdl1.2+))))
10929
10930 (define-public killbots
10931 (package
10932 (name "killbots")
10933 (version "19.08.3")
10934 (source
10935 (origin
10936 (method url-fetch)
10937 (uri (string-append "mirror://kde/stable/applications/" version
10938 "/src/killbots-" version ".tar.xz"))
10939 (sha256
10940 (base32 "1qi86q7diw7glkp9v33yim9nhz2da4balbxa1hjrdgjdv8zdbxbm"))))
10941 (build-system qt-build-system)
10942 (native-inputs
10943 `(("extra-cmake-modules" ,extra-cmake-modules)
10944 ("kdoctools" ,kdoctools)))
10945 (inputs
10946 `(("kcompletion" ,kcompletion)
10947 ("kconfig" ,kconfig)
10948 ("kconfigwidgets" ,kconfigwidgets)
10949 ("kcoreaddons" ,kcoreaddons)
10950 ("kcrash" ,kcrash)
10951 ("kdbusaddons" ,kdbusaddons)
10952 ("ki18n" ,ki18n)
10953 ("kwidgetsaddons" ,kwidgetsaddons)
10954 ("kxmlgui" ,kxmlgui)
10955 ("libkdegames" ,libkdegames)
10956 ("qtbase" ,qtbase)
10957 ("qtdeclarative" ,qtdeclarative)))
10958 (home-page "https://games.kde.org/")
10959 (synopsis "Port of the classic BSD console game robots")
10960 (description "Killbots is a simple game of evading killer robots.
10961
10962 Who created the robots and why they have been programmed to destroy, no one
10963 knows. All that is known is that the robots are numerous and their sole
10964 objective is to destroy you. Fortunately for you, their creator has focused
10965 on quantity rather than quality and as a result the robots are severely
10966 lacking in intelligence. Your superior wit and a fancy teleportation device
10967 are your only weapons against the never-ending stream of mindless automatons.
10968
10969 This package is part of the KDE games module.")
10970 (license (list license:gpl2+ license:fdl1.2+))))
10971
10972 (define-public ksnakeduel
10973 (package
10974 (name "ksnakeduel")
10975 (version "19.08.3")
10976 (source
10977 (origin
10978 (method url-fetch)
10979 (uri (string-append "mirror://kde/stable/applications/" version
10980 "/src/ksnakeduel-" version ".tar.xz"))
10981 (sha256
10982 (base32 "0mprrnpax8pv7ab36zwhvdfj8id52w8g6x76nnj8qvkdlkjiqdnn"))))
10983 (build-system qt-build-system)
10984 (native-inputs
10985 `(("extra-cmake-modules" ,extra-cmake-modules)
10986 ("kdoctools" ,kdoctools)))
10987 (inputs
10988 `(("kcompletion" ,kcompletion)
10989 ("kconfig" ,kconfig)
10990 ("kconfigwidgets" ,kconfigwidgets)
10991 ("kcoreaddons" ,kcoreaddons)
10992 ("kcrash" ,kcrash)
10993 ("kdbusaddons" ,kdbusaddons)
10994 ("kguiaddons" ,kguiaddons)
10995 ("ki18n" ,ki18n)
10996 ("kxmlgui" ,kxmlgui)
10997 ("libkdegames" ,libkdegames)
10998 ("qtbase" ,qtbase)
10999 ("qtdeclarative" ,qtdeclarative)
11000 ("qtsvg" ,qtsvg)))
11001 (home-page "https://games.kde.org/")
11002 (synopsis "Snake race played against the computer")
11003 (description "KSnakeDuel is a fast action game where you steer a snake
11004 which has to eat food. While eating the snake grows. But once a player
11005 collides with the other snake or the wall the game is lost. This becomes of
11006 course more and more difficult the longer the snakes grow.
11007
11008 This package is part of the KDE games module.")
11009 (license (list license:gpl2+ license:fdl1.2+))))
11010
11011 (define-public kollision
11012 (package
11013 (name "kollision")
11014 (version "19.08.3")
11015 (source
11016 (origin
11017 (method url-fetch)
11018 (uri (string-append "mirror://kde/stable/applications/" version
11019 "/src/kollision-" version ".tar.xz"))
11020 (sha256
11021 (base32 "1p7qrn3d0ybpvc9k6k5wzj54dsrp1rqh39844maz0ay2fhvmch12"))))
11022 (build-system qt-build-system)
11023 (native-inputs
11024 `(("extra-cmake-modules" ,extra-cmake-modules)
11025 ("kdoctools" ,kdoctools)))
11026 (inputs
11027 `(("kcompletion" ,kcompletion)
11028 ("kconfig" ,kconfig)
11029 ("kcoreaddons" ,kcoreaddons)
11030 ("kcrash" ,kcrash)
11031 ("kdbusaddons" ,kdbusaddons)
11032 ("ki18n" ,ki18n)
11033 ("kwidgetsaddons" ,kwidgetsaddons)
11034 ("kxmlgui" ,kxmlgui)
11035 ("libkdegames" ,libkdegames)
11036 ("qtbase" ,qtbase)
11037 ("qtdeclarative" ,qtdeclarative)))
11038 (home-page "https://games.kde.org/")
11039 (synopsis "Simple ball dodging game")
11040 (description "In Kollision you use mouse to control a small blue ball in a
11041 closed space environment filled with small red balls, which move about
11042 chaotically. Your goal is to avoid touching any of those red balls with your
11043 blue one, because the moment you do the game will be over. The longer you can
11044 stay in game the higher will your score be.
11045
11046 This package is part of the KDE games module.")
11047 (license (list license:gpl2+ license:fdl1.2+))))
11048
11049 (define-public knavalbattle
11050 (package
11051 (name "knavalbattle")
11052 (version "19.08.3")
11053 (source
11054 (origin
11055 (method url-fetch)
11056 (uri (string-append "mirror://kde/stable/applications/" version
11057 "/src/knavalbattle-" version ".tar.xz"))
11058 (sha256
11059 (base32 "0sdfjplqkb30x2mvh66pkzay6vn5px87779sh2s8lpl6fcw0v9g4"))))
11060 (build-system qt-build-system)
11061 (native-inputs
11062 `(("extra-cmake-modules" ,extra-cmake-modules)
11063 ("kdoctools" ,kdoctools)))
11064 (inputs
11065 `(("kauth" ,kauth)
11066 ("kcompletion" ,kcompletion)
11067 ("kconfig" ,kconfig)
11068 ("kconfigwidgets" ,kconfigwidgets)
11069 ("kcoreaddons" ,kcoreaddons)
11070 ("kcrash" ,kcrash)
11071 ("kdbusaddons" ,kdbusaddons)
11072 ("kdnssd" ,kdnssd)
11073 ("ki18n" ,ki18n)
11074 ("ktextwidgets" ,ktextwidgets)
11075 ("kxmlgui" ,kxmlgui)
11076 ("libkdegames" ,libkdegames)
11077 ("qtbase" ,qtbase)
11078 ("qtdeclarative" ,qtdeclarative)))
11079 (home-page "https://games.kde.org/")
11080 (synopsis "Battleship board game with built-in game server")
11081 (description "KBattleship is a Battle Ship game for KDE.
11082
11083 Ships are placed on a board which represents the sea. Players try to hit each
11084 others ships in turns without knowing where they are placed. The first player
11085 to destroy all ships wins the game.
11086
11087 This package is part of the KDE games module.")
11088 (license (list license:gpl2+ license:fdl1.2+))))
11089
11090 (define-public kreversi
11091 (package
11092 (name "kreversi")
11093 (version "19.08.3")
11094 (source
11095 (origin
11096 (method url-fetch)
11097 (uri (string-append "mirror://kde/stable/applications/" version
11098 "/src/kreversi-" version ".tar.xz"))
11099 (sha256
11100 (base32 "0b6q8df2bawgnrswhq59z37axad0q3zpvvzxdds7sz1lw505xw9h"))))
11101 (build-system qt-build-system)
11102 (native-inputs
11103 `(("extra-cmake-modules" ,extra-cmake-modules)
11104 ("kdoctools" ,kdoctools)))
11105 (inputs
11106 `(("kconfig" ,kconfig)
11107 ("kconfigwidgets" ,kconfigwidgets)
11108 ("kcoreaddons" ,kcoreaddons)
11109 ("kcrash" ,kcrash)
11110 ("kdbusaddons" ,kdbusaddons)
11111 ("kdeclarative" ,kdeclarative)
11112 ("ki18n" ,ki18n)
11113 ("kiconthemes" ,kiconthemes)
11114 ("kio" ,kio)
11115 ("kxmlgui" ,kxmlgui)
11116 ("libkdegames" ,libkdegames)
11117 ("qtbase" ,qtbase)
11118 ("qtdeclarative" ,qtdeclarative)
11119 ("qtsvg" ,qtsvg)))
11120 (home-page "https://games.kde.org/")
11121 (synopsis "Old reversi board game, also known as othello")
11122 (description "KReversi is a simple one player strategy game played
11123 against the computer.
11124
11125 If a player's piece is captured by an opposing player, that piece is turned
11126 over to reveal the color of that player. A winner is declared when one player
11127 has more pieces of his own color on the board and there are no more possible
11128 moves.
11129
11130 This package is part of the KDE games module.")
11131 (license (list license:gpl2+ license:fdl1.2+))))
11132
11133 (define-public ksquares
11134 (package
11135 (name "ksquares")
11136 (version "19.08.3")
11137 (source
11138 (origin
11139 (method url-fetch)
11140 (uri (string-append "mirror://kde/stable/applications/" version
11141 "/src/ksquares-" version ".tar.xz"))
11142 (sha256
11143 (base32 "0hv8hls5s627lys08nnw72rfzsafj3dmp49mh2afzmh6lgk9h5vy"))))
11144 (build-system qt-build-system)
11145 (native-inputs
11146 `(("extra-cmake-modules" ,extra-cmake-modules)
11147 ("kdoctools" ,kdoctools)))
11148 (inputs
11149 `(("kcompletion" ,kcompletion)
11150 ("kconfig" ,kconfig)
11151 ("kconfigwidgets" ,kconfigwidgets)
11152 ("kcoreaddons" ,kcoreaddons)
11153 ("kcrash" ,kcrash)
11154 ("kdbusaddons" ,kdbusaddons)
11155 ("ki18n" ,ki18n)
11156 ("kwidgetsaddons" ,kwidgetsaddons)
11157 ("kxmlgui" ,kxmlgui)
11158 ("libkdegames" ,libkdegames)
11159 ("qtbase" ,qtbase)
11160 ("qtdeclarative" ,qtdeclarative)))
11161 (home-page "https://games.kde.org/")
11162 (synopsis "Dots and Boxes game")
11163 (description "KSquares is an implementation of the popular paper based
11164 game Squares. Two players take turns connecting dots on a grid to complete
11165 squares, the player with the most squares wins.
11166
11167 This package is part of the KDE games module.")
11168 (license (list license:gpl2+ license:lgpl2.0+ license:fdl1.2+))))
11169
11170 (define-public kjumpingcube
11171 (package
11172 (name "kjumpingcube")
11173 (version "19.08.3")
11174 (source
11175 (origin
11176 (method url-fetch)
11177 (uri (string-append "mirror://kde/stable/applications/" version
11178 "/src/kjumpingcube-" version ".tar.xz"))
11179 (sha256
11180 (base32 "0d67zqkf2xffjkj671gl2n6nj6jajyn6rgqqj5i6gm500mqi9rm1"))))
11181 (build-system qt-build-system)
11182 (native-inputs
11183 `(("extra-cmake-modules" ,extra-cmake-modules)
11184 ("kdoctools" ,kdoctools)))
11185 (inputs
11186 `(("kconfig" ,kconfig)
11187 ("kconfigwidgets" ,kconfigwidgets)
11188 ("kcoreaddons" ,kcoreaddons)
11189 ("kcrash" ,kcrash)
11190 ("kdbusaddons" ,kdbusaddons)
11191 ("ki18n" ,ki18n)
11192 ("kio" ,kio)
11193 ("kwidgetsaddons" ,kwidgetsaddons)
11194 ("kxmlgui" ,kxmlgui)
11195 ("libkdegames" ,libkdegames)
11196 ("qtbase" ,qtbase)
11197 ("qtdeclarative" ,qtdeclarative)
11198 ("qtsvg" ,qtsvg)))
11199 (home-page "https://games.kde.org/")
11200 (synopsis "Simple tactical game for number-crunchers")
11201 (description "KJumpingcube is a simple tactical game for one or two
11202 players, played on a grid of numbered squares. Each turn, players compete for
11203 control of the board by capturing or adding to one square.
11204
11205 This package is part of the KDE games module.")
11206 (license (list license:gpl2+ license:fdl1.2+))))
11207
11208 (define-public xmoto
11209 (package
11210 (name "xmoto")
11211 (version "0.6.1")
11212 (source
11213 (origin
11214 (method git-fetch)
11215 (uri (git-reference
11216 (url "https://github.com/xmoto/xmoto")
11217 (commit version)))
11218 (file-name (git-file-name name version))
11219 (sha256
11220 (base32 "00f5ha79lfa2iiaz66wl0hl5dapa1l15qdr7m7knzi0ll7j6z66n"))
11221 (modules '((guix build utils)
11222 (ice-9 ftw)
11223 (srfi srfi-1)))
11224 ;; XXX: Remove some bundled libraries. Guix provides Chipmunk, but
11225 ;; it appears to be incompatible with the (older) one bundled.
11226 (snippet
11227 `(begin
11228 (let ((keep '("chipmunk" "glad" "md5sum")))
11229 (with-directory-excursion "vendor"
11230 (for-each delete-file-recursively
11231 (lset-difference string=?
11232 (scandir ".")
11233 (cons* "." ".." keep))))
11234 (substitute* "src/CMakeLists.txt"
11235 (("add_subdirectory\\(.*?/vendor/(.+?)\".*" line library)
11236 (if (member library keep) line ""))))
11237 #t))))
11238 (build-system cmake-build-system)
11239 (arguments
11240 `(#:tests? #f ;no test
11241 #:phases
11242 (modify-phases %standard-phases
11243 (add-after 'unpack 'fix-hard-coded-directory
11244 (lambda* (#:key outputs #:allow-other-keys)
11245 (substitute* "src/common/VFileIO.cpp"
11246 (("/usr/share")
11247 (string-append (assoc-ref outputs "out") "/share")))
11248 #t))
11249 (add-before 'build 'set-SDL
11250 ;; Set correct environment for SDL.
11251 (lambda* (#:key inputs #:allow-other-keys)
11252 (setenv "CPATH"
11253 (string-append
11254 (assoc-ref inputs "sdl") "/include/SDL:"
11255 (or (getenv "CPATH") "")))
11256 #t))
11257 (add-after 'install 'unbundle-fonts
11258 ;; Unbundle DejaVuSans TTF files.
11259 (lambda* (#:key outputs inputs #:allow-other-keys)
11260 (let ((font-dir (string-append (assoc-ref inputs "font-dejavu")
11261 "/share/fonts/truetype/"))
11262 (target-dir (string-append (assoc-ref outputs "out")
11263 "/share/xmoto/Textures/Fonts/")))
11264 (for-each (lambda (f)
11265 (let ((font (string-append font-dir f))
11266 (target (string-append target-dir f)))
11267 (delete-file target)
11268 (symlink font target)))
11269 '("DejaVuSans.ttf" "DejaVuSansMono.ttf"))
11270 #t))))))
11271 (native-inputs
11272 `(("gettext" ,gettext-minimal)
11273 ("pkg-config" ,pkg-config)))
11274 (inputs
11275 `(("bzip2" ,bzip2)
11276 ("curl" ,curl)
11277 ("font-dejavu" ,font-dejavu)
11278 ("glu" ,glu)
11279 ("libjpeg" ,libjpeg-turbo)
11280 ("libpng" ,libpng)
11281 ("libxdg-basedir" ,libxdg-basedir)
11282 ("libxml2" ,libxml2)
11283 ("lua" ,lua-5.1)
11284 ("ode" ,ode)
11285 ("sdl" ,(sdl-union (list sdl sdl-mixer sdl-net sdl-ttf)))
11286 ("sqlite" ,sqlite)
11287 ("zlib" ,zlib)))
11288 (home-page "https://xmoto.tuxfamily.org/")
11289 (synopsis "2D motocross platform game")
11290 (description
11291 "X-Moto is a challenging 2D motocross platform game, where
11292 physics play an all important role in the gameplay. You need to
11293 control your bike to its limit, if you want to have a chance finishing
11294 the more difficult challenges.")
11295 (license (list license:gpl2+ ;whole project
11296 license:bsd-3 ;vendor/md5sum
11297 license:lgpl2.1+
11298 license:expat))))
11299
11300 (define-public eboard
11301 (package
11302 (name "eboard")
11303 (version "1.1.3")
11304 (source
11305 (origin
11306 (method git-fetch)
11307 (uri (git-reference
11308 (url "https://github.com/fbergo/eboard")
11309 (commit (string-append "v" version))))
11310 (file-name (git-file-name name version))
11311 (sha256
11312 (base32 "1z4pwpqyvxhlda99h6arh2rjk90fbms9q29fqizjblrdn01dlxn1"))))
11313 (build-system gnu-build-system)
11314 (native-inputs
11315 `(("perl" ,perl)
11316 ("pkg-config" ,pkg-config)))
11317 (inputs
11318 `(("gtk+" ,gtk+-2)
11319 ("libpng" ,libpng)
11320 ("gstreamer" ,gstreamer)))
11321 (arguments
11322 `(#:tests? #f
11323 #:phases
11324 (modify-phases %standard-phases
11325 (replace 'configure
11326 (lambda* (#:key outputs #:allow-other-keys)
11327 (make-file-writable "eboard-config")
11328 (setenv "CC" "gcc")
11329 (invoke "./configure"
11330 (string-append "--prefix=" (assoc-ref outputs "out")))
11331 #t))
11332 (add-before 'install 'make-required-directories
11333 (lambda* (#:key outputs #:allow-other-keys)
11334 (mkdir-p (string-append (assoc-ref outputs "out")
11335 "/share/eboard"))
11336 #t)))))
11337 (synopsis "Graphical user interface to play chess")
11338 (description
11339 "Eboard is a chess board interface for ICS (Internet Chess Servers)
11340 and chess engines.")
11341 (home-page "https://www.bergo.eng.br/eboard/")
11342 (license license:gpl2+)))
11343
11344 (define-public chessx
11345 (package
11346 (name "chessx")
11347 (version "1.5.4")
11348 (source
11349 (origin
11350 (method url-fetch)
11351 (uri (string-append "mirror://sourceforge/chessx/chessx/"
11352 version "/chessx-" version ".tgz"))
11353 (sha256
11354 (base32 "1a3541vl5hp6jllgx998w9kjh9kp3wrl80yfwkxmq1bc5bzsrnz2"))))
11355 (build-system qt-build-system)
11356 (native-inputs
11357 `(("qttools" ,qttools)))
11358 (inputs
11359 `(("qtbase" ,qtbase)
11360 ("qtmultimedia" ,qtmultimedia)
11361 ("qtspeech" ,qtspeech)
11362 ("qtsvg" ,qtsvg)
11363 ("zlib" ,zlib)))
11364 (arguments
11365 `(#:tests? #f
11366 #:phases
11367 (modify-phases %standard-phases
11368 (add-after 'unpack 'fix-paths
11369 (lambda* (#:key inputs #:allow-other-keys)
11370 (substitute* "chessx.pro"
11371 (("\\$\\$\\[QT_INSTALL_BINS\\]/lrelease")
11372 (string-append (assoc-ref inputs "qttools") "/bin/lrelease"))
11373 ;; Fix missing translations.
11374 (("TRANSLATIONS = i18n/chessx_de.ts")
11375 "TRANSLATIONS = i18n/chessx_de.ts i18n/chessx_da.ts \\
11376 i18n/chessx_fr.ts i18n/chessx_it.ts i18n/chessx_cz.ts i18n/chessx_ru.ts \\
11377 i18n/chessx_es.ts"))
11378 #t))
11379 (add-after 'fix-paths 'make-qt-deterministic
11380 (lambda _
11381 (setenv "QT_RCC_SOURCE_DATE_OVERRIDE" "1")
11382 #t))
11383 (replace 'configure
11384 (lambda _
11385 (invoke "qmake")
11386 #t))
11387 (replace 'install
11388 (lambda* (#:key outputs #:allow-other-keys)
11389 (let ((out (assoc-ref outputs "out")))
11390 (install-file "release/chessx" (string-append out "/bin"))
11391 (install-file "unix/chessx.desktop"
11392 (string-append out "/share/applications")))
11393 #t)))))
11394 (synopsis "Chess game database")
11395 (description
11396 "ChessX is a chess database. With ChessX you can operate on your
11397 collection of chess games in many ways: browse, edit, add, organize, analyze,
11398 etc. You can also play games on FICS or against an engine.")
11399 (home-page "http://chessx.sourceforge.net/")
11400 (license license:gpl2+)))
11401
11402 (define-public stockfish
11403 (package
11404 (name "stockfish")
11405 (version "11")
11406 (source
11407 (origin
11408 (method git-fetch)
11409 (uri (git-reference
11410 (url "https://github.com/official-stockfish/Stockfish")
11411 (commit (string-append "sf_" version))))
11412 (file-name (git-file-name name version))
11413 (sha256
11414 (base32 "12mppipinymj8s1ipq9a7is453vncly49c32ym9wvyklsgyxfzlk"))))
11415 (build-system gnu-build-system)
11416 (arguments
11417 `(#:tests? #f
11418 #:make-flags (list "-C" "src"
11419 "build"
11420 (string-append "PREFIX="
11421 (assoc-ref %outputs "out"))
11422 (string-append "ARCH="
11423 ,(match (%current-system)
11424 ("x86_64-linux" "x86-64")
11425 ("i686-linux" "x86-32")
11426 ("aarch64-linux" "general-64")
11427 ("armhf-linux" "armv7")
11428 ("mips64el-linux" "general-64")
11429 (_ "general-32"))))
11430 #:phases (modify-phases %standard-phases
11431 (delete 'configure))))
11432 (synopsis "Strong chess engine")
11433 (description
11434 "Stockfish is a very strong chess engines. It is much stronger than the
11435 best human chess grandmasters. It can be used with UCI-compatible GUIs like
11436 ChessX.")
11437 (home-page "https://stockfishchess.org/")
11438 (license license:gpl3+)))
11439
11440 (define-public barrage
11441 (package
11442 (name "barrage")
11443 (version "1.0.5")
11444 (source
11445 (origin
11446 (method url-fetch)
11447 (uri (string-append "mirror://sourceforge/lgames/barrage/"
11448 "barrage-" version ".tar.gz"))
11449 (sha256
11450 (base32 "0139wxyrir10cbkvkjn548xgmp84wax8mfwk80yxbxlcdamrg257"))))
11451 (build-system gnu-build-system)
11452 (inputs
11453 `(("hicolor-icon-theme" ,hicolor-icon-theme)
11454 ("sdl" ,sdl)
11455 ("sdl-mixer" ,sdl-mixer)))
11456 (arguments
11457 `(#:configure-flags
11458 (list
11459 (string-append "CFLAGS="
11460 "-I" (assoc-ref %build-inputs "sdl-mixer")
11461 "/include/SDL"))))
11462 (home-page "http://lgames.sourceforge.net/Barrage/")
11463 (synopsis "Violent point-and-click shooting game with nice effects")
11464 (description
11465 "Barrage is a rather destructive action game that puts you on a shooting
11466 range with the objective to hit as many dummy targets as possible within
11467 3 minutes. You control a gun that may either fire small or large grenades at
11468 soldiers, jeeps and tanks. The gameplay is simple but it is not that easy to
11469 get high scores.")
11470 (license license:gpl2+)))
11471
11472 (define-public burgerspace
11473 (package
11474 (name "burgerspace")
11475 (version "1.9.3")
11476 (source
11477 (origin
11478 (method url-fetch)
11479 (uri (string-append "http://perso.b2b2c.ca/~sarrazip/dev/"
11480 "burgerspace-" version ".tar.gz"))
11481 (sha256
11482 (base32 "1005a04rbn4lzjrpfg0m394k2mfaji63fm2qhdqdsxila8a6kjbv"))))
11483 (build-system gnu-build-system)
11484 (native-inputs
11485 `(("pkg-config" ,pkg-config)))
11486 (inputs
11487 `(("flatzebra" ,flatzebra)))
11488 (home-page "http://perso.b2b2c.ca/~sarrazip/dev/burgerspace.html")
11489 (synopsis "Avoid evil foodstuffs and make burgers")
11490 (description
11491 "This is a clone of the classic game BurgerTime. In it, you play
11492 the part of a chef who must create burgers by stepping repeatedly on
11493 the ingredients until they fall into place. And to make things more
11494 complicated, you also must avoid evil animate food items while
11495 performing this task, with nothing but your trusty pepper shaker to
11496 protect you.")
11497 (license license:gpl2+)))
11498
11499 (define-public 7kaa
11500 (package
11501 (name "7kaa")
11502 (version "2.15.4p1")
11503 (source
11504 (origin
11505 (method url-fetch)
11506 (uri (string-append "https://github.com/the3dfxdude/7kaa/"
11507 "releases/download/v" version "/"
11508 "7kaa-" version ".tar.xz"))
11509 (sha256
11510 (base32 "1y7v0jhp3apb619p7asikqr1dnwb2yxbh40wbx1ppmr5f03mq9ph"))))
11511 (build-system gnu-build-system)
11512 (native-inputs
11513 `(("gettext" ,gettext-minimal)
11514 ("pkg-config" ,pkg-config)))
11515 (inputs
11516 `(("curl" ,curl)
11517 ("enet" ,enet)
11518 ("openal" ,openal)
11519 ("sdl2" ,sdl2)))
11520 (home-page "https://7kfans.com/")
11521 (synopsis "Seven Kingdoms Ancient Adversaries: real-time strategy game")
11522 (description
11523 "Seven Kingdoms, designed by Trevor Chan, brings a blend of Real-Time
11524 Strategy with the addition of trade, diplomacy, and espionage. The game
11525 enables players to compete against up to six other kingdoms allowing players
11526 to conquer opponents by defeating them in war (with troops or machines),
11527 capturing their buildings with spies, or offering opponents money for their
11528 kingdom.")
11529 (license license:gpl2+)))
11530
11531 (define-public neverball
11532 ;; Git version is 6-years younger than latest release.
11533 (let ((commit "760a25d32a5fb0661b99426d4ddcb9ac9f3d1644")
11534 (revision "1"))
11535 (package
11536 (name "neverball")
11537 (version (git-version "1.6.0" revision commit))
11538 (source
11539 (origin
11540 (method git-fetch)
11541 (uri (git-reference
11542 (url "https://github.com/Neverball/neverball")
11543 (commit commit)))
11544 (sha256
11545 (base32
11546 "0bwh67df3lyf33bv710y25l3frjdd34j9b7gsjadwxviz6r1vpj5"))
11547 (file-name (git-file-name name version))
11548 (modules '((guix build utils)))
11549 (snippet
11550 '(begin
11551 ;; Octocat seems to be non-free. Oddly, Debian doesn't strip it.
11552 (delete-file-recursively "data/ball/octocat")
11553 #t))))
11554 (build-system copy-build-system)
11555 (arguments
11556 `(#:install-plan
11557 '(("neverball" "bin/")
11558 ("neverputt" "bin/")
11559 ("mapc" "bin/")
11560 ("data" "share/games/neverball/")
11561 ("locale" "share/")
11562 ("dist/" "share/games/neverball" #:include ("neverball_replay.png"
11563 "neverlogos.svg"
11564 "svg readme.txt"))
11565 ("dist/" "share/applications" #:include ("neverball.desktop"
11566 "neverputt.desktop"))
11567 ("dist/neverball_16.png"
11568 "/share/icons/hicolor/16x16/apps/neverball.png")
11569 ("dist/neverball_24.png"
11570 "/share/icons/hicolor/24x24/apps/neverball.png")
11571 ("dist/neverball_32.png"
11572 "/share/icons/hicolor/32x32/apps/neverball.png")
11573 ("dist/neverball_48.png"
11574 "/share/icons/hicolor/48x48/apps/neverball.png")
11575 ("dist/neverball_64.png"
11576 "/share/icons/hicolor/64x64/apps/neverball.png")
11577 ("dist/neverball_128.png"
11578 "/share/icons/hicolor/128x128/apps/neverball.png")
11579 ("dist/neverball_256.png"
11580 "/share/icons/hicolor/256x256/apps/neverball.png")
11581 ("dist/neverball_512.png"
11582 "/share/icons/hicolor/512x512/apps/neverball.png")
11583 ("dist/neverputt_16.png"
11584 "/share/icons/hicolor/16x16/apps/neverputt.png")
11585 ("dist/neverputt_24.png"
11586 "/share/icons/hicolor/24x24/apps/neverputt.png")
11587 ("dist/neverputt_32.png"
11588 "/share/icons/hicolor/32x32/apps/neverputt.png")
11589 ("dist/neverputt_48.png"
11590 "/share/icons/hicolor/48x48/apps/neverputt.png")
11591 ("dist/neverputt_64.png"
11592 "/share/icons/hicolor/64x64/apps/neverputt.png")
11593 ("dist/neverputt_128.png"
11594 "/share/icons/hicolor/128x128/apps/neverputt.png")
11595 ("dist/neverputt_256.png"
11596 "/share/icons/hicolor/256x256/apps/neverputt.png")
11597 ("dist/neverputt_512.png"
11598 "/share/icons/hicolor/512x512/apps/neverputt.png")
11599 ("dist/" "share/man/man1" #:include ("mapc.1"))
11600 ("dist/" "share/man/man6" #:include ("neverball.6" "neverputt.6"))
11601 ("doc/" "share/doc/neverball")
11602 ("README.md" "share/doc/neverball/"))
11603 #:phases
11604 (modify-phases %standard-phases
11605 (add-before 'install 'build
11606 (lambda* (#:key inputs outputs #:allow-other-keys)
11607 (let* ((out (assoc-ref outputs "out"))
11608 (sdl (assoc-ref inputs "sdl")))
11609 (invoke "make" "-j" (number->string (parallel-job-count))
11610 "--environment-overrides"
11611 "CC=gcc" "BUILD=release"
11612 (string-append "DATADIR="
11613 out
11614 "/share/games/neverball/data")
11615 (string-append "LOCALEDIR=" out "/share/locale")
11616 (string-append "SDL_CPPFLAGS=-I"
11617 sdl
11618 "/include/SDL2/")))
11619 #t))
11620 (add-after 'install 'fix-some-broken-fonts
11621 (lambda* (#:key outputs #:allow-other-keys)
11622 (let* ((out (assoc-ref outputs "out")))
11623 (wrap-program (string-append out "/bin/neverball")
11624 `("LANG" = ("en_US.utf8")))
11625 (wrap-program (string-append out "/bin/neverputt")
11626 `("LANG" = ("en_US.utf8"))))
11627 #t)))))
11628 (native-inputs
11629 `(("gettext" ,gettext-minimal))) ;for msgfmt
11630 (inputs
11631 `(("libjpeg" ,libjpeg-turbo)
11632 ("libpng" ,libpng)
11633 ("libvorbis" ,libvorbis)
11634 ("physfs" ,physfs)
11635 ("sdl" ,(sdl-union (list sdl2 sdl2-ttf)))))
11636 (home-page "https://neverball.org/")
11637 (synopsis "3D floor-tilting game")
11638 (description
11639 "In the grand tradition of Marble Madness and Super Monkey Ball,
11640 Neverball has you guide a rolling ball through dangerous territory. Balance
11641 on narrow bridges, navigate mazes, ride moving platforms, and dodge pushers
11642 and shovers to get to the goal. Race against the clock to collect coins to
11643 earn extra balls. Also included is Neverputt, which is a 3D miniature golf
11644 game.") ;thanks to Debian for description
11645 (license license:gpl2+))))
11646
11647 (define-public pokerth
11648 (package
11649 (name "pokerth")
11650 (version "1.1.2")
11651 (source
11652 (origin
11653 (method url-fetch)
11654 (uri (string-append "mirror://sourceforge/pokerth/pokerth/"
11655 version "/pokerth-" version ".tar.gz"))
11656 (sha256
11657 (base32 "0yi9bj3k8yc1gkwmaf14zbbvvn13n54n1dli8k6j1pkph3p3vjq2"))
11658 (modules '((guix build utils)))
11659 (snippet
11660 '(begin
11661 ;; Remove bundled websocketpp.
11662 (delete-file-recursively "src/third_party/websocketpp")
11663 (substitute* "pokerth_lib.pro"
11664 (("src/third_party/websocketpp")
11665 ""))
11666 #t))))
11667 (build-system qt-build-system)
11668 (inputs
11669 `(("boost" ,boost)
11670 ("curl" ,curl)
11671 ("gsasl" ,gsasl)
11672 ("libgcrypt" ,libgcrypt)
11673 ("libircclient" ,libircclient)
11674 ("protobuf" ,protobuf-2) ; remove package when no longer needed
11675 ("qtbase" ,qtbase)
11676 ("sdl" ,(sdl-union (list sdl sdl-mixer)))
11677 ("sqlite" ,sqlite)
11678 ("tinyxml" ,tinyxml)
11679 ("websocketpp" ,websocketpp)
11680 ("zlib" ,zlib)))
11681 (arguments
11682 `(#:tests? #f ; No test suite
11683 #:phases
11684 (modify-phases %standard-phases
11685 (add-after 'unpack 'fix-paths
11686 (lambda* (#:key inputs #:allow-other-keys)
11687 (substitute* (find-files "." "\\.pro$")
11688 (("/opt/gsasl")
11689 (assoc-ref inputs "gsasl"))
11690 (("\\$\\$\\{PREFIX\\}/include/libircclient")
11691 (string-append (assoc-ref inputs "libircclient")
11692 "/include/libircclient"))
11693 (("LIB_DIRS =")
11694 (string-append "LIB_DIRS = "
11695 (assoc-ref inputs "boost") "/lib")))
11696 #t))
11697 (add-after 'unpack 'fix-build
11698 (lambda _
11699 ;; Fixes for Boost versions >= 1.66.
11700 (substitute* '("src/net/common/clientthread.cpp"
11701 "src/net/serveraccepthelper.h")
11702 (("boost::asio::socket_base::non_blocking_io command\\(true\\);")
11703 "")
11704 (("newSock->io_control\\(command\\);")
11705 "newSock->non_blocking(true);")
11706 (("acceptedSocket->io_control\\(command\\);")
11707 "acceptedSocket->non_blocking(true);"))
11708 #t))
11709 (replace 'configure
11710 (lambda* (#:key outputs #:allow-other-keys)
11711 (invoke "qmake" "pokerth.pro" "CONFIG+=client"
11712 (string-append "PREFIX=" (assoc-ref outputs "out"))))))))
11713 (home-page "https://www.pokerth.net")
11714 (synopsis "Texas holdem poker game")
11715 (description
11716 "With PokerTH you can play the Texas holdem poker game, either against
11717 computer opponents or against real players online.")
11718 (license license:agpl3+)))
11719
11720 (define-public azimuth
11721 (package
11722 (name "azimuth")
11723 ;; Not marked as latest release, but it fixes a compiling issue
11724 ;; and adds the install target.
11725 (version "1.0.3")
11726 (source
11727 (origin
11728 (method git-fetch)
11729 (uri (git-reference
11730 (url "https://github.com/mdsteele/azimuth")
11731 (commit (string-append "v" version))))
11732 (file-name (git-file-name name version))
11733 (sha256
11734 (base32
11735 "1znfvpmqiixd977jv748glk5zc4cmhw5813zp81waj07r9b0828r"))))
11736 (build-system gnu-build-system)
11737 (arguments
11738 `(#:test-target "test"
11739 #:phases
11740 (modify-phases %standard-phases
11741 (delete 'configure) ; no configure script
11742 ;; Build release version instead of debug version.
11743 (add-after 'unpack 'set-release
11744 (lambda _
11745 (setenv "BUILDTYPE" "release") #t))
11746 (add-after 'unpack 'fix-install ; set install directory
11747 (lambda* (#:key outputs #:allow-other-keys)
11748 (substitute* "Makefile" (("/usr") (assoc-ref outputs "out"))) #t)))))
11749 (inputs `(("sdl" ,sdl)))
11750 (home-page "https://mdsteele.games/azimuth/")
11751 (synopsis "Metroidvania game with vector graphics")
11752 (description
11753 "Pilot your ship inside a planet to find and rescue the colonists trapped
11754 inside the Zenith Colony.")
11755 (license license:gpl3+)))
11756
11757 (define-public paperview
11758 (let ((commit "9f8538eb6734c76877b878b8f1e52587f2ae19e6")
11759 (revision "1"))
11760 (package
11761 (name "paperview")
11762 (version (git-version "0.0.1" revision commit)) ;no upstream release
11763 (source (origin
11764 (method git-fetch)
11765 (uri (git-reference
11766 (url "https://github.com/glouw/paperview")
11767 (commit commit)))
11768 (file-name (git-file-name name version))
11769 (sha256
11770 (base32
11771 "09sb9sg44fvkgfdyycrm1ndpx7cnkrglxhci41y8f3gpagnvi7jk"))))
11772 (build-system gnu-build-system)
11773 (inputs
11774 `(("sdl2" ,sdl2)))
11775 (arguments
11776 '(#:tests? #f ;no tests
11777 #:make-flags
11778 (list (string-append "PREFIX=" (assoc-ref %outputs "out")))
11779 #:phases
11780 (modify-phases %standard-phases
11781 (delete 'configure))))
11782 (home-page "https://github.com/glouw/paperview/")
11783 (synopsis "High performance X11 animated wallpaper setter")
11784 (description "High performance animated desktop background setter for
11785 X11 that won't set your CPU on fire, drain your laptop battery, or lower video
11786 game FPS.")
11787 (license license:unlicense))))