recipe 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. # Build recipe for mupdf.
  2. #
  3. # Copyright (C) 2018 Kevin "The Nuclear" Bloom, <kdb4@openmailbox.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. #
  17. # Based on recipes written by Mateus P. Rodrigues, <mprodrigues@dragora.org>
  18. # and Matias Fonzo, <selk@dragora.org>.
  19. program=mupdf
  20. version=1.13.0
  21. release=1
  22. tarname=${program}-${version}-source.tar.gz
  23. srcdir=${program}-${version}-source
  24. # Remote source(s)
  25. fetch=http://mupdf.com/downloads/${tarname}
  26. description="
  27. mupdf - PDF, XPS, and E-book viewer & converter
  28. MuPDF is a lightweight open source software
  29. framework for viewing and converting PDF,
  30. XPS, and E-book documents.
  31. "
  32. homepage=http://mupdf.com/
  33. license="AGPLv3+"
  34. # Source documentation
  35. jdocs="CHANGES COPYING CONTRIBUTORS README"
  36. docsdir="${docdir}/${program}-${version}"
  37. build()
  38. {
  39. set -e
  40. unpack "${tardir}/$tarname"
  41. cd "$srcdir"
  42. # ./configure CFLAGS="$QICFLAGS" LDFLAGS="$QILDFLAGS" \
  43. # $configure_args \
  44. # --libdir=/usr/lib${libSuffix} \
  45. # --infodir=$infodir \
  46. # --mandir=$mandir \
  47. # --docdir=$docdir \
  48. # --build="$(cc -dumpmachine)"
  49. # make -j${jobs} V=1
  50. make -j${jobs} DESTDIR="$destdir" install
  51. # Delete index file for the package
  52. if test -d "${destdir}/$infodir"
  53. then
  54. rm -f "${destdir}/${infodir}/dir"
  55. fi
  56. # Copy documentation
  57. mkdir -p "${destdir}${docsdir}"
  58. for file in $docs
  59. do
  60. if test -e $file
  61. then
  62. cp -p $file "${destdir}${docsdir}"
  63. fi
  64. done
  65. }