recipe 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. # Build recipe for notmuch
  2. #
  3. # Copyright 2017 Mateus P. Rodrigues <mprodrigues@dragora.org>.
  4. #
  5. # This recipe is free software, under the terms of the Apache License 2.0
  6. program=notmuch
  7. version=0.25
  8. release=1
  9. description="
  10. Notmuch -- Just an email system
  11. "
  12. homepage=https://notmuchmail.org/
  13. license=GPLv3+
  14. tarname=${program}-${version}.tar.gz
  15. # Remote source(s)
  16. fetch="https://notmuchmail.org/releases/${tarname}"
  17. # Source documentation
  18. docs="AUTHORS COPYING* NEWS README*"
  19. build() {
  20. unpack "${tardir}/$tarname"
  21. cd "$srcdir"
  22. ./configure CFLAGS="$QICFLAGS" LDFLAGS="$QILDFLAGS" \
  23. $configure_args \
  24. --libdir=/usr/lib${libSuffix} \
  25. --mandir=$mandir \
  26. --docdir=$docdir \
  27. --build="$(cc -dumpmachine)" \
  28. --without-ruby
  29. make -j${jobs}
  30. make -j${jobs} install DESTDIR="$destdir"
  31. # Compress manual pages
  32. if [ -d "${destdir}/$mandir" ] ; then
  33. (
  34. cd "${destdir}/$mandir"
  35. find . -type f -exec lzip -9 '{}' +
  36. find . -type l | while read -r file
  37. do
  38. ln -sf "$(readlink -- "$file").lz" "${file}.lz"
  39. rm -- "$file"
  40. done
  41. )
  42. fi
  43. # Copy documentation
  44. mkdir -p "${destdir}/usr/local/share/doc/${program}-${version}"
  45. cp -p $docs "${destdir}/usr/local/share/doc/${program}-${version}/"
  46. }