summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c253e32ad381d6d6ae949e3c25ad44dd8b0a5c80 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# Contributor: Loui Chang <base64: bG91aXBjLmlzdEBnbWFpbC5jb20=>

_pkgname=mutt
pkgname="${_pkgname}-hg"
pkgver=r6454.17a4f92e4a95
pkgrel=1
pkgdesc="A small but very powerful text-based mail client"
url="http://www.mutt.org/"
arch=(i686 x86_64)
license=('GPL')
depends=('gdbm' 'libidn' 'mime-types' 'zlib' 'gpgme' 'ncurses')
#depends+=('openssl>=0.9.8e' 'libsasl')
makedepends=('mercurial' 'gnupg' 'libxslt')
conflicts=("${_pkgname}")
provides=("${_pkgname}")
options=('!strip')
source=('hg+http://dev.mutt.org/hg/mutt#branch=default')
md5sums=(SKIP)

pkgver() {
	cd "$srcdir/${_pkgname}"
	printf "r%s.%s" "$(hg identify -n)" "$(hg identify -i)"
}

build() {
	cd ${srcdir}/${_pkgname}

    # Mutt should be used with external MTAs
    # Uncomment relevant build parameters if you want to use the builtin MTA
    # Remember to adjust dependencies.
	./prepare \
		--prefix=/usr \
		--sysconfdir=/etc \
		--enable-debug \
		--enable-hcache \
		--enable-gpgme \
		--enable-pgp \
		--with-idn \
		--with-regex \
#		--enable-imap \
#		--enable-pop \
#		--enable-smtp \
#		--with-sasl \
#		--with-ssl=/usr \


	make
}

package() {
	cd ${srcdir}/${_pkgname}

	make DESTDIR=${pkgdir} install
	rm -f ${pkgdir}/etc/mime.types*
	install -Dm644 contrib/gpg.rc ${pkgdir}/etc/Muttrc.gpg.dist
}