summaryrefslogtreecommitdiff
path: root/games/zelda-xd2-mercuris-chess/install.patch
blob: 9ddf925897e0b5e15c882a90b762d3bff6322d8b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
From be770ecd2fb902d0e7080663890d9f01ca3bb84b Mon Sep 17 00:00:00 2001
From: orbea <orbea@riseup.net>
Date: Mon, 19 Aug 2019 15:03:52 -0700
Subject: [PATCH 1/2] Add a desktop file.

---
 CMakeLists.txt                   | 5 +++++
 zelda-xd2-mercuris-chess.desktop | 9 +++++++++
 2 files changed, 14 insertions(+)
 create mode 100644 zelda-xd2-mercuris-chess.desktop

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 890919b..74b50fc 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -76,3 +76,8 @@ install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/${quest_name}
   DESTINATION ${SOLARUS_INSTALL_BINDIR}
 )
 
+# FreeDesktop compatible start menu launcher
+if(UNIX AND NOT APPLE)
+  install (FILES ${CMAKE_CURRENT_SOURCE_DIR}/zelda-xd2-mercuris-chess.desktop
+    DESTINATION ${CMAKE_INSTALL_PREFIX}/share/applications)
+endif(UNIX AND NOT APPLE)
diff --git a/zelda-xd2-mercuris-chess.desktop b/zelda-xd2-mercuris-chess.desktop
new file mode 100644
index 0000000..0a8d339
--- /dev/null
+++ b/zelda-xd2-mercuris-chess.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Name=Zelda XD2: Mercuris Chess
+GenericName=Zelda fangame for the Solarus engine
+Comment=Zelda XD2: Mercuris Ches (Parodic Zelda game)
+Exec=zelda_xd2_mercuris_chess
+Terminal=false
+Type=Application
+Icon=zelda_xd2_mercuris_chess
+Categories=Game;AdventureGame;
-- 
2.22.0

From 0912e4d1c0f235fcc6470bd163bd3e5144377d49 Mon Sep 17 00:00:00 2001
From: orbea <orbea@riseup.net>
Date: Mon, 19 Aug 2019 15:12:41 -0700
Subject: [PATCH 2/2] Install icons.

---
 CMakeLists.txt | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 74b50fc..297205d 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -76,6 +76,36 @@ install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/${quest_name}
   DESTINATION ${SOLARUS_INSTALL_BINDIR}
 )
 
+# FreeDesktop compatible icons
+if(UNIX AND NOT APPLE)
+  install (FILES ${CMAKE_CURRENT_SOURCE_DIR}/data/logos/icon_16.png
+    DESTINATION ${CMAKE_INSTALL_PREFIX}/share/icons/hicolor/16x16/apps RENAME zelda-xd2-mercuris-chess.png)
+  install (FILES ${CMAKE_CURRENT_SOURCE_DIR}/data/logos/icon_20.png
+    DESTINATION ${CMAKE_INSTALL_PREFIX}/share/icons/hicolor/20x20/apps RENAME zelda-xd2-mercuris-chess.png)
+  install (FILES ${CMAKE_CURRENT_SOURCE_DIR}/data/logos/icon_22.png
+    DESTINATION ${CMAKE_INSTALL_PREFIX}/share/icons/hicolor/22x22/apps RENAME zelda-xd2-mercuris-chess.png)
+  install (FILES ${CMAKE_CURRENT_SOURCE_DIR}/data/logos/icon_32.png
+    DESTINATION ${CMAKE_INSTALL_PREFIX}/share/icons/hicolor/32x32/apps RENAME zelda-xd2-mercuris-chess.png)
+  install (FILES ${CMAKE_CURRENT_SOURCE_DIR}/data/logos/icon_40.png
+    DESTINATION ${CMAKE_INSTALL_PREFIX}/share/icons/hicolor/40x40/apps RENAME zelda-xd2-mercuris-chess.png)
+  install (FILES ${CMAKE_CURRENT_SOURCE_DIR}/data/logos/icon_48.png
+    DESTINATION ${CMAKE_INSTALL_PREFIX}/share/icons/hicolor/48x48/apps RENAME zelda-xd2-mercuris-chess.png)
+  install (FILES ${CMAKE_CURRENT_SOURCE_DIR}/data/logos/icon_64.png
+    DESTINATION ${CMAKE_INSTALL_PREFIX}/share/icons/hicolor/64x64/apps RENAME zelda-xd2-mercuris-chess.png)
+  install (FILES ${CMAKE_CURRENT_SOURCE_DIR}/data/logos/icon_96.png
+    DESTINATION ${CMAKE_INSTALL_PREFIX}/share/icons/hicolor/96x96/apps RENAME zelda-xd2-mercuris-chess.png)
+  install (FILES ${CMAKE_CURRENT_SOURCE_DIR}/data/logos/icon_128.png
+    DESTINATION ${CMAKE_INSTALL_PREFIX}/share/icons/hicolor/128x128/apps RENAME zelda-xd2-mercuris-chess.png)
+  install (FILES ${CMAKE_CURRENT_SOURCE_DIR}/data/logos/icon_256.png
+    DESTINATION ${CMAKE_INSTALL_PREFIX}/share/icons/hicolor/256x256/apps RENAME zelda-xd2-mercuris-chess.png)
+  install (FILES ${CMAKE_CURRENT_SOURCE_DIR}/data/logos/icon_512.png
+    DESTINATION ${CMAKE_INSTALL_PREFIX}/share/icons/hicolor/512x512/apps RENAME zelda-xd2-mercuris-chess.png)
+  install (FILES ${CMAKE_CURRENT_SOURCE_DIR}/data/logos/icon_1024.png
+    DESTINATION ${CMAKE_INSTALL_PREFIX}/share/icons/hicolor/1024x1024/apps RENAME zelda-xd2-mercuris-chess.png)
+  install (FILES ${CMAKE_CURRENT_SOURCE_DIR}/data/logos/logo_2x.png
+    DESTINATION ${CMAKE_INSTALL_PREFIX}/share/pixmaps RENAME zelda-xd2-mercuris-chess.png)
+endif(UNIX AND NOT APPLE)
+
 # FreeDesktop compatible start menu launcher
 if(UNIX AND NOT APPLE)
   install (FILES ${CMAKE_CURRENT_SOURCE_DIR}/zelda-xd2-mercuris-chess.desktop
-- 
2.22.0