69 lines
1.8 KiB
Bash
69 lines
1.8 KiB
Bash
# Template file for 'colord'
|
|
pkgname=colord
|
|
version=1.4.3
|
|
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="glib-devel pkg-config $(vopt_if vala vala-devel)"
|
|
makedepends="bash-completion lcms2-devel libgudev-devel libgusb-devel
|
|
polkit-devel sane-devel sqlite-devel"
|
|
short_desc="System daemon for managing color devices"
|
|
maintainer="Rasmus Thomsen <rasmus.thomsen@protonmail.com>"
|
|
license="GPL-2.0-only"
|
|
homepage="https://www.freedesktop.org/software/colord"
|
|
distfiles="${homepage}/releases/${pkgname}-${version}.tar.xz"
|
|
checksum=9a8e669ee1ea31632bee636cc57353f703c2ea9b64cd6e02bbaabe9a1e549df7
|
|
|
|
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"
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
i686-musl|x86_64-musl) build_options_default+=" gir vala" ;;
|
|
*-musl) ;;
|
|
*) build_options_default+=" gir vala" ;;
|
|
esac
|
|
|
|
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
|
|
}
|
|
}
|