recipe 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. # Build recipe for plzip.
  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=plzip
  17. version=1.7
  18. release=1
  19. tarname=${program}-${version}.tar.lz
  20. # Remote source(s)
  21. fetch=http://download.savannah.gnu.org/releases/lzip/plzip/$tarname
  22. homepage=http://lzip.nongnu.org/plzip.html
  23. license=GPLv2+
  24. description="
  25. A massively parallel lossless data compressor.
  26. Plzip is a massively parallel (multi-threaded) lossless data compressor
  27. based on the lzlib compression library, with a user interface similar
  28. to the one of lzip, bzip2 or gzip.
  29. Plzip can compress/decompress large files on multiprocessor machines
  30. much faster than lzip, at the cost of a slightly reduced compression
  31. ratio (0.4 to 2 percent larger compressed files). Note that the number
  32. of usable threads is limited by file size; on files larger than a
  33. few GB plzip can use hundreds of processors, but on files of only a
  34. few MB plzip is no faster than lzip.
  35. For more information, visit: $homepage
  36. "
  37. # Source documentation
  38. docs="AUTHORS COPYING ChangeLog NEWS README"
  39. docsdir="${docdir}/${program}-${version}"
  40. build()
  41. {
  42. set -e
  43. unpack "${tardir}/$tarname"
  44. cd "$srcdir"
  45. ./configure CXXFLAGS="$QICXXFLAGS" LDFLAGS="$QILDFLAGS" \
  46. $configure_args \
  47. --infodir=$infodir \
  48. --mandir=$mandir \
  49. --build="$(cc -dumpmachine)"
  50. make -j${jobs}
  51. make -j${jobs} DESTDIR="$destdir" install
  52. # Compress info documents and manual page
  53. rm -f "${destdir}/${infodir}/dir"; # Redundancy
  54. lzip -9 \
  55. "${destdir}/${infodir}/plzip.info" \
  56. "${destdir}/${mandir}/man1/plzip.1"
  57. # Copy documentation
  58. mkdir -p "${destdir}${docsdir}"
  59. cp -p $docs "${destdir}${docsdir}"
  60. }