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

11.0 ken/refactor-virt lazarus qt5new trunk xry111/git-date xry111/git-date-for-trunk xry111/git-date-test
Last change on this file since f3634b6 was f3634b6, checked in by Xi Ruoyao <xry111@…>, 8 months ago

shared-mime-info: run test

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@24335 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 4.7 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/uploads/0ee50652091363ab0d17e335e5e74fbe/shared-mime-info-&shared-mime-info-version;.tar.xz">
9 <!ENTITY shared-mime-info-download-ftp " ">
10 <!ENTITY shared-mime-info-md5sum "410725367f52ddbc06ef9eda883b8f73">
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"
17xreflabel="shared-mime-info-&shared-mime-info-version;">
18 <?dbhtml filename="shared-mime-info.html" ?>
19
20 <sect1info>
21 <othername>$LastChangedBy$</othername>
22 <date>$Date$</date>
23 </sect1info>
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 &lfs101_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">Shared Mime Info Dependencies</bridgehead>
77
78 <bridgehead renderas="sect4">Required</bridgehead>
79 <para role="required">
80 <xref linkend="glib2"/>,
81 <xref linkend="itstool"/>,
82 <xref linkend="libxml2"/>, and
83 <xref linkend="xmlto"/>
84 </para>
85
86 <para condition="html" role="usernotes">User Notes:
87 <ulink url="&blfs-wiki;/shared-mime-info"/></para>
88
89 </sect2>
90
91 <sect2 role="installation">
92 <title>Installation of Shared Mime Info</title>
93
94 <para>
95 Install <application>Shared Mime Info</application> by running the
96 following commands:
97 </para>
98
99<screen><userinput>mkdir build &amp;&amp;
100cd build &amp;&amp;
101
102meson --prefix=/usr -Dupdate-mimedb=true .. &amp;&amp;
103ninja</userinput></screen>
104
105 <para>
106 To test the result, issue <command>ninja test</command>.
107 </para>
108
109 <para>
110 Now, as the <systemitem class="username">root</systemitem> user:
111 </para>
112
113<screen role="root"><userinput>ninja install</userinput></screen>
114
115 </sect2>
116
117 <sect2 role="commands">
118 <title>Command Explanations</title>
119
120 <para>
121 <parameter>-Dupdate-mimedb=true</parameter>: This parameter tells
122 the build system to run <command>update-mime-database</command> during
123 installation. Otherwise, this must be done manually in order to be
124 able to use the MIME database.
125 </para>
126 </sect2>
127
128 <sect2 role="content">
129 <title>Contents</title>
130
131 <segmentedlist>
132 <segtitle>Installed Program</segtitle>
133 <segtitle>Installed Library</segtitle>
134 <segtitle>Installed Directory</segtitle>
135
136 <seglistitem>
137 <seg>
138 update-mime-database
139 </seg>
140 <seg>
141 None
142 </seg>
143 <seg>
144 /usr/share/mime
145 </seg>
146 </seglistitem>
147 </segmentedlist>
148
149 <variablelist>
150 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
151 <?dbfo list-presentation="list"?>
152 <?dbhtml list-presentation="table"?>
153
154 <varlistentry id="update-mime-database">
155 <term><command>update-mime-database</command></term>
156 <listitem>
157 <para>
158 assists in adding MIME data to the database
159 </para>
160 <indexterm zone="shared-mime-info update-mime-database">
161 <primary sortas="b-update-mime-database">update-mime-database</primary>
162 </indexterm>
163 </listitem>
164 </varlistentry>
165
166 </variablelist>
167
168 </sect2>
169
170</sect1>
Note: See TracBrowser for help on using the repository browser.