aboutsummaryrefslogtreecommitdiffstats
path: root/community/colord/APKBUILD
blob: 306571905c39e54786b5247e70deb664355a0bb2 (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
# Contributor: Carlo Landmeter <clandmeter@alpinelinux.org>
# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Kevin Daudt <kdaudt@alpinelinux.org>
pkgname=colord
pkgver=1.4.5
pkgrel=0
pkgdesc="System daemon for managing color devices"
url="http://www.freedesktop.org/software/colord"
arch="all !mips !mips64 !s390x" # polkit
license="GPL-2.0-or-later"
pkgusers="colord"
pkggroups="colord"
depends_dev="dconf-dev dbus-dev gobject-introspection-dev sqlite-dev
	polkit-dev eudev-dev libgudev-dev vala sane-dev"
makedepends="$depends_dev meson intltool bash-completion libgusb-dev lcms2-dev"
subpackages="
	$pkgname-dev
	$pkgname-lang
	$pkgname-bash-completion:bashcomp:noarch
	"
source="https://www.freedesktop.org/software/colord/releases/colord-$pkgver.tar.xz
	disable-udev-hwdb-tests.patch"
install="colord.pre-install colord.pre-upgrade"

build() {
	abuild-meson \
		-Dsystemd=false \
		-Dargyllcms_sensor=false \
		-Dman=false \
		-Ddocs=false \
		-Ddaemon_user=colord \
		-Dsane=true \
		-Dvapi=true \
		output .

	meson compile ${JOBS:+-j ${JOBS}} -C output
}

check() {
	# cd-private-test is broken atm
	# meson test

	output/src/cd-self-test
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
	chown -R colord:colord "$pkgdir"/var/lib/colord
}

bashcomp() {
	depends=""
	pkgdesc="Bash completions for $pkgname"
	install_if="$pkgname=$pkgver-r$pkgrel bash-completion"

	amove usr/share/bash-completion/completions
}

sha512sums="b6cc8087ceff4a99b7d764087208cc72e1219d9f6bb52bd3e3eb13bb62e3c1e99aefef36237dceff46925ab7680c76795f59057b7a4d1c8a123de6270708e03c  colord-1.4.5.tar.xz
4e306254902658ffe0904b4ee3fdc10c473af909662c08fc66b9070fd698e07e1f804e53ccd94160ac57d268269132683808ff8f2bae64fd2a9070d6f024b800  disable-udev-hwdb-tests.patch"