libinput is a library that handles input devices for display servers and other applications that need to directly deal with input devices. Xorg and Wayland compositors make heavy use of this package.
Install libinput by running the following commands:
mkdir build &&
cd build &&
meson setup --prefix=/usr \
--buildtype=release \
-D debug-gui=false \
-D tests=false \
-D libwacom=false \
.. &&
ninja
Now, as the root user:
ninja install
If you have passed -D
documentation=true to meson, you can install the
generated documentation by running the following commands as the
root user:
install -vdm755 /usr/share/doc/libinput-1.31.1/html && cp -rv Documentation/* /usr/share/doc/libinput-1.31.1/html
Inspect meson_options.txt or
meson.options for a full list of
options.
--buildtype=release:
Specify a buildtype suitable for stable releases of the package, as
the default may produce unoptimized binaries.
-D debug-gui=false: This
switch disables creation of a visual debug helper for libinput.
Remove this switch if you want the debug helper, and you have GTK3
installed.
-D libwacom=false: Remove
this option if you have libwacom installed, or if you are
installing GNOME.