You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

PKGBUILD 7.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208
  1. # Maintainer: Oscar Morante <oscar@morante.eu>
  2. # Contributor: tobias [tobias [at] archlinux.org]
  3. # Contributor: Gaetan Bisson <bisson@archlinux.org>
  4. pkgname=mutt-patched
  5. pkgver=1.5.23
  6. pkgrel=4
  7. pkgdesc='Small but very powerful text-based mail client (plus a huge pile of patches mostly from debian)'
  8. url='http://www.mutt.org/'
  9. license=('GPL')
  10. backup=('etc/Muttrc')
  11. arch=('i686' 'x86_64')
  12. optdepends=('smtp-forwarder: to send mail')
  13. depends=('gpgme' 'ncurses' 'gnutls' 'libsasl' 'libidn' 'mime-types'
  14. 'krb5' 'tokyocabinet')
  15. makedepends=( 'w3m' 'docbook-xsl' )
  16. conflicts=('mutt')
  17. provides=('mutt')
  18. source=(
  19. "https://bitbucket.org/mutt/mutt/downloads/mutt-${pkgver}.tar.gz"
  20. 'am-maintainer-mode.patch'
  21. 'ifdef.patch'
  22. 'xtitles.patch'
  23. 'trash-folder.patch'
  24. 'purge-message.patch'
  25. 'imap_fast_trash.patch'
  26. 'sensible_browser_position.patch'
  27. 'patch-1.5.4.vk.pgp_verbose_mime.patch'
  28. 'compressed-folders.patch'
  29. 'compressed-folders.debian.patch'
  30. 'Muttrc.patch'
  31. 'Md.etc_mailname_gethostbyname.patch'
  32. 'use_usr_bin_editor.patch'
  33. 'correct_docdir_in_man_page.patch'
  34. 'dont_document_not_present_features.patch'
  35. 'document_debian_defaults.patch'
  36. 'assumed_charset-compat.patch'
  37. '467432-write_bcc.patch'
  38. '566076-build_doc_adjustments.patch'
  39. 'define-pgp_getkeys_command.patch'
  40. 'gpg.rc-paths.patch'
  41. 'smime.rc.patch'
  42. 'fix-configure-test-operator.patch'
  43. '531430-imapuser.patch'
  44. '543467-thread-segfault.patch'
  45. '542817-smimekeys-tmpdir.patch'
  46. '548577-gpgme-1.2.patch'
  47. '553321-ansi-escape-segfault.patch'
  48. '547980-smime_keys-chaining.patch'
  49. '528233-readonly-open.patch'
  50. '228671-pipe-mime.patch'
  51. '383769-score-match.patch'
  52. '603288-split-fetches.patch'
  53. '611410-no-implicit_autoview-for-text-html.patch'
  54. 'path_max.patch'
  55. 'update_german_translation.patch'
  56. 'sidebar.patch'
  57. 'sidebar-dotpathsep.patch'
  58. 'sidebar-utf8.patch'
  59. 'multiple-fcc.patch'
  60. 'sidebar-newonly.patch'
  61. 'sidebar-delimnullwide.patch'
  62. 'sidebar-compose.patch'
  63. 'sidebar-new.patch'
  64. 'nntp.patch'
  65. )
  66. sha1sums=('8ac821d8b1e25504a31bf5fda9c08d93a4acc862'
  67. '1ad77bdf742ff584b5695f1908dde83044195c0e'
  68. '3aca6a18ac32b8f6c15216e6fb928a05320c5b74'
  69. 'ff3b66e57faaa163e3e6512f81fdbbea9e02a0bd'
  70. '5c1eae78cb8636025916e7d83c192f6c32981ff3'
  71. 'c6eaf7fb1829809e7f07d039f75ab30de02d7873'
  72. '72a35dfd4476238db3500f3a5651996691c1ce20'
  73. 'e3e7b9c5b17be4032e111edb6a6999a3185c8f7b'
  74. '61630d6a6c3fdf7480c7b6a0e75552500c48f5f4'
  75. 'a7546f9616460da23e87957b0ce98776113b5f7b'
  76. '6a53e85ee55c14beda0000de89a397f589cb29a7'
  77. 'b841ad389301d336ba533356d057ea1f09bc150b'
  78. 'ee72ecb042e337427b5d9c31ff1ecb78b440e2ff'
  79. '773c59af8755b6daa1d73749fa9c38ccf953285c'
  80. '0acf230d3b7e03b90239b256a6944ccf8a0b4e91'
  81. '12c74c647238e653c4db5f8eb7590c5723635b9c'
  82. '4dd818f69c4f302c5ca3e5a7fd95223112c853ac'
  83. '464ca1c57f8a25177a586cb79b94398f694b32e3'
  84. 'c44f9b5a3104917417d09dbcb0dda77f4566c30a'
  85. '206daf4a78f801d9835c8096c83181569ae74136'
  86. '061afb767a30fb78d48b0de1e30aea2f0b3b9d5d'
  87. '42ab3017961819669c678e7456657ca677c8eb56'
  88. '8ae07c06cc9a552b7152c4e264b6284cd770a29c'
  89. 'ad645521bcd36a758e10cf0e2e2e8123c3c9a229'
  90. 'f1ee08450995fe21e0dc3807563e7120d2e3d04a'
  91. 'f2b98a258d5ee18f731aab975f5b0dd17945f228'
  92. '98d958231c05fa1ddf5f1a0ab67a2dc6cefa8418'
  93. 'c8ac575a36876d711a16be09425301c4800bf21c'
  94. '6ec4a7614dc78d230a9ebe8ec645393a98be41a4'
  95. 'f91ac0baf4eda090da7b80e272d422f234b459cd'
  96. '03a42b8914c9ef1f684275cba355046de14b1c03'
  97. '1b53316b0c09333dbee428448a6f565378ff5357'
  98. '8121dd0a07f6f98377e1b1ad3659deaec3a83b6b'
  99. 'd4803ee5f29e9e495e12bf012dc938d7cd4adc47'
  100. '561b600c79988975f034c9237158fb991ec92541'
  101. 'f91499aa8bee5827924e6c860bd853e0344d55bc'
  102. 'f99082007d3cb4486b96cb22d1fae1c71fdbe51e'
  103. 'fcdeb12e49735268c080e34c2d88211a7ccb8493'
  104. '487850ffc2a6d639d9d17b3ced844257799a84a9'
  105. 'c01c8f84e3ea4ac71caf31edeb6adb062eb04fe0'
  106. '2ba91afb71dc40793bac8198fd9f8d6500bd1ce3'
  107. 'e7181b191f06bd6c74c6e35372dba6dc3f8c4653'
  108. '19fd36f9a1f15d4481f08d90f9a88d3912e12cdb'
  109. 'b648cb9ab1a0b447417647a82856af01a9a418e5'
  110. '230973eb243265ee75bd098f0f8286690bed2d08'
  111. '8d7d858e47bbb2c736c9d09de843d3892888e9c5')
  112. install=install
  113. prepare() {
  114. cd "${srcdir}/mutt-$pkgver"
  115. patch -Np1 -i "${srcdir}/am-maintainer-mode.patch"
  116. patch -Np1 -i "${srcdir}/ifdef.patch"
  117. patch -Np1 -i "${srcdir}/xtitles.patch"
  118. patch -Np1 -i "${srcdir}/trash-folder.patch"
  119. patch -Np1 -i "${srcdir}/purge-message.patch"
  120. patch -Np1 -i "${srcdir}/imap_fast_trash.patch"
  121. patch -Np1 -i "${srcdir}/sensible_browser_position.patch"
  122. patch -Np1 -i "${srcdir}/patch-1.5.4.vk.pgp_verbose_mime.patch"
  123. patch -Np1 -i "${srcdir}/compressed-folders.patch"
  124. patch -Np1 -i "${srcdir}/compressed-folders.debian.patch"
  125. patch -Np1 -i "${srcdir}/Muttrc.patch"
  126. patch -Np1 -i "${srcdir}/Md.etc_mailname_gethostbyname.patch"
  127. patch -Np1 -i "${srcdir}/use_usr_bin_editor.patch"
  128. patch -Np1 -i "${srcdir}/correct_docdir_in_man_page.patch"
  129. patch -Np1 -i "${srcdir}/dont_document_not_present_features.patch"
  130. patch -Np1 -i "${srcdir}/document_debian_defaults.patch"
  131. patch -Np1 -i "${srcdir}/assumed_charset-compat.patch"
  132. patch -Np1 -i "${srcdir}/467432-write_bcc.patch"
  133. patch -Np1 -i "${srcdir}/566076-build_doc_adjustments.patch"
  134. patch -Np1 -i "${srcdir}/define-pgp_getkeys_command.patch"
  135. patch -Np1 -i "${srcdir}/gpg.rc-paths.patch"
  136. patch -Np1 -i "${srcdir}/smime.rc.patch"
  137. patch -Np1 -i "${srcdir}/fix-configure-test-operator.patch"
  138. patch -Np1 -i "${srcdir}/531430-imapuser.patch"
  139. patch -Np1 -i "${srcdir}/543467-thread-segfault.patch"
  140. patch -Np1 -i "${srcdir}/542817-smimekeys-tmpdir.patch"
  141. patch -Np1 -i "${srcdir}/548577-gpgme-1.2.patch"
  142. patch -Np1 -i "${srcdir}/553321-ansi-escape-segfault.patch"
  143. patch -Np1 -i "${srcdir}/547980-smime_keys-chaining.patch"
  144. patch -Np1 -i "${srcdir}/528233-readonly-open.patch"
  145. patch -Np1 -i "${srcdir}/228671-pipe-mime.patch"
  146. patch -Np1 -i "${srcdir}/383769-score-match.patch"
  147. patch -Np1 -i "${srcdir}/603288-split-fetches.patch"
  148. patch -Np1 -i "${srcdir}/611410-no-implicit_autoview-for-text-html.patch"
  149. patch -Np1 -i "${srcdir}/path_max.patch"
  150. patch -Np1 -i "${srcdir}/update_german_translation.patch"
  151. patch -Np1 -i "${srcdir}/sidebar.patch"
  152. patch -Np1 -i "${srcdir}/sidebar-dotpathsep.patch"
  153. patch -Np1 -i "${srcdir}/sidebar-utf8.patch"
  154. patch -Np1 -i "${srcdir}/multiple-fcc.patch"
  155. patch -Np1 -i "${srcdir}/sidebar-newonly.patch"
  156. patch -Np1 -i "${srcdir}/sidebar-delimnullwide.patch"
  157. patch -Np1 -i "${srcdir}/sidebar-compose.patch"
  158. patch -Np1 -i "${srcdir}/sidebar-new.patch"
  159. patch -Np1 -i "${srcdir}/nntp.patch"
  160. autoreconf -vfi
  161. }
  162. build() {
  163. cd "${srcdir}/mutt-${pkgver}"
  164. ./configure \
  165. --prefix=/usr \
  166. --sysconfdir=/etc \
  167. --mandir=/usr/share/man \
  168. --with-docdir=/usr/share/doc \
  169. --with-mailpath=/var/mail \
  170. --disable-dependency-tracking \
  171. --enable-compressed \
  172. --enable-debug \
  173. --enable-fcntl \
  174. --enable-gpgme \
  175. --enable-hcache \
  176. --enable-imap \
  177. --enable-pop \
  178. --enable-smtp \
  179. --with-curses \
  180. --with-gss \
  181. --with-idn \
  182. --with-mixmaster \
  183. --without-bdb \
  184. --without-gdbm \
  185. --without-qdbm \
  186. --with-regex \
  187. --with-sasl \
  188. --with-gnutls
  189. make
  190. }
  191. package() {
  192. cd "${srcdir}/mutt-${pkgver}"
  193. make DESTDIR="${pkgdir}" install
  194. rm "${pkgdir}"/etc/mime.types{,.dist}
  195. rm "${pkgdir}"/usr/bin/{flea,muttbug}
  196. rm "${pkgdir}"/usr/share/man/man1/{flea,muttbug}.1
  197. install -D -m 644 contrib/gpg.rc "$pkgdir"/etc/Muttrc.gpg.dist
  198. }