aboutsummaryrefslogtreecommitdiffstats
path: root/community/darktable/APKBUILD
blob: d4e5ff8127eb09bfb7b62c94f96c2209f5a442e9 (plain) (blame)
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
72
# Contributor: Kevin Daudt <kdaudt@alpinelinux.org>
# Maintainer: Kevin Daudt <kdaudt@alpinelinux.org>
pkgname=darktable
pkgver=3.6.0
pkgrel=1
pkgdesc="an open source photography workflow application and raw developer"
url="https://www.darktable.org/"
arch="x86_64 aarch64"
license="GPL-3.0-or-later"
depends="dbus:org.freedesktop.Secrets"
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.3-dev
	openexr-dev
	openjpeg-dev
	pugixml-dev
	sqlite-dev
	tiff-dev"
ldpath="/usr/lib/$pkgname"
subpackages="$pkgname-dbg $pkgname-doc $pkgname-lang"
options="!check" # Dependencies missing
source="https://github.com/darktable-org/darktable/releases/download/release-$pkgver/darktable-$pkgver.tar.xz
	fix-ifunc-multiarch.patch
	fix-cmake-none.patch
	"

prepare() {
	default_prepare
	mkdir -p build
}

build() {
	cd "$builddir/build"
	export CXXFLAGS="$CXXFLAGS -O2"
	cmake -DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DBUILD_SHARED_LIBS=True \
		-DCMAKE_BUILD_TYPE=None \
		-DBINARY_PACKAGE_BUILD=ON \
		..
	make
}

package() {
	cd "$builddir/build"
	make DESTDIR="$pkgdir" install
}

sha512sums="
8e458406c3004a52cde096039358eb044d370e8b9d5cb70a6457fc1ad165f062af073b3f0c8da92b463db5a4df37e7a4ee32eb5ce9dfbfeec3e0c13c70ec5f8a  darktable-3.6.0.tar.xz
8da5f4420054b3060836b6b366cbc909f4c9f78d506881020283f589dcef4686ac4f3d6f3dc3d35a998097a3f974078e4496538e2662b25e22116f84473e38e5  fix-ifunc-multiarch.patch
74a47de2820e34d5c4ac53adbc557be908f73c06ab7e978429b22a5decb9c974871f5a83a23dd4fe6a7c13bc54de65ef004776efda8aad3f38d27fb35c0bd2c6  fix-cmake-none.patch
"