The Shared Mime Info package contains a MIME database. This allows central updates of MIME information for all supporting applications.
This package is known to build and work properly using an LFS 12.4 platform.
Download (HTTP): https://gitlab.freedesktop.org/xdg/shared-mime-info/-/archive/2.4/shared-mime-info-2.4.tar.gz
Download SHA256 Sum: 531291d0387eb94e16e775d7e73788d06d2b2fdd8cd2ac6b6b15287593b6a2de
Download MD5 sum: aac56db912b7b12a04fb0018e28f2f36
Download size: 7.5 MB
Estimated disk space required: 26 MB (with tests)
Estimated build time: less than 0.1 SBU (with tests)
Optional download, required to run the test suite: https://anduin.linuxfromscratch.org/BLFS/xdgmime/xdgmime.tar.xz
xdgmime sha256sum: 9020f04a0bb841e3cd9c6c5f60a75087eb21def5b17a651ee53f99524873cb18
xdgmime md5sum: 7dfb4446705d345d3acd672024049e86
GLib-2.86.2 and libxml2-2.15.1
Install Shared Mime Info by running the following commands:
If you wish to run the test suite, you must first extract the
xdgmime tarball into the current directory,
and compile it so that meson can find it:
tar -xf ../xdgmime.tar.xz make -C xdgmime
Now build the package:
meson setup build --prefix=/usr --buildtype=release -D update-mimedb=true
ninja -C build
If you have followed the instructions above to build xdgmime, to test the result issue:
ninja -C build test
Now Install, as the root user:
ninja -C build install
-D update-mimedb=true: This parameter tells
the build system to run update-mime-database during
installation. Otherwise, this must be done manually in order to be
able to use the MIME database.