void-packages/srcpkgs/libratbag/template
2018-09-05 22:49:56 -03:00

39 lines
1 KiB
Bash

# Template file for 'libratbag'
pkgname=libratbag
version=0.9.903
revision=1
build_style=meson
configure_args="-Dtests=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=7d29ff79700a8dbd7bba257f4d86d281808d2f1005799eb0653231df3590f6c5
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"
}
}