recipe 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. # Recipe file for neomutt.
  2. #
  3. # Maintainers: (C) 2017 Mateus P. Rodrigues, mprodrigues@dragora.org.
  4. #
  5. # Under the terms of the GNU General Public License.
  6. program=neomutt
  7. version=20170714
  8. release=1
  9. description="
  10. NeoMutt is a command-line mail reader (or Mail User Agent). It's a version of Mutt with added features.
  11. "
  12. homepage=https://www.neomutt.org/
  13. license=GPLv2+
  14. tarname=${program}-${version}.tar.gz
  15. # Remote source(s)
  16. fetch="https://github.com/neomutt/neomutt/archive/${tarname}"
  17. # Parallel jobs for the compiler
  18. jobs=1
  19. # Source documentation
  20. docs="ABOUT-NLS CODE_OF_CONDUCT.md COPYRIGHT ChangeLog.md INSTALL LICENSE.md OPS* README*"
  21. build() {
  22. unpack "${tardir}/$tarname"
  23. cd "$srcdir"
  24. autoreconf -i
  25. ./configure \
  26. -enable-notmuch \
  27. -enable-gpgme \
  28. -enable-lua \
  29. -with-ssl \
  30. -with-gnutls \
  31. -with-sasl
  32. make -j${jobs}
  33. make -j${jobs} install DESTDIR="$destdir"
  34. # Compress manual pages
  35. if [ -d "${destdir}/$mandir" ] ; then
  36. (
  37. cd "${destdir}/$mandir"
  38. find . -type f -exec lzip -9 '{}' +
  39. find . -type l | while read -r file
  40. do
  41. ln -sf "$(readlink -- "$file").lz" "${file}.lz"
  42. rm -- "$file"
  43. done
  44. )
  45. fi
  46. # Copy documentation
  47. mkdir -p "${destdir}/usr/local/share/doc/${program}-${version}"
  48. cp -p $docs "${destdir}/usr/local/share/doc/${program}-${version}/"
  49. }