mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-01-26 08:42:12 +08:00
87351a9d36
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@23542 af4574ff-66df-0310-9fd7-8a98e5e911e0
179 lines
4.9 KiB
XML
179 lines
4.9 KiB
XML
<?xml version="1.0" encoding="ISO-8859-1"?>
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
|
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
|
<!ENTITY % general-entities SYSTEM "../../general.ent">
|
|
%general-entities;
|
|
|
|
<!ENTITY shared-mime-info-download-http
|
|
"https://gitlab.freedesktop.org/xdg/shared-mime-info/uploads/0440063a2e6823a4b1a6fb2f2af8350f/shared-mime-info-&shared-mime-info-version;.tar.xz">
|
|
<!ENTITY shared-mime-info-download-ftp " ">
|
|
<!ENTITY shared-mime-info-md5sum "59ae45ffff6d334f97328e422562f937">
|
|
<!ENTITY shared-mime-info-size "4.8 MB">
|
|
<!ENTITY shared-mime-info-buildsize "29 MB">
|
|
<!ENTITY shared-mime-info-time "0.3 SBU">
|
|
]>
|
|
|
|
<sect1 id="shared-mime-info"
|
|
xreflabel="shared-mime-info-&shared-mime-info-version;">
|
|
<?dbhtml filename="shared-mime-info.html" ?>
|
|
|
|
<sect1info>
|
|
<othername>$LastChangedBy$</othername>
|
|
<date>$Date$</date>
|
|
</sect1info>
|
|
|
|
<title>shared-mime-info-&shared-mime-info-version;</title>
|
|
|
|
<indexterm zone="shared-mime-info">
|
|
<primary sortas="a-shared-mime-info">shared-mime-info</primary>
|
|
</indexterm>
|
|
|
|
<sect2 role="package">
|
|
<title>Introduction to Shared Mime Info</title>
|
|
|
|
<para>
|
|
The <application>Shared Mime Info</application> package contains a
|
|
MIME database. This allows central updates of MIME information for all
|
|
supporting applications.
|
|
</para>
|
|
|
|
&lfs10_checked;
|
|
|
|
<bridgehead renderas="sect3">Package Information</bridgehead>
|
|
<itemizedlist spacing="compact">
|
|
<listitem>
|
|
<para>
|
|
Download (HTTP): <ulink url="&shared-mime-info-download-http;"/>
|
|
</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>
|
|
Download (FTP): <ulink url="&shared-mime-info-download-ftp;"/>
|
|
</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>
|
|
Download MD5 sum: &shared-mime-info-md5sum;
|
|
</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>
|
|
Download size: &shared-mime-info-size;
|
|
</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>
|
|
Estimated disk space required: &shared-mime-info-buildsize;
|
|
</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>
|
|
Estimated build time: &shared-mime-info-time;
|
|
</para>
|
|
</listitem>
|
|
</itemizedlist>
|
|
|
|
<bridgehead renderas="sect3">Shared Mime Info Dependencies</bridgehead>
|
|
|
|
<bridgehead renderas="sect4">Required</bridgehead>
|
|
<para role="required">
|
|
<xref linkend="glib2"/>,
|
|
<xref linkend="itstool"/>,
|
|
<xref linkend="libxml2"/>, and
|
|
<xref linkend="xmlto"/>
|
|
</para>
|
|
|
|
<para condition="html" role="usernotes">User Notes:
|
|
<ulink url="&blfs-wiki;/shared-mime-info"/></para>
|
|
|
|
</sect2>
|
|
|
|
<sect2 role="installation">
|
|
<title>Installation of Shared Mime Info</title>
|
|
|
|
<para>
|
|
Install <application>Shared Mime Info</application> by running the
|
|
following commands:
|
|
</para>
|
|
|
|
<screen><userinput>mkdir build &&
|
|
cd build &&
|
|
|
|
meson --prefix=/usr -Dupdate-mimedb=true .. &&
|
|
ninja</userinput></screen>
|
|
|
|
<!--
|
|
<para>
|
|
To test the results, issue: <command>make check</command>.
|
|
</para>
|
|
-->
|
|
|
|
<!-- The files for the tests are not shipped in the tarball, and needs
|
|
an external checkout. -->
|
|
<para>
|
|
This package does not come with a working test suite.
|
|
</para>
|
|
|
|
<para>
|
|
Now, as the <systemitem class="username">root</systemitem> user:
|
|
</para>
|
|
|
|
<screen role="root"><userinput>ninja install</userinput></screen>
|
|
|
|
</sect2>
|
|
|
|
<sect2 role="commands">
|
|
<title>Command Explanations</title>
|
|
|
|
<para>
|
|
<parameter>-Dupdate-mimedb=true</parameter>: This parameter tells
|
|
the build system to run <command>update-mime-database</command> during
|
|
installation. Otherwise, this must be done manually in order to be
|
|
able to use the MIME database.
|
|
</para>
|
|
</sect2>
|
|
|
|
<sect2 role="content">
|
|
<title>Contents</title>
|
|
|
|
<segmentedlist>
|
|
<segtitle>Installed Program</segtitle>
|
|
<segtitle>Installed Library</segtitle>
|
|
<segtitle>Installed Directory</segtitle>
|
|
|
|
<seglistitem>
|
|
<seg>
|
|
update-mime-database
|
|
</seg>
|
|
<seg>
|
|
None
|
|
</seg>
|
|
<seg>
|
|
/usr/share/mime
|
|
</seg>
|
|
</seglistitem>
|
|
</segmentedlist>
|
|
|
|
<variablelist>
|
|
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
|
<?dbfo list-presentation="list"?>
|
|
<?dbhtml list-presentation="table"?>
|
|
|
|
<varlistentry id="update-mime-database">
|
|
<term><command>update-mime-database</command></term>
|
|
<listitem>
|
|
<para>
|
|
assists in adding MIME data to the database.
|
|
</para>
|
|
<indexterm zone="shared-mime-info update-mime-database">
|
|
<primary sortas="b-update-mime-database">update-mime-database</primary>
|
|
</indexterm>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
|
|
|
</sect2>
|
|
|
|
</sect1>
|