| 1 | # Description: Text-based email client that sucks less |
| 2 | # URL: http://www.mutt.org |
| 3 | # Maintainer: Juergen Daubert, juergen dot daubert at t-online dot de |
| 4 | # Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu |
| 5 | # Depends on: gdbm ncurses openssl zlib |
| 6 | |
| 7 | name=mutt |
| 8 | version=1.5.20 |
| 9 | release=1 |
| 10 | source=(ftp://ftp.mutt.org/mutt/devel/$name-$version.tar.gz \ |
| 11 | ${name}rc.man.middle) |
| 12 | |
| 13 | build () { |
| 14 | cd $name-$version |
| 15 | sed '/^SUBDIRS/ s/doc//' -i Makefile* |
| 16 | export CPPFLAGS="-I$CLFS/usr/include" |
| 17 | export CFLAGS="$CPPFLAGS" |
| 18 | export oldincludedir="$CFLAGS" |
| 19 | ./configure --build=$CHOST \ |
| 20 | --host=$CTARGET \ |
| 21 | --prefix=/usr \ |
| 22 | --mandir=/usr/man \ |
| 23 | --with-docdir=/usr/share/mutt \ |
| 24 | --with-mailpath=/var/spool/mail \ |
| 25 | --enable-imap \ |
| 26 | --enable-smtp \ |
| 27 | --enable-pop \ |
| 28 | --with-ssl \ |
| 29 | --disable-nls |
| 30 | make |
| 31 | make DESTDIR=$PKG install |
| 32 | |
| 33 | install -D -m 0644 doc/Muttrc $PKG/usr/etc/Muttrc |
| 34 | install -D -m 0644 doc/$name.man $PKG/usr/man/man1/$name.1 |
| 35 | install -d $PKG/usr/man/man5 |
| 36 | cat doc/${name}rc.man.head $SRC/${name}rc.man.middle \ |
| 37 | doc/${name}rc.man.tail > $PKG/usr/man/man5/${name}rc.5 |
| 38 | rm $PKG/usr/bin/{flea,muttbug} |
| 39 | rm $PKG/usr/etc/*.dist |
| 40 | rm -r $PKG/usr/share |
| 41 | } |