summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3be0fde31484ff7be9374bc1ae7368e923c306a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Maintainer: Lukas Jirkovsky <l.jirkovsky AT gmail.com>
pkgname=rawtherapee-git
pkgver=2971.11d382d
pkgrel=1
pkgdesc="RAW photo editor"
arch=('i686' 'x86_64')
url="http://www.rawtherapee.com/"
license=('GPL3')
depends=('fftw' 'gtkmm' 'libcanberra' 'libiptcdata' 'lcms2' 'desktop-file-utils' 'hicolor-icon-theme')
makedepends=('cmake' 'git')
provides=('rawtherapee')
conflicts=('rawtherapee')
install=rawtherapee.install
source=('rawtherapee::git+https://github.com/Beep6581/RawTherapee.git')
md5sums=('SKIP')

pkgver() {
  cd "$srcdir/rawtherapee"
  printf "%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  cd "$srcdir/rawtherapee"

  cmake . \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DCMAKE_BUILD_TYPE=Release
  make
}

package() {
  cd "$srcdir/rawtherapee"
  make DESTDIR="$pkgdir/" install
}