source: general/genutils/shared-mime-info.xml@ 24ac3c20

11.3 12.0 12.1 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt plabs/newcss python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk xry111/llvm18 xry111/xf86-video-removal
Last change on this file since 24ac3c20 was 48771ae, checked in by David Bryant <davidbryant@…>, 18 months ago

Unless it's a directory name, or something like that, "test suite"
should be spelled as two words.

  • Property mode set to 100644
File size: 5.9 KB
Line 
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 "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)">
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"
21xreflabel="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 &lfs112_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 <para condition="html" role="usernotes">User Notes:
103 <ulink url="&blfs-wiki;/shared-mime-info"/></para>
104
105 </sect2>
106
107 <sect2 role="installation">
108 <title>Installation of Shared Mime Info</title>
109
110 <para>
111 Install <application>Shared Mime Info</application> by running the
112 following commands:
113 </para>
114
115 <para>
116 If you wish to run the test suite, you must first extract the
117 <filename>xdgmime</filename> tarball into the current directory,
118 and compile it so that <command>meson</command> can find it:
119 </para>
120
121<screen remap="test"><userinput>tar -xf ../xdgmime.tar.xz &amp;&amp;
122make -C xdgmime</userinput></screen>
123
124 <para>
125 Now build the package:
126 </para>
127
128<screen><userinput>mkdir build &amp;&amp;
129cd build &amp;&amp;
130
131meson --prefix=/usr --buildtype=release -Dupdate-mimedb=true .. &amp;&amp;
132ninja</userinput></screen>
133
134 <para role="optional">
135 If you have followed the instructions above to build
136 <application>xdgmime</application>, to test the result issue
137 <command>ninja test</command>.
138 </para>
139
140 <para>
141 Now, as the <systemitem class="username">root</systemitem> user:
142 </para>
143
144<screen role="root"><userinput>ninja install</userinput></screen>
145
146 </sect2>
147
148 <sect2 role="commands">
149 <title>Command Explanations</title>
150
151 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
152 href="../../xincludes/meson-buildtype-release.xml"/>
153
154 <para>
155 <parameter>-Dupdate-mimedb=true</parameter>: This parameter tells
156 the build system to run <command>update-mime-database</command> during
157 installation. Otherwise, this must be done manually in order to be
158 able to use the MIME database.
159 </para>
160 </sect2>
161
162 <sect2 role="content">
163 <title>Contents</title>
164
165 <segmentedlist>
166 <segtitle>Installed Program</segtitle>
167 <segtitle>Installed Library</segtitle>
168 <segtitle>Installed Directory</segtitle>
169
170 <seglistitem>
171 <seg>
172 update-mime-database
173 </seg>
174 <seg>
175 None
176 </seg>
177 <seg>
178 /usr/share/mime
179 </seg>
180 </seglistitem>
181 </segmentedlist>
182
183 <variablelist>
184 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
185 <?dbfo list-presentation="list"?>
186 <?dbhtml list-presentation="table"?>
187
188 <varlistentry id="update-mime-database">
189 <term><command>update-mime-database</command></term>
190 <listitem>
191 <para>
192 assists in adding MIME data to the database
193 </para>
194 <indexterm zone="shared-mime-info update-mime-database">
195 <primary sortas="b-update-mime-database">update-mime-database</primary>
196 </indexterm>
197 </listitem>
198 </varlistentry>
199
200 </variablelist>
201
202 </sect2>
203
204</sect1>
Note: See TracBrowser for help on using the repository browser.