75 lines
2.2 KiB
Bash
75 lines
2.2 KiB
Bash
# Template file for 'colord'
|
|
pkgname=colord
|
|
version=1.2.9
|
|
revision=2
|
|
build_style=gnu-configure
|
|
configure_args="--disable-static --disable-schemas-compile
|
|
--with-systemdsystemunitdir=/usr/lib/systemd/system --enable-vala
|
|
--with-udevrulesdir=/usr/lib/udev/rules.d --with-daemon-user=colord
|
|
--enable-polkit --enable-gusb --enable-udev --enable-sane
|
|
--disable-argyllcms-sensor $(vopt_enable gir introspection)
|
|
$(vopt_enable systemd systemd-login)"
|
|
conf_files="/etc/colord.conf"
|
|
replaces="shared-color-profiles>=0"
|
|
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="Juan RP <xtraeme@gmail.com>"
|
|
homepage="http://www.freedesktop.org/software/colord"
|
|
license="GPL-2"
|
|
distfiles="$homepage/releases/$pkgname-$version.tar.xz"
|
|
checksum=48ce0db4f327c94c2bec11fed98a9a73f580d34c6edcd636d90831fe3bea5ae4
|
|
|
|
hostmakedepends="pkg-config intltool docbook2x gobject-introspection"
|
|
makedepends="vala-devel libgudev-devel polkit-devel lcms2-devel dbus-devel
|
|
libusb-devel libgusb-devel sqlite-devel sane-devel libudev-devel
|
|
$(vopt_if systemd systemd-devel) bash-completion"
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
hostmakedepends+=" automake libtool gettext-devel glib-devel gtk-doc colord"
|
|
fi
|
|
|
|
# Package build options
|
|
build_options="gir systemd"
|
|
|
|
# Disable gir for cross builds.
|
|
if [ -z "$CROSS_BUILD" ]; then
|
|
build_options_default+=" gir"
|
|
fi
|
|
|
|
pre_configure() {
|
|
if [ "$CROSS_BUILD" ]; then
|
|
# Use host utils instead.
|
|
sed -e 's,$(CD_IT8),cd-it8,g' -i data/cmf/Makefile.am data/illuminant/Makefile.am
|
|
sed -e 's,$(CD_CREATE_PROFILE),cd-create-profile,g' -i data/profiles/Makefile.am
|
|
NOCONFIGURE=1 ./autogen.sh
|
|
fi
|
|
}
|
|
|
|
libcolord_package() {
|
|
short_desc+=" - runtime library"
|
|
replaces="colord<1.0.6"
|
|
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 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
|
|
vmove usr/share/vala
|
|
fi
|
|
}
|
|
}
|