archrelease: copy trunk to extra-x86_64
[arch-packages.git] / mutt / trunk / PKGBUILD
blob93f9293c4ddadd2f5891e98b1b57ad15b6f315af
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.10
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=(
13   glibc
14   libgpg-error
15   mime-types
16   sqlite
17   zlib
19 makedepends=(
20   docbook-xml
21   docbook-xsl
22   elinks
23   gdbm
24   gpgme
25   krb5
26   libidn2
27   libsasl
28   libxslt
29   lynx
30   ncurses
31   openssl
33 optdepends=(
34   'perl: for smime_keys'
35   'python: for experimental mutt_oath2.py'
36   'smtp-forwarder: to send mail'
38 backup=(etc/$pkgname/Muttrc)
39 install=$pkgname.install
40 source=(https://bitbucket.org/$pkgname/$pkgname/downloads/$pkgname-$pkgver.tar.gz{,.asc})
41 sha512sums=('6db0009163b31425dafe7b6e38374a623f1fd057daf57baaebe18be6d42e5a0ce7087a41bc5e2411f4fbe144497a43682c480754b51108952c7dd16b9294192f'
42             'SKIP')
43 b2sums=('d6892f49520b4fd73d7d0d04119b4f05828d76a4be4b55a8dbc585ef817d4455c9b9a93158d31e0699f011023de524355930d4acff3b9454982da0042c54db22'
44         'SKIP')
45 validpgpkeys=('8975A9B33AA37910385C5308ADEF768480316BDA') # Kevin J. McCarthy <kevin@8t8.us>
47 prepare() {
48   cd $pkgname-$pkgver
49   autoreconf -fiv
52 build() {
53   local configure_options=(
54     --prefix=/usr
55     --sysconfdir=/etc/$pkgname
56     --enable-autocrypt
57     --enable-compressed
58     --enable-debug
59     --enable-gpgme
60     --enable-hcache
61     --enable-imap
62     --enable-pop
63     --enable-sidebar
64     --enable-smtp
65     --with-curses=/usr
66     --with-gss=/usr
67     --with-idn2
68     --with-sasl
69     --with-sqlite3
70     --with-ssl=/usr
71   )
73   cd $pkgname-$pkgver
74   ./configure "${configure_options[@]}"
75   make
78 package() {
79   depends+=(
80     gdbm libgdbm.so
81     gpgme libgpgme.so
82     krb5 libgssapi_krb5.so
83     libidn2 libidn2.so
84     libsasl libsasl2.so
85     ncurses libncursesw.so
86     openssl libssl.so
87   )
89   make DESTDIR="$pkgdir" install -C $pkgname-$pkgver
90   # we backup /etc/mutt/Muttrc and don't need another copy
91   rm -v "$pkgdir/etc/$pkgname/Muttrc.dist"
92   # a more comprehensive list of mime types is provided by mailcap in /etc/mime.types
93   rm -v "$pkgdir/etc/$pkgname/mime.types"{,.dist}
94   ln -sv ../mime.types "$pkgdir/etc/$pkgname/mime.types"