me
/
guix
Archived
1
0
Fork 0

gnu: hedgewars: Install desktop icon.

* gnu/packages/games.scm (hedgewars)[arguments]: Add ‘install-icon’ phase.

Signed-off-by: Nicolas Goaziou <mail@nicolasgoaziou.fr>
master
Timotej Lazar 2020-07-15 19:13:47 +02:00 committed by Nicolas Goaziou
parent ba7a63da48
commit 0fc715f971
No known key found for this signature in database
GPG Key ID: DA00B4F048E92F2D
1 changed files with 9 additions and 1 deletions

View File

@ -8813,7 +8813,15 @@ play with up to four players simultaneously. It has network support.")
#:phases
(modify-phases %standard-phases
(replace 'check
(lambda _ (invoke "ctest"))))))
(lambda _ (invoke "ctest")))
(add-after 'install 'install-icon
(lambda _
;; Install icon for the desktop file.
(let* ((out (assoc-ref %outputs "out"))
(icons (string-append out "/share/icons/hicolor/512x512/apps")))
(with-directory-excursion (string-append "../hedgewars-src-" ,version)
(install-file "misc/hedgewars.png" icons)))
#t)))))
(inputs
`(("ffmpeg" ,ffmpeg)
("freeglut" ,freeglut)