SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "imap-upload"

# SliTaz package receipt.

PACKAGE="imap-upload"
VERSION="1.2"
CATEGORY="network"
SHORT_DESC="Tool for uploading a local mbox file to IMAP4 server."
MAINTAINER="pascal.bellard@slitaz.org"
TARBALL="$PACKAGE-$VERSION.zip"
LICENSE="MIT"
WEB_SITE="https://imap-upload.sourceforge.net/"
WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"

DEPENDS="python"
BUILD_DEPENDS=""

# What is the latest version available today?
current_version()
{
    wget -O - https://sourceforge.net/projects/imap-upload/files/imap-upload/ 2>/dev/null | \
    sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
    sed '/scope="row/!d;s|.*/imap-upload/||;s|/.*||;q'
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/bin
    echo -e "#!/usr/bin/env python\n" | cat - $src/imap_upload.py \
        > $fs/usr/bin/imap_upload
    chmod 755 $fs/usr/bin/imap_upload
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)