File appdata.patch of Package openclonk
From a14dc22f024a5a1c439e109e63dd2ea369ecd212 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Matthias=20Mail=C3=A4nder?=
Date: Sat, 27 Aug 2016 12:27:00 +0200
Subject: [PATCH] Add a Linux AppData file.
diff -Nur openclonk-7.0-src/CMakeLists.txt oc/CMakeLists.txt
--- openclonk-7.0-src/CMakeLists.txt 2016-01-15 21:56:57.000000000 +0100
+++ oc/CMakeLists.txt 2016-08-28 11:12:19.530163468 +0200
@@ -1474,6 +1474,9 @@
# Update the MIME cache -- this makes the clonk:// protocol handler actually work
install(CODE "execute_process(COMMAND update-desktop-database)")
+ # Install software center metadata
+ install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/openclonk.appdata.xml DESTINATION share/appdata)
+
# Install binaries
install(TARGETS openclonk DESTINATION games)
install(TARGETS c4group DESTINATION bin)
diff -Nur openclonk-7.0-src/openclonk.appdata.xml oc/openclonk.appdata.xml
--- openclonk-7.0-src/openclonk.appdata.xml 1970-01-01 01:00:00.000000000 +0100
+++ oc/openclonk.appdata.xml 2016-08-28 11:09:53.448999065 +0200
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<component type="desktop">
+ <id>openclonk.desktop</id>
+ <metadata_license>CC0-1.0</metadata_license>
+ <project_license>ISC and CC-BY-3.0</project_license>
+ <name>OpenClonk</name>
+ <summary>Multiplayer action game where you control small and nimble humanoids</summary>
+ <description>
+ <p>
+ OpenClonk is a free multiplayer action game in which you control clonks, small but witty and nimble humanoid beings. The game is mainly about mining, settling and fast-paced melees.
+ </p>
+ </description>
+ <screenshots>
+ <screenshot>
+ <image>http://wiki.openclonk.org/images/a/a1/Boompack.png</image>
+ <caption>Combat in Thunderous Skies</caption>
+ </screenshot>
+ <screenshot>
+ <image>http://wiki.openclonk.org/images/2/2a/Gemgrabber.png</image>
+ <caption>A base in Gemgrabbers</caption>
+ </screenshot>
+ <screenshot>
+ <image>http://wiki.openclonk.org/images/b/bf/OC-Spiral.png</image>
+ <caption>An underground base settling</caption>
+ </screenshot>
+ </screenshots>
+ <url type="homepage">http://www.openclonk.org/</url>
+</component>