void-packages/srcpkgs/libinput/template

45 lines
1.2 KiB
Bash

# Template file for 'libinput'
pkgname=libinput
version=1.20.1
revision=1
build_style=meson
configure_args="-Dtests=false"
hostmakedepends="pkg-config wayland-devel"
makedepends="libevdev-devel libwacom-devel mtdev-devel eudev-libudev-devel
gtk+3-devel"
checkdepends="valgrind check-devel"
short_desc="Provides handling input devices in Wayland compositors and X"
maintainer="Michal Vasilek <michal@vasilek.cz>"
license="MIT"
homepage="https://www.freedesktop.org/wiki/Software/libinput"
distfiles="https://gitlab.freedesktop.org/libinput/libinput/-/archive/${version}/libinput-${version}.tar.gz"
checksum=fbbfe95c5cf20a1790c077b703db86ff0811c04a040b15f2a8579518e8a58064
CFLAGS="-UNDEBUG"
if [ "$XBPS_CHECK_PKGS" ]; then
configure_args+=" -Dtests=true"
fi
post_install() {
vlicense COPYING
}
libinput-devel_package() {
short_desc+=" - development files"
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.so"
vmove usr/lib/pkgconfig
}
}
libinput-debug-gui_package() {
short_desc+=" - debug GUI"
pkg_install() {
vmove usr/libexec/libinput/libinput-debug-gui
vmove usr/share/man/man1/libinput-debug-gui.1
}
}