# Template file for 'cinnamon-settings-daemon'
pkgname=cinnamon-settings-daemon
version=2.2.4
revision=4
patch_args="-Np1"
short_desc="The Cinnamon Settings Daemon"
build_style=gnu-configure
configure_args=" --disable-static --disable-schemas-compile --disable-gconf
 $(vopt_enable systemd)"
hostmakedepends="automake libtool gnome-common pkg-config gobject-introspection
 gettext-devel intltool xmlto docbook-xml git"
makedepends="gtk+3-devel dbus-devel upower0-devel json-glib-devel libSM-devel
 libnotify-devel cinnamon-desktop-devel lcms2-devel ibus-devel nss-devel
 pulseaudio-devel libcanberra-devel colord-devel cups-devel polkit-devel
 libgnomekbd-devel libxklavier-devel kbproto $(vopt_if systemd systemd-devel)"
depends="desktop-file-utils hicolor-icon-theme"
maintainer="Juan RP <xtraeme@gmail.com>"
license="GPL-3"
homepage="http://cinnamon.linuxmint.com/"

build_options="systemd"

do_fetch() {
	git clone -b ${version} git://github.com/linuxmint/${pkgname} ${pkgname}-${version}
}

pre_configure() {
	NOCONFIGURE=1 ./autogen.sh
}

cinnamon-settings-daemon-devel_package() {
	short_desc+=" - development files"
	depends="libglib-devel"
	pkg_install() {
		vmove usr/include
		vmove usr/lib/pkgconfig
	}
}
