recipe 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. # Build recipe for lziprecover.
  2. #
  3. # Copyright (c) 2017-2018 Matias Fonzo, <selk@dragora.org>.
  4. #
  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
  8. #
  9. # http://www.apache.org/licenses/LICENSE-2.0
  10. #
  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.
  16. program=lziprecover
  17. version=1.20
  18. release=1
  19. tarname=${program}-${version}.tar.lz
  20. # Remote source(s)
  21. fetch=http://download.savannah.gnu.org/releases/lzip/lziprecover/$tarname
  22. homepage=http://lzip.nongnu.org/lziprecover.html
  23. description="
  24. Data recovery tool and decompressor for files in the lzip.
  25. Lziprecover is a data recovery tool and decompressor for files in the
  26. lzip compressed data format (.lz). Lziprecover is able to repair
  27. slightly damaged files, produce a correct file by merging the good
  28. parts of two or more damaged copies, extract data from damaged files,
  29. decompress files and test integrity of files.
  30. For more information, visit: $homepage
  31. "
  32. license=GPLv2+
  33. # Source documentation
  34. docs="AUTHORS COPYING ChangeLog NEWS README"
  35. docsdir="${docdir}/${program}-${version}"
  36. build()
  37. {
  38. set -e
  39. unpack "${tardir}/$tarname"
  40. cd "$srcdir"
  41. ./configure CXXFLAGS="$QICXXFLAGS" LDFLAGS="$QILDFLAGS" \
  42. $configure_args \
  43. --infodir=$infodir \
  44. --mandir=$mandir \
  45. --build="$(cc -dumpmachine)"
  46. make -j${jobs}
  47. make -j${jobs} DESTDIR="$destdir" install
  48. # Compress info documents and manual page
  49. rm -f "${destdir}/${infodir}/dir"; # Redundancy
  50. lzip -9 \
  51. "${destdir}/${infodir}/lziprecover.info" \
  52. "${destdir}/${mandir}/man1/lziprecover.1"
  53. # Copy documentation
  54. mkdir -p "${destdir}${docsdir}"
  55. cp -p $docs "${destdir}${docsdir}/"
  56. }