blob: acd8012400e8fddd6eb0e5c56d643e2173c90ca9 (
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
|
# Maintainer: éclairevoyant
# Contributor: Vincent Grande <shoober420 at gmail dot com>
# Contributor: Jan Alexander Steffens (heftig) <jan dot steffens at gmail dot com>
# Contributor: Ionut Biru <ibiru at archlinux dot org>
_pkgbase=colord
pkgbase="$_pkgbase-git"
pkgname=(colord-git colord-sane-git libcolord-git)
pkgver=1.4.6.r16.d735245
pkgrel=1
pkgdesc="System daemon for managing color devices"
arch=(x86_64)
url="https://www.freedesktop.org/software/$_pkgbase"
license=(GPL2)
depends=(
dbus
dconf
lcms2
libgudev
libgusb
polkit
shared-mime-info
sqlite
systemd-libs
udev
)
makedepends=(
argyllcms
bash-completion
docbook-xsl
git
gobject-introspection
gtk-doc
meson
sane
systemd
vala
)
provides=(colord colord-sane libcolord)
conflicts=(colord colord-sane libcolord)
options=(!emptydirs)
source=("git+https://github.com/hughsie/colord")
b2sums=('SKIP')
pkgver() {
git -C $_pkgbase describe --long --tags | sed 's/^v//;s/\([^-]*-\)g/r\1/;s/-/./g'
}
build() {
arch-meson $_pkgbase build \
-D libcolordcompat=true \
-D sane=true \
-D vapi=true \
-D print_profiles=true \
-D daemon_user=colord
meson compile -C build
}
check() {
meson test -C build --print-errorlogs
}
_pick() {
local p="$1" f d; shift
for f; do
d="$srcdir/$p/${f#$pkgdir/}"
mkdir -p "$(dirname "$d")"
mv "$f" "$d"
rmdir -p --ignore-fail-on-non-empty "$(dirname "$f")"
done
}
package_colord-git() {
depends+=("libcolord=$pkgver")
optdepends=('argyllcms: color profiling'
'colord-sane: SANE support')
provides=(colord libcolorhug.so)
conflicts=(colord)
DESTDIR="$pkgdir" meson install -C build
echo 'u colord - "Color management daemon" /var/lib/colord' |
install -Dm644 /dev/stdin "$pkgdir/usr/lib/sysusers.d/colord.conf"
cd "$pkgdir"
_pick sane usr/lib/colord-sane
_pick sane usr/lib/colord-plugins/libcolord_sensor_sane.so
_pick lib usr/include/colord-1/colord{,.h}
_pick lib usr/lib/libcolord{,compat}.so*
_pick lib usr/lib/girepository-1.0/Colord-1.0.typelib
_pick lib usr/lib/pkgconfig/colord.pc
_pick lib usr/share/gir-1.0/Colord-1.0.gir
}
package_colord-sane-git() {
pkgdesc+=" (SANE support)"
depends=("colord=$pkgver" sane)
provides=(colord-sane)
conflicts=(colord-sane)
mv sane/* "$pkgdir"
}
package_libcolord-git() {
pkgdesc+=" (client library)"
depends=(glib2 lcms2 systemd)
provides=(libcolord libcolord.so)
mv lib/* "$pkgdir"
}
|