libxkbcommon-6f76d1 (1.13.1)

Introduction to libxkbcommon

libxkbcommon is a keymap compiler and support library which processes a reduced subset of keymaps as defined by the XKB specification.

This package will have a download using a Git snapshot. This is the same snapshot used for libxkbcommon-1.13.1. It's used because upstream tags releases in a poor manner that is both unsatisfactory to reliable download filenames and extracted directories. A git hash ensures some reliability for the version.

Important

For the lib32 installation instructions, they require new Meson cross files from MLFS, as --libdir=/usr/lib32 has been moved to the cross files and no longer appear in the instructions. Install the new cross files so that 32-bit libraries don't get installed in /usr/lib.

libxkbcommon Dependencies

Required
xkeyboard-config-2.46 (runtime)

Recommended
libxcb-1.17.0, Wayland-1.24.0, and Wayland-Protocols-1.47

Optional
Xvfb from Xorg-Server-21.1.21 or Xwayland-24.1.9

Installation of libxkbcommon

Install libxkbcommon by running the following commands:

mkdir build &&
cd    build &&

meson setup --prefix=/usr        \
            --buildtype=release  \
            -D enable-docs=false \
            .. &&
ninja

Now, as the root user:

ninja install

lib32 Installation of libxkbcommon

Install lib32-libxkbcommon by running the following commands:

rm -rf * &&
meson setup --prefix=/usr        \
            --buildtype=release  \
            --cross-file=lib32   \
            -D enable-docs=false \
            .. &&
ninja

Now, as the root user:

DESTDIR=$PWD/DESTDIR ninja install    &&
cp -vr DESTDIR/usr/lib32/* /usr/lib32 &&
rm -rf DESTDIR                        &&
ldconfig

Command Explanations

Note

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 enable-docs=false: This parameter disables building documentation as https://www.linuxfromscratch.org/blfs/view/13.0-systemd/general/doxygen.html is not built.

Contents

Installed Programs: xkbcli
Installed Libraries: libxkbcommon, libxkbcommon-x11, and libxkbregistry
Installed Directories: /usr/include/xkbcommon and /usr/libexec/xkbcommon

Short Descriptions

xkbcli

provides a debugger and compiler for XKB keymaps

libxkbcommon

contains the libxkbcommon API functions

libxkbcommon-x11

contains the libxkbcommon X11 specific API functions

libxkbregistry

contains a list of available XKB models, layouts, and variants for a given ruleset