
#
# generated by mkskel 0.0.2r28
#

VERSION="1.4.1i"
ARCH="i386"
RELEASE="1"

# --------- |-----handy-ruler------------------------------------------------------|
DESCRIPTION="The mutt mail client.\n
             \n
             Mutt is a small but very powerful text-based MIME mail client. Mutt\n
             is highly configurable, and is well suited to the mail power user with\n
             advanced features like key bindings, keyboard macros, mail threading,\n
             regular expression searches and a powerful pattern matching language\n
             for selecting groups of messages."
# --------- |-----handy-ruler------------------------------------------------------|

PREFIX="/usr"
SYSCONFDIR="/etc"

SOURCE_DIRECTORY="mutt-1.4.1"

PACKAGE_NAME="mutt-${VERSION}-${ARCH}-${RELEASE}"

INSTALL_MODE="jail"

DOWNLOAD () { return 0; }

EXTRACT ()
{
  do_extract "mutt-1.4.1i.tar.gz"
}

PATCH ()
{
  zcat ${TOPDIR}/patches/000_patch-1.4.0.cd.edit_threads.9.2.gz | patch -p1
}

CONFIGURE ()
{
  ./configure --prefix=${PREFIX} \
              --sysconfdir=${SYSCONFDIR}/mutt \
              --with-mailpath=/var/spool/mail \
              --enable-pop \
              --enable-imap \
              --with-ssl \
              --enable-locales-fix \
              --without-wc-funcs
}

BUILD ()
{
  make
}

POST_BUILD ()
{
  cat < /dev/null > ./depcomp
}

INSTALL ()
{
  make -e DESTDIR=${DESTDIR} install
}

POST_INSTALL ()
{
  ( cd ${DESTDIR}${PREFIX}/doc && rm -rf mutt-${VERSION} && ln -sf mutt mutt-${VERSION} )
  mv ${DESTDIR}${SYSCONFDIR}/mutt/Muttrc ${DESTDIR}${SYSCONFDIR}/mutt/Muttrc.new
}
