diff options
author | Timotej Lazar <timotej.lazar@araneo.si> | 2022-06-26 08:54:39 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2022-08-04 12:05:46 +0200 |
commit | 23cc276aaa34f54fd045befd4097517c21b1b943 (patch) | |
tree | ac248a52ea0f91485b28e03a858d33856269fdce /gnu/packages/games.scm | |
parent | ae1f12018112573bf142596b78d75dbfd723d859 (diff) | |
download | guix-23cc276aaa34f54fd045befd4097517c21b1b943.tar.gz |
gnu: Add barony.
* gnu/packages/games.scm (barony): New variable. * gnu/packages/patches/barony-fix-textures.patch: New file. * gnu/local.mk (dist_patch_DATA): Add it. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Diffstat (limited to 'gnu/packages/games.scm')
-rw-r--r-- | gnu/packages/games.scm | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm index 7d2ba0344b..06084d1167 100644 --- a/gnu/packages/games.scm +++ b/gnu/packages/games.scm @@ -504,6 +504,60 @@ regret their insolence.") ;; BY-SA 4.0, and fonts to OFL1.1. (license (list license:gpl3+ license:cc-by-sa4.0 license:silofl1.1)))) +(define-public barony + (package + (name "barony") + (version "3.3.7") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/TurningWheel/Barony") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1y72k6zrqqhib3p05zkdklays2d218v51n87k7k68m0s7nnxa4vy")) + ;; Fix textures for SDL 2.0.14. + ;; See <https://github.com/TurningWheel/Barony/pull/582>. + (patches (search-patches "barony-fix-textures.patch")))) + (build-system cmake-build-system) + (arguments + '(#:configure-flags + (list "-DOPENAL_ENABLED=ON" ; enable sound + "-DEDITOR_EXE_NAME=barony-editor") ; instead of generic "editor" + #:tests? #f ; there are no tests + #:phases + (modify-phases %standard-phases + (add-before 'configure 'fix-installation + (lambda _ + (substitute* "CMakeLists.txt" + (("\\$\\{CMAKE_CURRENT_BINARY_DIR\\}/lang") + "${CMAKE_SOURCE_DIR}/lang"))))))) + (inputs + (list glu + libpng + libvorbis + openal + physfs + rapidjson + sdl2 + sdl2-image + sdl2-net + sdl2-ttf + zlib)) + (native-inputs + (list pkg-config)) + (home-page "http://baronygame.com") + (synopsis "3D first-person roguelike game") + (description + "Barony is a first-person roguelike role-playing game with cooperative +play. The player must descend a dark dungeon and destroy an undead lich while +avoiding traps and fighting monsters. The game features randomly generated +dungeons, 13 character classes, hundreds of items and artifacts, and +cooperative multiplayer for up to four players. This package does @emph{not} +provide the game assets.") + (license license:bsd-2))) + (define-public bastet (package (name "bastet") |