0001-Add-better-integration-for-Linux.patch 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. From 0a3784095ecca582f7eb09551ceb34c309d83637 Mon Sep 17 00:00:00 2001
  2. From: =?UTF-8?q?Ball=C3=B3=20Gy=C3=B6rgy?= <ballogyor@gmail.com>
  3. Date: Mon, 6 Jul 2020 15:14:26 +0200
  4. Subject: [PATCH] Add better integration for Linux
  5. Add AppStream metadata, add installation target.
  6. ---
  7. src/applications/INFO | 1 +
  8. src/applications/vokoscreenNG.appdata.xml | 45 +++++++++++++++++++++++
  9. src/vokoscreenNG.pro | 25 +++++++++++++
  10. 3 files changed, 71 insertions(+)
  11. create mode 100644 src/applications/vokoscreenNG.appdata.xml
  12. diff --git a/src/applications/INFO b/src/applications/INFO
  13. index 4195de8f..1c1bd870 100644
  14. --- a/src/applications/INFO
  15. +++ b/src/applications/INFO
  16. @@ -1,2 +1,3 @@
  17. +vokoscreenNG.appdata.xml
  18. vokoscreenNG.desktop
  19. vokoscreenNG.png
  20. diff --git a/src/applications/vokoscreenNG.appdata.xml b/src/applications/vokoscreenNG.appdata.xml
  21. new file mode 100644
  22. index 00000000..883f4ae2
  23. --- /dev/null
  24. +++ b/src/applications/vokoscreenNG.appdata.xml
  25. @@ -0,0 +1,45 @@
  26. +<?xml version="1.0" encoding="UTF-8"?>
  27. +<component type="desktop">
  28. + <id>vokoscreenNG.desktop</id>
  29. + <metadata_license>CC0-1.0</metadata_license>
  30. + <project_license>GPL-2.0</project_license>
  31. + <name>vokoscreenNG</name>
  32. + <summary>Easy to use desktop recorder</summary>
  33. + <description>
  34. + <p>vokoscreenNG is an easy to use screencast creator to record educational videos,
  35. + live recordings of browser, installation, videoconferences, etc.</p>
  36. + </description>
  37. + <screenshots>
  38. + <screenshot type="default">
  39. + <image>https://vokoscreen.volkoh.de/3.0/picture/screencast-0.png</image>
  40. + </screenshot>
  41. + <screenshot>
  42. + <image>https://vokoscreen.volkoh.de/3.0/picture/screencast-1.png</image>
  43. + </screenshot>
  44. + <screenshot>
  45. + <image>https://vokoscreen.volkoh.de/3.0/picture/screencast-2.png</image>
  46. + </screenshot>
  47. + <screenshot>
  48. + <image>https://vokoscreen.volkoh.de/3.0/picture/screencast-3.png</image>
  49. + </screenshot>
  50. + <screenshot>
  51. + <image>https://vokoscreen.volkoh.de/3.0/picture/screencast-4.png</image>
  52. + </screenshot>
  53. + <screenshot>
  54. + <image>https://vokoscreen.volkoh.de/3.0/picture/screencast-5.png</image>
  55. + </screenshot>
  56. + <screenshot>
  57. + <image>https://vokoscreen.volkoh.de/3.0/picture/screencast-6.png</image>
  58. + </screenshot>
  59. + <screenshot>
  60. + <image>https://vokoscreen.volkoh.de/3.0/picture/screencast-7.png</image>
  61. + </screenshot>
  62. + <screenshot>
  63. + <image>https://vokoscreen.volkoh.de/3.0/picture/screencast-8.png</image>
  64. + </screenshot>
  65. + </screenshots>
  66. + <url type="homepage">https://linuxecke.volkoh.de/vokoscreen/vokoscreen.html</url>
  67. + <url type="bugtracker">https://github.com/vkohaupt/vokoscreenNG/issues</url>
  68. + <url type="donation">https://linuxecke.volkoh.de/vokoscreen/vokoscreen-donate.html</url>
  69. + <developer_name>Volker Kohaupt</developer_name>
  70. +</component>
  71. diff -Nuar a/src/vokoscreenNG.pro b/src/vokoscreenNG.pro
  72. --- a/src/vokoscreenNG.pro 2023-03-30 08:26:59.000000000 +0300
  73. +++ b/src/vokoscreenNG.pro 2023-04-15 12:45:51.252406373 +0300
  74. @@ -206,6 +206,32 @@
  75. # Virtual Maschine
  76. include(virtual/virtual.pri)
  77. +
  78. +unix:!macx {
  79. + isEmpty(PREFIX) {
  80. + PREFIX = /usr/local
  81. + }
  82. + isEmpty(BINDIR) {
  83. + BINDIR = $$PREFIX/bin
  84. + }
  85. + isEmpty(DATADIR) {
  86. + DATADIR = $$PREFIX/share
  87. + }
  88. +
  89. + target.path = $$BINDIR
  90. +
  91. + icon.files = applications/vokoscreenNG.png
  92. + icon.path = $$DATADIR/icons/hicolor/256x256/apps/
  93. +
  94. + desktop.files = applications/vokoscreenNG.desktop
  95. + desktop.path = $$DATADIR/applications/
  96. +
  97. + appdata.files = applications/vokoscreenNG.appdata.xml
  98. + appdata.path = $$DATADIR/metainfo/
  99. +
  100. + INSTALLS += target icon desktop appdata
  101. +}
  102. +
  103. # Snapshot
  104. include(snapshot/snapshot.pri)