archrelease: copy trunk to extra-x86_64
[arch-packages.git] / mutt / trunk / PKGBUILD
blob544e64ec8b4fff2d5bf57f99817a1390c67db11f
1 # Maintainer: David Runge <dvzrv@archlinux.org>
2 # Contributor: Gaetan Bisson <bisson@archlinux.org>
3 # Contributor: tobias [tobias [at] archlinux.org]
5 pkgname=mutt
6 pkgver=2.2.7
7 pkgrel=1
8 pkgdesc="Small but very powerful text-based mail client"
9 arch=(x86_64)
10 url="http://www.mutt.org/"
11 license=(GPL2)
12 depends=(glibc libgpg-error openssl libsasl mime-types sqlite zlib)
13 makedepends=(docbook-xml docbook-xsl elinks gdbm gpgme krb5 libidn2 libxslt
14 lynx ncurses)
15 optdepends=(
16   'perl: for smime_keys'
17   'python: for experimental mutt_oath2.py'
18   'smtp-forwarder: to send mail'
20 backup=(etc/Muttrc)
21 options=(debug)
22 source=(https://bitbucket.org/$pkgname/$pkgname/downloads/$pkgname-$pkgver.tar.gz{,.asc})
23 sha512sums=('5bc88d3efe82db50c2756e7011831caf907adf794e4d693d1318d25deeabac6834989ddef074064252f0f1f0e7df30d6d7d895e0a1d7893696e1f5252955ba22'
24             'SKIP')
25 b2sums=('3cc02ec5bc46f6a3f34c87c1454bdb0198be75a5669896b72ccd780b582cb1e7a4de466c41d25d1e74ab34e177bdca8c05574eddc6302e05acb8e3be6f53438e'
26         'SKIP')
27 validpgpkeys=('8975A9B33AA37910385C5308ADEF768480316BDA') # Kevin J. McCarthy <kevin@8t8.us>
29 prepare() {
30   cd $pkgname-$pkgver
31   autoreconf -fiv
34 build() {
35   cd $pkgname-$pkgver
36   ./configure \
37     --prefix=/usr \
38     --sysconfdir=/etc \
39     --enable-debug \
40     --enable-gpgme \
41     --enable-pop \
42     --enable-imap \
43     --enable-smtp \
44     --enable-hcache \
45     --enable-sidebar \
46     --enable-autocrypt \
47     --with-curses=/usr \
48     --with-gss=/usr \
49     --with-ssl=/usr \
50     --with-sqlite3 \
51     --with-sasl \
52     --with-idn2
53   make
56 package() {
57   depends+=(libgdbm.so libgpgme.so libgssapi_krb5.so libidn2.so libncursesw.so)
59   make DESTDIR="$pkgdir" install -C $pkgname-$pkgver
60   install -vDm 644 $pkgname-$pkgver/contrib/gpg.rc "$pkgdir/etc/Muttrc.gpg.dist"
62   # /etc/mime.types is provided by mailcap
63   rm "$pkgdir/etc/mime.types"{,.dist}