SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "claws-mail"

# SliTaz package receipt.

PACKAGE="claws-mail"
VERSION="3.18.0"
CATEGORY="network"
TAGS="email client"
SHORT_DESC="The user-friendly, lightweight and fast email client."
MAINTAINER="erjo@slitaz.org"
LICENSE="GPL3"
WEB_SITE="https://www.claws-mail.org/index.php"

TARBALL="$PACKAGE-$VERSION.tar.xz"
WGET_URL="https://www.claws-mail.org/releases/$TARBALL"

SUGGESTED="claws-mail-lang"
DEPENDS="dbus dbus-glib enchant expat gcc-lib-base gpgme gtk+ libcurl
    libdb libetpan libgcrypt libgnutls libical libsasl libtasn1
    libxml2 startup-notification xorg-libICE xorg-libSM xorg-libX11 
    xorg-libXau xorg-libXcomposite xorg-libXcursor xorg-libXdamage 
    xorg-libXdmcp xorg-libXext xorg-libXfixes xorg-libXinerama 
    xorg-libXrandr xorg-libXrender ytnef"
BUILD_DEPENDS="acl-dev attr-dev curl-dev cyrus-sasl-dev db-dev dbus-dev 
    enchant expat-dev ghostscript-dev glib-dev gnutls-dev gpgme-dev 
    gtk+-dev lcms-dev libarchive-dev libassuan-dev libetpan-dev 
    libgnome-keyring-dev libgpg-error-dev libical-dev libidn-dev
    liblzma-dev libwebkit libwebkit-dev libxml2-dev libxslt-dev perl
    perl-dev pkg-config poppler-dev pygtk-dev python-dev
    util-linux-uuid-dev xcb-util-dev xorg-dev xorg-libXcomposite-dev
    xorg-libXcursor-dev xorg-libXdamage-dev xorg-libXinerama-dev
    xorg-libXrandr-dev xorg-libXt-dev ytnef-dev"

# What is the latest version available today?
current_version()
{
    wget -O - ${WGET_URL%/*} 2>/dev/null | \
    sed "/latest/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
}

# Rules to configure and make the package.
compile_rules()
{
    ./configure                        \
        WEBKIT_CFLAGS="-I/usr/include/webkitgtk-1.0"    \
        WEBKIT_LIBS="/usr/lib/libwebkitgtk-1.0.so"    \
         --disable-jpilot                \
         --disable-ldap                    \
        --enable-perl-plugin                \
        $CONFIGURE_ARGS &&
    make &&
    make install
}

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

    cp -a $install/usr/bin        $fs/usr
    cp -a $install/usr/share/icons    $fs/usr/share
}

# Post installation custom.
post_install()
{
    [ -x "$1/usr/bin/gtk-update-icon-cache" ] &&
      chroot "$1/" gtk-update-icon-cache -f -t /usr/share/icons/hicolor
}
6047 packages and 209931 files in current database (Wed Jun 26 15:35:30 2024)