Date: Tuesday, March 7, 2023 @ 08:49:14
Author: arojas
Revision: 470363
archrelease: copy trunk to staging-x86_64
Added:
krita/repos/staging-x86_64/
krita/repos/staging-x86_64/PKGBUILD
(from rev 470362, krita/trunk/PKGBUILD)
krita/repos/staging-x86_64/find-xsimd.patch
(from rev 470362, krita/trunk/find-xsimd.patch)
krita/repos/staging-x86_64/keys/
------------------+
PKGBUILD | 43 +++++++++++++++++++++++++++++++++++++++++++
find-xsimd.patch | 21 +++++++++++++++++++++
2 files changed, 64 insertions(+)
Copied: krita/repos/staging-x86_64/PKGBUILD (from rev 470362,
krita/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD (rev 0)
+++ staging-x86_64/PKGBUILD 2023-03-07 08:49:14 UTC (rev 470363)
@@ -0,0 +1,43 @@
+# Maintainer: Antonio Rojas <arojas@archlinux,org>
+
+pkgname=krita
+_pkgver=5.1.5
+pkgver=${_pkgver/-/}
+pkgrel=4
+pkgdesc='Edit and paint images'
+arch=(x86_64)
+url='https://krita.org'
+license=(GPL3)
+depends=(kitemviews kitemmodels ki18n kcompletion kguiaddons kcrash qt5-svg
qt5-multimedia quazip
+ gsl libraw exiv2 openexr fftw openjpeg2 opencolorio libwebp
hicolor-icon-theme)
+makedepends=(extra-cmake-modules kdoctools boost eigen poppler-qt5
python-pyqt5 libheif
+ qt5-tools sip kseexpr libmypaint libjxl xsimd)
+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}
+ find-xsimd.patch
+ https://invent.kde.org/graphics/krita/-/commit/e9184281.patch)
+sha256sums=('1c775ebef0f799a9a6b74440c3d906ab913c27541b177ed621704de714e9a4d3'
+ 'SKIP'
+ '622c9ffbbfef72dd024b391b879c79ae34da11d52b2f3488dfd8ee42bf7b453b'
+ '3db041acee92d6e4238c47ad572142a930340858703f523baa32f129e6474060')
+validpgpkeys=('05D00A8B73A686789E0A156858B9596C722EA3BD' # Boudewijn Rempt
<[email protected]>
+ 'E9FB29E74ADEACC5E3035B8AB69EB4CF7468332F' # Dmitry Kazakov
(main key) <[email protected]>
+ '064182440C674D9F8D0F6F8B4DA79EDA231C852B') # Stichting Krita
Foundation <[email protected]>
+
+prepare() {
+ patch -d $pkgname-$_pkgver -p1 < find-xsimd.patch
+ patch -d $pkgname-$_pkgver -p1 < e9184281.patch # Fix build with libheif
1.14.1
+}
+
+build() {
+ cmake -B build -S $pkgname-$_pkgver \
+ -DBUILD_KRITA_QT_DESIGNER_PLUGINS=ON
+ cmake --build build
+}
+
+package() {
+ DESTDIR="$pkgdir" cmake --install build
+}
Copied: krita/repos/staging-x86_64/find-xsimd.patch (from rev 470362,
krita/trunk/find-xsimd.patch)
===================================================================
--- staging-x86_64/find-xsimd.patch (rev 0)
+++ staging-x86_64/find-xsimd.patch 2023-03-07 08:49:14 UTC (rev 470363)
@@ -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"