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