wok view wget/receipt @ rev 25367
Update some web_site
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Jul 29 07:35:41 2022 +0000 (2022-07-29) |
parents | 32e177776fc6 |
children | 1ab5edec3cba |
line source
1 # SliTaz package receipt.
3 PACKAGE="wget"
4 VERSION="1.20.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 DEPENDS="libidn libssl pcre util-linux-uuid zlib"
15 BUILD_DEPENDS="flex libidn-dev openssl-dev util-linux-uuid-dev"
17 CONFIG_FILES="/etc/wgetrc"
19 HOST_ARCH="i486 arm"
21 # Handle cross compilation
22 case "$ARCH" in
23 arm) ARCH_ARGS="--with-libssl-prefix=/cross/$ARCH/sysroot/usr/lib" ;;
24 esac
26 # What is the latest version available today?
27 current_version()
28 {
29 wget -O - ${WGET_URL%/*} 2>/dev/null | \
30 sed "/latest/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
31 }
33 # Rules to configure and make the package.
34 compile_rules()
35 {
36 ./configure \
37 --with-ssl=openssl \
38 --with-openssl \
39 --sysconfdir=/etc \
40 $CONFIGURE_ARGS \
41 $ARCH_ARGS &&
42 make DESTDIR=$DESTDIR install
44 gzip -9 $install/usr/share/man/man1/wget.1
45 }
47 # Rules to gen a SliTaz package suitable for Tazpkg.
48 genpkg_rules()
49 {
50 cp -a $install/* $fs
52 rm -r $fs/usr/share/info
53 rm -r $fs/usr/share/locale
54 }
56 post_remove()
57 {
58 ln -s /bin/busybox "$1/usr/bin/wget"
59 }