diff --git a/srcpkgs/krita/patches/libraw-0.21.patch b/srcpkgs/krita/patches/libraw-0.21.patch new file mode 100644 index 00000000000..fd2d40e5cc7 --- /dev/null +++ b/srcpkgs/krita/patches/libraw-0.21.patch @@ -0,0 +1,28 @@ +From e753d2453d1614b65b288e49fa5d5371764feaa8 Mon Sep 17 00:00:00 2001 +From: Antonio Rojas +Date: Sun, 18 Dec 2022 16:28:38 +0100 +Subject: [PATCH] Fix build with libraw 0.21 + +--- + plugins/impex/raw/3rdparty/libkdcraw/src/kdcraw.cpp | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/plugins/impex/raw/3rdparty/libkdcraw/src/kdcraw.cpp b/plugins/impex/raw/3rdparty/libkdcraw/src/kdcraw.cpp +index dcaecc6fa71..71425f909c2 100644 +--- a/plugins/impex/raw/3rdparty/libkdcraw/src/kdcraw.cpp ++++ b/plugins/impex/raw/3rdparty/libkdcraw/src/kdcraw.cpp +@@ -383,7 +383,11 @@ bool KDcraw::extractRAWData(const QString& filePath, QByteArray& rawData, DcrawI + d->setProgress(0.3); + + raw.imgdata.params.output_bps = 16; ++#if LIBRAW_COMPILE_CHECK_VERSION_NOTLESS(0, 21) ++ raw.imgdata.rawparams.shot_select = shotSelect; ++#else + raw.imgdata.params.shot_select = shotSelect; ++#endif + ret = raw.unpack(); + + if (ret != LIBRAW_SUCCESS) +-- +GitLab + diff --git a/srcpkgs/krita/template b/srcpkgs/krita/template index 1ca22339496..f070ef21bfb 100644 --- a/srcpkgs/krita/template +++ b/srcpkgs/krita/template @@ -1,7 +1,7 @@ # Template file for 'krita' pkgname=krita version=5.0.8 -revision=5 +revision=6 build_style=cmake configure_args="-Wno-dev -DBUILD_TESTING=OFF" hostmakedepends="extra-cmake-modules gettext pkg-config python3