# Template file for 'spice-vdagent'
pkgname=spice-vdagent
version=0.17.0
revision=2
build_style=gnu-configure
hostmakedepends="pkg-config"
makedepends="libglib-devel dbus-devel libXfixes-devel libXrandr-devel
 libXinerama-devel libpciaccess-devel spice-protocol desktop-file-utils
 alsa-lib-devel"
depends="dbus"
short_desc="Spice agent for Linux"
homepage="http://spice-space.org/"
license="GPL-3"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
distfiles="http://www.spice-space.org/download/releases/${pkgname}-${version}.tar.bz2"
checksum=f14a8bd8cdee10641aabd9ba32461a5844eab0fddb2a10c1d31386e7a9f7b33d
configure_args="--sbindir=/usr/bin"

do_install() {
	make DESTDIR=${DESTDIR} udevrulesdir=/usr/lib/udev/rules.d install
}

post_install() {
	vsv spice-vdagentd
}
