[arch-commits] Commit in latte-dock/trunk (PKGBUILD latte-dock-plasma-5.22.patch)
Antonio Rojas
arojas at archlinux.org
Sun May 16 13:31:45 UTC 2021
Date: Sunday, May 16, 2021 @ 13:31:44
Author: arojas
Revision: 935791
Better to actually apply the patch
Added:
latte-dock/trunk/latte-dock-plasma-5.22.patch
Modified:
latte-dock/trunk/PKGBUILD
------------------------------+
PKGBUILD | 10 +++++++---
latte-dock-plasma-5.22.patch | 32 ++++++++++++++++++++++++++++++++
2 files changed, 39 insertions(+), 3 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2021-05-16 13:08:29 UTC (rev 935790)
+++ PKGBUILD 2021-05-16 13:31:44 UTC (rev 935791)
@@ -3,7 +3,7 @@
pkgname=latte-dock
pkgver=0.9.11
-pkgrel=3
+pkgrel=4
pkgdesc='A dock based on Plasma Frameworks'
arch=(x86_64)
url='https://store.kde.org/p/1169519/'
@@ -11,12 +11,16 @@
depends=(plasma-framework knewstuff hicolor-icon-theme)
makedepends=(extra-cmake-modules)
source=(https://download.kde.org/stable/$pkgname/$pkgname-$pkgver.tar.xz{,.sig}
- latte-dock-plasma-5.22.patch::https://invent.kde.org/plasma/latte-dock/-/commit/5e175833.patch)
+ latte-dock-plasma-5.22.patch)
sha256sums=('513320e30f3016686ffb97f5502e513f4d21ce0f7bce75bf034a7775d448ea74'
'SKIP'
- '5532fac5a057a95b3ee301f1997f56f96dd2fdafc3c0f68de2a9aaa841cc2143')
+ '337ee1f6fc72f06b2b90aea0ede463d5cf50d9b9bb775a164d5abe741b498a86')
validpgpkeys=(325E97C32E601F5D4EADCF3A55999050A2D9110E) # Michail Vourlakos (mvourlakos) <mvourlakos at gmail.com>
+prepare() {
+ patch -d $pkgname-$pkgver -p1 < latte-dock-plasma-5.22.patch
+}
+
build() {
cmake -B build -S $pkgname-$pkgver
cmake --build build
Added: latte-dock-plasma-5.22.patch
===================================================================
--- latte-dock-plasma-5.22.patch (rev 0)
+++ latte-dock-plasma-5.22.patch 2021-05-16 13:31:44 UTC (rev 935791)
@@ -0,0 +1,32 @@
+diff --git a/plasmoid/package/contents/ui/main.qml b/plasmoid/package/contents/ui/main.qml
+index b430d558..c68ca241 100644
+--- a/plasmoid/package/contents/ui/main.qml
++++ b/plasmoid/package/contents/ui/main.qml
+@@ -67,6 +67,7 @@ Item {
+
+ property bool plasma515: latteView ? latteView.plasma515 : Latte.WindowSystem.plasmaDesktopVersion >= Latte.WindowSystem.makeVersion(5,15,0)
+ property bool plasma518: latteView ? latteView.plasma518 : Latte.WindowSystem.plasmaDesktopVersion >= Latte.WindowSystem.makeVersion(5,18,0)
++ property bool plasmaGreaterThan522: LatteCore.Environment.plasmaDesktopVersion >= LatteCore.Environment.makeVersion(5,21,75)
+
+ property bool editMode: latteView ? latteView.editMode : plasmoid.userConfiguring
+ property bool inConfigureAppletsMode: latteView ? latteView.inConfigureAppletsMode : true
+@@ -823,7 +824,6 @@ Item {
+ id: backend
+
+ taskManagerItem: root
+- toolTipItem: toolTipDelegate
+ highlightWindows: root.highlightWindows
+
+ onAddLauncher: {
+@@ -840,6 +840,11 @@ Item {
+ if (Latte.WindowSystem.frameworksVersion >= 335104 || (groupDialog !== undefined)) {
+ groupDialog = groupDialogGhost;
+ }
++
++ //! In Plasma 5.22 toolTipItem was dropped
++ if (!root.plasmaGreaterThan522) {
++ toolTipItem = toolTipDelegate;
++ }
+ }
+ }
+
More information about the arch-commits
mailing list