git » libksysguard.git » commit 8dee56b

Don't break source url for bug fix releases

author Antonio Rojas
2023-04-13 17:40:55 UTC
committer Antonio Rojas
2023-04-13 17:40:55 UTC
parent c18c8190e9202b6a1a48853828cc44c69ebbe5ed

Don't break source url for bug fix releases

PKGBUILD +2 -1

diff --git a/PKGBUILD b/PKGBUILD
index 13c6038..67f9602 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,6 +4,7 @@
 
 pkgname=libksysguard
 pkgver=5.27.4
+_dirver=$(echo $pkgver | cut -d. -f1-3)
 pkgrel=1
 pkgdesc='Library to retrieve information on the current status of computer hardware'
 arch=(x86_64)
@@ -13,7 +14,7 @@ depends=(libxres qt5-webengine knewstuff)
 makedepends=(extra-cmake-modules kdoctools qt5-tools)
 conflicts=('ksysguard<5.21.90')
 groups=(plasma)
-source=(https://download.kde.org/stable/plasma/$pkgver/$pkgname-$pkgver.tar.xz{,.sig})
+source=(https://download.kde.org/stable/plasma/$_dirver/$pkgname-$pkgver.tar.xz{,.sig})
 install=libksysguard.install
 sha256sums=('e0128d0c515cba3fde36c4a5cf5872dbf4e58c29a0d297b84f32bcfbe622f8f8'
             'SKIP')