2011-09-29 12:38:13 +02:00
|
|
|
# Template file for 'colord'
|
|
|
|
pkgname=colord
|
2014-05-09 11:58:32 +02:00
|
|
|
version=1.1.7
|
2014-05-09 12:10:04 +02:00
|
|
|
revision=2
|
2011-10-24 14:14:47 +02:00
|
|
|
build_style=gnu-configure
|
2012-05-18 10:54:53 +02:00
|
|
|
configure_args="--disable-static --disable-schemas-compile
|
2012-10-30 22:11:38 +01:00
|
|
|
--with-systemdsystemunitdir=/usr/lib/systemd/system --enable-vala
|
2014-05-09 11:58:32 +02:00
|
|
|
--with-udevrulesdir=/usr/lib/udev/rules.d --with-daemon-user=colord
|
|
|
|
--enable-polkit --enable-gusb --enable-udev --enable-sane"
|
2014-01-01 16:10:11 +01:00
|
|
|
conf_files="/etc/colord.conf"
|
2014-05-09 11:58:32 +02:00
|
|
|
replaces="shared-color-profiles>=0"
|
2014-01-01 16:10:11 +01:00
|
|
|
system_accounts="colord"
|
|
|
|
colord_homedir="/var/lib/colord"
|
|
|
|
make_dirs="
|
|
|
|
/var/lib/colord 0755 colord colord
|
|
|
|
/var/lib/colord/icc 0755 colord colord"
|
2013-01-26 08:24:25 +01:00
|
|
|
short_desc="System daemon for managing color devices"
|
2011-09-29 12:38:13 +02:00
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2012-07-09 18:41:39 +02:00
|
|
|
homepage="http://www.freedesktop.org/software/colord"
|
2013-01-26 08:24:25 +01:00
|
|
|
license="GPL-2"
|
2012-07-09 18:41:39 +02:00
|
|
|
distfiles="$homepage/releases/$pkgname-$version.tar.xz"
|
2014-05-09 11:58:32 +02:00
|
|
|
checksum=295395526ee0be30917ae9c352e68bfeb20c7fc266a605725bef969f20547f44
|
|
|
|
|
|
|
|
hostmakedepends="pkg-config intltool docbook2x"
|
|
|
|
makedepends="vala-devel>=0.20 libgudev-devel polkit-devel lcms2-devel dbus-devel
|
|
|
|
libusb-devel libgusb-devel>=0.1.6 sqlite-devel sane-devel bash-completion"
|
2014-02-01 16:02:29 +01:00
|
|
|
|
2014-02-07 05:06:20 +01:00
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
|
|
hostmakedepends+=" libtool glib-devel colord"
|
|
|
|
fi
|
|
|
|
|
2014-02-01 16:02:29 +01:00
|
|
|
# Package build options
|
2014-05-09 11:58:32 +02:00
|
|
|
build_options="gir systemd"
|
|
|
|
build_options_default="systemd"
|
2014-02-01 16:02:29 +01:00
|
|
|
|
|
|
|
# Disable gir for cross builds.
|
|
|
|
if [ -z "$CROSS_BUILD" ]; then
|
2014-05-09 11:58:32 +02:00
|
|
|
build_options_default+=" gir"
|
2014-02-01 16:02:29 +01:00
|
|
|
fi
|
|
|
|
|
|
|
|
if [ "$build_option_gir" ]; then
|
|
|
|
configure_args+=" --enable-introspection"
|
|
|
|
hostmakedepends+=" gobject-introspection"
|
|
|
|
else
|
|
|
|
configure_args+=" --disable-introspection"
|
|
|
|
fi
|
2013-04-12 08:55:23 +02:00
|
|
|
|
2014-05-09 11:58:32 +02:00
|
|
|
if [ "$build_option_systemd" ]; then
|
|
|
|
configure_args+=" --enable-systemd-login"
|
|
|
|
makedepends+=" systemd-devel"
|
|
|
|
else
|
|
|
|
configure_args+=" --disable-systemd-login"
|
|
|
|
fi
|
|
|
|
|
2014-02-07 05:06:20 +01:00
|
|
|
pre_configure() {
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
|
|
# Use host cd-create-profile instead.
|
|
|
|
sed -e 's,$(top_builddir)/client/cd-create-profile,cd-create-profile,g' -i data/profiles/Makefile.in
|
|
|
|
libtoolize -f
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
2013-04-12 08:55:23 +02:00
|
|
|
libcolord_package() {
|
2013-05-03 19:37:29 +02:00
|
|
|
short_desc+=" - runtime library"
|
2014-02-01 16:02:29 +01:00
|
|
|
replaces="colord<1.0.6"
|
2013-04-12 08:55:23 +02:00
|
|
|
pkg_install() {
|
2014-02-01 16:02:29 +01:00
|
|
|
if [ "$build_option_gir" ]; then
|
|
|
|
vmove usr/lib/girepository-1.0
|
|
|
|
fi
|
2013-06-27 06:44:57 +02:00
|
|
|
vmove "usr/lib/*.so.*"
|
2013-04-12 08:55:23 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
colord-devel_package() {
|
2014-05-09 12:10:04 +02:00
|
|
|
depends="dbus-devel libglib-devel lcms2-devel libudev-devel libcolord>=${version}_${revision}"
|
2013-05-03 19:37:29 +02:00
|
|
|
short_desc+=" - development files"
|
2013-04-12 08:55:23 +02:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove usr/lib/pkgconfig
|
2013-06-27 06:44:57 +02:00
|
|
|
vmove "usr/lib/*.so"
|
2014-02-01 16:02:29 +01:00
|
|
|
if [ "$build_option_gir" ]; then
|
|
|
|
vmove usr/share/gir-1.0
|
2014-02-07 05:06:20 +01:00
|
|
|
vmove usr/share/vala
|
2014-02-01 16:02:29 +01:00
|
|
|
fi
|
2013-04-12 08:55:23 +02:00
|
|
|
}
|
|
|
|
}
|