source: chapter08/zstd.xml@ 37e35d2

multilib-10.1
Last change on this file since 37e35d2 was 37e35d2, checked in by Thomas Trepl <thomas@…>, 4 years ago

Update to new lfs structure

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/multilib@11986 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

  • Property mode set to 100644
File size: 5.4 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
8<sect1 id="ch-system-zstd" role="wrap">
9 <?dbhtml filename="zstd.html"?>
10
11 <sect1info condition="script">
12 <productname>zstd</productname>
13 <productnumber>&zstd-version;</productnumber>
14 <address>&zstd-url;</address>
15 </sect1info>
16
17 <title>Zstd-&zstd-version;</title>
18
19 <indexterm zone="ch-system-zstd">
20 <primary sortas="a-zstd">zstd</primary>
21 </indexterm>
22
23 <sect2 role="package">
24 <title/>
25
26 <para>Zstandard is a real-time compression algorithm, providing high
27 compression ratios. It offers a very wide range of compression / speed
28 trade-offs, while being backed by a very fast decoder.</para>
29
30 <segmentedlist>
31 <segtitle>&buildtime;</segtitle>
32 <segtitle>&diskspace;</segtitle>
33
34 <seglistitem>
35 <seg>&zstd-fin-sbu;</seg>
36 <seg>&zstd-fin-du;</seg>
37 </seglistitem>
38 </segmentedlist>
39
40 </sect2>
41
42 <sect2 role="installation">
43 <title>Installation of Zstd</title>
44
45 <para>Compile the package:</para>
46
47<screen><userinput remap="make">make</userinput></screen>
48
49 <para>This package does not come with a test suite.</para>
50
51 <para>Install the package:</para>
52
53<screen><userinput remap="install">make prefix=/usr install</userinput></screen>
54
55 <para>Remove the static library and move the shared library to
56 <filename class="directory">/lib</filename>. Also, the
57 <filename class="extension">.so</filename> file in
58 <filename class="directory">/usr/lib</filename> will need to be recreated:</para>
59
60<screen><userinput remap="install">rm -v /usr/lib/libzstd.a
61mv -v /usr/lib/libzstd.so.* /lib
62ln -sfv ../../lib/$(readlink /usr/lib/libzstd.so) /usr/lib/libzstd.so</userinput></screen>
63
64 </sect2>
65
66 <!-- - - - - - - - - - -->
67 <!-- Multilib - 32bit -->
68 <!-- - - - - - - - - - -->
69
70 <sect2 arch="ml_32,ml_all" role="installation">
71 <title>Installation of Zstd - 32bit</title>
72
73 <para>Clean previous build:</para>
74
75<screen><userinput remap="pre">make clean</userinput></screen>
76
77 <para>Compile the package:</para>
78
79<screen><userinput remap="make">CC="gcc -m32" make</userinput></screen>
80
81 <para>Install the package:</para>
82
83<screen><userinput remap="install">CC="gcc -m32" make prefix=/usr DESTDIR=$PWD/DESTDIR install
84cp -Rv DESTDIR/usr/lib/* &usr-lib-m32;/
85sed -e "/^libdir/s/lib$&lib-m32;/" -i &usr-lib-m32;/pkgconfig/libzstd.pc</userinput></screen>
86
87 </sect2><!-- m32 -->
88
89 <!-- - - - - - - - - - -->
90 <!-- Multilib - x32bit -->
91 <!-- - - - - - - - - - -->
92
93 <sect2 arch="ml_x32,ml_all" role="installation">
94 <title>Installation of Zstd - x32bit</title>
95
96 <para>Clean previous build:</para>
97
98<screen><userinput remap="pre">make clean</userinput></screen>
99
100 <para>Compile the package:</para>
101
102<screen><userinput remap="make">CC="gcc -mx32" make</userinput></screen>
103
104 <para>Install the package:</para>
105
106<screen><userinput remap="install">CC="gcc -mx32" make prefix=/usr DESTDIR=$PWD/DESTDIR install
107cp -Rv DESTDIR/usr/lib/* &usr-lib-mx32;/
108sed -e "/^libdir/s/lib$&lib-mx32;/" -i &usr-lib-mx32;/pkgconfig/libzstd.pc</userinput></screen>
109
110 </sect2><!-- mx32 -->
111
112 <sect2 id="contents-zstd" role="content">
113 <title>Contents of Zstd</title>
114
115 <segmentedlist>
116 <segtitle>Installed programs</segtitle>
117 <segtitle>Installed library</segtitle>
118
119 <seglistitem>
120 <seg>zstd,
121 zstdcat (link to zstd),
122 zstdgrep,
123 zstdless,
124 zstdmt (link to zstd), and
125 unzstd (link to zstd)
126 </seg>
127
128 <seg>libzstd.so</seg>
129 </seglistitem>
130 </segmentedlist>
131
132 <variablelist>
133 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
134 <?dbfo list-presentation="list"?>
135 <?dbhtml list-presentation="table"?>
136
137 <varlistentry id="zstd">
138 <term><command>zstd</command></term>
139 <listitem>
140 <para>Compresses or decompresses files using the ZSTD format</para>
141 <indexterm zone="ch-system-zstd zstd">
142 <primary sortas="b-zstd">zstd</primary>
143 </indexterm>
144 </listitem>
145 </varlistentry>
146
147 <varlistentry id="zstdgrep">
148 <term><command>zstdgrep</command></term>
149 <listitem>
150 <para>Runs <command>grep</command> on ZSTD compressed files</para>
151 <indexterm zone="ch-system-zstd zstdgrep">
152 <primary sortas="b-zstdgrep">zstdgrep</primary>
153 </indexterm>
154 </listitem>
155 </varlistentry>
156
157 <varlistentry id="zstdless">
158 <term><command>zstdless</command></term>
159 <listitem>
160 <para>Runs <command>less</command> on ZSTD compressed files</para>
161 <indexterm zone="ch-system-zstd zstdless">
162 <primary sortas="b-zstdless">zstdless</primary>
163 </indexterm>
164 </listitem>
165 </varlistentry>
166
167 <varlistentry id="libzstd">
168 <term><filename class="libraryfile">libzstd</filename></term>
169 <listitem>
170 <para>The library implementing lossless data
171 compression, using the ZSTD algorithm</para>
172 <indexterm zone="ch-system-zstd libzstd">
173 <primary sortas="c-libzstd">libzstd</primary>
174 </indexterm>
175 </listitem>
176 </varlistentry>
177
178 </variablelist>
179
180 </sect2>
181
182</sect1>
Note: See TracBrowser for help on using the repository browser.