File desktop-and-appdata.patch of Package 0verkill

diff --git a/0verkill.appdata.xml b/0verkill.appdata.xml
new file mode 100644
index 0000000..8c106e8
--- /dev/null
+++ b/0verkill.appdata.xml
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright 2016 Ferdinand Thiessen <rpm@fthiessen.de> -->
+<component type="desktop">
+ <id>0verkill.desktop</id>
+ <metadata_license>CC0-1.0</metadata_license>
+ <project_license>GPL-2.0+</project_license>
+ <name>0verkill</name>
+ <summary>Bloody hell in ASCII art</summary>
+ <description>
+  <p>
+   2D ASCII art deathmatch jump'n'kill'n'smile_insane.
+  </p>
+  <p>
+   You were born to DIE - you will enjoy your death!
+   Your eyes gonna BULGE with horror...
+   IT is the game you always wanted to die playing !!!
+   This game will be your worst NIGHTMARE you ever had!
+   Power Statistics is a program used to view historical and current battery
+   information and will show programs running on your computer using power.
+  </p>
+ </description>
+ <screenshots>
+  <screenshot type="default">
+   <image>https://artax.karlin.mff.cuni.cz/~brain/0verkill/images/grab1.png</image>
+  </screenshot>
+  <screenshot>
+   <image>https://artax.karlin.mff.cuni.cz/~brain/0verkill/images/grab6.png</image>
+  </screenshot>
+  <screenshot>
+    <image>https://artax.karlin.mff.cuni.cz/~brain/0verkill/images/grab11.png</image>
+  </screenshot>
+ </screenshots>
+ <url type="homepage">https://github.com/hackndev/0verkill</url>
+</component>
diff --git a/0verkill.desktop b/0verkill.desktop
new file mode 100644
index 0000000..8799504
--- /dev/null
+++ b/0verkill.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Name=0verkill
+GenericName=0verkill
+Comment=Bloody hell in ASCII art
+Icon=0verkill
+Exec=x0verkill
+Terminal=false
+Type=Application
+Categories=Game;ActionGame;
diff --git a/Makefile.in b/Makefile.in
index 8b88162..9637055 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -47,7 +47,12 @@ install: all
 	$(INSTALL) -d -m 755 "$(DESTDIR)$(BASEDIR)"/grx
 	$(INSTALL) -m 644 data/* "$(DESTDIR)$(BASEDIR)"/data
 	$(INSTALL) -m 644 grx/* "$(DESTDIR)$(BASEDIR)"/grx
-
+	$(INSTALL) -d -m 755 "$(DESTDIR)$(datadir)/appdata"
+	$(INSTALL) -m 644 *.appdata.xml "$(DESTDIR)$(datadir)/appdata"
+	$(INSTALL) -d -m 755 "$(DESTDIR)$(datadir)/pixmaps"
+	$(INSTALL) -m 644 0verkill.png "$(DESTDIR)$(datadir)/pixmaps/0verkill.png"
+	$(INSTALL) -d -m 755 "$(DESTDIR)$(datadir)/applications"
+	$(INSTALL) -m 644 *.desktop "$(DESTDIR)$(datadir)/applications"
 
 clean:
 	rm -f *.o server 0verkill editor test_server x0verkill xeditor avi xavi bot core
diff --git a/purge b/purge
index 2a5dda2..fc372d5 100755
--- a/purge
+++ b/purge
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 rm -f config.status config.cache config.log config.h Makefile
 rm -f *.o
 rm -f 0verkill avi editor server test_server x0verkill xeditor bot xavi
diff --git a/rebuild b/rebuild
index 20b0a7b..c0a2c84 100755
--- a/rebuild
+++ b/rebuild
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 ./purge
 aclocal
 autoheader
openSUSE Build Service is sponsored by