wok-6.x view 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 (2022-08-03) |
parents | 71360a13cd94 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="wget"
4 VERSION="1.21.3"
5 CATEGORY="network"
6 SHORT_DESC="An utility for retrieving files using HTTP, HTTPS or FTP."
7 MAINTAINER="sygne@ombres.eu"
8 LICENSE="GPL3"
9 WEB_SITE="https://www.gnu.org/software/wget/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
14 SUGGESTED="wget-lang"
15 DEPENDS="libidn libssl pcre util-linux-uuid zlib"
16 BUILD_DEPENDS="flex libidn-dev openssl-dev util-linux-uuid-dev"
18 CONFIG_FILES="/etc/wgetrc"
20 HOST_ARCH="i486 arm"
22 # Handle cross compilation
23 case "$ARCH" in
24 arm) ARCH_ARGS="--with-libssl-prefix=/cross/$ARCH/sysroot/usr/lib" ;;
25 esac
27 # What is the latest version available today?
28 current_version()
29 {
30 wget -O - ${WGET_URL%/*} 2>/dev/null | \
31 sed "/latest/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
32 }
34 # Rules to configure and make the package.
35 compile_rules()
36 {
37 ./configure \
38 --with-ssl=openssl \
39 --with-openssl \
40 --sysconfdir=/etc \
41 $CONFIGURE_ARGS \
42 $ARCH_ARGS &&
43 make install DESTDIR=$DESTDIR
45 gzip -9 $install/usr/share/man/man1/wget.1
46 }
48 # Rules to gen a SliTaz package suitable for Tazpkg.
49 genpkg_rules()
50 {
51 cook_copy_folders etc
52 cook_copy_folders bin
53 }
55 post_remove()
56 {
57 ln -s /bin/busybox "$1/usr/bin/wget"
58 }