makedepends=(alsa-lib dbus glib xorg-libpciaccess xorg-libxfixes xorg-libxinerama xorg-libxrandr xorg-libdrm systemd spice-protocol desktop-file-utils)

description="Spice agent for Linux guests"
url="https://www.spice-space.org"

packager="Great-OS Team"
maintainer="rems"

name=spice-vdagent
version=0.23.0
release=1

source=(https://www.spice-space.org/download/releases/$name-$version.tar.bz2)

build() {
cd $name-$version
 
./configure --prefix=/usr \
            --sysconfdir=/etc \
            --localstatedir=/var \
            --with-session-info=systemd \
            --with-init-script=systemd

make
make DESTDIR=$PKG install

install -dm755 "$PKG/etc/sysconfig/"
echo 'SPICE_VDAGENTD_EXTRA_ARGS=""' > "$PKG/etc/sysconfig/spice-vdagentd"
}
