void-packages/srcpkgs/libratbag/template

40 lines
1.0 KiB
Bash

# Template file for 'libratbag'
pkgname=libratbag
version=0.9.902
revision=1
build_style=meson
configure_args="-Denable-tests=false -Dsystemd-unit-dir=''
-Dsystemd=false"
hostmakedepends="pkg-config git swig"
makedepends="elogind-devel eudev-libudev-devel libglib-devel libevdev-devel
python3-devel"
depends="dbus python3-evdev python3-gobject"
short_desc="DBus daemon to configure gaming mice"
maintainer="maxice8 <thinkabit.ukim@gmail.com>"
license="MIT"
homepage="https://github.com/libratbag/libratbag"
distfiles="https://github.com/libratbag/libratbag/archive/v${version}.tar.gz"
checksum=01c0dac6b8cd997c3bec84a51c0a86fc8727e3a20635bf7e2c5e0f0b8c5df34c
if [ "$CROSS_BUILD" ]; then
case "$XBPS_TARGET_MACHINE" in
x86_64*|i686*) ;;
*) broken="Requires gobject introspection"
esac
fi
post_install() {
vsv ratbagd
vlicense COPYING
}
libratbag-devel_package() {
depends="libratbag-${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
}
}