git » kwin.git » commit f8c7450

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 f74b2fd3fe5b0f0fc8e553d12ad8234e668e7a6c

Don't break source url for bug fix releases

PKGBUILD +2 -1

diff --git a/PKGBUILD b/PKGBUILD
index ab17394..1ec7832 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,6 +4,7 @@
 
 pkgname=kwin
 pkgver=5.27.4.1
+_dirver=$(echo $pkgver | cut -d. -f1-3)
 pkgrel=1
 pkgdesc='An easy to use, but flexible, composited Window Manager'
 arch=(x86_64)
@@ -15,7 +16,7 @@ makedepends=(extra-cmake-modules qt5-tools kdoctools krunner wayland-protocols p
 optdepends=('maliit-keyboard: virtual keyboard for kwin-wayland')
 replaces=(kwayland-server)
 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=$pkgname.install
 sha256sums=('b39f1d3cc528505213dbb72958e80d6cdad75617cb26c215607d6f12bf0e02b1'
             'SKIP')