void-packages/srcpkgs/iio-sensor-proxy/template

34 lines
1.2 KiB
Bash

# Template file for 'iio-sensor-proxy'
pkgname=iio-sensor-proxy
version=3.4
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=9339af3bc83994a43ab25231a8ffe9ada6d9afbc16edc44d575dd9f2a69ede3c
if [ "$XBPS_CHECK_PKGS" ]; then
configure_args+=" -Dtests=true -Dgtk-tests=true"
fi
post_patch() {
# Tests expect a fr_FR.UTF-8 locale
vsed -i -e "/env\['LC_NUMERIC'\]/d" tests/integration-test.py
vsed -i -e 's/scale: 0,000010,0,000010,0,000010/scale: 0.000010,0.000010,0.000010/g' \
-e 's/scale 0,000001,0,000001,0,000001/scale 0.000001,0.000001,0.000001/g' \
tests/integration-test.py
}
post_install() {
vsv iio-sensor-proxy
}