git » kinfocenter.git » commit 8ac37d5

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 b495184f3e9ad7b54edfd3e19fe39a42c55c3b6f

Don't break source url for bug fix releases

PKGBUILD +2 -1

diff --git a/PKGBUILD b/PKGBUILD
index f462a24..ffdbe0d 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,6 +4,7 @@
 
 pkgname=kinfocenter
 pkgver=5.27.4
+_dirver=$(echo $pkgver | cut -d. -f1-3)
 pkgrel=1
 pkgdesc='A utility that provides information about a computer system'
 arch=(x86_64)
@@ -12,7 +13,7 @@ license=(LGPL)
 depends=(systemsettings glu vulkan-tools wayland-utils xorg-xdpyinfo mesa-utils fwupd aha dmidecode clinfo)
 makedepends=(extra-cmake-modules plasma-framework kdoctools)
 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})
 sha256sums=('6875ca14c4fc139f007bc4b318fa3812f7d73ef26fa2ae54a49bd48bda67e495'
             'SKIP')
 validpgpkeys=('E0A3EB202F8E57528E13E72FD7574483BB57B18D'  # Jonathan Esk-Riddell <jr@jriddell.org>