# Maintainer: Bruno Pagani # Maintainer: Morten Linderud # Maintainer: Caleb Maclennan # Contributor: Sergej Pupykin # Contributor: Christian Himpel # Contributor: Johannes Hanika pkgname=darktable epoch=2 pkgver=4.2.1 pkgrel=3 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 lua osm-gps-map libsecret openmp gmic libavif jasper libjxl) optdepends=('dcraw: base curve script' 'perl-image-exiftool: base curve script' 'imagemagick: base curve and noise profile scripts' 'ghostscript: noise profile script' 'portmidi: game and midi controller input devices' 'gnuplot: noise profile script') makedepends=(cmake intltool desktop-file-utils llvm clang portmidi python-jsonschema libwebp) source=("https://github.com/darktable-org/darktable/releases/download/release-${pkgver}/darktable-${pkgver}.tar.xz"{,.asc}) sha256sums=('603a39c6074291a601f7feb16ebb453fd0c5b02a6f5d3c7ab6db612eadc97bac' 'SKIP') validpgpkeys=(C4CBC150699956E2A3268EF5BB5CC8295B1779C9 # darktable releases F10F9686652B0E949FCD94C318DCA123F949BD3B) # Pascal Obry 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 }