# Contributor: Kevin Daudt # Maintainer: Kevin Daudt pkgname=darktable pkgver=2.2.2 pkgrel=0 pkgdesc="an open source photography workflow application and raw developer" url="https://www.darktable.org/" arch="all !armhf" license="GPL3" depends="" makedepends=" cmake colord-dev colord-gtk-dev cups-dev curl-dev exiv2-dev gtk+3.0-dev intltool libjpeg-turbo-dev json-glib-dev lcms2-dev lensfun-dev flickcurl-dev libgphoto2-dev librsvg-dev libsecret-dev libwebp-dev libxml2-dev libxml2-utils libxslt lua5.2-dev openexr-dev openjpeg-dev pugixml-dev sqlite-dev tiff-dev" ldpath="/usr/lib/$pkgname" subpackages="$pkgname-dbg $pkgname-doc $pkgname-lang" source="https://github.com/darktable-org/darktable/releases/download/release-${pkgver/_/}/darktable-${pkgver/_/.}.tar.xz" builddir="$srcdir/$pkgname-${pkgver/_/~}" prepare() { default_prepare || return 1 cd "$builddir" mkdir -p build } build() { cd "$builddir/build" cmake -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib \ -DBUILD_SHARED_LIBS=True \ -DCMAKE_BUILD_TYPE=Release \ -DBINARY_PACKAGE_BUILD=ON \ .. || return 1 make } package() { cd "$builddir/build" make DESTDIR="$pkgdir" install } md5sums="94a3fea58138a995fd65b0eecd34ea69 darktable-2.2.2.tar.xz" sha256sums="766d7d734e7bd5a33f6a6932a43b15cc88435c64ad9a0b20410ba5b4706941c2 darktable-2.2.2.tar.xz" sha512sums="2294b6a263720317d437333a1a1ebed7773d6d57d02c0b298c676cc628e2c86b4d665ad4ac4fef000da9a7599c77e00bbeeb6a4c1d03075dab38877292dcf68b darktable-2.2.2.tar.xz"