123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081 |
- # Build recipe for lziprecover.
- #
- # Copyright (c) 2017-2018 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=lziprecover
- version=1.21-pre1 ; pkgversion=1.21_pre1
- release=1
- # Set 'outdir' for a nice and well-organized output directory
- outdir="${outdir}/${arch}/tools"
- tarname=${program}-${version}.tar.lz
- # Remote source(s)
- fetch=http://download.savannah.gnu.org/releases/lzip/lziprecover/$tarname
- homepage=http://lzip.nongnu.org/lziprecover.html
- description="
- Data recovery tool and decompressor for files in the lzip.
- Lziprecover is a data recovery tool and decompressor for files in the
- lzip compressed data format (.lz). Lziprecover is able to repair
- slightly damaged files, produce a correct file by merging the good
- parts of two or more damaged copies, extract data from damaged files,
- decompress files and test integrity of files.
- For more information, visit: $homepage
- "
- license=GPLv2+
- # 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 .
- ./configure CXXFLAGS="$QICXXFLAGS" LDFLAGS="$QILDFLAGS" \
- $configure_args \
- --infodir=$infodir \
- --mandir=$mandir \
- --build="$(cc -dumpmachine)"
- make -j${jobs}
- make -j${jobs} DESTDIR="$destdir" install
- # Compress info documents and manual page
- rm -f "${destdir}/${infodir}/dir"; # Redundancy
- lzip -9 \
- "${destdir}/${infodir}/lziprecover.info" \
- "${destdir}/${mandir}/man1/lziprecover.1"
- # Copy documentation
- mkdir -p "${destdir}${docsdir}"
- cp -p $docs "${destdir}${docsdir}/"
- }
|