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