recipes: upgrade libevent to snapshot 246f440 and tmux to version 2.8
[dragora.git] / qi / doc / recipe
blob4418f24aaba408d4e6e149c05d21815745a8cb4c
1 # Sample and complete recipe for clzip (dynamically-linked).
3 # Copyright (c) 2016-2018 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=clzip
18 version=1.10
19 release=1
21 tarname=${program}-${version}.tar.gz
23 # Remote source(s)
24 fetch=http://download.savannah.gnu.org/releases/lzip/clzip/$tarname
26 description="
27 C version of the high-quality data compressor Lzip.
29 Clzip is a lossless data compressor with a user interface similar to
30 the one of gzip or bzip2.  Clzip is about as fast as gzip, compresses
31 most files more than bzip2, and is better than both from a data
32 recovery perspective.
34 Clzip uses the lzip file format; the files produced by clzip are fully
35 compatible with lzip-1.4 or newer, and can be rescued with lziprecover.
37 Clzip is in fact a C language version of lzip, intended for embedded
38 devices or systems lacking a C++ compiler.
41 homepage=http://lzip.nongnu.org/clzip.html
42 license=GPLv2+
44 # Source documentation
45 docs="AUTHORS COPYING ChangeLog NEWS README"
46 docsdir="${docdir}/${program}-${version}"
48 build()
50     set -e
52     unpack "${tardir}/$tarname"
54     cd "$srcdir"
56     ./configure CFLAGS="$QICFLAGS" LDFLAGS="$QILDFLAGS" \
57      $configure_args \
58      --infodir=$infodir \
59      --mandir=$mandir \
60      --build="$(cc -dumpmachine)"
62     make -j${jobs}
63     make -j${jobs} DESTDIR="$destdir" install-as-lzip
65     # Compress info documents and manual page
67     rm -f "${destdir}/${infodir}/dir";  # Redundancy
68     lzip -9 \
69      "${destdir}/${infodir}/clzip.info" \
70      "${destdir}/${mandir}/man1/clzip.1"
72     # Copy documentation
73     mkdir -p "${destdir}${docsdir}"
74     cp -p $docs "${destdir}${docsdir}"