pkgname=darktable pkgver=4.6.1 _pkgver=release-4.6.1 pkgrel=1 pkgdesc="Open source photography workflow application and RAW developer" arch=('x86_64') url="https://www.darktable.org/" license=('GPL3') depends=('exiv2' 'lcms2' 'lensfun' 'dbus-glib' 'curl' 'kwallet' 'libgphoto2' 'openexr' 'sqlite' 'libxslt' 'libsoup' 'json-glib' 'flickcurl' 'librsvg' 'colord' 'graphicsmagick' 'libwebp' 'gtk3' 'pugixml' 'openjpeg' 'icu' 'lua' 'jpeg-xl' 'libavif') makedepends=('cmake' 'clang' 'intltool') optdepends=('kde-gtk-config: gtk integration settings for Plasma') options=('!libtool') source=("https://github.com/darktable-org/darktable/releases/download/${_pkgver}/darktable-${pkgver}.tar.xz") #source=("https://github.com/darktable-org/darktable/archive/refs/tags/release-${pkgver}.tar.gz") sha256sums=('16edc0a070293e2d3cda4ea10e49bda9bde932e23f9e62e2fa2e7ac74acf7afd') prepare() { cd ${pkgname}-${pkgver} # https://github.com/darktable-org/darktable/issues/4752 #./build.sh --disable-opencl } build() { cmake -B build -S ${pkgname}-${pkgver} \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_LIBDIR=lib \ -DBINARY_PACKAGE_BUILD=1 \ -DBUILD_USERMANUAL=False \ -DUSE_AVIF=On \ -DUSE_COLORD=On \ -DTESTBUILD_OPENCL_PROGRAMS=Off cmake --build build } package() { DESTDIR=${pkgdir} cmake --install build }