1 # Build recipe for plzip.
3 # Copyright (c) 2017 Matias Fonzo, <selk@dragora.org>.
5 # Licensed under the Apache License, Version 2.0 (the "License");
6 # you may not use this file except in compliance with the License.
7 # You may obtain a copy of the License at
9 # http://www.apache.org/licenses/LICENSE-2.0
11 # Unless required by applicable law or agreed to in writing, software
12 # distributed under the License is distributed on an "AS IS" BASIS,
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
21 tarname=${program}-${version}.tar.lz
24 fetch=http://download.savannah.gnu.org/releases/lzip/plzip/$tarname
26 homepage=http://lzip.nongnu.org/plzip.html
30 A massively parallel lossless data compressor.
32 Plzip is a massively parallel (multi-threaded) lossless data compressor
33 based on the lzlib compression library, with a user interface similar
34 to the one of lzip, bzip2 or gzip.
36 Plzip can compress/decompress large files on multiprocessor machines
37 much faster than lzip, at the cost of a slightly reduced compression
38 ratio (0.4 to 2 percent larger compressed files). Note that the number
39 of usable threads is limited by file size; on files larger than a
40 few GB plzip can use hundreds of processors, but on files of only a
41 few MB plzip is no faster than lzip.
43 For more information, visit: $homepage
46 # Source documentation
47 docs="AUTHORS COPYING ChangeLog NEWS README"
48 docsdir="${docdir}/${program}-${version}"
54 unpack "${tardir}/$tarname"
58 ./configure CXXFLAGS="$QICXXFLAGS" LDFLAGS="$QILDFLAGS" \
62 --build="$(cc -dumpmachine)"
65 make -j${jobs} DESTDIR="$destdir" install
67 # Compress info documents and manual page
69 rm -f "${destdir}/${infodir}/dir"; # Redundancy
71 "${destdir}/${infodir}/plzip.info" \
72 "${destdir}/${mandir}/man1/plzip.1"
75 mkdir -p "${destdir}${docsdir}"
76 cp -p $docs "${destdir}${docsdir}"