SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "wget"

# SliTaz package receipt.

PACKAGE="wget"
VERSION="1.13.4"
CATEGORY="utilities"
SHORT_DESC="retrieve files from the web"
MAINTAINER="sygne@ombres.eu"
TARBALL="$PACKAGE-$VERSION.tar.xz"
WEB_SITE="http://www.gnu.org/software/wget/wget.html"
WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"

DEPENDS="openssl libidn"
BUILD_DEPENDS="openssl-dev libidn-dev"

# Rules to configure and make the package.
compile_rules()
{
    cd $src    
    ./configure --with-ssl=openssl $CONFIGURE_ARGS &&
    make DESTDIR=$DESTDIR install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr 
    cp -a $_pkg/usr/bin $fs/usr
}

# Post install rules.
post_install()
{
    echo -e "
wget is in conflict with the busybox wget.
If you want to use the busybox wget, do (as root):
\033[1m ln -s /bin/busybox /usr/bin/wget \033[0m
"
}

# Pre and post install commands for Tazpkg.
# We must remove all Busybox symlink before installing.
#
pre_install()
{
    local root
    root=$1
    echo "Processing pre-install commands..."
    echo -n "Removing all Busybox replaced utils... "
    rm -f $root/usr/bin/wget
    status
}

post_remove()
{
    ln -s /bin/busybox $1/usr/bin/wget
}
3382 packages and 430813 files in stable database (Mon Mar 4 17:53:49 2019)