git » polkit-kde-agent.git » commit 2118643

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 54f80ebf73713d85ee2cd416373753c45dfd90b1

Don't break source url for bug fix releases

PKGBUILD +2 -1

diff --git a/PKGBUILD b/PKGBUILD
index f9b3775..c1e4c5a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,6 +4,7 @@
 
 pkgname=polkit-kde-agent
 pkgver=5.27.4.1
+_dirver=$(echo $pkgver | cut -d. -f1-3)
 pkgrel=1
 pkgdesc='Daemon providing a polkit authentication UI for KDE'
 arch=(x86_64)
@@ -12,7 +13,7 @@ license=(LGPL)
 depends=(kiconthemes kdbusaddons kcrash)
 makedepends=(extra-cmake-modules kdoctools)
 groups=(plasma)
-source=(https://download.kde.org/stable/plasma/${pkgver%.*}/$pkgname-1-$pkgver.tar.xz{,.sig})
+source=(https://download.kde.org/stable/plasma/$_dirver/$pkgname-1-$pkgver.tar.xz{,.sig})
 sha256sums=('26e795f6016e6e64e3fd4518b2a49e8df66716fab073784d943a3b7782ce70c6'
             'SKIP')
 validpgpkeys=('E0A3EB202F8E57528E13E72FD7574483BB57B18D'  # Jonathan Esk-Riddell <jr@jriddell.org>