git » knewstuff.git » commit 24ee542

upgpkg: 6.0.0-3: Fix Get new... buttons with Qt 6.7

author Antonio Rojas
2024-03-07 21:38:03 UTC
committer Antonio Rojas
2024-03-07 21:38:03 UTC
parent ef0ce6b8967630ebe4282f2beed44325a085ea66

upgpkg: 6.0.0-3: Fix Get new... buttons with Qt 6.7

.SRCINFO +3 -1
PKGBUILD +9 -3

diff --git a/.SRCINFO b/.SRCINFO
index 0c76df6..92740f6 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
 pkgbase = knewstuff
 	pkgdesc = Support for downloading application assets from the network
 	pkgver = 6.0.0
-	pkgrel = 2
+	pkgrel = 3
 	url = https://community.kde.org/Frameworks
 	arch = x86_64
 	groups = kf6
@@ -29,9 +29,11 @@ pkgbase = knewstuff
 	optdepends = qt6-declarative: QML components
 	source = https://download.kde.org/stable/frameworks/6.0/knewstuff-6.0.0.tar.xz
 	source = https://download.kde.org/stable/frameworks/6.0/knewstuff-6.0.0.tar.xz.sig
+	source = https://invent.kde.org/frameworks/knewstuff/-/commit/4f01e2ff.patch
 	validpgpkeys = 53E6B47B45CEA3E0D5B7457758D0EE648A48B3BB
 	validpgpkeys = E0A3EB202F8E57528E13E72FD7574483BB57B18D
 	sha256sums = 0299dba980590bd7c74870a74c6bb6ca732af478ab2c9ba414943f62ea0be0fa
 	sha256sums = SKIP
+	sha256sums = dec069302c5fd27594763ff4c67666c33625c3d63cb50f5ece39c14334cacc20
 
 pkgname = knewstuff
diff --git a/PKGBUILD b/PKGBUILD
index a5e7810..d7bfb6f 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,7 +4,7 @@
 
 pkgname=knewstuff
 pkgver=6.0.0
-pkgrel=2
+pkgrel=3
 pkgdesc='Support for downloading application assets from the network'
 arch=(x86_64)
 url='https://community.kde.org/Frameworks'
@@ -30,12 +30,18 @@ optdepends=('kirigami: QML components'
             'qt6-5compat: QML components'
             'qt6-declarative: QML components')
 groups=(kf6)
-source=(https://download.kde.org/stable/frameworks/${pkgver%.*}/$pkgname-$pkgver.tar.xz{,.sig})
+source=(https://download.kde.org/stable/frameworks/${pkgver%.*}/$pkgname-$pkgver.tar.xz{,.sig}
+        https://invent.kde.org/frameworks/knewstuff/-/commit/4f01e2ff.patch)
 sha256sums=('0299dba980590bd7c74870a74c6bb6ca732af478ab2c9ba414943f62ea0be0fa'
-            'SKIP')
+            'SKIP'
+            'dec069302c5fd27594763ff4c67666c33625c3d63cb50f5ece39c14334cacc20')
 validpgpkeys=(53E6B47B45CEA3E0D5B7457758D0EE648A48B3BB  # David Faure <faure@kde.org>
               E0A3EB202F8E57528E13E72FD7574483BB57B18D) # Jonathan Esk-Riddell <jr@jriddell.org>
 
+prepare() {
+  patch -d $pkgname-$pkgver -p1 < 4f01e2ff.patch # Fix Get New... buttons with Qt 6.7
+}
+
 build() {
   cmake -B build -S $pkgname-$pkgver \
     -DBUILD_TESTING=OFF \