updated on Wed Jan 25 12:16:47 UTC 2012
[aur-mirror.git] / mutt-great-dane / PKGBUILD
blobc194476187e7c993f01be050aff33cee81dd2fe2
1 # Contributor: Colin Shea <colin@evaryont.me>
2 pkgname=mutt-great-dane
3 pkgver=1.5.21
4 pkgrel=1
5 pkgdesc="A small but very powerful text-based mail client with sidebar, NNTP, compressed, trash folder, urlview, and much more!"
6 arch=('i686' 'x86_64')
7 url="http://lunar-linux.org/index.php?page=mutt-sidebar"
8 depends=('openssl' 'gdbm' 'mime-types' 'libsasl' 'slang' 'libidn'
9          'heimdal' 'gnupg' 'gpgme')
10 makedepends=('libxslt' 'lynx')
11 conflicts=('mutt')
12 provides=('mutt')
13 source=(ftp://ftp.mutt.org/mutt/devel/mutt-${pkgver}.tar.gz
14         ftp://ftp.mutt.org/pub/mutt/contrib/urlview-0.9.tar.gz
15         muttrc.example
16         patch-${pkgver}.as.echo.2
17         patch-${pkgver}.ats.date_conditional.3
18         patch-${pkgver}.cd.ifdef.2
19         patch-${pkgver}.cd.purge_message.8
20         patch-${pkgver}.cd.source_multiple.3
21         patch-${pkgver}.csev.ask_passphrase.1
22         patch-${pkgver}.csev.yesnet.1
23         patch-${pkgver}.dgc.deepif.2
24         patch-${pkgver}.indexcolor-3+cb.diff
25         patch-${pkgver}.rr.compressed
26         patch-${pkgver}.sidebar.5302767aa6aa.txt
27         patch-${pkgver}.tamo.w3mface.3
28         patch-${pkgver}.vvv.initials
29         patch-${pkgver}.vvv.nntp.3
30         patch-${pkgver}.vvv.quote.2
31         patch-${pkgver}.csev.fix_pager_face
32         mutt-resent-header-weeding.patch
33         mutt-sendbox-bounce.patch
34         mutt-sendbox.patch
35         mutt-write_postponed.patch
36         mutt-attach.patch
37         newsrc_stat.patch
38         trash_folder-1.5.18.patch
39         mutt-xterm_title.patch.2
40         patch-0.9.dw.urlview-html.3
41         patch-0.9.csev.urlview-fixes.1
42         patch-0.9.csev.urlview-manprefix.1
43         urlview.c.qpd-patch)
44 md5sums=('a29db8f1d51e2f10c070bf88e8a553fd'
45          '67731f73e69297ffd106b65c8aebb2ab'
46          '336d1d8e290a0595dbe2cd92d720ffc9'
47          '5c67c8bf89160b48cfd6a110d0c8e34a'
48          '0670750f2d82a32391c842e202aae775'
49          '32d1899cfea50b0d00c7ca88406cb7ee'
50          '5f9d902fac287035889ffd3d4faae333'
51          '1aa94164f4169e20ab66a1b531535c6c'
52          'a952a79d527395e25e3c980497004327'
53          '31de8c2733f87de6046cd4f3ba7690a4'
54          'b3a07af278ed9c7f16310be2fe1675ea'
55          '7cb9520885799d634a7aa127c37e30e6'
56          '4b34b6911edd1bc7bf1c8eff33b35c08'
57          'f82db552859813b67b11efe24302362d'
58          '562339078f5f1be52f8f068a86a31676'
59          '1e22b6f0a2a6628289baee19c37e2536'
60          'df3f42fc79d4fd6205d9ffdc023c932f'
61          'dcdc940070d3bd0bcf7017af70cfffc3'
62          '04681abbfbc364c41ff348d06189b85d'
63          'eb4818622b6540770eeb81dbea8447f8'
64          '0bbc48f7c0cc10e15ac9dbae7d34b82d'
65          '267acfc33f6e3fc75e7f284347d9c4d6'
66          '26be8adc6ba3d2f407ff1d2ed2e647b4'
67          '659d26f6dae386d55a58c5311e57632e'
68          'e44269dcaada8e6ba9bd299bb4597899'
69          'a83177bfd298fa3d2644d538cc79379b'
70          '2c5f8df784be0d6c09e8e2295d3b6ebf'
71          'fe79ea2cc0c590762cd7940a1c8e2a9a'
72          'b9445c1e532a2a0969fb6e3d8fbc86b5'
73          'cddf01efd62c477adc8dada7d991b106'
74          'babae55851e89535b9719dea76c643a1')
75 license=('GPL')
76 build() {
77   if [ -e $srcdir/.built ] ; then
78     return 0;
79   fi
80   #####################################
81   ## mutt
83   cd $srcdir/mutt-$pkgver
84   patch -p1 -Ni ../patch-${pkgver}.sidebar.5302767aa6aa.txt # Sidebar == awesome
85   patch -p1 -Ni ../patch-${pkgver}.vvv.nntp.3 # NNTP support. Gmane <3
86   # Use normal stat instead of lstat, to support symbolic directories
87   patch -p1 -Nui ../newsrc_stat.patch
88   patch -p1 -Nui ../patch-${pkgver}.rr.compressed # Support compressed mail
89   patch -p1 -Nui ../patch-${pkgver}.vvv.initials # Extra format for initials
90   patch -p1 -Nui ../patch-${pkgver}.vvv.quote.2 # Smarter quote handling
91   patch -p1 -Nui ../trash_folder-1.5.18.patch # Smart trash
92   patch -p1 -Nui ../mutt-attach.patch # Abort on missing attachments
93   # These following were up-ported by me, manually, after applying the previous
94   # patches. Most likely they will still apply, but with some fuzziness. Not
95   # sure, nor do I care enough to test. I want my mutt this featureful. It's
96   # awesome.
97   patch -p1 -Nui ../patch-${pkgver}.cd.ifdef.2 # Conditional support stuff
98   patch -p1 -Nui ../patch-${pkgver}.as.echo.2 # Feedback from scripts
99   # Different colors for each column (e.g. author, date, subject..)
100   patch -p1 -Nui ../patch-${pkgver}.indexcolor-3+cb.diff
101   # (Required: Trash Folder) - Skip the trash folder
102   patch -p1 -Nui ../patch-${pkgver}.cd.purge_message.8
103   # Source multiple files in a single call (useful for globbing)
104   patch -p1 -Nui ../patch-${pkgver}.cd.source_multiple.3
105   patch -p1 -Nui ../patch-${pkgver}.csev.ask_passphrase.1 # Fix passphrase error
106   patch -p1 -Nui ../patch-${pkgver}.tamo.w3mface.3 # Show X-Face in mutt
107   patch -p1 -Nui ../patch-${pkgver}.dgc.deepif.2 # Allow nested if statements
108   patch -p1 -Nui ../patch-${pkgver}.ats.date_conditional.3 # Conditions on dates
110   # Aron Griffis' sendbox patchset, updated for Mutt 1.5.21
111   # Contributor: Gaetan Bisson <bisson@archlinux.org>
112   # I take no credit, but sendbox is useful, so it's being added.
113   patch -p1 < ../mutt-write_postponed.patch
114   patch -p1 < ../mutt-resent-header-weeding.patch
115   patch -p1 < ../mutt-sendbox.patch
116   patch -p1 < ../mutt-sendbox-bounce.patch
118   # mutt can set the xterm title! Smart lil' dog, eh?
119   patch -p1 < ${srcdir}/mutt-xterm_title.patch.2
121   patch -p1 -Nui ../patch-${pkgver}.csev.fix_pager_face # fix a syntax error
123   # Delete all the patch-save files
124   find -name \*.orig -delete
126   aclocal -I m4
127   autoheader
128   automake --foreign
129   autoconf
131   # (apply this patch after automake)
132   patch -p1 -i ../patch-${pkgver}.csev.yesnet.1 # Allow xslt to go online & d/l
134   ./configure --prefix=/usr --sysconfdir=/etc \
135   --enable-gpgme --enable-pop --enable-imap --enable-smtp --enable-nntp \
136   --enable-debug --disable-warnings --enable-compressed --enable-exact-address \
137   --enable-hcache --enable-sendbox  --with-slang --with-regex --with-gss \
138   --with-ssl=/usr --with-sasl --with-idn || return 1
140   make || return 1
142   #####################################
143   ## urlview
145   cd $srcdir/urlview-0.9
146   patch -p1 -Nui ../patch-0.9.dw.urlview-html.3
147   patch -p1 -Nui ../patch-0.9.csev.urlview-fixes.1
148   patch -p1 -Nui ../urlview.c.qpd-patch
150   ./configure --prefix=/usr --sysconfdir=/etc \
151               --with-slang --enable-warnings || return 1
153   make || return 1
155   # Delete all the patch-save files
156   find -name \*.orig -delete
157   touch $srcdir/.built
160 package() {
161   #####################################
162   ## mutt
163   cd $srcdir/mutt-$pkgver
165   make DESTDIR=$pkgdir install || return 1
166   rm -f ${pkgdir}/usr/bin/{flea,muttbug}
167   rm -f ${pkgdir}/usr/share/man/man1/{flea,muttbug}.1
168   rm -f ${pkgdir}/etc/mime.types*
169   install -m644 -D ${srcdir}/muttrc.example ${pkgdir}/etc/muttrc.example
171   #####################################
172   ## urlview
173   cd ../urlview-0.9
174   patch -p1 -Nui ../patch-0.9.csev.urlview-manprefix.1
175   mkdir -p $pkgdir/usr/man/man1/ $pkgdir/usr/bin
176   make DESTDIR=$pkgdir install || return 1
177   mv $pkgdir/usr/man/man1/* $pkgdir/usr/share/man/man1/
178   rm -r $pkgdir/usr/man
180   rm $srcdir/.built