summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f1c5251aafa480c0c105e80c5cce4c4c6aebff77 (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
58
59
60
61
62
# Contributor: louipc <base64:bG91aXBjQGdteC5jb20=>

_pkgname=mutt
pkgname="${_pkgname}-git"
pkgver=6959.42e2d07a
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' 'gpgme' 'libidn' 'mime-types' 'ncurses' 'zlib')

# Uncomment if enabling imap, pop, or smtp
#depends+=('krb5' 'libsasl' 'openssl')

makedepends=('git' 'gnupg' 'libxslt')
conflicts=("${_pkgname}")
provides=("${_pkgname}")
replaces=("${_pkgname}-hg")

source=("git+https://gitlab.com/muttmua/mutt.git")
md5sums=(SKIP)

pkgver() {
    cd "$srcdir/${_pkgname}"
    printf "%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

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-sidebar \
#       --enable-imap \
#       --enable-pop \
#       --enable-smtp \
#       --with-sasl \
#       --with-ssl=/usr \
#       --with-gss=/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"
}