void-packages/srcpkgs/libinput/template
Michal Vasilek a1cf22dc19 libinput: update to 1.19.3.
* split debug_gui to a subpackage
2021-12-18 12:26:43 +01:00

44 lines
1.1 KiB
Bash

# Template file for 'libinput'
pkgname=libinput
version=1.19.3
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="${FREEDESKTOP_SITE}/${pkgname}/${pkgname}-${version}.tar.xz"
checksum=3cae78ccde19d7d0f387e58bc734d4d17ab5f6426f54a9e8b728c90b17baa068
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
}
}