void-packages/srcpkgs/libinput/template

45 lines
1.2 KiB
Bash

# Template file for 'libinput'
pkgname=libinput
version=1.20.0
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=04d27bce1eb8387e99740e43224b0de7ea65161826d120199bf96230132e5186
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
}
}