git » krita.git » commit be5fa63

Drop variable, no longer used

author Antonio Rojas
2023-06-07 17:03:51 UTC
committer Antonio Rojas
2023-06-07 17:03:51 UTC
parent acd9a818660e86b14a66fceac295c2bab318c671

Drop  variable, no longer used

PKGBUILD +7 -8

diff --git a/PKGBUILD b/PKGBUILD
index f898ee1..c7590a2 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,8 +1,7 @@
 # Maintainer: Antonio Rojas <arojas@archlinux,org>
 
 pkgname=krita
-_pkgver=5.1.5
-pkgver=${_pkgver/-/}
+pkgver=5.1.5
 pkgrel=10
 pkgdesc='Edit and paint images'
 arch=(x86_64)
@@ -16,7 +15,7 @@ optdepends=('poppler-qt5: PDF filter' 'ffmpeg: to save animations'
             'python-pyqt5: for the Python plugins' 'libheif: HEIF filter'
             'kseexpr: SeExpr generator layer' 'kimageformats: PSD support' 'libmypaint: support for MyPaint brushes'
             'krita-plugin-gmic: GMic plugin' 'libjxl: JPEG-XL filter')
-source=(https://download.kde.org/stable/krita/$_pkgver/$pkgname-$_pkgver.tar.gz{,.sig}
+source=(https://download.kde.org/stable/krita/$pkgver/$pkgname-$pkgver.tar.gz{,.sig}
         find-xsimd.patch
         https://invent.kde.org/graphics/krita/-/commit/e9184281.patch
         https://invent.kde.org/graphics/krita/-/commit/bbee5eff.patch
@@ -32,14 +31,14 @@ validpgpkeys=('05D00A8B73A686789E0A156858B9596C722EA3BD'  # Boudewijn Rempt <fou
               '064182440C674D9F8D0F6F8B4DA79EDA231C852B') # Stichting Krita Foundation <foundation@krita.org>
 
 prepare() {
-  patch -d $pkgname-$_pkgver -p1 < find-xsimd.patch
-  patch -d $pkgname-$_pkgver -p1 < e9184281.patch # Fix build with libheif 1.14.1
-  patch -d $pkgname-$_pkgver -p1 < bbee5eff.patch # Fix crash when loading some TIFF files
-  patch -d $pkgname-$_pkgver -p1 < exiv2-0.28.patch # Fix build with exiv2 0.28
+  patch -d $pkgname-$pkgver -p1 < find-xsimd.patch
+  patch -d $pkgname-$pkgver -p1 < e9184281.patch # Fix build with libheif 1.14.1
+  patch -d $pkgname-$pkgver -p1 < bbee5eff.patch # Fix crash when loading some TIFF files
+  patch -d $pkgname-$pkgver -p1 < exiv2-0.28.patch # Fix build with exiv2 0.28
 }
 
 build() {
-  cmake -B build -S $pkgname-$_pkgver \
+  cmake -B build -S $pkgname-$pkgver \
     -DBUILD_KRITA_QT_DESIGNER_PLUGINS=ON
   cmake --build build
 }