# Contributor: ScrumpyJack # Maintainer: Natanael Copa pkgname=rawtherapee pkgver=5.4_rc2 _pkgver=${pkgver/_/-} pkgrel=2 pkgdesc="RawTherapee is image processing software simular to Lightroom or Aperture" url="http://rawtherapee.com" arch="x86 x86_64 ppc64le" license="GPL-3.0" makedepends="bzip2-dev exiv2-dev expat-dev fftw-dev glib-dev gtk+3.0-dev \ gtk-engines-dev gtkmm3-dev lcms2-dev libcanberra-dev \ libpng-dev libsigc++-dev tiff-dev zlib-dev cmake mercurial \ libiptcdata-dev libjpeg-turbo-dev lensfun-dev" options="!check !strip" subpackages="$pkgname-doc $pkgname-dbg" source="$pkgname-$pkgver.tar.xz::http://rawtherapee.com/shared/source/rawtherapee-${_pkgver}.tar.xz" builddir="$srcdir"/$pkgname-$_pkgver prepare() { default_prepare mkdir -p "$builddir"/build export CXXFLAGS="$CXXFLAGS -std=c++11" cd "$builddir"/build cmake -DCMAKE_INSTALL_PREFIX=/usr .. } build() { cd "$builddir"/build make } package() { cd "$builddir"/build make DESTDIR="$pkgdir" install } sha512sums="c858b7ec17a44579d6da0e000d114377346f3ba4f2d473ff3f0a80b40cf1ddc545ce47c250c2b2e58dae1e8a0cc4f8e2548aa9969b29087267684e3044b3fcc5 rawtherapee-5.4_rc2.tar.xz"