# Maintainer: Andreas Grapentin # Maintainer (Arch): Sergej Pupykin # Contributor: Márcio Silva # Contributor (Arch): Christian Himpel # Contributor (Arch): Johannes Hanika pkgname=darktable epoch=2 pkgver=2.2.5 pkgrel=2.nonprism1 arch=(i686 x86_64) pkgdesc="Utility to organize and develop raw images, without flickcurl support" url="http://darktable.sf.net/" license=(GPL3) depends=("exiv2>=0.18" lcms2 "lensfun>=0.2.3" desktop-file-utils curl libsecret libgphoto2 openexr sqlite libxslt libsoup gtk3 pugixml json-glib lua52 colord colord-gtk graphicsmagick osm-gps-map) makedepends=("intltool>=0.40" cmake librsvg osm-gps-map libcups) optdepends=(librsvg libcups) replaces=(${pkgname}-nonprism) conflicts=(${pkgname}-nonprism) # even releases are stable, do not change source url! source=("https://github.com/darktable-org/darktable/releases/download/release-${pkgver}/darktable-${pkgver/rc/.rc}.tar.xz"{,.asc}) sha256sums=('e303a42b33f78eb1f48d3b36d1df46f30873df4c5a7b49605314f61c49fbf281' 'SKIP') validpgpkeys=(C4CBC150699956E2A3268EF5BB5CC8295B1779C9) build() { cd "$srcdir/$pkgname-${pkgver/rc/~rc}" mkdir -p build cd build CXXFLAGS+=" -fpermissive" cmake \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=/usr/lib \ -DCMAKE_BUILD_TYPE=Release \ -DBINARY_PACKAGE_BUILD=1 \ -DBUILD_USERMANUAL=False \ -DUSE_LIBSECRET=On \ -DUSE_LUA=On \ -DUSE_GNOME_KEYRING=Off \ -DUSE_COLORD=On \ -DPROJECT_VERSION=$pkgver \ -DUSE_USE_FLICKR=Off \ .. make cd ../tools/basecurve cmake . make } package() { cd "$srcdir/$pkgname-${pkgver/rc/~rc}/build" make DESTDIR="$pkgdir" install ln -s darktable/libdarktable.so "$pkgdir/usr/lib/libdarktable.so" install -Dm0755 ../tools/basecurve/dt-curve-tool "$pkgdir"/usr/bin/dt-curve-tool install -Dm0755 ../tools/basecurve/dt-curve-tool-helper "$pkgdir"/usr/bin/dt-curve-tool-helper }