123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384 |
- # Build recipe for lzlib.
- #
- # Copyright (c) 2017-2019 Matias Fonzo, <selk@dragora.org>.
- #
- # Licensed under the Apache License, Version 2.0 (the "License");
- # you may not use this file except in compliance with the License.
- # You may obtain a copy of the License at
- #
- # http://www.apache.org/licenses/LICENSE-2.0
- #
- # Unless required by applicable law or agreed to in writing, software
- # distributed under the License is distributed on an "AS IS" BASIS,
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- # See the License for the specific language governing permissions and
- # limitations under the License.
- program=lzlib
- version=1.11
- release=3
- # Set 'outdir' for a nice and well-organized output directory
- outdir="${outdir}/${arch}/libs"
- tarname=${program}-${version}.tar.lz
- # Remote source(s)
- fetch=http://download.savannah.gnu.org/releases/lzip/lzlib/$tarname
- homepage=http://lzip.nongnu.org/lzlib.html
- license=GPLv2+
- description="
- A data compression library for the lzip format.
- Lzlib is a data compression library providing in-memory LZMA
- compression and decompression functions, including integrity checking
- of the decompressed data. The compressed data format used by the
- library is the lzip format. Lzlib is written in C.
- For more information, visit: $homepage
- "
- # Source documentation
- docs="AUTHORS COPYING ChangeLog NEWS README"
- docsdir="${docdir}/${program}-${version}"
- build()
- {
- set -e
- unpack "${tardir}/$tarname"
- cd "$srcdir"
- # Set sane permissions
- chmod -R u+w,go-w,a+rX-s .
- # Remove default opt level (-Os) to leave the default -O2
- ./configure CFLAGS+="$(echo $QICFLAGS | sed 's/\-Os//')" \
- LDFLAGS="$QILDFLAGS" \
- $configure_args \
- --libdir=/usr/lib${libSuffix} \
- --infodir=$infodir \
- --mandir=$mandir \
- --disable-ldconfig \
- --build="$(cc -dumpmachine)"
- make -j${jobs}
- make -j${jobs} DESTDIR="$destdir" install
- # To install minilzip
- make -j${jobs} DESTDIR="$destdir" install-bin
- # Compress info documents
- rm -f "${destdir}/${infodir}/dir"; # Redundancy
- lzip -9 "${destdir}/${infodir}/lzlib.info"
- # Copy documentation
- mkdir -p "${destdir}${docsdir}"
- cp -p $docs "${destdir}${docsdir}"
- }
|