git » krita.git » commit bf63c17

Update to 5.1.4

author Antonio Rojas
2022-12-14 13:42:29 UTC
committer Antonio Rojas
2022-12-14 13:42:29 UTC
parent f36b66e4ab5fa09ff2988055ec2347b663925a02

Update to 5.1.4

PKGBUILD +10 -4
find-xsimd.patch +21 -0

diff --git a/PKGBUILD b/PKGBUILD
index 536b945..7254281 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
 # Maintainer: Antonio Rojas <arojas@archlinux,org>
 
 pkgname=krita
-_pkgver=5.1.3
+_pkgver=5.1.4
 pkgver=${_pkgver/-/}
 pkgrel=1
 pkgdesc='Edit and paint images'
@@ -16,14 +16,20 @@ 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})
-sha256sums=('ebdf8fd303087221b1b9cead9961b53a8b299afbf071997acc7350ca0127828d'
-            'SKIP')
+source=(https://download.kde.org/stable/krita/$_pkgver/$pkgname-$_pkgver.tar.gz{,.sig}
+        find-xsimd.patch)
+sha256sums=('c22b020862596eb2fdd911e1b179dbbce7b081be111457a2eacaf6ae1cca2dcb'
+            'SKIP'
+            '622c9ffbbfef72dd024b391b879c79ae34da11d52b2f3488dfd8ee42bf7b453b')
 validpgpkeys=('05D00A8B73A686789E0A156858B9596C722EA3BD'  # Boudewijn Rempt <foundation@krita.org>
               'E9FB29E74ADEACC5E3035B8AB69EB4CF7468332F'  # Dmitry Kazakov (main key) <dimula73@gmail.com>
               '064182440C674D9F8D0F6F8B4DA79EDA231C852B') # Stichting Krita Foundation <foundation@krita.org>
 options=(debug)
 
+prepare() {
+  patch -d $pkgname-$_pkgver -p1 < find-xsimd.patch
+}
+
 build() {
   cmake -B build -S $pkgname-$_pkgver \
     -DBUILD_KRITA_QT_DESIGNER_PLUGINS=ON
diff --git a/find-xsimd.patch b/find-xsimd.patch
new file mode 100644
index 0000000..a1f20a3
--- /dev/null
+++ b/find-xsimd.patch
@@ -0,0 +1,21 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 7d075a7223..6dc88e243a 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -1052,10 +1052,12 @@ list (APPEND ANDROID_EXTRA_LIBS ${LCMS2_LIBRARIES})
+ ##
+ ## Test for xsimd
+ ##
+-find_package(xsimd 8.1.0)
+-if(NOT xsimd_FOUND)
+-    find_package(xsimd 9)
+-endif()
++foreach(xsimd_version 8.1.0 9 10)
++    if(NOT xsimd_FOUND)
++        find_package(xsimd ${xsimd_version})
++    endif()
++endforeach()
++
+ set_package_properties(xsimd PROPERTIES
+     DESCRIPTION "C++ wrappers for SIMD intrinsics"
+     URL "https://github.com/xtensor-stack/xsimd"