install.patch 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. From be770ecd2fb902d0e7080663890d9f01ca3bb84b Mon Sep 17 00:00:00 2001
  2. From: orbea <orbea@riseup.net>
  3. Date: Mon, 19 Aug 2019 15:03:52 -0700
  4. Subject: [PATCH 1/2] Add a desktop file.
  5. ---
  6. CMakeLists.txt | 5 +++++
  7. zelda-xd2-mercuris-chess.desktop | 9 +++++++++
  8. 2 files changed, 14 insertions(+)
  9. create mode 100644 zelda-xd2-mercuris-chess.desktop
  10. diff --git a/CMakeLists.txt b/CMakeLists.txt
  11. index 890919b..74b50fc 100644
  12. --- a/CMakeLists.txt
  13. +++ b/CMakeLists.txt
  14. @@ -76,3 +76,8 @@ install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/${quest_name}
  15. DESTINATION ${SOLARUS_INSTALL_BINDIR}
  16. )
  17. +# FreeDesktop compatible start menu launcher
  18. +if(UNIX AND NOT APPLE)
  19. + install (FILES ${CMAKE_CURRENT_SOURCE_DIR}/zelda-xd2-mercuris-chess.desktop
  20. + DESTINATION ${CMAKE_INSTALL_PREFIX}/share/applications)
  21. +endif(UNIX AND NOT APPLE)
  22. diff --git a/zelda-xd2-mercuris-chess.desktop b/zelda-xd2-mercuris-chess.desktop
  23. new file mode 100644
  24. index 0000000..0a8d339
  25. --- /dev/null
  26. +++ b/zelda-xd2-mercuris-chess.desktop
  27. @@ -0,0 +1,9 @@
  28. +[Desktop Entry]
  29. +Name=Zelda XD2: Mercuris Chess
  30. +GenericName=Zelda fangame for the Solarus engine
  31. +Comment=Zelda XD2: Mercuris Ches (Parodic Zelda game)
  32. +Exec=zelda_xd2_mercuris_chess
  33. +Terminal=false
  34. +Type=Application
  35. +Icon=zelda_xd2_mercuris_chess
  36. +Categories=Game;AdventureGame;
  37. --
  38. 2.22.0
  39. From 0912e4d1c0f235fcc6470bd163bd3e5144377d49 Mon Sep 17 00:00:00 2001
  40. From: orbea <orbea@riseup.net>
  41. Date: Mon, 19 Aug 2019 15:12:41 -0700
  42. Subject: [PATCH 2/2] Install icons.
  43. ---
  44. CMakeLists.txt | 30 ++++++++++++++++++++++++++++++
  45. 1 file changed, 30 insertions(+)
  46. diff --git a/CMakeLists.txt b/CMakeLists.txt
  47. index 74b50fc..297205d 100644
  48. --- a/CMakeLists.txt
  49. +++ b/CMakeLists.txt
  50. @@ -76,6 +76,36 @@ install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/${quest_name}
  51. DESTINATION ${SOLARUS_INSTALL_BINDIR}
  52. )
  53. +# FreeDesktop compatible icons
  54. +if(UNIX AND NOT APPLE)
  55. + install (FILES ${CMAKE_CURRENT_SOURCE_DIR}/data/logos/icon_16.png
  56. + DESTINATION ${CMAKE_INSTALL_PREFIX}/share/icons/hicolor/16x16/apps RENAME zelda-xd2-mercuris-chess.png)
  57. + install (FILES ${CMAKE_CURRENT_SOURCE_DIR}/data/logos/icon_20.png
  58. + DESTINATION ${CMAKE_INSTALL_PREFIX}/share/icons/hicolor/20x20/apps RENAME zelda-xd2-mercuris-chess.png)
  59. + install (FILES ${CMAKE_CURRENT_SOURCE_DIR}/data/logos/icon_22.png
  60. + DESTINATION ${CMAKE_INSTALL_PREFIX}/share/icons/hicolor/22x22/apps RENAME zelda-xd2-mercuris-chess.png)
  61. + install (FILES ${CMAKE_CURRENT_SOURCE_DIR}/data/logos/icon_32.png
  62. + DESTINATION ${CMAKE_INSTALL_PREFIX}/share/icons/hicolor/32x32/apps RENAME zelda-xd2-mercuris-chess.png)
  63. + install (FILES ${CMAKE_CURRENT_SOURCE_DIR}/data/logos/icon_40.png
  64. + DESTINATION ${CMAKE_INSTALL_PREFIX}/share/icons/hicolor/40x40/apps RENAME zelda-xd2-mercuris-chess.png)
  65. + install (FILES ${CMAKE_CURRENT_SOURCE_DIR}/data/logos/icon_48.png
  66. + DESTINATION ${CMAKE_INSTALL_PREFIX}/share/icons/hicolor/48x48/apps RENAME zelda-xd2-mercuris-chess.png)
  67. + install (FILES ${CMAKE_CURRENT_SOURCE_DIR}/data/logos/icon_64.png
  68. + DESTINATION ${CMAKE_INSTALL_PREFIX}/share/icons/hicolor/64x64/apps RENAME zelda-xd2-mercuris-chess.png)
  69. + install (FILES ${CMAKE_CURRENT_SOURCE_DIR}/data/logos/icon_96.png
  70. + DESTINATION ${CMAKE_INSTALL_PREFIX}/share/icons/hicolor/96x96/apps RENAME zelda-xd2-mercuris-chess.png)
  71. + install (FILES ${CMAKE_CURRENT_SOURCE_DIR}/data/logos/icon_128.png
  72. + DESTINATION ${CMAKE_INSTALL_PREFIX}/share/icons/hicolor/128x128/apps RENAME zelda-xd2-mercuris-chess.png)
  73. + install (FILES ${CMAKE_CURRENT_SOURCE_DIR}/data/logos/icon_256.png
  74. + DESTINATION ${CMAKE_INSTALL_PREFIX}/share/icons/hicolor/256x256/apps RENAME zelda-xd2-mercuris-chess.png)
  75. + install (FILES ${CMAKE_CURRENT_SOURCE_DIR}/data/logos/icon_512.png
  76. + DESTINATION ${CMAKE_INSTALL_PREFIX}/share/icons/hicolor/512x512/apps RENAME zelda-xd2-mercuris-chess.png)
  77. + install (FILES ${CMAKE_CURRENT_SOURCE_DIR}/data/logos/icon_1024.png
  78. + DESTINATION ${CMAKE_INSTALL_PREFIX}/share/icons/hicolor/1024x1024/apps RENAME zelda-xd2-mercuris-chess.png)
  79. + install (FILES ${CMAKE_CURRENT_SOURCE_DIR}/data/logos/logo_2x.png
  80. + DESTINATION ${CMAKE_INSTALL_PREFIX}/share/pixmaps RENAME zelda-xd2-mercuris-chess.png)
  81. +endif(UNIX AND NOT APPLE)
  82. +
  83. # FreeDesktop compatible start menu launcher
  84. if(UNIX AND NOT APPLE)
  85. install (FILES ${CMAKE_CURRENT_SOURCE_DIR}/zelda-xd2-mercuris-chess.desktop
  86. --
  87. 2.22.0