1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
5 | %general-entities;
|
---|
6 |
|
---|
7 | <!ENTITY shared-mime-info-download-http
|
---|
8 | "https://gitlab.freedesktop.org/xdg/shared-mime-info/-/archive/&shared-mime-info-version;/shared-mime-info-&shared-mime-info-version;.tar.gz">
|
---|
9 | <!ENTITY shared-mime-info-download-ftp " ">
|
---|
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)">
|
---|
13 | <!ENTITY shared-mime-info-time "less than 0.1 SBU (with tests)">
|
---|
14 |
|
---|
15 | <!ENTITY xdgmime-download-http "&sources-anduin-http;/xdgmime/xdgmime.tar.xz">
|
---|
16 | <!ENTITY xdgmime-md5sum "7dfb4446705d345d3acd672024049e86">
|
---|
17 |
|
---|
18 | ]>
|
---|
19 |
|
---|
20 | <sect1 id="shared-mime-info"
|
---|
21 | xreflabel="shared-mime-info-&shared-mime-info-version;">
|
---|
22 | <?dbhtml filename="shared-mime-info.html" ?>
|
---|
23 |
|
---|
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">
|
---|
32 | <title>Introduction to Shared Mime Info</title>
|
---|
33 |
|
---|
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>
|
---|
39 |
|
---|
40 | &lfs122_checked;
|
---|
41 |
|
---|
42 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
43 | <itemizedlist spacing="compact">
|
---|
44 | <listitem>
|
---|
45 | <para>
|
---|
46 | Download (HTTP): <ulink url="&shared-mime-info-download-http;"/>
|
---|
47 | </para>
|
---|
48 | </listitem>
|
---|
49 | <listitem>
|
---|
50 | <para>
|
---|
51 | Download (FTP): <ulink url="&shared-mime-info-download-ftp;"/>
|
---|
52 | </para>
|
---|
53 | </listitem>
|
---|
54 | <listitem>
|
---|
55 | <para>
|
---|
56 | Download MD5 sum: &shared-mime-info-md5sum;
|
---|
57 | </para>
|
---|
58 | </listitem>
|
---|
59 | <listitem>
|
---|
60 | <para>
|
---|
61 | Download size: &shared-mime-info-size;
|
---|
62 | </para>
|
---|
63 | </listitem>
|
---|
64 | <listitem>
|
---|
65 | <para>
|
---|
66 | Estimated disk space required: &shared-mime-info-buildsize;
|
---|
67 | </para>
|
---|
68 | </listitem>
|
---|
69 | <listitem>
|
---|
70 | <para>
|
---|
71 | Estimated build time: &shared-mime-info-time;
|
---|
72 | </para>
|
---|
73 | </listitem>
|
---|
74 | </itemizedlist>
|
---|
75 |
|
---|
76 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
77 | <itemizedlist spacing="compact">
|
---|
78 | <listitem>
|
---|
79 | <para>
|
---|
80 | Optional download, required to run the test suite:
|
---|
81 | <ulink url="&xdgmime-download-http;"/>
|
---|
82 | </para>
|
---|
83 | <para>
|
---|
84 | xdgmime md5sum: &xdgmime-md5sum;
|
---|
85 | </para>
|
---|
86 | </listitem>
|
---|
87 | </itemizedlist>
|
---|
88 |
|
---|
89 | <bridgehead renderas="sect3">Shared Mime Info Dependencies</bridgehead>
|
---|
90 |
|
---|
91 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
92 | <para role="required">
|
---|
93 | <xref linkend="glib2"/> and
|
---|
94 | <xref linkend="libxml2"/>
|
---|
95 | </para>
|
---|
96 |
|
---|
97 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
98 | <para role="optional">
|
---|
99 | <xref linkend="xmlto"/>
|
---|
100 | </para>
|
---|
101 |
|
---|
102 |
|
---|
103 | </sect2>
|
---|
104 |
|
---|
105 | <sect2 role="installation">
|
---|
106 | <title>Installation of Shared Mime Info</title>
|
---|
107 |
|
---|
108 | <para>
|
---|
109 | Install <application>Shared Mime Info</application> by running the
|
---|
110 | following commands:
|
---|
111 | </para>
|
---|
112 |
|
---|
113 | <para>
|
---|
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 |
|
---|
119 | <screen remap="test"><userinput>tar -xf ../xdgmime.tar.xz &&
|
---|
120 | make -C xdgmime</userinput></screen>
|
---|
121 |
|
---|
122 | <para>
|
---|
123 | Now build the package:
|
---|
124 | </para>
|
---|
125 |
|
---|
126 | <screen><userinput>mkdir build &&
|
---|
127 | cd build &&
|
---|
128 |
|
---|
129 | meson setup --prefix=/usr --buildtype=release -D update-mimedb=true .. &&
|
---|
130 | ninja</userinput></screen>
|
---|
131 |
|
---|
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>.
|
---|
136 | </para>
|
---|
137 |
|
---|
138 | <para>
|
---|
139 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
140 | </para>
|
---|
141 |
|
---|
142 | <screen role="root"><userinput>ninja install</userinput></screen>
|
---|
143 |
|
---|
144 | </sect2>
|
---|
145 |
|
---|
146 | <sect2 role="commands">
|
---|
147 | <title>Command Explanations</title>
|
---|
148 |
|
---|
149 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
150 | href="../../xincludes/meson-buildtype-release.xml"/>
|
---|
151 |
|
---|
152 | <para>
|
---|
153 | <parameter>-D update-mimedb=true</parameter>: This parameter tells
|
---|
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 |
|
---|
160 | <sect2 role="content">
|
---|
161 | <title>Contents</title>
|
---|
162 |
|
---|
163 | <segmentedlist>
|
---|
164 | <segtitle>Installed Program</segtitle>
|
---|
165 | <segtitle>Installed Library</segtitle>
|
---|
166 | <segtitle>Installed Directory</segtitle>
|
---|
167 |
|
---|
168 | <seglistitem>
|
---|
169 | <seg>
|
---|
170 | update-mime-database
|
---|
171 | </seg>
|
---|
172 | <seg>
|
---|
173 | None
|
---|
174 | </seg>
|
---|
175 | <seg>
|
---|
176 | /usr/share/mime
|
---|
177 | </seg>
|
---|
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>
|
---|
189 | <para>
|
---|
190 | assists in adding MIME data to the database
|
---|
191 | </para>
|
---|
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>
|
---|