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 "26 MB">
|
---|
13 | <!ENTITY shared-mime-info-time "less than 0.1 SBU">
|
---|
14 | ]>
|
---|
15 |
|
---|
16 | <sect1 id="shared-mime-info"
|
---|
17 | xreflabel="shared-mime-info-&shared-mime-info-version;">
|
---|
18 | <?dbhtml filename="shared-mime-info.html" ?>
|
---|
19 |
|
---|
20 | <sect1info>
|
---|
21 | <date>$Date$</date>
|
---|
22 | </sect1info>
|
---|
23 |
|
---|
24 | <title>shared-mime-info-&shared-mime-info-version;</title>
|
---|
25 |
|
---|
26 | <indexterm zone="shared-mime-info">
|
---|
27 | <primary sortas="a-shared-mime-info">shared-mime-info</primary>
|
---|
28 | </indexterm>
|
---|
29 |
|
---|
30 | <sect2 role="package">
|
---|
31 | <title>Introduction to Shared Mime Info</title>
|
---|
32 |
|
---|
33 | <para>
|
---|
34 | The <application>Shared Mime Info</application> package contains a
|
---|
35 | MIME database. This allows central updates of MIME information for all
|
---|
36 | supporting applications.
|
---|
37 | </para>
|
---|
38 |
|
---|
39 | &lfs101_checked;
|
---|
40 |
|
---|
41 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
42 | <itemizedlist spacing="compact">
|
---|
43 | <listitem>
|
---|
44 | <para>
|
---|
45 | Download (HTTP): <ulink url="&shared-mime-info-download-http;"/>
|
---|
46 | </para>
|
---|
47 | </listitem>
|
---|
48 | <listitem>
|
---|
49 | <para>
|
---|
50 | Download (FTP): <ulink url="&shared-mime-info-download-ftp;"/>
|
---|
51 | </para>
|
---|
52 | </listitem>
|
---|
53 | <listitem>
|
---|
54 | <para>
|
---|
55 | Download MD5 sum: &shared-mime-info-md5sum;
|
---|
56 | </para>
|
---|
57 | </listitem>
|
---|
58 | <listitem>
|
---|
59 | <para>
|
---|
60 | Download size: &shared-mime-info-size;
|
---|
61 | </para>
|
---|
62 | </listitem>
|
---|
63 | <listitem>
|
---|
64 | <para>
|
---|
65 | Estimated disk space required: &shared-mime-info-buildsize;
|
---|
66 | </para>
|
---|
67 | </listitem>
|
---|
68 | <listitem>
|
---|
69 | <para>
|
---|
70 | Estimated build time: &shared-mime-info-time;
|
---|
71 | </para>
|
---|
72 | </listitem>
|
---|
73 | </itemizedlist>
|
---|
74 |
|
---|
75 | <bridgehead renderas="sect3">Shared Mime Info Dependencies</bridgehead>
|
---|
76 |
|
---|
77 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
78 | <para role="required">
|
---|
79 | <xref linkend="glib2"/>,
|
---|
80 | <xref linkend="itstool"/>,
|
---|
81 | <xref linkend="libxml2"/>, and
|
---|
82 | <xref linkend="xmlto"/>
|
---|
83 | </para>
|
---|
84 |
|
---|
85 | <para condition="html" role="usernotes">User Notes:
|
---|
86 | <ulink url="&blfs-wiki;/shared-mime-info"/></para>
|
---|
87 |
|
---|
88 | </sect2>
|
---|
89 |
|
---|
90 | <sect2 role="installation">
|
---|
91 | <title>Installation of Shared Mime Info</title>
|
---|
92 |
|
---|
93 | <para>
|
---|
94 | Install <application>Shared Mime Info</application> by running the
|
---|
95 | following commands:
|
---|
96 | </para>
|
---|
97 |
|
---|
98 | <screen><userinput>mkdir build &&
|
---|
99 | cd build &&
|
---|
100 |
|
---|
101 | meson --prefix=/usr -Dupdate-mimedb=true .. &&
|
---|
102 | ninja</userinput></screen>
|
---|
103 |
|
---|
104 | <para>
|
---|
105 | To test the result, issue <command>ninja test</command>.
|
---|
106 | </para>
|
---|
107 |
|
---|
108 | <para>
|
---|
109 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
110 | </para>
|
---|
111 |
|
---|
112 | <screen role="root"><userinput>ninja install</userinput></screen>
|
---|
113 |
|
---|
114 | </sect2>
|
---|
115 |
|
---|
116 | <sect2 role="commands">
|
---|
117 | <title>Command Explanations</title>
|
---|
118 |
|
---|
119 | <para>
|
---|
120 | <parameter>-Dupdate-mimedb=true</parameter>: This parameter tells
|
---|
121 | the build system to run <command>update-mime-database</command> during
|
---|
122 | installation. Otherwise, this must be done manually in order to be
|
---|
123 | able to use the MIME database.
|
---|
124 | </para>
|
---|
125 | </sect2>
|
---|
126 |
|
---|
127 | <sect2 role="content">
|
---|
128 | <title>Contents</title>
|
---|
129 |
|
---|
130 | <segmentedlist>
|
---|
131 | <segtitle>Installed Program</segtitle>
|
---|
132 | <segtitle>Installed Library</segtitle>
|
---|
133 | <segtitle>Installed Directory</segtitle>
|
---|
134 |
|
---|
135 | <seglistitem>
|
---|
136 | <seg>
|
---|
137 | update-mime-database
|
---|
138 | </seg>
|
---|
139 | <seg>
|
---|
140 | None
|
---|
141 | </seg>
|
---|
142 | <seg>
|
---|
143 | /usr/share/mime
|
---|
144 | </seg>
|
---|
145 | </seglistitem>
|
---|
146 | </segmentedlist>
|
---|
147 |
|
---|
148 | <variablelist>
|
---|
149 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
150 | <?dbfo list-presentation="list"?>
|
---|
151 | <?dbhtml list-presentation="table"?>
|
---|
152 |
|
---|
153 | <varlistentry id="update-mime-database">
|
---|
154 | <term><command>update-mime-database</command></term>
|
---|
155 | <listitem>
|
---|
156 | <para>
|
---|
157 | assists in adding MIME data to the database
|
---|
158 | </para>
|
---|
159 | <indexterm zone="shared-mime-info update-mime-database">
|
---|
160 | <primary sortas="b-update-mime-database">update-mime-database</primary>
|
---|
161 | </indexterm>
|
---|
162 | </listitem>
|
---|
163 | </varlistentry>
|
---|
164 |
|
---|
165 | </variablelist>
|
---|
166 |
|
---|
167 | </sect2>
|
---|
168 |
|
---|
169 | </sect1>
|
---|