[feeb99a] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[6732c094] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[feeb99a] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[0d7900a] | 7 | <!ENTITY shared-mime-info-download-http
|
---|
[7cd9d3e0] | 8 | "https://gitlab.freedesktop.org/xdg/shared-mime-info/-/archive/&shared-mime-info-version;/shared-mime-info-&shared-mime-info-version;.tar.gz">
|
---|
[1087d94] | 9 | <!ENTITY shared-mime-info-download-ftp " ">
|
---|
[7cd9d3e0] | 10 | <!ENTITY shared-mime-info-md5sum "8d059fb2d34062a67fd9ca63fab1fb91">
|
---|
[9bd0c0e8] | 11 | <!ENTITY shared-mime-info-size "5.0 MB">
|
---|
| 12 | <!ENTITY shared-mime-info-buildsize "26 MB">
|
---|
| 13 | <!ENTITY shared-mime-info-time "less than 0.1 SBU">
|
---|
[feeb99a] | 14 | ]>
|
---|
| 15 |
|
---|
[c69cf51] | 16 | <sect1 id="shared-mime-info"
|
---|
[0ce8d61] | 17 | xreflabel="shared-mime-info-&shared-mime-info-version;">
|
---|
[c69cf51] | 18 | <?dbhtml filename="shared-mime-info.html" ?>
|
---|
[a1e93c53] | 19 |
|
---|
[c69cf51] | 20 | <sect1info>
|
---|
| 21 | <date>$Date$</date>
|
---|
| 22 | </sect1info>
|
---|
| 23 |
|
---|
| 24 | <title>shared-mime-info-&shared-mime-info-version;</title>
|
---|
| 25 |
|
---|
| 26 | <indexterm zone="shared-mime-info">
|
---|
| 27 | <primary sortas="a-shared-mime-info">shared-mime-info</primary>
|
---|
| 28 | </indexterm>
|
---|
| 29 |
|
---|
| 30 | <sect2 role="package">
|
---|
[5b38e37] | 31 | <title>Introduction to Shared Mime Info</title>
|
---|
[c69cf51] | 32 |
|
---|
[5b38e37] | 33 | <para>
|
---|
| 34 | The <application>Shared Mime Info</application> package contains a
|
---|
| 35 | MIME database. This allows central updates of MIME information for all
|
---|
| 36 | supporting applications.
|
---|
| 37 | </para>
|
---|
[c69cf51] | 38 |
|
---|
[66d551c] | 39 | &lfs101_checked;
|
---|
[af814c4] | 40 |
|
---|
[c69cf51] | 41 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 42 | <itemizedlist spacing="compact">
|
---|
| 43 | <listitem>
|
---|
[5b38e37] | 44 | <para>
|
---|
| 45 | Download (HTTP): <ulink url="&shared-mime-info-download-http;"/>
|
---|
| 46 | </para>
|
---|
[c69cf51] | 47 | </listitem>
|
---|
[af814c4] | 48 | <listitem>
|
---|
[5b38e37] | 49 | <para>
|
---|
| 50 | Download (FTP): <ulink url="&shared-mime-info-download-ftp;"/>
|
---|
| 51 | </para>
|
---|
[af814c4] | 52 | </listitem>
|
---|
[c69cf51] | 53 | <listitem>
|
---|
[5b38e37] | 54 | <para>
|
---|
| 55 | Download MD5 sum: &shared-mime-info-md5sum;
|
---|
| 56 | </para>
|
---|
[c69cf51] | 57 | </listitem>
|
---|
| 58 | <listitem>
|
---|
[5b38e37] | 59 | <para>
|
---|
| 60 | Download size: &shared-mime-info-size;
|
---|
| 61 | </para>
|
---|
[c69cf51] | 62 | </listitem>
|
---|
| 63 | <listitem>
|
---|
[5b38e37] | 64 | <para>
|
---|
| 65 | Estimated disk space required: &shared-mime-info-buildsize;
|
---|
| 66 | </para>
|
---|
[c69cf51] | 67 | </listitem>
|
---|
| 68 | <listitem>
|
---|
[5b38e37] | 69 | <para>
|
---|
| 70 | Estimated build time: &shared-mime-info-time;
|
---|
| 71 | </para>
|
---|
[c69cf51] | 72 | </listitem>
|
---|
| 73 | </itemizedlist>
|
---|
| 74 |
|
---|
[5b38e37] | 75 | <bridgehead renderas="sect3">Shared Mime Info Dependencies</bridgehead>
|
---|
[c69cf51] | 76 |
|
---|
| 77 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
[98d5a95] | 78 | <para role="required">
|
---|
[7b29f96] | 79 | <xref linkend="glib2"/>,
|
---|
[0e69a62] | 80 | <xref linkend="itstool"/>,
|
---|
| 81 | <xref linkend="libxml2"/>, and
|
---|
| 82 | <xref linkend="xmlto"/>
|
---|
[98d5a95] | 83 | </para>
|
---|
[18971e0d] | 84 |
|
---|
[c5c2654] | 85 | <para condition="html" role="usernotes">User Notes:
|
---|
| 86 | <ulink url="&blfs-wiki;/shared-mime-info"/></para>
|
---|
| 87 |
|
---|
[c69cf51] | 88 | </sect2>
|
---|
| 89 |
|
---|
| 90 | <sect2 role="installation">
|
---|
[5b38e37] | 91 | <title>Installation of Shared Mime Info</title>
|
---|
[7b29f96] | 92 |
|
---|
[5b38e37] | 93 | <para>
|
---|
| 94 | Install <application>Shared Mime Info</application> by running the
|
---|
| 95 | following commands:
|
---|
| 96 | </para>
|
---|
[c69cf51] | 97 |
|
---|
[0e69a62] | 98 | <screen><userinput>mkdir build &&
|
---|
| 99 | cd build &&
|
---|
[c69cf51] | 100 |
|
---|
[1a75cc3] | 101 | meson --prefix=/usr -Dupdate-mimedb=true .. &&
|
---|
[0e69a62] | 102 | ninja</userinput></screen>
|
---|
| 103 |
|
---|
[5b38e37] | 104 | <para>
|
---|
[f3634b6] | 105 | To test the result, issue <command>ninja test</command>.
|
---|
[0e69a62] | 106 | </para>
|
---|
[b053e55c] | 107 |
|
---|
[5b38e37] | 108 | <para>
|
---|
| 109 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 110 | </para>
|
---|
[c69cf51] | 111 |
|
---|
[0e69a62] | 112 | <screen role="root"><userinput>ninja install</userinput></screen>
|
---|
[c69cf51] | 113 |
|
---|
| 114 | </sect2>
|
---|
| 115 |
|
---|
[1a75cc3] | 116 | <sect2 role="commands">
|
---|
| 117 | <title>Command Explanations</title>
|
---|
| 118 |
|
---|
| 119 | <para>
|
---|
| 120 | <parameter>-Dupdate-mimedb=true</parameter>: This parameter tells
|
---|
| 121 | the build system to run <command>update-mime-database</command> during
|
---|
| 122 | installation. Otherwise, this must be done manually in order to be
|
---|
| 123 | able to use the MIME database.
|
---|
| 124 | </para>
|
---|
| 125 | </sect2>
|
---|
| 126 |
|
---|
[c69cf51] | 127 | <sect2 role="content">
|
---|
| 128 | <title>Contents</title>
|
---|
| 129 |
|
---|
| 130 | <segmentedlist>
|
---|
| 131 | <segtitle>Installed Program</segtitle>
|
---|
[f12b2cfa] | 132 | <segtitle>Installed Library</segtitle>
|
---|
[c69cf51] | 133 | <segtitle>Installed Directory</segtitle>
|
---|
| 134 |
|
---|
| 135 | <seglistitem>
|
---|
[88ed85c] | 136 | <seg>
|
---|
| 137 | update-mime-database
|
---|
| 138 | </seg>
|
---|
[f12b2cfa] | 139 | <seg>
|
---|
| 140 | None
|
---|
| 141 | </seg>
|
---|
[88ed85c] | 142 | <seg>
|
---|
| 143 | /usr/share/mime
|
---|
| 144 | </seg>
|
---|
[c69cf51] | 145 | </seglistitem>
|
---|
| 146 | </segmentedlist>
|
---|
| 147 |
|
---|
| 148 | <variablelist>
|
---|
| 149 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 150 | <?dbfo list-presentation="list"?>
|
---|
| 151 | <?dbhtml list-presentation="table"?>
|
---|
| 152 |
|
---|
| 153 | <varlistentry id="update-mime-database">
|
---|
| 154 | <term><command>update-mime-database</command></term>
|
---|
| 155 | <listitem>
|
---|
[5b38e37] | 156 | <para>
|
---|
[4c24eb0a] | 157 | assists in adding MIME data to the database
|
---|
[5b38e37] | 158 | </para>
|
---|
[c69cf51] | 159 | <indexterm zone="shared-mime-info update-mime-database">
|
---|
| 160 | <primary sortas="b-update-mime-database">update-mime-database</primary>
|
---|
| 161 | </indexterm>
|
---|
| 162 | </listitem>
|
---|
| 163 | </varlistentry>
|
---|
| 164 |
|
---|
| 165 | </variablelist>
|
---|
| 166 |
|
---|
| 167 | </sect2>
|
---|
| 168 |
|
---|
| 169 | </sect1>
|
---|