void-packages/srcpkgs/colord/template
2020-01-06 11:46:03 +01:00

63 lines
1.7 KiB
Bash

# Template file for 'colord'
pkgname=colord
version=1.4.4
revision=2
build_style=meson
build_helper="gir"
# man pages fail to generate
configure_args="-Dsystemd=false -Dsane=true -Dargyllcms_sensor=false -Dman=false
-Ddaemon_user=colord -Ddocs=false $(vopt_bool gir introspection)
$(vopt_bool vala vapi)"
hostmakedepends="gettext glib-devel pkg-config $(vopt_if vala vala)"
makedepends="bash-completion lcms2-devel libgudev-devel libgusb-devel
polkit-devel sane-devel sqlite-devel"
short_desc="System daemon for managing color devices"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="GPL-2.0-only"
homepage="https://www.freedesktop.org/software/colord"
distfiles="${homepage}/releases/${pkgname}-${version}.tar.xz"
checksum=9a0fe80160bf88efddb582a9fc0169f56065276dc3882c47dddb9eecd048c0a5
system_accounts="colord"
colord_homedir="/var/lib/colord"
make_dirs="
/var/lib/colord 0755 colord colord
/var/lib/colord/icc 0755 colord colord"
if [ "$CROSS_BUILD" ]; then
hostmakedepends+=" colord"
fi
# Package build options
build_options="gir vala"
build_options_default="gir vala"
do_check() {
# assertion failed (cd_edid_get_vendor_name (edid) == "LG"): (NULL == "LG")
:
}
libcolord_package() {
short_desc+=" - runtime library"
pkg_install() {
if [ "$build_option_gir" ]; then
vmove usr/lib/girepository-1.0
fi
vmove "usr/lib/*.so.*"
}
}
colord-devel_package() {
depends="dbus-devel libglib-devel lcms2-devel eudev-libudev-devel libcolord>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
if [ "$build_option_gir" ]; then
vmove usr/share/gir-1.0
fi
if [ "$build_option_vala" ]; then
vmove usr/share/vala
fi
}
}