2011-09-29 10:38:13 +00:00
|
|
|
# Template file for 'colord'
|
|
|
|
pkgname=colord
|
2014-02-01 15:02:29 +00:00
|
|
|
version=1.0.6
|
2013-06-27 04:44:57 +00:00
|
|
|
revision=1
|
2011-10-24 12:14:47 +00:00
|
|
|
build_style=gnu-configure
|
2012-05-18 08:54:53 +00:00
|
|
|
configure_args="--disable-static --disable-schemas-compile
|
2012-10-30 21:11:38 +00:00
|
|
|
--with-systemdsystemunitdir=/usr/lib/systemd/system --enable-vala
|
2013-05-03 17:39:36 +00:00
|
|
|
--with-udevrulesdir=/usr/lib/udev/rules.d --disable-bash-completion
|
2012-10-30 21:11:38 +00:00
|
|
|
--enable-polkit --enable-volume-search --with-daemon-user=colord"
|
2014-02-01 15:02:29 +00:00
|
|
|
hostmakedepends="pkg-config intltool docbook2x"
|
2013-03-28 15:57:24 +00:00
|
|
|
makedepends="vala-devel>=0.20 libgudev-devel polkit-devel lcms2-devel dbus-devel
|
2013-04-12 06:55:23 +00:00
|
|
|
libusb-devel libgusb-devel>=0.1.6 systemd-devel sqlite-devel shared-color-profiles"
|
2014-01-01 15:10:11 +00:00
|
|
|
depends="shared-color-profiles shadow"
|
|
|
|
conf_files="/etc/colord.conf"
|
|
|
|
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 07:24:25 +00:00
|
|
|
short_desc="System daemon for managing color devices"
|
2011-09-29 10:38:13 +00:00
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2012-07-09 16:41:39 +00:00
|
|
|
homepage="http://www.freedesktop.org/software/colord"
|
2013-01-26 07:24:25 +00:00
|
|
|
license="GPL-2"
|
2012-07-09 16:41:39 +00:00
|
|
|
distfiles="$homepage/releases/$pkgname-$version.tar.xz"
|
2014-02-01 15:02:29 +00:00
|
|
|
checksum=a40bbceaa3d3b1d6fd2777b181bf641b4eb49ad249796823585136c146ad7e8e
|
|
|
|
|
|
|
|
# Package build options
|
|
|
|
build_options="gir"
|
|
|
|
desc_option_gir="Enable support for building gobject introspection data"
|
|
|
|
|
|
|
|
# Disable gir for cross builds.
|
|
|
|
if [ -z "$CROSS_BUILD" ]; then
|
|
|
|
build_options_default="gir"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ "$build_option_gir" ]; then
|
|
|
|
configure_args+=" --enable-introspection"
|
|
|
|
hostmakedepends+=" gobject-introspection"
|
|
|
|
else
|
|
|
|
configure_args+=" --disable-introspection"
|
|
|
|
fi
|
2013-04-12 06:55:23 +00:00
|
|
|
|
|
|
|
libcolord_package() {
|
2013-05-03 17:37:29 +00:00
|
|
|
short_desc+=" - runtime library"
|
2014-02-01 15:02:29 +00:00
|
|
|
replaces="colord<1.0.6"
|
2013-04-12 06:55:23 +00:00
|
|
|
pkg_install() {
|
2014-02-01 15:02:29 +00:00
|
|
|
if [ "$build_option_gir" ]; then
|
|
|
|
vmove usr/lib/girepository-1.0
|
|
|
|
fi
|
2013-06-27 04:44:57 +00:00
|
|
|
vmove "usr/lib/*.so.*"
|
2013-04-12 06:55:23 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
colord-devel_package() {
|
2013-11-12 08:31:05 +00:00
|
|
|
depends="dbus-devel libglib-devel lcms2-devel libcolord>=${version}_${revision}"
|
2013-05-03 17:37:29 +00:00
|
|
|
short_desc+=" - development files"
|
2013-04-12 06:55:23 +00:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove usr/lib/pkgconfig
|
2013-06-27 04:44:57 +00:00
|
|
|
vmove "usr/lib/*.so"
|
2014-02-01 15:02:29 +00:00
|
|
|
if [ "$build_option_gir" ]; then
|
|
|
|
vmove usr/share/gir-1.0
|
|
|
|
fi
|
2013-04-12 06:55:23 +00:00
|
|
|
vmove usr/share/vala
|
|
|
|
}
|
|
|
|
}
|