summaryrefslogtreecommitdiffstats
path: root/multimedia/vokoscreenNG/0001-Add-better-integration-for-Linux.patch
blob: 521793a33fb5b9306183d6b39f0137fefc9d3903 (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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
The original patch was from an ArchLinux package
https://github.com/archlinux/svntogit-community/blob/packages/vokoscreen/trunk/0001-Add-better-integration-for-Linux.patch

I got this one from https://github.com/City-busz/vokoscreenNG branch 'linux-support', and modified it to work with 3.0.8

commit 0a378409 (HEAD -> linux-support, origin/linux-support)
Author: Balló György <ballogyor@gmail.com>
Date:   2020-07-06 07:14:26 -0600

    Add better integration for Linux
    
    Add AppStream metadata, add installation target.

diff --git a/src/applications/INFO b/src/applications/INFO
index 4195de8f..1c1bd870 100644
--- a/src/applications/INFO
+++ b/src/applications/INFO
@@ -1,2 +1,3 @@
+vokoscreenNG.appdata.xml
 vokoscreenNG.desktop
 vokoscreenNG.png
diff --git a/src/applications/vokoscreenNG.appdata.xml b/src/applications/vokoscreenNG.appdata.xml
new file mode 100644
index 00000000..883f4ae2
--- /dev/null
+++ b/src/applications/vokoscreenNG.appdata.xml
@@ -0,0 +1,45 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<component type="desktop">
+  <id>vokoscreenNG.desktop</id>
+  <metadata_license>CC0-1.0</metadata_license>
+  <project_license>GPL-2.0</project_license>
+  <name>vokoscreenNG</name>
+  <summary>Easy to use desktop recorder</summary>
+  <description>
+    <p>vokoscreenNG is an easy to use screencast creator to record educational videos,
+       live recordings of browser, installation, videoconferences, etc.</p>
+  </description>
+  <screenshots>
+    <screenshot type="default">
+      <image>https://vokoscreen.volkoh.de/3.0/picture/screencast-0.png</image>
+    </screenshot>
+    <screenshot>
+      <image>https://vokoscreen.volkoh.de/3.0/picture/screencast-1.png</image>
+    </screenshot>
+    <screenshot>
+      <image>https://vokoscreen.volkoh.de/3.0/picture/screencast-2.png</image>
+    </screenshot>
+    <screenshot>
+      <image>https://vokoscreen.volkoh.de/3.0/picture/screencast-3.png</image>
+    </screenshot>
+    <screenshot>
+      <image>https://vokoscreen.volkoh.de/3.0/picture/screencast-4.png</image>
+    </screenshot>
+    <screenshot>
+      <image>https://vokoscreen.volkoh.de/3.0/picture/screencast-5.png</image>
+    </screenshot>
+    <screenshot>
+      <image>https://vokoscreen.volkoh.de/3.0/picture/screencast-6.png</image>
+    </screenshot>
+    <screenshot>
+      <image>https://vokoscreen.volkoh.de/3.0/picture/screencast-7.png</image>
+    </screenshot>
+    <screenshot>
+      <image>https://vokoscreen.volkoh.de/3.0/picture/screencast-8.png</image>
+    </screenshot>
+  </screenshots>
+  <url type="homepage">https://linuxecke.volkoh.de/vokoscreen/vokoscreen.html</url>
+  <url type="bugtracker">https://github.com/vkohaupt/vokoscreenNG/issues</url>
+  <url type="donation">https://linuxecke.volkoh.de/vokoscreen/vokoscreen-donate.html</url>
+  <developer_name>Volker Kohaupt</developer_name>
+</component>
diff --git a/src/vokoscreenNG.pro b/src/vokoscreenNG.pro
index 69bc5a33..fdf7fd07 100644
--- a/src/vokoscreenNG.pro
+++ b/src/vokoscreenNG.pro
@@ -163,4 +163,29 @@
 # ciscoOpenh264
 win32:include(ciscoOpenh264/ciscoOpenh264.pri)
 
-unix:include(wayland/wayland.pri)
\ No newline at end of file
+unix:include(wayland/wayland.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
+}
Only in vokoscreenNG-3.0.8/src: vokoscreenNG.pro.orig
Only in vokoscreenNG-3.0.8/src: vokoscreenNG.pro.rej