aboutsummaryrefslogtreecommitdiff
path: root/multimedia/k9copy-reloaded/patches/k9copy-installdirs.patch
blob: ec923d1706ac91b834578ea584f0dccdaf1ef81b (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
diff -Naur k9copy.orig/CMakeLists.txt k9copy/CMakeLists.txt
--- k9copy.orig/CMakeLists.txt  2014-10-16 07:58:20.000000000 -0400
+++ k9copy/CMakeLists.txt   2020-12-24 10:48:11.088907284 -0500
@@ -1,3 +1,4 @@
+cmake_minimum_required(VERSION 3.1)
 project(k9copy)
 set (VERSION 3.0.3)
 
@@ -38,7 +38,7 @@ find_package(Qt5DBus REQUIRED)
 find_package(Qt5Gui REQUIRED)
 find_package(Qt5Widgets REQUIRED)
 
-find_package(KF5 COMPONENTS REQUIRED I18n Config Su CoreAddons WidgetsAddons DocTools XmlGui Solid KIO IconThemes)
+find_package(KF5 COMPONENTS REQUIRED Auth I18n Config Su CoreAddons WidgetsAddons DocTools XmlGui Solid KIO IconThemes)
 
 else()
 SET(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake")
@@ -568,7 +569,11 @@
 
 install( FILES k9copy.desktop k9copy_assistant.desktop DESTINATION  ${XDG_APPS_INSTALL_DIR} )
 #install( FILES k9copy.kcfg  DESTINATION  ${KCFG_INSTALL_DIR} )
+if(QT5_BUILD)
+install( FILES k9copyui.rc  DESTINATION  ${KXMLGUI_INSTALL_DIR}/k9copy )
+else()
 install( FILES k9copyui.rc  DESTINATION  ${DATA_INSTALL_DIR}/k9copy )
+endif()
 
 install(FILES k9copy_open.desktop DESTINATION ${DATA_INSTALL_DIR}/solid/actions)
 install(FILES k9copy_assistant_open.desktop DESTINATION ${DATA_INSTALL_DIR}/solid/actions)