1 # Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
2 # Contributor: Ionut Biru <ibiru@archlinux.org>
5 pkgname=(colord-gtk-common colord-gtk colord-gtk4)
8 pkgdesc="Additional GTK support code for colord"
9 url="https://www.freedesktop.org/software/colord/"
12 makedepends=(gobject-introspection vala gtk-doc git docbook-utils docbook-xsl
13 meson lcms2 colord gtk3 gtk4)
15 _commit=9a2c7f7cb168cd46cb1e163df35e734c7beb3b70 # tags/0.3.0^0
16 source=("git+https://github.com/hughsie/colord-gtk#commit=$_commit")
21 git describe --tags | sed 's/^COLORD_GTK_//;s/_/./g;s/[^-]*-g/r&/;s/-/+/g'
29 arch-meson $pkgbase build -D vapi=true
30 meson compile -C build
34 local p="$1" f d; shift
36 d="$srcdir/$p/${f#$pkgdir/}"
37 mkdir -p "$(dirname "$d")"
39 rmdir -p --ignore-fail-on-non-empty "$(dirname "$f")"
43 package_colord-gtk-common() {
44 pkgdesc+=" (common files)"
45 depends=(lcms2 colord)
47 meson install -C build --destdir "$pkgdir"
51 _pick gtk3 usr/bin/cd-convert
52 _pick gtk3 usr/lib/libcolord-gtk.so*
53 _pick gtk3 usr/lib/pkgconfig/colord-gtk.pc
55 _pick gtk4 usr/lib/libcolord-gtk4.so*
56 _pick gtk4 usr/lib/pkgconfig/colord-gtk4.pc
59 package_colord-gtk() {
60 pkgdesc="${pkgdesc/GTK/GTK3}"
61 depends=(colord-gtk-common="$pkgver-$pkgrel" gtk3)
62 provides=(libcolord-gtk.so)
67 package_colord-gtk4() {
68 pkgdesc="${pkgdesc/GTK/GTK4}"
69 depends=(colord-gtk-common="$pkgver-$pkgrel" gtk4)
70 provides=(libcolord-gtk4.so)