void-packages/srcpkgs/colord/template

75 lines
2.3 KiB
Plaintext
Raw Normal View History

2011-09-29 12:38:13 +02:00
# Template file for 'colord'
pkgname=colord
2015-01-19 09:10:37 +01:00
version=1.2.8
2014-11-09 23:10:26 +01:00
revision=1
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
--with-udevrulesdir=/usr/lib/udev/rules.d --with-daemon-user=colord
--enable-polkit --enable-gusb --enable-udev --enable-sane
2015-01-15 08:09:19 +01:00
--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"
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"
2015-01-19 09:10:37 +01:00
checksum=97c3cfdd91c256f2d7a69ead1ae0c1b13f013b14b1b1b41bf1e1243771db4afc
2015-01-19 09:13:54 +01:00
hostmakedepends="pkg-config intltool docbook2x gobject-introspection"
makedepends="vala-devel>=0.20 libgudev-devel polkit-devel lcms2-devel dbus-devel
2015-01-15 08:09:19 +01:00
libusb-devel libgusb-devel>=0.1.6 sqlite-devel sane-devel libudev-devel
$(vopt_if systemd systemd-devel) bash-completion"
2014-02-07 05:06:20 +01:00
if [ "$CROSS_BUILD" ]; then
2015-01-19 09:13:54 +01:00
hostmakedepends+=" automake libtool gettext-devel glib-devel gtk-doc colord"
2014-02-07 05:06:20 +01:00
fi
# Package build options
build_options="gir systemd"
# Disable gir for cross builds.
if [ -z "$CROSS_BUILD" ]; then
build_options_default+=" gir"
fi
2014-02-07 05:06:20 +01:00
pre_configure() {
if [ "$CROSS_BUILD" ]; then
2015-01-15 08:09:19 +01:00
# 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
2014-07-28 17:37:37 +02:00
NOCONFIGURE=1 ./autogen.sh
2014-02-07 05:06:20 +01:00
fi
}
libcolord_package() {
2013-05-03 19:37:29 +02:00
short_desc+=" - runtime library"
replaces="colord<1.0.6"
pkg_install() {
if [ "$build_option_gir" ]; then
vmove usr/lib/girepository-1.0
fi
2013-06-27 06:44:57 +02:00
vmove "usr/lib/*.so.*"
}
}
colord-devel_package() {
depends="dbus-devel libglib-devel lcms2-devel libudev-devel libcolord>=${version}_${revision}"
2013-05-03 19:37:29 +02:00
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
2013-06-27 06:44:57 +02:00
vmove "usr/lib/*.so"
if [ "$build_option_gir" ]; then
vmove usr/share/gir-1.0
2014-02-07 05:06:20 +01:00
vmove usr/share/vala
fi
}
}