blob: e00504972db56de41a9e40feea35fb1628dca104 (
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
|
# Maintainer: tharazgul <tharazgul at gmx dot at>
# Contributor: tharazgul <tharazgul at gmx dot at>
pkgname=darktable-cr3
_gitname=darktable
pkgver=3.6.1
pkgrel=1
pkgdesc="A virtual lighttable and darkroom for photographers with CR3 support"
arch=('i686' 'x86_64')
url=http://www.darktable.org/
license=('GPL3')
depends=(pugixml libjpeg-turbo colord-gtk libgphoto2 openexr lensfun iso-codes zlib sed
exiv2 flickcurl openjpeg2 graphicsmagick lua53 osm-gps-map libsecret openmp
gmic libavif)
optdepends=('dcraw: base curve script'
'perl-image-exiftool: base curve script'
'imagemagick: base curve and noise profile scripts'
'ghostscript: noise profile script'
'gnuplot: noise profile script')
makedepends=(git cmake intltool desktop-file-utils llvm clang python-jsonschema libwebp)
conflicts=(darktable)
provides=(darktable)
install=darktable.install
options=(!emptydirs !libtool)
source=('git+https://github.com/darktable-org/darktable.git')
md5sums=('SKIP')
pkgver() {
cd $_gitname
git describe --long --tags | sed 's/^release-//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
prepare() {
cd $_gitname
git checkout release-3.6.1
git submodule init
git submodule update
cd src/external/rawspeed
git config remote.origin.url https://github.com/cytrinox/rawspeed.git
git fetch
cd ../../..
git config submodule.src/external/rawspeed.url "https://github.com/cytrinox/rawspeed.git"
git config submodule.src/external/rawspeed.branch "canon_cr3"
git submodule update --remote
sed '/-Werror/d' -i src/CMakeLists.txt
}
build() {
cd $_gitname
[[ ! -d build ]] && mkdir -p build
cmake -B build \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=/usr/lib \
-DCMAKE_INSTALL_LIBEXECDIR=/usr/lib \
-DCMAKE_BUILD_TYPE=Release \
-DBINARY_PACKAGE_BUILD=1 \
-DBUILD_USERMANUAL=False \
-DUSE_LIBSECRET=ON \
-DUSE_LUA=ON \
-DUSE_COLORD=ON \
-DBUILD_CURVE_TOOLS=ON \
-DBUILD_NOISE_TOOLS=ON \
-DRAWSPEED_ENABLE_LTO=ON
make -C build
}
package() {
cd $_gitname
make -C build DESTDIR=$pkgdir install
ln -s darktable/libdarktable.so "${pkgdir}"/usr/lib/libdarktable.so
}
|