aboutsummaryrefslogtreecommitdiffstats
path: root/testing/darktable/APKBUILD
blob: 063ac0755b3dcd802f8f63ade6f6bc5bcfe3eb21 (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
# Contributor: Kevin Daudt <ops@ikke.info>
# Maintainer: Kevin Daudt <ops@ikke.info>
pkgname=darktable
pkgver=2.2.0
pkgrel=1
pkgdesc="an open source photography workflow application and raw developer"
url="https://www.darktable.org/"
arch="all !armhf"
license="GPL3"
depends=""
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.2-dev
	openexr-dev
	openjpeg-dev
	pugixml-dev
	sqlite-dev
	tiff-dev"
ldpath="/usr/lib/$pkgname"
subpackages="$pkgname-dbg $pkgname-doc $pkgname-lang"
source="https://github.com/darktable-org/darktable/releases/download/release-${pkgver/_/}/darktable-${pkgver/_/.}.tar.xz"
builddir="$srcdir/$pkgname-${pkgver/_/~}"

prepare() {
	default_prepare || return 1

	cd "$builddir"
	mkdir -p build
}

build() {
	cd "$builddir/build"
	cmake -DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DBUILD_SHARED_LIBS=True \
		-DCMAKE_BUILD_TYPE=Release \
		-DBINARY_PACKAGE_BUILD=ON \
		.. || return 1
	make
}

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

md5sums="3297a30d69a0adea87ccf0b9c47d5c9f  darktable-2.2.0.tar.xz"
sha256sums="3eca193831faae58200bb1cb6ef29e658bce43a81706b54420953a7c33d79377  darktable-2.2.0.tar.xz"
sha512sums="b1acdaacc397d8752d32c5d8a8329222da7d87f159c21b467c950cd9ad61ec331d6dfc3f9e034c44484e8bf082d4df4e9dc01394e018f97c2adc6d09641a9085  darktable-2.2.0.tar.xz"