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