SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "wget"

# SliTaz package receipt.

PACKAGE="wget"
VERSION="1.21.3"
CATEGORY="network"
SHORT_DESC="An utility for retrieving files using HTTP, HTTPS or FTP."
MAINTAINER="sygne@ombres.eu"
LICENSE="GPL3"
WEB_SITE="https://www.gnu.org/software/wget/"

TARBALL="$PACKAGE-$VERSION.tar.gz"
WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"

SUGGESTED="wget-lang"
DEPENDS="libidn libssl pcre util-linux-uuid zlib"
BUILD_DEPENDS="flex libidn-dev openssl-dev util-linux-uuid-dev"

CONFIG_FILES="/etc/wgetrc"

HOST_ARCH="i486 arm"

# Handle cross compilation
case "$ARCH" in
    arm) ARCH_ARGS="--with-libssl-prefix=/cross/$ARCH/sysroot/usr/lib" ;;
esac

# 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            \
        --with-ssl=openssl    \
        --with-openssl        \
        --sysconfdir=/etc    \
        $CONFIGURE_ARGS        \
        $ARCH_ARGS &&
    make install DESTDIR=$DESTDIR

    gzip -9 $install/usr/share/man/man1/wget.1
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    cook_copy_folders    etc
    cook_copy_folders    bin
}

post_remove()
{
    ln -s /bin/busybox    "$1/usr/bin/wget"
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)