# Contributor: Andrew Manison # Maintainer: Andrew Manison pkgname=mutt pkgver=1.5.21 pkgrel=1 pkgdesc="a small but very powerful text-mode email client" url="http://www.mutt.org" arch="all" license="GPL" depends= makedepends="cyrus-sasl-dev db-dev gettext-dev gpgme-dev libiconv-dev libidn-dev ncurses-dev openssl-dev perl" install= subpackages="$pkgname-doc $pkgname-lang" source="ftp://ftp.mutt.org/pub/mutt/devel/mutt-$pkgver.tar.gz" _builddir="$srcdir"/$pkgname-$pkgver prepare() { cd "$_builddir" # apply patches here } build() { cd "$_builddir" ISPELL=/usr/bin/hunspell \ ./configure --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --enable-imap \ --enable-pop \ --enable-smtp \ --enable-hcache \ --enable-gpgme \ --with-curses \ --with-mailpath=/var/spool/mail \ --with-docdir=/usr/share/doc/mutt \ --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 # fix up default config cat contrib/gpg.rc >> "$pkgdir"/etc/Muttrc grep -C 5 "^color" contrib/sample.muttrc >> "$pkgdir"/etc/Muttrc echo "source /etc/Muttrc.local" >> "$pkgdir"/etc/Muttrc echo "# Local configuration for Mutt." > "$pkgdir"/etc/Muttrc.local } md5sums="a29db8f1d51e2f10c070bf88e8a553fd mutt-1.5.21.tar.gz"