wok diff debootstrap/receipt @ rev 25054

Up quarry (0.3.0.1), sunxi-tools (1.4.2)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Jun 06 08:51:13 2022 +0000 (2022-06-06)
parents ad9db37113f2
children f7324cde07d7
line diff
     1.1 --- a/debootstrap/receipt	Thu Dec 02 13:33:52 2021 +0100
     1.2 +++ b/debootstrap/receipt	Mon Jun 06 08:51:13 2022 +0000
     1.3 @@ -8,13 +8,20 @@
     1.4  LICENSE="MIT"
     1.5  WEB_SITE="https://wiki.debian.org/Debootstrap"
     1.6  
     1.7 -TARBALL="$PACKAGE-$VERSION.tar.gz"
     1.8 -WGET_URL="http://people.slitaz.org/~shann/packages/$PACKAGE/$TARBALL"
     1.9 +#TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.10 +#WGET_URL="http://people.slitaz.org/~shann/packages/$PACKAGE/$TARBALL"
    1.11  TARBALL="${PACKAGE}_$VERSION.tar.gz"
    1.12  WGET_URL="http://deb.debian.org/debian/pool/main/d/$PACKAGE/$TARBALL"
    1.13  
    1.14  DEPENDS="dpkg tar"
    1.15  
    1.16 +# What is the latest version available today?
    1.17 +current_version()
    1.18 +{
    1.19 +	wget -O - ${WGET_URL%/*} 2>/dev/null | \
    1.20 +	sed "/latest/d;/${PACKAGE}_/!d;/tar/!d;s|.*${PACKAGE}_\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
    1.21 +}
    1.22 +
    1.23  # Rules to configure and make the package.
    1.24  compile_rules()
    1.25  {