1 # Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
2 # Contributor: Ionut Biru <ibiru@archlinux.org>
5 pkgname=(colord colord-sane libcolord)
8 pkgdesc="System daemon for managing color devices"
9 url="https://www.freedesktop.org/software/colord"
12 depends=(lcms2 libgusb polkit sqlite dconf dbus libgudev shared-mime-info systemd)
13 makedepends=(gobject-introspection vala sane bash-completion argyllcms git meson gtk-doc
16 _commit=43c19fd019da5f69d2ebc00a9908b1dd83129485 # tags/1.4.6^0
17 source=("git+https://github.com/hughsie/colord#commit=$_commit")
19 validpgpkeys=('163EB50119225DB3DF8F49EA17ACBA8DFA970E17') # Richard Hughes
23 git describe --tags | sed 's/[^-]*-g/r&/;s/-/+/g'
31 arch-meson colord build \
32 -D libcolordcompat=true \
35 -D print_profiles=true \
37 meson compile -C build
41 meson test -C build --print-errorlogs
45 local p="$1" f d; shift
47 d="$srcdir/$p/${f#$pkgdir/}"
48 mkdir -p "$(dirname "$d")"
50 rmdir -p --ignore-fail-on-non-empty "$(dirname "$f")"
55 depends+=("libcolord=$pkgver-$pkgrel")
56 optdepends=('argyllcms: color profiling'
57 'colord-sane: SANE support')
58 provides=(libcolorhug.so)
59 replaces=(shared-color-profiles)
61 meson install -C build --destdir "$pkgdir"
63 echo 'u colord - "Color management daemon" /var/lib/colord' |
64 install -Dm644 /dev/stdin "$pkgdir/usr/lib/sysusers.d/colord.conf"
68 _pick sane usr/lib/colord-sane
69 _pick sane usr/lib/colord-plugins/libcolord_sensor_sane.so
71 _pick lib usr/include/colord-1/colord{,.h}
72 _pick lib usr/lib/libcolord{,compat}.so*
73 _pick lib usr/lib/girepository-1.0/Colord-1.0.typelib
74 _pick lib usr/lib/pkgconfig/colord.pc
75 _pick lib usr/share/gir-1.0/Colord-1.0.gir
78 package_colord-sane() {
79 pkgdesc+=" (SANE support)"
80 depends=("colord=$pkgver-$pkgrel" sane)
85 pkgdesc+=" (client library)"
86 depends=(glib2 lcms2 systemd)
87 provides=(libcolord.so)