1 # Contributor: Loui Chang <louipc dot ist at NOSPAM gmail dot com>
6 pkgdesc="A small but very powerful text-based mail client"
7 url="http://www.mutt.org/"
10 depends=('openssl>=0.9.8e' 'gdbm' 'mime-types' 'zlib' 'libsasl' 'gpgme' 'ncurses')
11 makedepends=('mercurial' 'gnupg' 'libxslt')
16 _hgroot=http://dev.mutt.org/hg
22 if [ -d $srcdir/$_hgrepo ]; then
24 # This is required to compensate for the combination of
25 # makepkg's behaviour of cloning and updating on it's own.
26 # and mutt's hg repo setup having HEAD as the development
31 hg clone http://dev.mutt.org/hg/mutt
33 msg "Mercurial checkout done or server timed out"
39 rm -r ${_hgrepo}-build || true
40 cp -r ${_hgrepo} ${_hgrepo}-build
42 cd ${srcdir}/${_hgrepo}-build
60 make DESTDIR=${pkgdir} install
61 rm -f ${pkgdir}/etc/mime.types*
62 install -Dm644 contrib/gpg.rc ${pkgdir}/etc/Muttrc.gpg.dist