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.12.3. 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.
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
Install lib32-libxkbcommon by running the following commands:
rm -rf * &&
CC="gcc -m32" CXX="g++ -m32" \
PKG_CONFIG_PATH=/usr/lib32/pkgconfig \
meson setup .. \
--prefix=/usr \
--libdir=/usr/lib32 \
--buildtype=release \
-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
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/svn/general/doxygen.html
is not built.