summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b553fb09973456e4184cf4060a49429213afafaf (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
35
36
37
38
39
# Maintainer: Fabio 'Lolix' Loli <fabio.loli@disroot.org> -> https://github.com/FabioLolix
# Contributor: Lukas Jirkovsky <l.jirkovsky AT gmail.com>

pkgname=rawtherapee-git
pkgver=5.11.r1.g40dccc3fc
pkgrel=1
epoch=1
pkgdesc="A powerful cross-platform raw image processing program"
arch=(x86_64 i686 pentium4 arm armv6h armv7h aarch64)
url="https://www.rawtherapee.com/"
license=(GPL-3.0-or-later)
depends=(fftw gtk3 glibmm gtkmm3 lcms2 lensfun libcanberra exiv2 libjxl
         libiptcdata hicolor-icon-theme

         # namcap implicit depends
         libsigc++ libtiff pangomm gcc-libs expat cairomm librsvg atkmm zlib libpng libjpeg cairo glibc glib2)
makedepends=(cmake git)
provides=(rawtherapee)
conflicts=(rawtherapee)
options=(!lto)
source=("git+https://github.com/Beep6581/RawTherapee.git#branch=dev")
sha256sums=('SKIP')

pkgver() {
  cd "RawTherapee"
  git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cmake -B build -S "RawTherapee" -Wno-dev \
    -DCMAKE_BUILD_TYPE=None \
    -DCMAKE_INSTALL_PREFIX=/usr

  cmake --build build
}

package() {
  DESTDIR="${pkgdir}" cmake --install build
}