# Contributor: Sören Tempel # Contributor: Andrew Manison # Maintainer: Natanael Copa pkgname=mutt pkgver=1.7.1 pkgrel=1 pkgdesc="a small but very powerful text-mode email client" url="http://www.mutt.org" arch="all" license="GPL" depends="" depends_dev="" makedepends="cyrus-sasl-dev gdbm-dev gettext-dev gpgme-dev libidn-dev ncurses-dev libressl-dev perl" install="" options="suid" 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 \ || return 1 make || return 1 } package() { cd "$_builddir" make DESTDIR="$pkgdir" install rm "$pkgdir"/etc/*.dist \ "$pkgdir"/etc/mime.types \ "$pkgdir"/usr/bin/muttbug \ "$pkgdir"/usr/bin/flea \ || return 1 # 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 || return 1 } md5sums="04ae5b20cee7d746a246968e4a8cb9fa mutt-1.7.1.tar.gz" sha256sums="e9c6f88e83d48690033f0d862a70293ac746286b77241554f5448bc23bd0d6df mutt-1.7.1.tar.gz" sha512sums="c0b0be7ba792ecf42bb63c31aa03889b4998474a7cac9a839df3041b0bb72766da140bbb38e70eab5f78f4503d684c9c20620c599c0970ec6933624d22f4613d mutt-1.7.1.tar.gz"