1 # Maintainer: Dave Reisner <dreisner@archlinux.org>
2 # Contributor: Patrick Brisbin <pbrisbin@gmail.com>
3 # Contributor: Daniel J Griffiths <ghost1227@archlinux.us>
8 pkgdesc="A small but very powerful text-based mail client patched by the best."
10 url='http://lunar-linux.org/index.php?page=mutt-sidebar'
12 depends=('openssl' 'gdbm' 'mime-types' 'libsasl' 'slang' 'gnupg' 'gpgme')
15 source=(ftp://ftp.mutt.org/mutt/devel/mutt-${pkgver}.tar.gz
16 http://spacehopper.org/mutt/sidebar-5302767aa6aa.gz
17 http://dbg.download.sourcemage.org/grimoire/codex/stable/mail/mutt/patches/trash_folder/trash_folder-1.5.18.patch.bz2
21 md5sums=('a29db8f1d51e2f10c070bf88e8a553fd'
22 '7f987e3c41a42780135f74f6579c457f'
23 '9d95c08295f8ec5171f774f776ef8413'
24 '336d1d8e290a0595dbe2cd92d720ffc9'
25 'fa8e03a49a2fa7b294dc8237d928cdb7'
26 '659d26f6dae386d55a58c5311e57632e')
29 cd "$srcdir/mutt-$pkgver"
31 # forgotten attatchment detector
32 patch -p1 < "$srcdir/mutt-attach.patch"
34 # patch to add sidebar support
35 patch -p1 < "$srcdir/sidebar-5302767aa6aa"
37 # patch to add trash folder
38 patch -p1 < "$srcdir/trash_folder-1.5.18.patch"
41 ./configure --prefix=/usr --sysconfdir=/etc --enable-pop \
42 --enable-imap --enable-smtp --enable-pgp --enable-hcache \
43 --enable-gpgme --with-ssl=/usr --with-sasl --without-idn \
44 --with-regex --with-slang
50 cd "$srcdir/mutt-$pkgver"
52 make DESTDIR="$pkgdir" install
54 # remove unneeded or conflicting files
55 rm -f "$pkgdir/usr/bin"/{flea,muttbug}
56 rm -f "$pkgdir/usr/share/man/man1"/{flea,muttbug}.1
57 rm -f "$pkgdir/etc"/mime.types*
59 # install example muttrc file
60 install -Dm644 "$srcdir/muttrc.example" "$pkgdir/etc/muttrc.example"