unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#42373] [PATCH] gnu: hedgewars: Install desktop icon.
@ 2020-07-15 17:13 Timotej Lazar
  2020-07-16 23:52 ` bug#42373: " Nicolas Goaziou
  0 siblings, 1 reply; 2+ messages in thread
From: Timotej Lazar @ 2020-07-15 17:13 UTC (permalink / raw)
  To: 42373; +Cc: Timotej Lazar

* gnu/packages/games.scm (hedgewars)[arguments]: Add ‘install-icon’ phase.
---
 gnu/packages/games.scm | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

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)
-- 
2.27.0





^ permalink raw reply related	[flat|nested] 2+ messages in thread

* bug#42373: [PATCH] gnu: hedgewars: Install desktop icon.
  2020-07-15 17:13 [bug#42373] [PATCH] gnu: hedgewars: Install desktop icon Timotej Lazar
@ 2020-07-16 23:52 ` Nicolas Goaziou
  0 siblings, 0 replies; 2+ messages in thread
From: Nicolas Goaziou @ 2020-07-16 23:52 UTC (permalink / raw)
  To: Timotej Lazar; +Cc: 42373-done

Hello,

Timotej Lazar <timotej.lazar@araneo.si> writes:

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

Applied. Thank you.

Regards,
-- 
Nicolas Goaziou




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-07-16 23:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-15 17:13 [bug#42373] [PATCH] gnu: hedgewars: Install desktop icon Timotej Lazar
2020-07-16 23:52 ` bug#42373: " Nicolas Goaziou

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).