File appdata.patch of Package solarus

From 6c709ed75cec52e5de4aa2851fb975f0e89e57d0 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Matthias=20Mail=C3=A4nder?=
Date: Sat, 18 Feb 2017 09:37:25 +0100
Subject: [PATCH] Add and install an appdata.xml file.

---
 gui/CMakeLists.txt                |  6 ++++++
 gui/resources/solarus.appdata.xml | 20 ++++++++++++++++++++
 2 files changed, 26 insertions(+)
 create mode 100644 gui/resources/solarus.appdata.xml

diff --git a/gui/CMakeLists.txt b/gui/CMakeLists.txt
index 092bf35..7c1eb12 100644
--- a/gui/CMakeLists.txt
+++ b/gui/CMakeLists.txt
@@ -185,6 +185,12 @@ if(UNIX AND NOT APPLE)
     DESTINATION ${CMAKE_INSTALL_PREFIX}/share/applications)
 endif(UNIX AND NOT APPLE)
 
+# AppStream compatible software gallery metadata
+if(UNIX AND NOT APPLE)
+  install (FILES ${CMAKE_CURRENT_SOURCE_DIR}/../gui/resources/solarus.appdata.xml
+    DESTINATION ${CMAKE_INSTALL_PREFIX}/share/appdata)
+endif(UNIX AND NOT APPLE)
+
 # Linux Manpage
 if(UNIX AND NOT APPLE)
   install (FILES ${CMAKE_CURRENT_SOURCE_DIR}/../solarus.6
diff --git a/gui/resources/solarus.appdata.xml b/gui/resources/solarus.appdata.xml
new file mode 100644
index 0000000..9c95908
--- /dev/null
+++ b/gui/resources/solarus.appdata.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<component type="desktop">
+  <id>solarus.desktop</id>
+  <metadata_license>CC0-1.0</metadata_license>
+  <project_license>GPL-3.0</project_license>
+  <name>Solarus</name>
+  <summary>ARPG 2D game engine</summary>
+  <description>
+    <p>
+      Solarus is an open-source Zelda-like 2D game engine.
+    </p>
+  </description>
+  <screenshots>
+    <screenshot type="default">
+      <image>http://www.solarus-games.org/wp-content/uploads/2016/07/solarus-launcher.png</image>
+    </screenshot>
+  </screenshots>
+  <url type="homepage">http://www.solarus-games.org/</url>
+  <update_contact>christopho@solarus-games.org</update_contact>
+</component>
openSUSE Build Service is sponsored by