# Contributor: Sören Tempel # Contributor: Andrew Manison # Maintainer: Natanael Copa pkgname=mutt pkgver=1.8.1 pkgrel=1 pkgdesc="a small but very powerful text-mode email client" url="http://www.mutt.org" arch="all" license="GPL" makedepends="cyrus-sasl-dev gdbm-dev gettext-dev gpgme-dev libidn-dev ncurses-dev libressl-dev perl" options="suid !check" subpackages="$pkgname-doc $pkgname-lang" source="https://bitbucket.org/$pkgname/$pkgname/downloads/$pkgname-$pkgver.tar.gz" builddir="$srcdir"/$pkgname-$pkgver build() { cd "$builddir" ISPELL=/usr/bin/hunspell \ ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --enable-imap \ --enable-pop \ --enable-smtp \ --enable-hcache \ --enable-gpgme \ --enable-sidebar \ --with-curses \ --with-mailpath=/var/spool/mail \ --with-docdir=/usr/share/doc/$pkgname \ --without-included-gettext \ --with-ssl \ --with-sasl make } package() { cd "$builddir" make DESTDIR="$pkgdir" install rm "$pkgdir"/etc/*.dist \ "$pkgdir"/etc/mime.types \ "$pkgdir"/usr/bin/muttbug \ "$pkgdir"/usr/bin/flea # Don't tamper with the global configuration file. # Many options set in the global config cannot be # overwritten in the users configuration file. # Example: Resetting colors isn't possible. install -Dm644 contrib/gpg.rc \ "$pkgdir"/etc/Muttrc.gpg.dist } sha512sums="5d695212560266aa16f2a547305bc6cd1a1ee7b10bfac9c45b5a8f7b5dfc16b8c288f5229bdf38167a77c44952bf353d93def5b928001ec4982e018f8c1a3e7a mutt-1.8.1.tar.gz"