# Template file for 'iio-sensor-proxy'
pkgname=iio-sensor-proxy
version=3.9
revision=1
build_style=meson
configure_args="-Dsystemdsystemunitdir=/usr/lib/systemd/system/
 -Dgeoclue-user=_geoclue2"
hostmakedepends="pkg-config glib-devel libxml2"
makedepends="libgudev-devel polkit-devel"
checkdepends="python3-dbusmock python3-psutil umockdev-devel gtk+3-devel"
short_desc="IIO accelerometer sensor to input device proxy"
maintainer="Andrea Brancaleoni <abc@pompel.me>"
license="GPL-3.0-or-later"
homepage="https://gitlab.freedesktop.org/hadess/iio-sensor-proxy"
changelog="https://gitlab.freedesktop.org/hadess/iio-sensor-proxy/-/raw/master/NEWS"
distfiles="https://gitlab.freedesktop.org/hadess/iio-sensor-proxy/-/archive/${version}/${pkgname}-${version}.tar.gz"
checksum=af5edd307dcfa52dc3a242d13b7cc756e90a71640caf332efbad960e21649ae4

if [ "$XBPS_CHECK_PKGS" ]; then
	configure_args+=" -Dtests=true -Dgtk-tests=true"
fi

post_install() {
	vsv iio-sensor-proxy
}
