SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "mutt"

# SliTaz package receipt

PACKAGE="mutt"
VERSION="1.14.7"
CATEGORY="network"
SHORT_DESC="Small and powerful text-based mail client."
MAINTAINER="paul@slitaz.org"
LICENSE="GPL2"
WEB_SITE="http://www.mutt.org"

TARBALL="$PACKAGE-$VERSION.tar.gz"
WGET_URL="ftp://ftp.mutt.org/pub/mutt/$TARBALL"

DEPENDS="libidn libsasl ncurses openssl zlib"
BUILD_DEPENDS="cyrus-sasl-dev libidn-dev libxslt ncurses-dev openssl-dev perl"

CONFIG_FILES="/etc/Muttrc /etc/mime.types"

# What is the latest version available today?
current_version()
{
    wget -O - https://gitlab.com/muttmua/mutt/-/tags 2>/dev/null | \
    sed '/item-title/!d;s|.*">[a-z-]*||;s|-rel<.*||;s|-|.|g;q'
}

# Rules to configure and make the package.
compile_rules()
{
    addgroup mail
    sed -i 's/STACK \*/STACK_OF(X509) */' mutt_ssl.c

    ./configure                \
        --prefix=/usr            \
        --enable-imap            \
        --with-mailpath=/var/mail    \
        --with-ssl=/usr            \
        --sysconfdir=/etc        \
        --enable-pop            \
        --enable-smtp            \
        --with-sasl            \
        $CONFIGURE_ARGS &&
    make &&
    make install

    delgroup mail
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr
    mkdir -p $fs/etc

    cp -a $install/usr/bin        $fs/usr
    cp -a $install/etc/*        $fs/etc    
    cp -a $install/usr/share    $fs/usr

    rm -r                $fs/usr/share/doc
    rm -r                $fs/usr/share/man
}

post_install()
{
    grep -q ^mail: "$1/etc/group"  || chroot "$1/" addgroup mail
}

post_remove()
{
    chroot "$1/" delgroup mail
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)