summaryrefslogtreecommitdiff
path: root/net-misc/megasync/files/megasync-qmake.diff
blob: 357454d70fbc73cf0c68e1ea55191b019ab9405d (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
--- a/src/MEGAShellExtNautilus/MEGAShellExtNautilus.pro
+++ b/src/MEGAShellExtNautilus/MEGAShellExtNautilus.pro
@@ -1,6 +1,7 @@
 QT       -= core gui
 
-TARGET = MEGAShellExtNautilus
+TARGET = libMEGAShellExtNautilus
+CONFIG += plugin no_plugin_name_prefix
 TEMPLATE = lib
 
 SOURCES += mega_ext_module.c \
@@ -41,5 +42,4 @@ INSTALLS += emblems32  emblems64
 !contains(DEFINES, no_desktop) {
     update_cache.commands = gtk-update-icon-cache -f -t $${HICOLOR} || true
     update_cache.path = $$PWD
-    INSTALLS += update_cache
 }
--- a/src/MEGASync/platform/platform.pri
+++ b/src/MEGASync/platform/platform.pri
@@ -34,7 +34,8 @@ unix:!macx {
     system(command -v lsb_release): version.commands = lsb_release -rs > $$version.target
 	version.files = $$version.target
 
-	INSTALLS += distro version
+	target.path = $$PREFIX/bin
+	INSTALLS += target
 
     QT += dbus
     SOURCES += $$PWD/linux/LinuxPlatform.cpp \
@@ -62,7 +62,6 @@ unix:!macx {
         # desktop
         desktop.path = $$DESKTOP_DESTDIR/share/applications
         desktop.files = $$PWD/linux/data/megasync.desktop
-        desktop.commands = update-desktop-database &> /dev/null || true
         INSTALLS += desktop
 
         HICOLOR = $$DESKTOP_DESTDIR/share/icons/hicolor
--- a/src/MEGA.pro
+++ b/src/MEGA.pro
@@ -17,8 +17,9 @@ win32 {
 unix:!macx {
     CONFIG(with_ext) {
         SUBDIRS += MEGAShellExtNautilus
+    }
+    CONFIG(with_thu) {
         SUBDIRS += MEGAShellExtThunar
-        SUBDIRS += MEGAShellExtDolphin
     }
 }