recipe 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. # Build recipe for emacs.
  2. #
  3. # Copyright (C) 2017 Mateus P. Rodrigues <mprodrigues@dragora.org>.
  4. #
  5. # This recipe is free software: you have unlimited permission
  6. # to copy, distribute and modify it.
  7. program=emacs
  8. version=26.1
  9. release=1
  10. tarname=${program}-${version}.tar.gz
  11. # Remote source(s)
  12. fetch=https://ftp.gnu.org/gnu/emacs/$tarname
  13. description="
  14. emacs - The Emacs text editor.
  15. GNU Emacs is an extensible, customizable text editor and more.
  16. At its core is an interpreter for Emacs Lisp, a dialect of the
  17. Lisp programming language with extensions to support text
  18. editing.
  19. "
  20. homepage=https://www.gnu.org/software/emacs/
  21. license="GPLv3+"
  22. # Source documentation
  23. docs="BUGS CONTRIBUTE COPYING ChangeLog* README"
  24. docsdir="${docdir}/${program}-${version}"
  25. build()
  26. {
  27. set -e
  28. unpack "${tardir}/$tarname"
  29. cd "$srcdir"
  30. ./configure CFLAGS="$QICFLAGS" LDFLAGS="$QILDFLAGS" \
  31. $configure_args \
  32. --libdir=/usr/lib${libSuffix} \
  33. --infodir=$infodir \
  34. --mandir=$mandir \
  35. --docdir=$docdir \
  36. --with-x \
  37. --with-gif=no \
  38. --with-gnutls=no \
  39. --build="$(cc -dumpmachine)"
  40. make -j${jobs} V=1
  41. make -j${jobs} DESTDIR="$destdir" install
  42. # Delete index file for the package
  43. if test -d "${destdir}/$infodir"
  44. then
  45. rm -f "${destdir}/${infodir}/dir"
  46. fi
  47. # Copy documentation
  48. mkdir -p "${destdir}${docsdir}"
  49. for file in $docs
  50. do
  51. if test -e $file
  52. then
  53. cp -p $file "${destdir}${docsdir}"
  54. fi
  55. done
  56. }