summarylogtreecommitdiffstats
path: root/fix-install.patch
blob: dd56d8dd0537496e179e57a38f75d8a9e76f3fac (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
Index: Synkron.pro
===================================================================
--- Synkron.pro	(revision 198)
+++ Synkron.pro	(revision 199)
@@ -43,6 +43,21 @@
 unix:!macx {
      DEFINES += USE_UNIX_TOUCH_COMMAND
      TARGET = synkron
+     
+     isEmpty(prefix):prefix = /usr/local
+     isEmpty(PREFIX):PREFIX = $$prefix
+     BINDIR = $$PREFIX/bin
+     DATADIR = $$PREFIX/share
+
+     INSTALLS = target \
+                desktop \
+                pixmaps \
+
+     target.path = $$BINDIR
+     desktop.path = $$DATADIR/applications/
+     desktop.files += $${TARGET}.desktop
+     pixmaps.path = $$DATADIR/pixmaps/
+     pixmaps.files += images/Synkron128.png
 }
 macx {
      # Comment the following line to use the NSFileManager class
Index: synkron.desktop
===================================================================
--- synkron.desktop	(revision 0)
+++ synkron.desktop	(revision 199)
@@ -0,0 +1,11 @@
+[Desktop Entry]
+Type=Application
+Icon=Synkron128
+Name=Synkron
+Comment=A folder synchronization tool
+Comment[ru]=Средство для синхронизации папок
+Comment[uk]=Засіб синхронізації тек
+Categories=Utility;
+Exec=synkron
+StartupNotify=false
+Terminal=false