Package: limesuite / 18.06.0+dfsg-1

fix-icon-install Patch series | download
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
Description: Install icon and desktop files directly to correct locations
 Upstream installs icon and desktop files to a central location and has
 a script move them to the correct locations at postinst time. This
 patch changes it to place it directly in their final locations.
Author: Andreas Bombe <aeb@debian.org>
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/Desktop/CMakeLists.txt
+++ b/Desktop/CMakeLists.txt
@@ -4,33 +4,21 @@
 if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
     set(LINUX TRUE)
 endif()
+set(ANY_ARCH TRUE)
 
 include(FeatureSummary)
 include(CMakeDependentOption)
-cmake_dependent_option(ENABLE_DESKTOP "Enable LimeSuite launcher and icons" ON "ENABLE_GUI;LINUX" OFF)
+cmake_dependent_option(ENABLE_DESKTOP "Enable LimeSuite launcher and icons" ON "ANY_ARCH" OFF)
 add_feature_info(LimeSuiteDesktop ENABLE_DESKTOP "LimeSuite freedesktop integration")
 if (NOT ENABLE_DESKTOP)
     return()
 endif()
 
-########################################################################
-# menu launcher and MIME type
-########################################################################
-file(GLOB lime_suite_png_icons ${CMAKE_CURRENT_SOURCE_DIR}/lime-suite-*.png)
+install(FILES lime-suite-16.png  DESTINATION share/icons/hicolor/16x16/apps   RENAME lime-suite.png)
+install(FILES lime-suite-22.png  DESTINATION share/icons/hicolor/22x22/apps   RENAME lime-suite.png)
+install(FILES lime-suite-32.png  DESTINATION share/icons/hicolor/32x32/apps   RENAME lime-suite.png)
+install(FILES lime-suite-48.png  DESTINATION share/icons/hicolor/48x48/apps   RENAME lime-suite.png)
+install(FILES lime-suite-64.png  DESTINATION share/icons/hicolor/64x64/apps   RENAME lime-suite.png)
+install(FILES lime-suite-128.png DESTINATION share/icons/hicolor/128x128/apps RENAME lime-suite.png)
 
-install(
-    FILES
-        lime-suite.desktop
-        ${lime_suite_png_icons}
-    DESTINATION share/Lime/Desktop
-)
-
-########################################################################
-# install/uninstall scripts
-########################################################################
-install(
-    PROGRAMS
-        install
-        uninstall
-    DESTINATION share/Lime/Desktop
-)
+install(FILES lime-suite.desktop DESTINATION share/applications)