# Maintainer: Andreas Grapentin # Maintainer (Arch): Sergej Pupykin # Contributor: Márcio Silva # Contributor (Arch): Christian Himpel # Contributor (Arch): Johannes Hanika # Contributor: Freemor pkgname=darktable epoch=2 pkgver=3.0.0 pkgrel=1 pkgrel+=.nonprism1 pkgdesc="Utility to organize and develop raw images, without flickcurl support" arch=(i686 x86_64 armv7h) url="https://darktable.org" license=(GPL3) depends=(pugixml libjpeg-turbo colord-gtk libgphoto2 openexr lensfun iso-codes zlib exiv2 openjpeg2 graphicsmagick libxslt lua osm-gps-map libsecret openmp) 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/rc/.rc}.tar.xz"{,.asc}) sha256sums=('7195a5ff7ee95ab7c5a57e4e84f8c90cc4728b2c917359203c21293ab754c0db' 'SKIP') validpgpkeys=(C4CBC150699956E2A3268EF5BB5CC8295B1779C9 # darktable releases F10F9686652B0E949FCD94C318DCA123F949BD3B) # Pascal Obry prepare() { mkdir -p build } build() { cd build cmake ../${pkgname}-${pkgver/rc/~rc} \ -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 \ -DRAWSPEED_ENABLE_LTO=ON \ -DUSE_USE_FLICKR=Off \ -DPROJECT_VERSION=${pkgver} make } package() { cd build make DESTDIR="${pkgdir}" install ln -s darktable/libdarktable.so "${pkgdir}"/usr/lib/libdarktable.so }