git » kscreenlocker.git » commit 73cfb3a

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 bb3104bada191ec8bde88ba21004028b1214ca03

Don't break source url for bug fix releases

PKGBUILD +2 -1

diff --git a/PKGBUILD b/PKGBUILD
index c06baf5..7c174f4 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,6 +2,7 @@
 
 pkgname=kscreenlocker
 pkgver=5.27.4
+_dirver=$(echo $pkgver | cut -d. -f1-3)
 pkgrel=1
 pkgdesc='Library and components for secure lock screen architecture'
 arch=(x86_64)
@@ -11,7 +12,7 @@ groups=(plasma)
 depends=(layer-shell-qt kidletime kdeclarative libkscreen perl)
 makedepends=(extra-cmake-modules kdoctools kcmutils libxcursor)
 optdepends=('kcmutils: configuration module')
-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})
 sha256sums=('a9da7f59b3fe35879adae4c67d1b2263085ee5c79004cd2bec46ce6901b97191'
             'SKIP')
 validpgpkeys=('E0A3EB202F8E57528E13E72FD7574483BB57B18D'  # Jonathan Esk-Riddell <jr@jriddell.org>