--- a/cmake_modules/paths.cmake Fri Jan 24 10:56:22 2014 +0100
+++ b/cmake_modules/paths.cmake Fri Jan 24 11:11:39 2014 +0100
@@ -18,10 +18,10 @@
set(target_library_install_dir "lib" CACHE PATH "install dest for libs")
string(SUBSTRING "${DATA_INSTALL_DIR}" 0 1 sharepath_start)
- if (NOT (${sharepath_start} MATCHES "/"))
+ if(${sharepath_start} MATCHES "/")
+ set(HEDGEWARS_DATADIR "${DATA_INSTALL_DIR}/")
+ else()
set(HEDGEWARS_DATADIR "${CMAKE_INSTALL_PREFIX}/${DATA_INSTALL_DIR}/")
- else()
- set(HEDGEWARS_DATADIR "${DATA_INSTALL_DIR}/")
endif()
set(HEDGEWARS_FULL_DATADIR "${HEDGEWARS_DATADIR}")
else()
--- a/share/CMakeLists.txt Fri Jan 24 10:56:22 2014 +0100
+++ b/share/CMakeLists.txt Fri Jan 24 11:11:39 2014 +0100
@@ -23,4 +23,7 @@
DESTINATION ../Resources/)
install(PROGRAMS "${CMAKE_CURRENT_SOURCE_DIR}/dsa_pub.pem"
DESTINATION ../Resources/)
-endif(APPLE)
+elseif(UNIX)
+ install(PROGRAMS "${CMAKE_CURRENT_SOURCE_DIR}/hedgewars.appdata.xml"
+ DESTINATION ${CMAKE_INSTALL_PREFIX}/share/appdata/)
+endif()
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/share/hedgewars.appdata.xml Fri Jan 24 11:11:39 2014 +0100
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<application>
+ <id type="desktop">hedgewars.desktop</id>
+ <licence>GFDL</licence>
+ <description>
+ <p>
+ Hedgewars is a turn based strategy, artillery, action and comedy game, featuring the antics of pink hedgehogs with attitude as they battle from the depths of hell to the depths of space.
+ </p>
+ <p>
+ As commander, it's your job to assemble your crack team of hedgehog soldiers and bring the war to your enemy.
+ </p>
+ <p>Game Features:</p>
+ <ul>
+ <li>Hilarious and strategic turn based combat for up to 8 players</li>
+ <li>Both local and network multiplayer, with optional AI opponentsBattle on an infinite number of randomly generated maps, with over 22 environments</li>
+ <li>Utilise 47 (and counting) devastating weapons!</li>
+ <li>Including the piano strike and explosive robotic cake</li>
+ <li>Play the game your way, with 18 different game modifiers, tweak almost every aspect of the match</li>
+ <li>Customize your team, with over 120 costumes, 30 graves, 12 forts, 100s of flags and unique voice packs</li>
+ <li>Huge battles with up to 48 hogs</li>
+ <li>Play both singleplayer and multiplayer minigames</li>
+ <li>Plugin your own custom maps, costumes, and other artwork</li>
+ </ul>
+ </description>
+ <screenshots>
+ <screenshot type="default" width="1024" height="600">http://www.hedgewars.org/files/9rzprpb.png</screenshot>
+ </screenshots>
+ <url type="homepage">http://hedgewars.org/</url>
+ <updatecontact>hedgewars-dev@gna.org</updatecontact>
+</application>