about summary refs log tree commit diff
path: root/nixpkgs/pkgs/applications/video/vokoscreen-ng/linux-support-installation-target.patch
blob: 4f1b63c342d8568e0373266b1951841457164a82 (plain) (blame)
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
Seulement dans b: patch.patch
Seulement dans b: ..rej
diff --color -ur a/src/vokoscreenNG.pro b/src/vokoscreenNG.pro
--- a/src/vokoscreenNG.pro	2021-02-03 15:00:57.377401016 +0100
+++ b/src/vokoscreenNG.pro	2021-02-03 15:09:18.141905863 +0100
@@ -160,7 +160,32 @@
 # systrayAlternative
 include(systrayAlternative/systrayAlternative.pri)
 
+unix:!macx {
+  isEmpty(PREFIX) {
+    PREFIX = /usr/local
+  }
+  isEmpty(BINDIR) {
+    BINDIR = $$PREFIX/bin
+  }
+  isEmpty(DATADIR) {
+    DATADIR = $$PREFIX/share
+  }
+
+  target.path = $$BINDIR
+
+  icon.files = applications/vokoscreenNG.png
+  icon.path = $$DATADIR/icons/hicolor/256x256/apps/
+
+  desktop.files = applications/vokoscreenNG.desktop
+  desktop.path = $$DATADIR/applications/
+
+  appdata.files = applications/vokoscreenNG.appdata.xml
+  appdata.path = $$DATADIR/metainfo/
+
+  INSTALLS += target icon desktop appdata
+}
 # ciscoOpenh264
 win32:include(ciscoOpenh264/ciscoOpenh264.pri)
 
-unix:include(wayland/wayland.pri)
\ Pas de fin de ligne à la fin du fichier
+unix:include(wayland/wayland.pri)
+