# HG changeset patch # User koda # Date 1390558299 -3600 # Node ID c4ad9c76b5426996ad86b46f51bc3a6cca066d51 # Parent cbe06dc073322b0159c9bb45271f54cdc04e6423 add AppData file close #706 diff -r cbe06dc07332 -r c4ad9c76b542 cmake_modules/paths.cmake --- 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() diff -r cbe06dc07332 -r c4ad9c76b542 share/CMakeLists.txt --- 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() diff -r cbe06dc07332 -r c4ad9c76b542 share/hedgewars.appdata.xml --- /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 @@ + + + hedgewars.desktop + GFDL + +

+ 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. +

+

+ As commander, it's your job to assemble your crack team of hedgehog soldiers and bring the war to your enemy. +

+

Game Features:

+ +
+ + http://www.hedgewars.org/files/9rzprpb.png + + http://hedgewars.org/ + hedgewars-dev@gna.org +