[arch-commits] Commit in kimageformats/repos (3 files)

Antonio Rojas arojas at archlinux.org
Fri Apr 23 19:03:49 UTC 2021


    Date: Friday, April 23, 2021 @ 19:03:49
  Author: arojas
Revision: 413784

archrelease: copy trunk to staging-x86_64

Added:
  kimageformats/repos/staging-x86_64/
  kimageformats/repos/staging-x86_64/PKGBUILD
    (from rev 413783, kimageformats/trunk/PKGBUILD)
  kimageformats/repos/staging-x86_64/kimageformats-openexr3.patch
    (from rev 413783, kimageformats/trunk/kimageformats-openexr3.patch)

------------------------------+
 PKGBUILD                     |   39 +++++++++++++++++++++++++++++++++++++++
 kimageformats-openexr3.patch |   38 ++++++++++++++++++++++++++++++++++++++
 2 files changed, 77 insertions(+)

Copied: kimageformats/repos/staging-x86_64/PKGBUILD (from rev 413783, kimageformats/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD	                        (rev 0)
+++ staging-x86_64/PKGBUILD	2021-04-23 19:03:49 UTC (rev 413784)
@@ -0,0 +1,39 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Maintainer: Antonio Rojas <arojas at archlinux.org>
+# Contributor: Andrea Scarpino <andrea at archlinux.org>
+
+pkgname=kimageformats
+pkgver=5.81.0
+pkgrel=2
+pkgdesc='Image format plugins for Qt5'
+arch=(x86_64)
+url='https://community.kde.org/Frameworks'
+license=(LGPL)
+depends=(qt5-base)
+makedepends=(extra-cmake-modules karchive libavif openexr libheif)
+optdepends=('karchive: plugin for Krita and OpenRaster images'
+            'libavif: AVIF format support'
+            'openexr: EXR format support'
+            'libheif: HEIF format support')
+groups=(kf5)
+source=("https://download.kde.org/stable/frameworks/${pkgver%.*}/$pkgname-$pkgver.tar.xz"{,.sig}
+         kimageformats-openexr3.patch)
+sha256sums=('a332a0d708417c6e973b19d8b3aec006f3c1c57ef17851dc00e4921d7c43864e'
+            'SKIP'
+            '3554285f3ebf8709d7686c8ffff56b71411f752e4cd54293eba713c97bc057e9')
+validpgpkeys=(53E6B47B45CEA3E0D5B7457758D0EE648A48B3BB) # David Faure <faure at kde.org>
+
+prepare() {
+  patch -d $pkgname-$pkgver -p1 < kimageformats-openexr3.patch
+}
+
+build() {
+  cmake -B build -S $pkgname-$pkgver \
+    -DBUILD_TESTING=OFF \
+    -DKIMAGEFORMATS_HEIF=ON
+  cmake --build build
+}
+
+package() {
+  DESTDIR="$pkgdir" cmake --install build
+}

Copied: kimageformats/repos/staging-x86_64/kimageformats-openexr3.patch (from rev 413783, kimageformats/trunk/kimageformats-openexr3.patch)
===================================================================
--- staging-x86_64/kimageformats-openexr3.patch	                        (rev 0)
+++ staging-x86_64/kimageformats-openexr3.patch	2021-04-23 19:03:49 UTC (rev 413784)
@@ -0,0 +1,38 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 8754b2f..e24b787 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -43,7 +43,7 @@ if (UNIX)
+     endif()
+ endif()
+ 
+-find_package(OpenEXR)
++find_package(OpenEXR CONFIG)
+ set_package_properties(OpenEXR PROPERTIES
+     TYPE OPTIONAL
+     PURPOSE "Required for the QImage plugin for OpenEXR images"
+diff --git a/src/imageformats/CMakeLists.txt b/src/imageformats/CMakeLists.txt
+index 6d41198..9a87844 100644
+--- a/src/imageformats/CMakeLists.txt
++++ b/src/imageformats/CMakeLists.txt
+@@ -58,7 +58,7 @@ install(FILES jp2.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR}/qimageioplugi
+ 
+ if(OpenEXR_FOUND)
+     kimageformats_add_plugin(kimg_exr JSON "exr.json" SOURCES exr.cpp)
+-    target_link_libraries(kimg_exr OpenEXR::IlmImf)
++    target_link_libraries(kimg_exr OpenEXR::OpenEXR)
+     kde_target_enable_exceptions(kimg_exr PRIVATE)
+ 
+     install(FILES exr.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR}/qimageioplugins/)
+diff --git a/src/imageformats/exr.cpp b/src/imageformats/exr.cpp
+index ea9a0d9..092d592 100644
+--- a/src/imageformats/exr.cpp
++++ b/src/imageformats/exr.cpp
+@@ -18,6 +18,7 @@
+ #include <ImfConvert.h>
+ #include <ImfFloatAttribute.h>
+ #include <ImfInputFile.h>
++#include <ImfInt64.h>
+ #include <ImfIntAttribute.h>
+ #include <ImfLineOrderAttribute.h>
+ #include <ImfRgbaFile.h>



More information about the arch-commits mailing list