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-11.1 platform.
Download (HTTP): https://gitlab.freedesktop.org/xdg/shared-mime-info/-/archive/2.1/shared-mime-info-2.1.tar.gz
Download MD5 sum: 8d059fb2d34062a67fd9ca63fab1fb91
Download size: 5.0 MB
Estimated disk space required: 23 MB (with tests)
Estimated build time: less than 0.1 SBU
Required patch to allow building with meson-0.60 and later: https://www.linuxfromscratch.org/patches/blfs/11.1/shared-mime-info-2.1-meson_0.60_fix-1.patch
Optional download, required to run the testsuite: https://anduin.linuxfromscratch.org/BLFS/xdgmime/xdgmime.tar.xz
xdgmime md5sum: 7dfb4446705d345d3acd672024049e86
GLib-2.70.4, itstool-2.0.7, libxml2-2.9.13, and xmlto-0.0.28
User Notes: https://wiki.linuxfromscratch.org/blfs/wiki/shared-mime-info
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
One of the changes in meson-0.60 broke this package. To fix that apply a patch:
patch -p1 -i ../shared-mime-info-2.1-meson_0.60_fix-1.patch
Now build the package:
mkdir build && cd build && meson --prefix=/usr --buildtype=release -Dupdate-mimedb=true .. && ninja
If you have followed the instructions above to build xdgmime, to test the result issue ninja test.
Now, as the root
user:
ninja install
--buildtype=release
:
Specify a buildtype suitable for stable releases of the package, as
the default may produce unoptimized binaries.
-Dupdate-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.
Last updated on