wok-6.x diff debootstrap/receipt @ rev 24514

created recipe for elspci
author Hans-G?nter Theisgen
date Mon Feb 21 15:26:14 2022 +0100 (2022-02-21)
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 Feb 21 15:26:14 2022 +0100
     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  {