void-packages/srcpkgs/colord/template

66 lines
1.8 KiB
Bash

# Template file for 'colord'
pkgname=colord
version=1.4.3
revision=1
build_style=meson
# 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="glib-devel pkg-config $(vopt_if gir gobject-introspection)"
makedepends="bash-completion lcms2-devel libgudev-devel libgusb-devel
polkit-devel sane-devel sqlite-devel $(vopt_if vala vala-devel)"
system_accounts="colord"
colord_homedir="/var/lib/colord"
make_dirs="
/var/lib/colord 0755 colord colord
/var/lib/colord/icc 0755 colord colord"
short_desc="System daemon for managing color devices"
maintainer="Rasmus Thomsen <rasmus.thomsen@protonmail.com>"
homepage="https://www.freedesktop.org/software/colord"
license="GPL-2.0-only"
distfiles="${homepage}/releases/${pkgname}-${version}.tar.xz"
checksum=9a8e669ee1ea31632bee636cc57353f703c2ea9b64cd6e02bbaabe9a1e549df7
if [ "$CROSS_BUILD" ]; then
hostmakedepends+="colord glib-devel"
fi
# Package build options
build_options="gir vala"
# Disable gir and gusb for cross builds.
if [ -z "$CROSS_BUILD" ]; then
build_options_default="gir vala"
fi
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
}
}