me
/
guix
Archived
1
0
Fork 0

gnu: bzflag: Improve package style.

* gnu/packages/games.scm (bzflag)[arguments]: Remove trailing #T from
phases. Use G-expressions.
master
Nicolas Goaziou 2022-03-09 15:16:30 +01:00
parent f57d174a51
commit 53abcfb1c3
No known key found for this signature in database
GPG Key ID: DA00B4F048E92F2D
1 changed files with 21 additions and 21 deletions

View File

@ -831,27 +831,27 @@ Quizzes: arithmetic and quiz.")
(base32 "1i73ijlnxsz52fhqgkj2qcvibfgav3byq1is68gab2zwnyz330az"))))
(build-system gnu-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(add-after 'install 'install-desktop-file-and-icons
(lambda* (#:key outputs #:allow-other-keys)
(let* ((share (string-append (assoc-ref outputs "out") "/share"))
(data (string-append share "/bzflag"))
(hicolor (string-append share "/icons/hicolor"))
(applications (string-append share "/applications")))
;; Move desktop file.
(install-file (string-append data "/bzflag.desktop")
applications)
;; Install icons.
(for-each (lambda (size)
(let* ((dim (string-append size "x" size))
(dir (string-append hicolor "/" dim "/apps")))
(mkdir-p dir)
(copy-file
(string-append data "/bzflag-" dim ".png")
(string-append dir "/bzflag.png"))))
'("48" "256")))
#t)))))
(list
#:phases
#~(modify-phases %standard-phases
(add-after 'install 'install-desktop-file-and-icons
(lambda _
(let* ((share (string-append #$output "/share"))
(data (string-append share "/bzflag"))
(hicolor (string-append share "/icons/hicolor"))
(applications (string-append share "/applications")))
;; Move desktop file.
(install-file (string-append data "/bzflag.desktop")
applications)
;; Install icons.
(for-each (lambda (size)
(let* ((dim (string-append size "x" size))
(dir (string-append hicolor "/" dim "/apps")))
(mkdir-p dir)
(copy-file
(string-append data "/bzflag-" dim ".png")
(string-append dir "/bzflag.png"))))
'("48" "256"))))))))
(native-inputs
(list pkg-config))
(inputs