# Template file for 'gnome-settings-daemon'
pkgname=gnome-settings-daemon
version=3.18.2
revision=1
build_style=gnu-configure
configure_args="--disable-static --disable-schemas-compile --enable-cups"
hostmakedepends="pkg-config intltool libxslt docbook-xsl glib-devel"
makedepends="geocode-glib-devel colord-devel libxklavier-devel
 gtk+3-devel libcanberra-devel pulseaudio-devel nss-devel libnotify-devel
 startup-notification-devel gnome-desktop-devel libgnomekbd-devel
 xf86-input-wacom-devel libwacom-devel librsvg-devel
 ibus-devel cups-devel libgudev-devel upower-devel polkit-devel
 libgweather-devel geoclue2 NetworkManager-devel"
depends="geoclue2>=2.1 pulseaudio hicolor-icon-theme $(vopt_if systemd upower)"
short_desc="GNOME settings daemon"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
homepage="http://www.gnome.org"
license="GPL-3"
distfiles="${GNOME_SITE}/$pkgname/${version%.*}/$pkgname-$version.tar.xz"
checksum=3071c7258f22684f7f64b7f735821e4cb25f59fc4665eb08e8d86b560e72fc6f

pre_configure() {
	# XXX workaround wrong paths for build
	if [ "$CROSS_BUILD" ]; then
		sed -i "s#^GEOCLUE_DBUS_INTERFACE_XML=#\0${XBPS_CROSS_BASE}#" configure
	fi
}
gnome-settings-daemon-devel_package() {
	depends="libglib-devel"
	short_desc+=" - development files"
	pkg_install() {
		vmove usr/include
		vmove usr/lib/pkgconfig
	}
}
