plzip upgraded to version 1.7-rc2
[dragora.git] / recipes / compressors / plzip / recipe
blob40faa24ce43ec1dbe82da8819b2e58fdb69825b7
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.
17 program=plzip
18 version=1.7-rc2
19 release=1
21 tarname=${program}-${version}.tar.lz
23 # Remote source(s)
24 fetch=http://download.savannah.gnu.org/releases/lzip/plzip/$tarname
26 homepage=http://lzip.nongnu.org/plzip.html
27 license=GPLv2+
29 description="
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}"
50 build()
52     set -e
54     unpack "${tardir}/$tarname"
56     cd "$srcdir"
58     ./configure CXXFLAGS="$QICXXFLAGS" LDFLAGS="$QILDFLAGS" \
59      $configure_args \
60      --infodir=$infodir \
61      --mandir=$mandir \
62      --build="$(cc -dumpmachine)"
64     make -j${jobs}
65     make -j${jobs} DESTDIR="$destdir" install
67     # Compress info documents and manual page
69     rm -f "${destdir}/${infodir}/dir";  # Redundancy
70     lzip -9 \
71      "${destdir}/${infodir}/plzip.info" \
72      "${destdir}/${mandir}/man1/plzip.1"
74     # Copy documentation
75     mkdir -p "${destdir}${docsdir}"
76     cp -p $docs "${destdir}${docsdir}"