recipe 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. # Build recipe for mailutils.
  2. #
  3. # Copyright (C) 2019 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=mailutils
  20. version=3.5
  21. release=1
  22. tarname=${program}-${version}.tar.xz
  23. # Remote source(s)
  24. # fetch=http://mirror.clarkson.edu/gnu/mailutils/$tarname
  25. description="
  26. mailutils - a mail framework
  27. GNU Mailutils is a rich and powerful protocol-independent mail
  28. framework. It contains a series of useful mail libraries, clients,
  29. and servers. These are the primary mail utilities for the GNU system.
  30. The central library is capable of handling electronic mail in various
  31. mailbox formats and protocols, both local and remote. Specifically,
  32. this project contains a POP3 server, an IMAP4 server, and a Sieve mail
  33. filter. It also provides a POSIX `mailx` client, and a collection of
  34. other handy tools.
  35. "
  36. homepage=https://mailutils.org/
  37. license="GPLv3"
  38. # Source documentation
  39. docs="ABOUT-NLS AUTHORS COPYING COPYING.LESSER ChangeLog INSTALL NEWS TODO README"
  40. docsdir="${docdir}/${program}-${version}"
  41. build()
  42. {
  43. set -e
  44. unpack "${tardir}/$tarname"
  45. cd "$srcdir"
  46. ./configure CFLAGS="$QICFLAGS" LDFLAGS="$QILDFLAGS" \
  47. $configure_args \
  48. --libdir=/usr/lib${libSuffix} \
  49. --infodir=$infodir \
  50. --mandir=$mandir \
  51. --docdir=$docdir \
  52. --build="$(cc -dumpmachine)" \
  53. --enable-ipv6
  54. make -j${jobs} V=1
  55. make -j${jobs} DESTDIR="$destdir" install
  56. # Delete index file for the package
  57. if test -d "${destdir}/$infodir"
  58. then
  59. rm -f "${destdir}/${infodir}/dir"
  60. fi
  61. # Copy documentation
  62. mkdir -p "${destdir}${docsdir}"
  63. for file in $docs
  64. do
  65. if test -e $file
  66. then
  67. cp -p $file "${destdir}${docsdir}"
  68. fi
  69. done
  70. }