SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "wput"

# SliTaz package receipt.

PACKAGE="wput"
VERSION="0.6.2"
CATEGORY="network"
SHORT_DESC="A tiny wget-like ftp-client for uploading files"
MAINTAINER="l.lemarinel@gmail.com"
LICENSE="GPL2"
WEB_SITE="https://wput.sourceforge.net/"
TARBALL="${PACKAGE}-${VERSION}.tgz"
WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
HOST_ARCH="i486 arm"

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

# Rules to configure and make the package.
compile_rules()
{
    sed -i "s|^prefix *=.*|prefix = $DESTDIR/usr|" Makefile.in
    ./configure \
        --prefix=/usr \
        --disable-g-switch \
        --without-ssl \
        $CONFIGURE_ARGS &&
    make &&
    make DESTDIR=$DESTDIR install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr
    cp -a $install/usr/bin $fs/usr
    rm -f $fs/usr/bin/wdel
    ln -s wput $fs/usr/bin/wdel
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)