updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / mutt-sendbox / PKGBUILD
blob48345f63506b203c35e43e14d18cb586bd646ccd
1 # Maintainer : Nicolas Estibals <Nicolas.Estibals@gmail.com>
2 # Contributor: tobias [tobias [at] archlinux.org]
3 # Contributor: Gaetan Bisson <bisson@archlinux.org>
4 pkgname=mutt-sendbox
5 pkgver=1.5.21
6 pkgrel=3
7 pkgdesc="Small but very powerful text-based mail client with patch of Aron Griffis for Courrier IMAP's outbox feature."
8 url='http://www.mutt.org/'
9 license=('GPL')
10 backup=('etc/Muttrc')
11 arch=('i686' 'x86_64')
12 depends=('gpgme' 'ncurses' 'openssl' 'libsasl' 'gdbm' 'libidn' 'mime-types' 'krb5')
13 conflicts=('mutt')
14 source=("ftp://ftp.mutt.org/mutt/devel/mutt-${pkgver}.tar.gz"
15         "mutt-resent-header-weeding.patch"
16         "mutt-sendbox-bounce.patch"
17         "mutt-sendbox.patch"
18         "mutt-write_postponed.patch")
19 sha1sums=('a8475f2618ce5d5d33bff85c0affdf21ab1d76b9'
20           'f48b04c1c0c4d6ebb1c55da247bb2277843a011e'
21           '27b0bccfc5187db744f4da99bc39c4ce985ebe6d'
22           '6444fabd4fde65151d1bfcedec8a13a50e521d41'
23           'fd66bfc85df26803333f88eab2721a254492bab6')
24 install=install
26 build() {
27         cd "${srcdir}/mutt-${pkgver}"
28         patch -p1 < ../mutt-write_postponed.patch
29         patch -p1 < ../mutt-resent-header-weeding.patch
30         patch -p1 < ../mutt-sendbox.patch
31         patch -p1 < ../mutt-sendbox-bounce.patch
32         ./configure \
33                 --prefix=/usr \
34                 --sysconfdir=/etc \
35                 --enable-gpgme \
36                 --enable-pop \
37                 --enable-imap \
38                 --enable-smtp \
39                 --enable-hcache \
40                 --enable-sendbox \
41                 --with-curses=/usr \
42                 --with-regex \
43                 --with-gss=/usr \
44                 --with-ssl=/usr \
45                 --with-sasl \
46                 --with-idn \
48         make
51 package() {
52         cd "${srcdir}/mutt-${pkgver}"
53         make DESTDIR="${pkgdir}" install
55         rm "${pkgdir}"/usr/bin/{flea,muttbug}
56         rm "${pkgdir}"/usr/share/man/man1/{flea,muttbug}.1
57         rm "${pkgdir}"/etc/mime.types{,.dist}
58         install -Dm644 contrib/gpg.rc "${pkgdir}"/etc/Muttrc.gpg.dist