Advertisement
asalde_le1

0001-Update-Qt-6.8.0-icons-and-desktop-entries.patch

Oct 25th, 2024 (edited)
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.08 KB | None | 0 0
  1. From fdda7202cb24eaa2ed5c41e1a3631c9b14484400 Mon Sep 17 00:00:00 2001
  2. From: asalde_le1 <[email protected]>
  3. Date: Fri, 25 Oct 2024 10:42:40 +0200
  4. Subject: [PATCH] Update: Qt 6.8.0, icons and desktop entries
  5.  
  6. This commit updates the package to Qt 6.8.0 and makes changes to icons and desktop entries:
  7.  
  8. * Icons:
  9. * Import icons from the qttools source to provide them even when qt5-tools is not installed.
  10. * Append "6" to the end of icon names to ensure compatibility with qt5-tools when both are installed on the system.
  11. * Desktop entries:
  12. * Rename desktop entries to match the qt5-tools format.
  13. ---
  14. .SRCINFO | 16 ++++++++------
  15. PKGBUILD | 51 +++++++++++++++++++++++++++++++-------------
  16. assistant6.desktop | 6 +++---
  17. designer6.desktop | 6 +++---
  18. linguist6.desktop | 6 +++---
  19. qdbusviewer6.desktop | 6 +++---
  20. 6 files changed, 57 insertions(+), 34 deletions(-)
  21.  
  22. diff --git a/.SRCINFO b/.SRCINFO
  23. index fd6ae98..959b065 100644
  24. --- a/.SRCINFO
  25. +++ b/.SRCINFO
  26. @@ -1,19 +1,21 @@
  27. pkgbase = qt6-tools-desktop
  28. pkgdesc = Adds desktop integration files for qt6-tools (assistent, designer, linguist and qdbusviewer)
  29. - pkgver = 6.6.1
  30. - pkgrel = 1
  31. + pkgver = 6.8.0
  32. + pkgrel = 2
  33. url = https://www.qt.io
  34. arch = any
  35. groups = qt6
  36. license = GPL3
  37. - depends = qt6-tools>=6.6.1
  38. + depends = qt6-tools>=6.8.0
  39. + source = git+https://code.qt.io/qt/qttools#tag=v6.8.0
  40. source = assistant6.desktop
  41. source = designer6.desktop
  42. source = linguist6.desktop
  43. source = qdbusviewer6.desktop
  44. - sha256sums = 72677ebbe6904b119b68e4dbefd21198fe8941332e0ce489c7c4b9ad50d97a79
  45. - sha256sums = a28c63b0e77944b7182eda7dfa31120cb9e5919ffa0d9cbd56a98d53a905a328
  46. - sha256sums = eb0b3c887825ca21c812e0431fa61087497d84f26d9fb27b5c30b19dd556aee6
  47. - sha256sums = 8d2c9e9642afb8cd4ab491cb877c8c7fae3af1128b14af58fbfd3550d0c0791e
  48. + sha256sums = 74659933b95b94a78b9ec24e6f24633473c4dfa180b34531abf847768ccd8822
  49. + sha256sums = 17cf9fe9c3612f7993fb2dba37b984ee49e25edaed5e9a134c431eb7e033e428
  50. + sha256sums = 13ec7f608da2c19ce8c69eae761ea836229bedc5b929bb963518e41dc9bf4c0f
  51. + sha256sums = 6c43926c4c379f0918ffbfd952a54cea887e7394eda90ec44ad8e8a193c3c361
  52. + sha256sums = de91af3a52541e6d0aa8ea5c6fd958a734ea4b507ff04a3149aac2a7969a8f0d
  53.  
  54. pkgname = qt6-tools-desktop
  55. diff --git a/PKGBUILD b/PKGBUILD
  56. index b91a827..cb06796 100644
  57. --- a/PKGBUILD
  58. +++ b/PKGBUILD
  59. @@ -1,7 +1,7 @@
  60. # Maintainer: nomisge <nomisge @ live . de>
  61. pkgname=qt6-tools-desktop
  62. -pkgver=6.6.1
  63. -pkgrel=1
  64. +pkgver=6.8.0
  65. +pkgrel=2
  66. pkgdesc="Adds desktop integration files for qt6-tools
  67. (assistent, designer, linguist and qdbusviewer)"
  68. arch=('any')
  69. @@ -12,20 +12,41 @@ depends=("qt6-tools>=${pkgver}")
  70. makedepends=()
  71. options=()
  72. #install=
  73. -source=("assistant6.desktop"
  74. - "designer6.desktop"
  75. - "linguist6.desktop"
  76. - "qdbusviewer6.desktop")
  77. -sha256sums=('72677ebbe6904b119b68e4dbefd21198fe8941332e0ce489c7c4b9ad50d97a79'
  78. - 'a28c63b0e77944b7182eda7dfa31120cb9e5919ffa0d9cbd56a98d53a905a328'
  79. - 'eb0b3c887825ca21c812e0431fa61087497d84f26d9fb27b5c30b19dd556aee6'
  80. - '8d2c9e9642afb8cd4ab491cb877c8c7fae3af1128b14af58fbfd3550d0c0791e')
  81. +_pkgfn=qttools
  82. +source=("git+https://code.qt.io/qt/$_pkgfn#tag=v$pkgver"
  83. + "assistant6.desktop"
  84. + "designer6.desktop"
  85. + "linguist6.desktop"
  86. + "qdbusviewer6.desktop")
  87. +sha256sums=('74659933b95b94a78b9ec24e6f24633473c4dfa180b34531abf847768ccd8822'
  88. + '17cf9fe9c3612f7993fb2dba37b984ee49e25edaed5e9a134c431eb7e033e428'
  89. + '13ec7f608da2c19ce8c69eae761ea836229bedc5b929bb963518e41dc9bf4c0f'
  90. + '6c43926c4c379f0918ffbfd952a54cea887e7394eda90ec44ad8e8a193c3c361'
  91. + 'de91af3a52541e6d0aa8ea5c6fd958a734ea4b507ff04a3149aac2a7969a8f0d')
  92.  
  93. package() {
  94. - # install .desktop file
  95. + # install icons
  96. + cd $srcdir/$_pkgfn
  97. + for icon in src/linguist/linguist/images/icons/linguist-*-32.png ; do
  98. + size=$(echo $(basename ${icon}) | cut -d- -f2)
  99. + install -p -D -m644 ${icon} \
  100. + "${pkgdir}/usr/share/icons/hicolor/${size}x${size}/apps/linguist6.png"
  101. + done
  102. +
  103. + install -D -m644 src/assistant/assistant/images/assistant.png \
  104. + "${pkgdir}/usr/share/icons/hicolor/32x32/apps/assistant6.png"
  105. + install -D -m644 src/assistant/assistant/images/assistant-128.png \
  106. + "${pkgdir}/usr/share/icons/hicolor/128x128/apps/assistant6.png"
  107. + install -D -m644 src/designer/src/designer/images/designer.png \
  108. + "${pkgdir}/usr/share/icons/hicolor/128x128/apps/QtProject-designer6.png"
  109. + install -D -m644 src/qdbus/qdbusviewer/images/qdbusviewer.png \
  110. + "${pkgdir}/usr/share/icons/hicolor/32x32/apps/qdbusviewer6.png"
  111. + install -D -m644 src/qdbus/qdbusviewer/images/qdbusviewer-128.png \
  112. + "${pkgdir}/usr/share/icons/hicolor/128x128/apps/qdbusviewer6.png"
  113. +
  114. + # install .desktop file
  115. cd $srcdir
  116. - install -Dm644 "assistant6.desktop" "$pkgdir/usr/share/applications/assistant6.desktop"
  117. - install -Dm644 "designer6.desktop" "$pkgdir/usr/share/applications/designer6.desktop"
  118. - install -Dm644 "linguist6.desktop" "$pkgdir/usr/share/applications/linguist6.desktop"
  119. - install -Dm644 "qdbusviewer6.desktop" "$pkgdir/usr/share/applications/qdbusviewer6.desktop"
  120. + install -d "${pkgdir}/usr/share/applications"
  121. + install -m644 "${srcdir}"/{linguist,designer,assistant,qdbusviewer}6.desktop \
  122. + "${pkgdir}/usr/share/applications/"
  123. }
  124. diff --git a/assistant6.desktop b/assistant6.desktop
  125. index 7e13bf4..67c9694 100644
  126. --- a/assistant6.desktop
  127. +++ b/assistant6.desktop
  128. @@ -1,8 +1,8 @@
  129. [Desktop Entry]
  130. -Name=Qt6 Assistant
  131. +Name=Qt Assistant (Qt 6)
  132. Comment=Shows Qt documentation and examples
  133. -Exec=/usr/lib/qt6/bin/assistant
  134. -Icon=assistant
  135. +Exec=assistant6
  136. +Icon=assistant6
  137. Terminal=false
  138. Type=Application
  139. Categories=Qt;Development;Documentation;
  140. diff --git a/designer6.desktop b/designer6.desktop
  141. index abd3e56..4f2107e 100644
  142. --- a/designer6.desktop
  143. +++ b/designer6.desktop
  144. @@ -1,9 +1,9 @@
  145. [Desktop Entry]
  146. -Name=Qt6 Designer
  147. +Name=Qt Designer (Qt 6)
  148. GenericName=Interface Designer
  149. Comment=Design GUIs for Qt applications
  150. -Exec=/usr/lib/qt6/bin/designer %F
  151. -Icon=QtProject-designer
  152. +Exec=designer6 %F
  153. +Icon=QtProject-designer6
  154. MimeType=application/x-designer;
  155. Terminal=false
  156. Type=Application
  157. diff --git a/linguist6.desktop b/linguist6.desktop
  158. index ea0a608..5234372 100644
  159. --- a/linguist6.desktop
  160. +++ b/linguist6.desktop
  161. @@ -1,8 +1,8 @@
  162. [Desktop Entry]
  163. -Name=Qt6 Linguist
  164. +Name=Qt Linguist (Qt 6)
  165. Comment=Add translations to Qt applications
  166. -Exec=/usr/lib/qt6/bin/linguist %F
  167. -Icon=linguist
  168. +Exec=linguist6 %F
  169. +Icon=linguist6
  170. MimeType=text/vnd.trolltech.linguist;application/x-linguist;
  171. Terminal=false
  172. Type=Application
  173. diff --git a/qdbusviewer6.desktop b/qdbusviewer6.desktop
  174. index b7f0250..4c269ae 100644
  175. --- a/qdbusviewer6.desktop
  176. +++ b/qdbusviewer6.desktop
  177. @@ -1,9 +1,9 @@
  178. [Desktop Entry]
  179. -Name=Qt6 QDBusViewer
  180. +Name=Qt QDBusViewer (Qt 6)
  181. GenericName=D-Bus Debugger
  182. Comment=Debug D-Bus applications
  183. -Exec=/usr/lib/qt6/bin/qdbusviewer
  184. -Icon=qdbusviewer
  185. +Exec=qdbusviewer6
  186. +Icon=qdbusviewer6
  187. Terminal=false
  188. Type=Application
  189. Categories=Qt;Development;Debugger;
  190. --
  191. 2.47.0
  192.  
  193.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement