CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
libcap: initial import (verified compilation)
[attic/ports/opt-cross.git] / mutt / Pkgfile
CommitLineData
3dc6725e
VM
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
38b50d66 4# Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu
3dc6725e
VM
5# Depends on: gdbm ncurses openssl zlib
6
7name=mutt
8version=1.5.20
9release=1
10source=(ftp://ftp.mutt.org/mutt/devel/$name-$version.tar.gz \
11 ${name}rc.man.middle)
12
13build () {
14 cd $name-$version
1f113e9b 15 sed '/^SUBDIRS/ s/doc//' -i Makefile*
8b11d8a6 16 export CPPFLAGS="-I$CLFS/usr/include"
1f113e9b
VM
17 export CFLAGS="$CPPFLAGS"
18 export oldincludedir="$CFLAGS"
3dc6725e
VM
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}