File appdata-and-desktop.patch of Package 2h4u

diff -Nur 2H4U/2H4U.appdata.xml new/2H4U.appdata.xml
--- 2H4U/2H4U.appdata.xml	1970-01-01 01:00:00.000000000 +0100
+++ new/2H4U.appdata.xml	2016-08-30 23:43:45.521170848 +0200
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright 2016 Ferdinand Thiessen <rpm@fthiessen.de> -->
+<component type="desktop">
+    <id>2H4U.desktop</id>
+    <metadata_license>CC0-1.0</metadata_license>
+    <project_license>GPL-2.0</project_license>
+    <name>Too Hard For You</name>
+    <summary>A mix between a Tetris-like game and a wall breaker</summary>
+    <description>
+        <p>
+            2H4U, which stands for Too Hard For You, is an open source game, and a mix between
+            a Tetris-like game and a wall breaker.
+        </p>
+        <p>
+            It requires good reflexes, coordination,
+            and ambidexters should have some advantages.
+            Will 2H4U be too hard for you?
+        </p>
+    </description>
+    <screenshots>
+        <screenshot type="default">
+            <image>https://sourceforge.net/p/toohardforyou/screenshot/82462.jpg</image>
+            <caption>Game Over: bricks reaching the top</caption>
+        </screenshot>
+        <screenshot>
+            <image>https://sourceforge.net/p/toohardforyou/screenshot/82468.jpg</image>
+            <caption>In Game</caption>
+        </screenshot>
+        <screenshot>
+            <image>https://sourceforge.net/p/toohardforyou/screenshot/82458.jpg</image>
+            <caption>The game menu</caption>
+        </screenshot>
+    </screenshots>
+    <url type="homepage">https://sourceforge.net/projects/toohardforyou/</url>
+</component>
diff -Nur 2H4U/2H4U.desktop new/2H4U.desktop
--- 2H4U/2H4U.desktop	1970-01-01 01:00:00.000000000 +0100
+++ new/2H4U.desktop	2016-08-30 22:30:08.467410576 +0200
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Type=Application
+Name=2H4U
+GenericName=Tetris-like game
+Comment=A mix between a Tetris-like game and a wall breaker
+Exec=2H4U
+Icon=2H4U
+Categories=Game;BlocksGame;
+Terminal=false
diff -Nur 2H4U/scripts/Makefile new/scripts/Makefile
--- 2H4U/scripts/Makefile	2016-08-30 22:32:40.188438773 +0200
+++ new/scripts/Makefile	2016-08-30 22:32:25.824341411 +0200
@@ -36,6 +36,9 @@
 	install -D -m 0755 $(TARGET) $(DESTDIR)$(BINDIR)/2H4U
 	install -d -m 0755 $(DESTDIR)$(DATADIR)
 	cp -R ../data/* $(DESTDIR)$(DATADIR)
+	install -D -m 0644 ../2H4U.desktop $(DESTDIR)$(PREFIX)/share/applications/2H4U.desktop
+	install -D -m 0644 ../data/images/icone.png $(DESTDIR)$(PREFIX)/share/pixmaps/2H4U.png
+	install -D -m 0644 ../2H4U.appdata.xml $(DESTDIR)$(PREFIX)/share/appdata/2H4U.appdata.xml
 
 clean:
 	rm -rf $(OBJECTS)
openSUSE Build Service is sponsored by