SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "c-client"

# SliTaz package receipt.

PACKAGE="c-client"
VERSION="2007f"
CATEGORY="development"
SHORT_DESC="mail store formats support."
MAINTAINER="pascal.bellard@slitaz.org"
LICENSE="Apache"
WEB_SITE="https://alpineapp.email/"
SOURCE="imap"
TARBALL="$SOURCE-$VERSION.tar.gz"
#WGET_URL="https://ftp.icm.edu.pl/packages/$SOURCE/$TARBALL"
WGET_URL="https://www.mirrorservice.org/sites/ftp.cac.washington.edu/imap/$TARBALL"
TAGS="imap pop3 smtp"

BUILD_DEPENDS="openssl-dev"

# What is the latest version available today?
current_version()
{
    wget -O - $WEB_SITE 2>/dev/null | \
    sed '/Latest Release/!d;s|.*ersion ||;s|<.*||;q'
}

# Rules to configure and make the package.
compile_rules()
{
    cd $src

    # Patch for openssl 1.1.x support
    # see https://gitweb.gentoo.org/repo/gentoo.git/tree/net-libs/c-client
    patch -p1 -i $stuff/c-client-2007f-openssl-1.1.patch

    sed \
    -e "s:-g -fno-omit-frame-pointer -O6:\${CFLAGS}:" \
    -e "s:SSLDIR=/usr/local/ssl:SSLDIR=/usr:" \
    -e "s:SSLCERTS=\$(SSLDIR)/certs:SSLCERTS=/etc/ssl/certs:" \
    -i src/osdep/unix/Makefile

    make slx

    mkdir -p $DESTDIR/usr/include/c-client $DESTDIR/usr/lib
    cp src/c-client/*.h c-client/linkage.? c-client/osdep.h c-client/env_unix.h \
        $DESTDIR/usr/include/c-client
    cp c-client/c-client.a $DESTDIR/usr/lib
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    cp -a $install/* $fs
    chown -R root:root $fs
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)