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

Antonio Rojas arojas at archlinux.org
Fri Jul 2 17:54:04 UTC 2021


    Date: Friday, July 2, 2021 @ 17:54:04
  Author: arojas
Revision: 970906

archrelease: copy trunk to community-staging-x86_64

Added:
  darktable/repos/community-staging-x86_64/
  darktable/repos/community-staging-x86_64/PKGBUILD
    (from rev 970905, darktable/trunk/PKGBUILD)
  darktable/repos/community-staging-x86_64/darktable-openexr3.patch
    (from rev 970905, darktable/trunk/darktable-openexr3.patch)

--------------------------+
 PKGBUILD                 |   57 +++++++++++++++++++++++++++++++++++++++++++++
 darktable-openexr3.patch |   18 ++++++++++++++
 2 files changed, 75 insertions(+)

Copied: darktable/repos/community-staging-x86_64/PKGBUILD (from rev 970905, darktable/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2021-07-02 17:54:04 UTC (rev 970906)
@@ -0,0 +1,57 @@
+# Maintainer: Bruno Pagani <archange at archlinux.org>
+# Maintainer: Morten Linderud <foxboron at archlinux.org>
+# Contributor: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Contributor: Christian Himpel <chressie at gmail dot com>
+# Contributor: Johannes Hanika <hanatos at gmail dot com>
+
+pkgname=darktable
+epoch=2
+pkgver=3.4.1
+pkgrel=7
+pkgdesc="Utility to organize and develop raw images"
+arch=(x86_64)
+url="https://darktable.org"
+license=(GPL3)
+depends=(pugixml libjpeg-turbo colord-gtk libgphoto2 openexr lensfun iso-codes zlib
+         exiv2 flickcurl openjpeg2 graphicsmagick lua53 osm-gps-map libsecret openmp
+         gmic libavif)
+optdepends=('dcraw: base curve script'
+            'perl-image-exiftool: base curve script'
+            'imagemagick: base curve and noise profile scripts'
+            'ghostscript: noise profile script'
+            'gnuplot: noise profile script')
+makedepends=(cmake intltool desktop-file-utils llvm clang python-jsonschema libwebp)
+source=("https://github.com/darktable-org/darktable/releases/download/release-${pkgver}/darktable-${pkgver}.tar.xz"{,.asc}
+         darktable-openexr3.patch)
+sha256sums=('7fc3f851da9bcd7c5053ecd09f21aa3eb6103be98a6c58f52010b6f22174941e'
+            'SKIP'
+            '534e7e82adb5cf3c9eda81bbdf3e373879bfa72bb6cd5f865750f6c589d57f51')
+validpgpkeys=(C4CBC150699956E2A3268EF5BB5CC8295B1779C9  # darktable releases <release at darktable.org>
+              F10F9686652B0E949FCD94C318DCA123F949BD3B) # Pascal Obry <pascal at obry.net>
+
+prepare() {
+  patch -d $pkgname-$pkgver -p1 < darktable-openexr3.patch # Fix build with OpenEXR 3
+}
+
+build() {
+    cmake -B build -S ${pkgname}-${pkgver} \
+        -DCMAKE_INSTALL_PREFIX=/usr \
+        -DCMAKE_INSTALL_LIBDIR=/usr/lib \
+        -DCMAKE_INSTALL_LIBEXECDIR=/usr/lib \
+        -DCMAKE_BUILD_TYPE=Release \
+        -DBINARY_PACKAGE_BUILD=1 \
+        -DBUILD_USERMANUAL=False \
+        -DUSE_LIBSECRET=ON \
+        -DUSE_LUA=ON \
+        -DUSE_COLORD=ON \
+        -DBUILD_CURVE_TOOLS=ON \
+        -DBUILD_NOISE_TOOLS=ON \
+        -DRAWSPEED_ENABLE_LTO=ON \
+        -DPROJECT_VERSION=${pkgver}
+    make -C build
+}
+
+package() {
+    make -C build DESTDIR="${pkgdir}" install
+    ln -s darktable/libdarktable.so "${pkgdir}"/usr/lib/libdarktable.so
+}

Copied: darktable/repos/community-staging-x86_64/darktable-openexr3.patch (from rev 970905, darktable/trunk/darktable-openexr3.patch)
===================================================================
--- community-staging-x86_64/darktable-openexr3.patch	                        (rev 0)
+++ community-staging-x86_64/darktable-openexr3.patch	2021-07-02 17:54:04 UTC (rev 970906)
@@ -0,0 +1,18 @@
+diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
+index 6cbeab77d..21cf6b44a 100644
+--- a/src/CMakeLists.txt
++++ b/src/CMakeLists.txt
+@@ -329,7 +329,12 @@ if(USE_CAMERA_SUPPORT)
+ endif(USE_CAMERA_SUPPORT)
+ 
+ if(USE_OPENEXR)
+-  find_package(OpenEXR)
++  find_package(OpenEXR 3.0 CONFIG)
++  if(TARGET OpenEXR::OpenEXR)
++    set(OpenEXR_LIBRARIES OpenEXR::OpenEXR)
++  else()
++    find_package(OpenEXR)
++  endif()
+   if(OpenEXR_FOUND)
+     include_directories(SYSTEM ${OpenEXR_INCLUDE_DIRS})
+     list(APPEND LIBS ${OpenEXR_LIBRARIES})




More information about the arch-commits mailing list