From 0fc715f9712424b0147c6bd261ce10c25fe73082 Mon Sep 17 00:00:00 2001 From: Timotej Lazar Date: Wed, 15 Jul 2020 19:13:47 +0200 Subject: gnu: hedgewars: Install desktop icon. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * gnu/packages/games.scm (hedgewars)[arguments]: Add ‘install-icon’ phase. Signed-off-by: Nicolas Goaziou --- gnu/packages/games.scm | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'gnu') diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm index 5de6dbf4ac..e60c455cb6 100644 --- a/gnu/packages/games.scm +++ b/gnu/packages/games.scm @@ -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) -- cgit v1.2.3