summaryrefslogtreecommitdiff
path: root/games-simulation/EmptyEpsilon/files/EmptyEpsilon-Install-EmptyEpsilon.desktop.patch
blob: 4730bcbabb252d74b592c993207d425d8c979250 (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
From c34c773ab5a403c288d7eecd971ae5b0d9eecfa0 Mon Sep 17 00:00:00 2001
From: Florian Schmaus <flo@geekplace.eu>
Date: Thu, 21 Oct 2021 10:33:28 +0200
Subject: [PATCH] Install EmptyEpsilon.desktop

Fixes #405.

See also https://bugs.gentoo.org/818697
---
 CMakeLists.txt       | 5 +++++
 EmptyEpsilon.desktop | 9 +++++++++
 2 files changed, 14 insertions(+)
 create mode 100644 EmptyEpsilon.desktop

diff --git a/CMakeLists.txt b/CMakeLists.txt
index cb3e32c0e6ed..b630668aecd9 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -711,3 +711,8 @@ set(CPACK_INSTALL_CMAKE_PROJECTS
 )
 
 include(CPack)
+
+if(UNIX AND NOT APPLE)
+  install(FILES EmptyEpsilon.desktop DESTINATION "share/applications")
+  install(FILES logo.png DESTINATION "share/icons" RENAME "EmptyEpsilon.png")
+endif()
diff --git a/EmptyEpsilon.desktop b/EmptyEpsilon.desktop
new file mode 100644
index 000000000000..07cc109b578d
--- /dev/null
+++ b/EmptyEpsilon.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Name=EmptyEpsilon
+GenericName=EmptyEpsilon
+Comment=Spaceship bridge simulator game
+Exec=EmptyEpsilon
+Icon=EmptyEpsilon
+Terminal=false
+Type=Application
+Categories=Game;Simulation;
-- 
2.33.1