tarlz upgraded to version 0.15
[dragora.git] / recipes / tools / tarlz / recipe
blobc69366327f16af9cc1a03501c1979cf69cf96876
1 # Build recipe for tarlz.
3 # Copyright (c) 2019 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=tarlz
18 version=0.15
19 release=1
21 # Set 'outdir' for a nice and well-organized output directory
22 outdir="${outdir}/${arch}/tools"
24 tarname=${program}-${version}.tar.lz
26 # Remote source(s)
27 fetch=http://download-mirror.savannah.gnu.org/releases/lzip/tarlz/$tarname
29 homepage=http://lzip.nongnu.org/tarlz.html
30 license=GPLv2+
32 description="
33 Archiver with multimember lzip compression.
35 Tarlz is a combined implementation of the tar archiver and the lzip
36 compressor. By default tarlz creates, lists and extracts archives in a
37 simplified posix pax format compressed with lzip on a per file basis.
38 Each tar member is compressed in its own lzip member, as well as the
39 end-of-file blocks. This method adds an indexed lzip layer on top of
40 the tar archive, making it possible to decode the archive safely in
41 parallel.  The resulting multimember tar.lz archive is fully backward
42 compatible with standard tar tools like GNU tar, which treat it like
43 any other tar.lz archive.  Tarlz can append files to the end of such
44 compressed archives.
47 # Limit package name to the program name
48 full_pkgname=$program
50 # Source documentation
51 docs="AUTHORS COPYING ChangeLog NEWS README"
52 docsdir="${docdir}/${program}"
54 build()
56     set -e
58     unpack "${tardir}/$tarname"
60     cd "$srcdir"
62     # Set sane permissions
63     chmod -R u+w,go-w,a+rX-s .
65     ./configure CXXFLAGS+="$QICXXFLAGS" LDFLAGS="$QILDFLAGS -static" \
66      $configure_args \
67      --infodir=$infodir \
68      --mandir=$mandir \
69      --build="$(cc -dumpmachine)"
71     make -j${jobs}
72     make -j${jobs} DESTDIR="$destdir" install
74     # Compress info documents and manual page
76     rm -f "${destdir}/${infodir}/dir";  # Redundancy
77     lzip -9 \
78      "${destdir}/${infodir}/tarlz.info" \
79      "${destdir}/${mandir}/man1/tarlz.1"
81     # Copy documentation
82     mkdir -p "${destdir}${docsdir}"
83     cp -p $docs "${destdir}${docsdir}"