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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. The original patch was from an ArchLinux package
  2. https://github.com/archlinux/svntogit-community/blob/packages/vokoscreen/trunk/0001-Add-better-integration-for-Linux.patch
  3. I got this one from https://github.com/City-busz/vokoscreenNG branch 'linux-support', and modified it to work with 3.1.0
  4. commit 0a378409 (HEAD -> linux-support, origin/linux-support)
  5. Author: Balló György <ballogyor@gmail.com>
  6. Date: 2020-07-06 07:14:26 -0600
  7. Add better integration for Linux
  8. Add AppStream metadata, add installation target.
  9. ---
  10. src/applications/INFO | 1 +
  11. src/applications/vokoscreenNG.appdata.xml | 45 +++++++++++++++++++++++
  12. src/vokoscreenNG.pro | 24 ++++++++++++
  13. 3 files changed, 70 insertions(+)
  14. create mode 100644 src/applications/vokoscreenNG.appdata.xml
  15. diff --git a/src/applications/INFO b/src/applications/INFO
  16. index 4195de8..1c1bd87 100644
  17. --- a/src/applications/INFO
  18. +++ b/src/applications/INFO
  19. @@ -1,2 +1,3 @@
  20. +vokoscreenNG.appdata.xml
  21. vokoscreenNG.desktop
  22. vokoscreenNG.png
  23. diff --git a/src/applications/vokoscreenNG.appdata.xml b/src/applications/vokoscreenNG.appdata.xml
  24. new file mode 100644
  25. index 0000000..883f4ae
  26. --- /dev/null
  27. +++ b/src/applications/vokoscreenNG.appdata.xml
  28. @@ -0,0 +1,45 @@
  29. +<?xml version="1.0" encoding="UTF-8"?>
  30. +<component type="desktop">
  31. + <id>vokoscreenNG.desktop</id>
  32. + <metadata_license>CC0-1.0</metadata_license>
  33. + <project_license>GPL-2.0</project_license>
  34. + <name>vokoscreenNG</name>
  35. + <summary>Easy to use desktop recorder</summary>
  36. + <description>
  37. + <p>vokoscreenNG is an easy to use screencast creator to record educational videos,
  38. + live recordings of browser, installation, videoconferences, etc.</p>
  39. + </description>
  40. + <screenshots>
  41. + <screenshot type="default">
  42. + <image>https://vokoscreen.volkoh.de/3.0/picture/screencast-0.png</image>
  43. + </screenshot>
  44. + <screenshot>
  45. + <image>https://vokoscreen.volkoh.de/3.0/picture/screencast-1.png</image>
  46. + </screenshot>
  47. + <screenshot>
  48. + <image>https://vokoscreen.volkoh.de/3.0/picture/screencast-2.png</image>
  49. + </screenshot>
  50. + <screenshot>
  51. + <image>https://vokoscreen.volkoh.de/3.0/picture/screencast-3.png</image>
  52. + </screenshot>
  53. + <screenshot>
  54. + <image>https://vokoscreen.volkoh.de/3.0/picture/screencast-4.png</image>
  55. + </screenshot>
  56. + <screenshot>
  57. + <image>https://vokoscreen.volkoh.de/3.0/picture/screencast-5.png</image>
  58. + </screenshot>
  59. + <screenshot>
  60. + <image>https://vokoscreen.volkoh.de/3.0/picture/screencast-6.png</image>
  61. + </screenshot>
  62. + <screenshot>
  63. + <image>https://vokoscreen.volkoh.de/3.0/picture/screencast-7.png</image>
  64. + </screenshot>
  65. + <screenshot>
  66. + <image>https://vokoscreen.volkoh.de/3.0/picture/screencast-8.png</image>
  67. + </screenshot>
  68. + </screenshots>
  69. + <url type="homepage">https://linuxecke.volkoh.de/vokoscreen/vokoscreen.html</url>
  70. + <url type="bugtracker">https://github.com/vkohaupt/vokoscreenNG/issues</url>
  71. + <url type="donation">https://linuxecke.volkoh.de/vokoscreen/vokoscreen-donate.html</url>
  72. + <developer_name>Volker Kohaupt</developer_name>
  73. +</component>
  74. diff --git a/src/vokoscreenNG.pro b/src/vokoscreenNG.pro
  75. index d43ed30..7bf3d5a 100644
  76. --- a/src/vokoscreenNG.pro
  77. +++ b/src/vokoscreenNG.pro
  78. @@ -178,3 +178,27 @@ include(dirDialog/dirDialog.pri)
  79. # File Dialog
  80. include(fileDialog/fileDialog.pri)
  81. +unix:!macx {
  82. + isEmpty(PREFIX) {
  83. + PREFIX = /usr/local
  84. + }
  85. + isEmpty(BINDIR) {
  86. + BINDIR = $$PREFIX/bin
  87. + }
  88. + isEmpty(DATADIR) {
  89. + DATADIR = $$PREFIX/share
  90. + }
  91. +
  92. + target.path = $$BINDIR
  93. +
  94. + icon.files = applications/vokoscreenNG.png
  95. + icon.path = $$DATADIR/icons/hicolor/256x256/apps/
  96. +
  97. + desktop.files = applications/vokoscreenNG.desktop
  98. + desktop.path = $$DATADIR/applications/
  99. +
  100. + appdata.files = applications/vokoscreenNG.appdata.xml
  101. + appdata.path = $$DATADIR/metainfo/
  102. +
  103. + INSTALLS += target icon desktop appdata
  104. +}
  105. --
  106. 2.35.1