1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
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 "8d059fb2d34062a67fd9ca63fab1fb91">
|
---|
11 | <!ENTITY shared-mime-info-size "5.0 MB">
|
---|
12 | <!ENTITY shared-mime-info-buildsize "30 MB (add 1MB if running the tests)">
|
---|
13 | <!ENTITY shared-mime-info-time "less than 0.1 SBU using parallelism=4">
|
---|
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 | <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">
|
---|
35 | <title>Introduction to Shared Mime Info</title>
|
---|
36 |
|
---|
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>
|
---|
42 |
|
---|
43 | &lfs110a_checked;
|
---|
44 |
|
---|
45 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
46 | <itemizedlist spacing="compact">
|
---|
47 | <listitem>
|
---|
48 | <para>
|
---|
49 | Download (HTTP): <ulink url="&shared-mime-info-download-http;"/>
|
---|
50 | </para>
|
---|
51 | </listitem>
|
---|
52 | <listitem>
|
---|
53 | <para>
|
---|
54 | Download (FTP): <ulink url="&shared-mime-info-download-ftp;"/>
|
---|
55 | </para>
|
---|
56 | </listitem>
|
---|
57 | <listitem>
|
---|
58 | <para>
|
---|
59 | Download MD5 sum: &shared-mime-info-md5sum;
|
---|
60 | </para>
|
---|
61 | </listitem>
|
---|
62 | <listitem>
|
---|
63 | <para>
|
---|
64 | Download size: &shared-mime-info-size;
|
---|
65 | </para>
|
---|
66 | </listitem>
|
---|
67 | <listitem>
|
---|
68 | <para>
|
---|
69 | Estimated disk space required: &shared-mime-info-buildsize;
|
---|
70 | </para>
|
---|
71 | </listitem>
|
---|
72 | <listitem>
|
---|
73 | <para>
|
---|
74 | Estimated build time: &shared-mime-info-time;
|
---|
75 | </para>
|
---|
76 | </listitem>
|
---|
77 | </itemizedlist>
|
---|
78 |
|
---|
79 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
80 | <itemizedlist spacing="compact">
|
---|
81 | <listitem>
|
---|
82 | <para>
|
---|
83 | Required patch to allow building with meson-0.60 and later:
|
---|
84 | <ulink url="&patch-root;/shared-mime-info-&shared-mime-info-version;-meson_0.60_fix-1.patch"/>
|
---|
85 | </para>
|
---|
86 | <para role="optional">
|
---|
87 | Optional download, required to run the testsuite:
|
---|
88 | <ulink url="&xdgmime-download-http;"/>
|
---|
89 | </para>
|
---|
90 | <para role="optional">
|
---|
91 | xdgmime md5sum: &xdgmime-md5sum;
|
---|
92 | </para>
|
---|
93 | </listitem>
|
---|
94 | </itemizedlist>
|
---|
95 |
|
---|
96 | <bridgehead renderas="sect3">Shared Mime Info Dependencies</bridgehead>
|
---|
97 |
|
---|
98 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
99 | <para role="required">
|
---|
100 | <xref linkend="glib2"/>,
|
---|
101 | <xref linkend="itstool"/>,
|
---|
102 | <xref linkend="libxml2"/>, and
|
---|
103 | <xref linkend="xmlto"/>
|
---|
104 | </para>
|
---|
105 |
|
---|
106 | <para condition="html" role="usernotes">User Notes:
|
---|
107 | <ulink url="&blfs-wiki;/shared-mime-info"/></para>
|
---|
108 |
|
---|
109 | </sect2>
|
---|
110 |
|
---|
111 | <sect2 role="installation">
|
---|
112 | <title>Installation of Shared Mime Info</title>
|
---|
113 |
|
---|
114 | <para>
|
---|
115 | Install <application>Shared Mime Info</application> by running the
|
---|
116 | following commands:
|
---|
117 | </para>
|
---|
118 |
|
---|
119 | <para role="optional">
|
---|
120 | If you wish to run the test suite, you must first extract the
|
---|
121 | <filename>xdgmime</filename> tarball into the current directory,
|
---|
122 | and compile it so that <command>meson</command> can find it:
|
---|
123 | </para>
|
---|
124 |
|
---|
125 | <screen role="optional"><userinput>tar -xf ../xdgmime.tar.xz &&
|
---|
126 | make -C xdgmime</userinput></screen>
|
---|
127 |
|
---|
128 | <para>
|
---|
129 | One of the changes in meson-0.60 broke this package. To fix that
|
---|
130 | apply a patch:
|
---|
131 | </para>
|
---|
132 |
|
---|
133 | <screen><userinput>patch -p1 -i ../shared-mime-info-&shared-mime-info-version;-shared-mime-info_meson_0.60_fix-1.patch</userinput></screen>
|
---|
134 |
|
---|
135 | <para>
|
---|
136 | Now build the package:
|
---|
137 | </para>
|
---|
138 |
|
---|
139 | <screen><userinput>mkdir build &&
|
---|
140 | cd build &&
|
---|
141 |
|
---|
142 | meson --prefix=/usr --buildtype=release -Dupdate-mimedb=true .. &&
|
---|
143 | ninja</userinput></screen>
|
---|
144 |
|
---|
145 | <para role="optional">
|
---|
146 | If you have followed the instructions above to build
|
---|
147 | <application>xdgmime</application>, to test the result issue
|
---|
148 | <command>ninja test</command>.
|
---|
149 | </para>
|
---|
150 |
|
---|
151 | <para>
|
---|
152 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
153 | </para>
|
---|
154 |
|
---|
155 | <screen role="root"><userinput>ninja install</userinput></screen>
|
---|
156 |
|
---|
157 | </sect2>
|
---|
158 |
|
---|
159 | <sect2 role="commands">
|
---|
160 | <title>Command Explanations</title>
|
---|
161 |
|
---|
162 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
163 | href="../../xincludes/meson-buildtype-release.xml"/>
|
---|
164 |
|
---|
165 | <para>
|
---|
166 | <parameter>-Dupdate-mimedb=true</parameter>: This parameter tells
|
---|
167 | the build system to run <command>update-mime-database</command> during
|
---|
168 | installation. Otherwise, this must be done manually in order to be
|
---|
169 | able to use the MIME database.
|
---|
170 | </para>
|
---|
171 | </sect2>
|
---|
172 |
|
---|
173 | <sect2 role="content">
|
---|
174 | <title>Contents</title>
|
---|
175 |
|
---|
176 | <segmentedlist>
|
---|
177 | <segtitle>Installed Program</segtitle>
|
---|
178 | <segtitle>Installed Library</segtitle>
|
---|
179 | <segtitle>Installed Directory</segtitle>
|
---|
180 |
|
---|
181 | <seglistitem>
|
---|
182 | <seg>
|
---|
183 | update-mime-database
|
---|
184 | </seg>
|
---|
185 | <seg>
|
---|
186 | None
|
---|
187 | </seg>
|
---|
188 | <seg>
|
---|
189 | /usr/share/mime
|
---|
190 | </seg>
|
---|
191 | </seglistitem>
|
---|
192 | </segmentedlist>
|
---|
193 |
|
---|
194 | <variablelist>
|
---|
195 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
196 | <?dbfo list-presentation="list"?>
|
---|
197 | <?dbhtml list-presentation="table"?>
|
---|
198 |
|
---|
199 | <varlistentry id="update-mime-database">
|
---|
200 | <term><command>update-mime-database</command></term>
|
---|
201 | <listitem>
|
---|
202 | <para>
|
---|
203 | assists in adding MIME data to the database
|
---|
204 | </para>
|
---|
205 | <indexterm zone="shared-mime-info update-mime-database">
|
---|
206 | <primary sortas="b-update-mime-database">update-mime-database</primary>
|
---|
207 | </indexterm>
|
---|
208 | </listitem>
|
---|
209 | </varlistentry>
|
---|
210 |
|
---|
211 | </variablelist>
|
---|
212 |
|
---|
213 | </sect2>
|
---|
214 |
|
---|
215 | </sect1>
|
---|