updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / mutt-hg / PKGBUILD
blob6725b176043460774d4a5c8f54488ed1d6d1e158
1 # Contributor: Loui Chang <louipc dot ist at NOSPAM gmail dot com>
3 pkgname=mutt-hg
4 pkgver=6168
5 pkgrel=1
6 pkgdesc="A small but very powerful text-based mail client"
7 url="http://www.mutt.org/"
8 arch=(i686 x86_64)
9 license=('GPL')
10 depends=('openssl>=0.9.8e' 'gdbm' 'mime-types' 'zlib' 'libsasl' 'gpgme' 'ncurses')
11 makedepends=('mercurial' 'gnupg' 'libxslt')
12 conflicts=('mutt')
13 provides=('mutt')
14 options=('!strip')
16 _hgroot=http://dev.mutt.org/hg
17 _hgrepo=mutt
19 build() {
20         cd $srcdir
22         if [ -d $srcdir/$_hgrepo ]; then
23                 cd $_hgrepo
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
27                 # branch.
28                 hg update -C HEAD
29                 hg pull -u
30         else
31                 hg clone http://dev.mutt.org/hg/mutt
32                 hg update -C HEAD
33                 msg "Mercurial checkout done or server timed out"
34         fi
36         cd ${srcdir}
38         msg "Copying files"
39         rm -r ${_hgrepo}-build || true
40         cp -r ${_hgrepo} ${_hgrepo}-build
42         cd ${srcdir}/${_hgrepo}-build
44         ./prepare \
45                 --prefix=/usr \
46                 --sysconfdir=/etc \
47                 --enable-debug \
48                 --enable-hcache \
49                 --enable-gpgme \
50                 --enable-imap \
51                 --enable-pgp \
52                 --enable-pop \
53                 --enable-smtp \
54                 --with-idn \
55                 --with-sasl \
56                 --with-ssl=/usr \
57                 --with-regex
59         make
60         make DESTDIR=${pkgdir} install
61         rm -f ${pkgdir}/etc/mime.types*
62         install -Dm644 contrib/gpg.rc ${pkgdir}/etc/Muttrc.gpg.dist