[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 " ">
|
---|
[b0530c8c] | 10 | <!ENTITY shared-mime-info-md5sum "06cb9e92e4211dc53fd52b7bfd586c78">
|
---|
| 11 | <!ENTITY shared-mime-info-size "6.7 MB">
|
---|
| 12 | <!ENTITY shared-mime-info-buildsize "24 MB (with tests)">
|
---|
| 13 | <!ENTITY shared-mime-info-time "less than 0.1 SBU (with tests)">
|
---|
[b43f617] | 14 |
|
---|
| 15 | <!ENTITY xdgmime-download-http "&sources-anduin-http;/xdgmime/xdgmime.tar.xz">
|
---|
| 16 | <!ENTITY xdgmime-md5sum "7dfb4446705d345d3acd672024049e86">
|
---|
| 17 |
|
---|
[feeb99a] | 18 | ]>
|
---|
| 19 |
|
---|
[c69cf51] | 20 | <sect1 id="shared-mime-info"
|
---|
[0ce8d61] | 21 | xreflabel="shared-mime-info-&shared-mime-info-version;">
|
---|
[c69cf51] | 22 | <?dbhtml filename="shared-mime-info.html" ?>
|
---|
[a1e93c53] | 23 |
|
---|
[c69cf51] | 24 | <sect1info>
|
---|
| 25 | <date>$Date$</date>
|
---|
| 26 | </sect1info>
|
---|
| 27 |
|
---|
| 28 | <title>shared-mime-info-&shared-mime-info-version;</title>
|
---|
| 29 |
|
---|
| 30 | <indexterm zone="shared-mime-info">
|
---|
| 31 | <primary sortas="a-shared-mime-info">shared-mime-info</primary>
|
---|
| 32 | </indexterm>
|
---|
| 33 |
|
---|
| 34 | <sect2 role="package">
|
---|
[5b38e37] | 35 | <title>Introduction to Shared Mime Info</title>
|
---|
[c69cf51] | 36 |
|
---|
[5b38e37] | 37 | <para>
|
---|
| 38 | The <application>Shared Mime Info</application> package contains a
|
---|
| 39 | MIME database. This allows central updates of MIME information for all
|
---|
| 40 | supporting applications.
|
---|
| 41 | </para>
|
---|
[c69cf51] | 42 |
|
---|
[9c7363e] | 43 | &lfs111_checked;
|
---|
[af814c4] | 44 |
|
---|
[c69cf51] | 45 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 46 | <itemizedlist spacing="compact">
|
---|
| 47 | <listitem>
|
---|
[5b38e37] | 48 | <para>
|
---|
| 49 | Download (HTTP): <ulink url="&shared-mime-info-download-http;"/>
|
---|
| 50 | </para>
|
---|
[c69cf51] | 51 | </listitem>
|
---|
[af814c4] | 52 | <listitem>
|
---|
[5b38e37] | 53 | <para>
|
---|
| 54 | Download (FTP): <ulink url="&shared-mime-info-download-ftp;"/>
|
---|
| 55 | </para>
|
---|
[af814c4] | 56 | </listitem>
|
---|
[c69cf51] | 57 | <listitem>
|
---|
[5b38e37] | 58 | <para>
|
---|
| 59 | Download MD5 sum: &shared-mime-info-md5sum;
|
---|
| 60 | </para>
|
---|
[c69cf51] | 61 | </listitem>
|
---|
| 62 | <listitem>
|
---|
[5b38e37] | 63 | <para>
|
---|
| 64 | Download size: &shared-mime-info-size;
|
---|
| 65 | </para>
|
---|
[c69cf51] | 66 | </listitem>
|
---|
| 67 | <listitem>
|
---|
[5b38e37] | 68 | <para>
|
---|
| 69 | Estimated disk space required: &shared-mime-info-buildsize;
|
---|
| 70 | </para>
|
---|
[c69cf51] | 71 | </listitem>
|
---|
| 72 | <listitem>
|
---|
[5b38e37] | 73 | <para>
|
---|
| 74 | Estimated build time: &shared-mime-info-time;
|
---|
| 75 | </para>
|
---|
[c69cf51] | 76 | </listitem>
|
---|
| 77 | </itemizedlist>
|
---|
| 78 |
|
---|
[b43f617] | 79 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
| 80 | <itemizedlist spacing="compact">
|
---|
[db4c8fb] | 81 | <listitem>
|
---|
| 82 | <para>
|
---|
| 83 | Optional download, required to run the testsuite:
|
---|
| 84 | <ulink url="&xdgmime-download-http;"/>
|
---|
[b43f617] | 85 | </para>
|
---|
[db4c8fb] | 86 | <para>
|
---|
[b43f617] | 87 | xdgmime md5sum: &xdgmime-md5sum;
|
---|
| 88 | </para>
|
---|
| 89 | </listitem>
|
---|
| 90 | </itemizedlist>
|
---|
| 91 |
|
---|
[5b38e37] | 92 | <bridgehead renderas="sect3">Shared Mime Info Dependencies</bridgehead>
|
---|
[c69cf51] | 93 |
|
---|
| 94 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
[98d5a95] | 95 | <para role="required">
|
---|
[2cd8183] | 96 | <xref linkend="glib2"/> and
|
---|
[b0530c8c] | 97 | <xref linkend="libxml2"/>
|
---|
| 98 | </para>
|
---|
| 99 |
|
---|
| 100 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 101 | <para role="optional">
|
---|
[0e69a62] | 102 | <xref linkend="xmlto"/>
|
---|
[98d5a95] | 103 | </para>
|
---|
[18971e0d] | 104 |
|
---|
[c5c2654] | 105 | <para condition="html" role="usernotes">User Notes:
|
---|
| 106 | <ulink url="&blfs-wiki;/shared-mime-info"/></para>
|
---|
| 107 |
|
---|
[c69cf51] | 108 | </sect2>
|
---|
| 109 |
|
---|
| 110 | <sect2 role="installation">
|
---|
[5b38e37] | 111 | <title>Installation of Shared Mime Info</title>
|
---|
[7b29f96] | 112 |
|
---|
[5b38e37] | 113 | <para>
|
---|
| 114 | Install <application>Shared Mime Info</application> by running the
|
---|
| 115 | following commands:
|
---|
| 116 | </para>
|
---|
[c69cf51] | 117 |
|
---|
[db4c8fb] | 118 | <para>
|
---|
[b43f617] | 119 | If you wish to run the test suite, you must first extract the
|
---|
| 120 | <filename>xdgmime</filename> tarball into the current directory,
|
---|
| 121 | and compile it so that <command>meson</command> can find it:
|
---|
| 122 | </para>
|
---|
| 123 |
|
---|
[db4c8fb] | 124 | <screen remap="test"><userinput>tar -xf ../xdgmime.tar.xz &&
|
---|
[b43f617] | 125 | make -C xdgmime</userinput></screen>
|
---|
| 126 |
|
---|
| 127 | <para>
|
---|
| 128 | Now build the package:
|
---|
| 129 | </para>
|
---|
| 130 |
|
---|
[0e69a62] | 131 | <screen><userinput>mkdir build &&
|
---|
| 132 | cd build &&
|
---|
[c69cf51] | 133 |
|
---|
[20f070d8] | 134 | meson --prefix=/usr --buildtype=release -Dupdate-mimedb=true .. &&
|
---|
[0e69a62] | 135 | ninja</userinput></screen>
|
---|
| 136 |
|
---|
[b43f617] | 137 | <para role="optional">
|
---|
| 138 | If you have followed the instructions above to build
|
---|
| 139 | <application>xdgmime</application>, to test the result issue
|
---|
| 140 | <command>ninja test</command>.
|
---|
[0e69a62] | 141 | </para>
|
---|
[b053e55c] | 142 |
|
---|
[5b38e37] | 143 | <para>
|
---|
| 144 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 145 | </para>
|
---|
[c69cf51] | 146 |
|
---|
[0e69a62] | 147 | <screen role="root"><userinput>ninja install</userinput></screen>
|
---|
[c69cf51] | 148 |
|
---|
| 149 | </sect2>
|
---|
| 150 |
|
---|
[1a75cc3] | 151 | <sect2 role="commands">
|
---|
| 152 | <title>Command Explanations</title>
|
---|
| 153 |
|
---|
[20f070d8] | 154 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 155 | href="../../xincludes/meson-buildtype-release.xml"/>
|
---|
| 156 |
|
---|
[1a75cc3] | 157 | <para>
|
---|
| 158 | <parameter>-Dupdate-mimedb=true</parameter>: This parameter tells
|
---|
| 159 | the build system to run <command>update-mime-database</command> during
|
---|
| 160 | installation. Otherwise, this must be done manually in order to be
|
---|
| 161 | able to use the MIME database.
|
---|
| 162 | </para>
|
---|
| 163 | </sect2>
|
---|
| 164 |
|
---|
[c69cf51] | 165 | <sect2 role="content">
|
---|
| 166 | <title>Contents</title>
|
---|
| 167 |
|
---|
| 168 | <segmentedlist>
|
---|
| 169 | <segtitle>Installed Program</segtitle>
|
---|
[f12b2cfa] | 170 | <segtitle>Installed Library</segtitle>
|
---|
[c69cf51] | 171 | <segtitle>Installed Directory</segtitle>
|
---|
| 172 |
|
---|
| 173 | <seglistitem>
|
---|
[88ed85c] | 174 | <seg>
|
---|
| 175 | update-mime-database
|
---|
| 176 | </seg>
|
---|
[f12b2cfa] | 177 | <seg>
|
---|
| 178 | None
|
---|
| 179 | </seg>
|
---|
[88ed85c] | 180 | <seg>
|
---|
| 181 | /usr/share/mime
|
---|
| 182 | </seg>
|
---|
[c69cf51] | 183 | </seglistitem>
|
---|
| 184 | </segmentedlist>
|
---|
| 185 |
|
---|
| 186 | <variablelist>
|
---|
| 187 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 188 | <?dbfo list-presentation="list"?>
|
---|
| 189 | <?dbhtml list-presentation="table"?>
|
---|
| 190 |
|
---|
| 191 | <varlistentry id="update-mime-database">
|
---|
| 192 | <term><command>update-mime-database</command></term>
|
---|
| 193 | <listitem>
|
---|
[5b38e37] | 194 | <para>
|
---|
[4c24eb0a] | 195 | assists in adding MIME data to the database
|
---|
[5b38e37] | 196 | </para>
|
---|
[c69cf51] | 197 | <indexterm zone="shared-mime-info update-mime-database">
|
---|
| 198 | <primary sortas="b-update-mime-database">update-mime-database</primary>
|
---|
| 199 | </indexterm>
|
---|
| 200 | </listitem>
|
---|
| 201 | </varlistentry>
|
---|
| 202 |
|
---|
| 203 | </variablelist>
|
---|
| 204 |
|
---|
| 205 | </sect2>
|
---|
| 206 |
|
---|
| 207 | </sect1>
|
---|