wok annotate wget/receipt @ rev 25408

updated wget (1.20.3 -> 1.21.3)
author Hans-G?nter Theisgen
date Wed Aug 03 17:48:43 2022 +0100 (21 months ago)
parents 71360a13cd94
children d79ed38ace18
rev   line source
sygne@1558 1 # SliTaz package receipt.
sygne@1558 2
sygne@1558 3 PACKAGE="wget"
Hans-G?nter@25408 4 VERSION="1.21.3"
al@19202 5 CATEGORY="network"
Hans-G?nter@22126 6 SHORT_DESC="An utility for retrieving files using HTTP, HTTPS or FTP."
sygne@1558 7 MAINTAINER="sygne@ombres.eu"
pascal@15201 8 LICENSE="GPL3"
Hans-G?nter@22126 9 WEB_SITE="https://www.gnu.org/software/wget/"
Hans-G?nter@22126 10
Hans-G?nter@20498 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
slaxemulator@11143 12 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
Hans-G?nter@22126 13
Hans-G?nter@25408 14 SUGGESTED="wget-lang"
Hans-G?nter@22126 15 DEPENDS="libidn libssl pcre util-linux-uuid zlib"
Hans-G?nter@22126 16 BUILD_DEPENDS="flex libidn-dev openssl-dev util-linux-uuid-dev"
Hans-G?nter@22126 17
al@18963 18 CONFIG_FILES="/etc/wgetrc"
sygne@1558 19
Hans-G?nter@22126 20 HOST_ARCH="i486 arm"
pankso@9801 21
pankso@16059 22 # Handle cross compilation
pankso@16059 23 case "$ARCH" in
pankso@16059 24 arm) ARCH_ARGS="--with-libssl-prefix=/cross/$ARCH/sysroot/usr/lib" ;;
pankso@16059 25 esac
pankso@16059 26
pascal@24336 27 # What is the latest version available today?
pascal@24336 28 current_version()
pascal@24336 29 {
pascal@24336 30 wget -O - ${WGET_URL%/*} 2>/dev/null | \
pascal@24336 31 sed "/latest/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
pascal@24336 32 }
pascal@24336 33
sygne@1558 34 # Rules to configure and make the package.
sygne@1558 35 compile_rules()
sygne@1558 36 {
Hans-G?nter@22126 37 ./configure \
Hans-G?nter@22126 38 --with-ssl=openssl \
Hans-G?nter@22126 39 --with-openssl \
Hans-G?nter@22126 40 --sysconfdir=/etc \
Hans-G?nter@22126 41 $CONFIGURE_ARGS \
Hans-G?nter@22126 42 $ARCH_ARGS &&
Hans-G?nter@25408 43 make install DESTDIR=$DESTDIR
al@18963 44
al@19202 45 gzip -9 $install/usr/share/man/man1/wget.1
sygne@1558 46 }
sygne@1558 47
sygne@1558 48 # Rules to gen a SliTaz package suitable for Tazpkg.
sygne@1558 49 genpkg_rules()
sygne@1558 50 {
Hans-G?nter@25408 51 cook_copy_folders etc
Hans-G?nter@25408 52 cook_copy_folders bin
sygne@1558 53 }
sygne@1558 54
rcx@3923 55 post_remove()
rcx@3923 56 {
Hans-G?nter@25408 57 ln -s /bin/busybox "$1/usr/bin/wget"
rcx@3923 58 }