File desktop.patch of Package crawl

From a870232c936c5a813ebef44758127b20ee07933e Mon Sep 17 00:00:00 2001
Message-Id: <a870232c936c5a813ebef44758127b20ee07933e.1487494889.git.matthias@mailaender.name>
From: =?UTF-8?q?Matthias=20Mail=C3=A4nder?= <matthias@mailaender.name>
Date: Sat, 18 Feb 2017 13:07:36 +0100
Subject: [PATCH 1/3] Add a FreeDesktop compliant start menu launcher

---
 crawl-ref/source/Makefile            | 4 ++++
 crawl-ref/source/linux/crawl.desktop | 9 +++++++++
 2 files changed, 13 insertions(+)

Index: stone_soup-0.32.1/source/Makefile
===================================================================
--- stone_soup-0.32.1.orig/source/Makefile
+++ stone_soup-0.32.1/source/Makefile
@@ -1583,6 +1583,8 @@ endif
 	$(COPY) ../docs/license/*.txt $(datadir_fp)/docs/license/
 	$(COPY) ../CREDITS.txt $(datadir_fp)/docs/
 	$(COPY_R) ../settings/* $(datadir_fp)/settings/
+	[ -d $(prefix_fp)/share/applications ] || mkdir -p $(prefix_fp)/share/applications
+	$(COPY) linux/crawl.desktop $(prefix_fp)/share/applications
 ifeq ($(GAME),crawl.exe)
 	$(SED) -i 's/$$/\r/' `find $(datadir_fp) -iname '*.txt' -or -iname '*.des'`
 endif
Index: stone_soup-0.32.1/source/linux/crawl.desktop
===================================================================
--- /dev/null
+++ stone_soup-0.32.1/source/linux/crawl.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Name=Dungeon Crawl Stone Soup
+GenericName=Roguelike dungeon exploration game
+Comment=A fun game in the grand tradition of games like Rogue, Hack, and Moria
+Type=Application
+Icon=crawl
+Exec=crawl-sdl
+Terminal=false
+Categories=Game;RolePlaying;
openSUSE Build Service is sponsored by