gnu: tome4: Improve package style.

* gnu/packages/games.scm (tome4)[inputs]: Remove labels.  Sort alphabetically.
[arguments]: Use G-expressions.
[description]: Remove useless sentence.

Change-Id: I144ae26dc03b5c49d5069e8722873437e6fde04d
This commit is contained in:
Nicolas Goaziou 2023-10-23 20:02:54 +02:00
parent 1b354d785c
commit 571ee7903c
No known key found for this signature in database
GPG key ID: DA00B4F048E92F2D

View file

@ -7338,21 +7338,24 @@ (define-public tome4
(native-inputs
(list unzip))
(inputs
`(("sdl-union" ,(sdl-union (list sdl2 sdl2-image sdl2-mixer sdl2-ttf)))
("glu" ,glu)
("premake4" ,premake4)
("openal" ,openal)
("vorbis" ,libvorbis)
("luajit" ,luajit)))
(list glu
libvorbis
luajit
openal
premake4
(sdl-union (list sdl2 sdl2-image sdl2-mixer sdl2-ttf))))
(arguments
`(#:make-flags
(list (string-append "CC=" ,(cc-for-target))
(list
#:tests? #false ;no test
#:make-flags
#~(list (string-append "CC=" #$(cc-for-target))
"config=release")
;; XXX: Building in parallel occasionally causes this build failure:
;; ../src/luajit2/src/host/buildvm.c:73:10: fatal error: buildvm_arch.h:
;; No such file or directory
#:parallel-build? #f
#:phases (modify-phases %standard-phases
#:phases
#~(modify-phases %standard-phases
(delete 'bootstrap)
(replace 'configure
(lambda _
@ -7363,7 +7366,6 @@ (define-public tome4
(string-append
(search-input-directory inputs "/include/SDL2")
":" (or (getenv "CPATH") "")))))
(delete 'check)
;; premake doesn't provide install target
(replace 'install
(lambda* (#:key inputs outputs #:allow-other-keys)
@ -7374,17 +7376,17 @@ (define-public tome4
(documents (string-append out "/share/doc"))
(pixmaps (string-append out "/share/pixmaps"))
(icon "te4-icon.png")
(data (string-append out "/share/" ,name))
(data (string-append out "/share/" #$name))
(applications (string-append
out "/share/applications"))
(unzip (string-append
(assoc-ref inputs "unzip") "/bin/unzip"))
(wrapper (string-append bin "/" ,name)))
(wrapper (string-append bin "/" #$name)))
;; icon
(mkdir-p pixmaps)
(invoke unzip "-j"
(string-append
"game/engines/te4-" ,version ".teae")
"game/engines/te4-" #$version ".teae")
(string-append
"data/gfx/" icon) "-d" pixmaps)
;; game executable
@ -7416,10 +7418,10 @@ (define-public tome4
;; launcher
(mkdir-p applications)
(make-desktop-entry-file
(string-append applications "/" ,name ".desktop")
(string-append applications "/" #$name ".desktop")
#:name "ToME4"
#:comment ,synopsis
#:exec ,name
#:comment #$synopsis
#:exec #$name
#:icon icon
#:categories '("Game" "RolePlaying"))))))))
(home-page "https://te4.org")
@ -7427,9 +7429,7 @@ (define-public tome4
combat and advanced character building. Play as one of many unique races and
classes in the lore-filled world of Eyal, exploring random dungeons, facing
challenging battles, and developing characters with your own tailored mix of
abilities and powers. With a modern graphical and customisable interface,
intuitive mouse control, streamlined mechanics and deep, challenging combat,
Tales of MajEyal offers engaging roguelike gameplay for the 21st century.")
abilities and powers.")
(license license:gpl3+)))
(define-public quakespasm