wok diff python-netifaces/receipt @ rev 24924

Add as & asxxxx
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Apr 13 10:27:34 2022 +0000 (2022-04-13)
parents 1df6fa555414
children 0c663fa81568
line diff
     1.1 --- a/python-netifaces/receipt	Thu Jan 13 18:29:05 2022 +0000
     1.2 +++ b/python-netifaces/receipt	Wed Apr 13 10:27:34 2022 +0000
     1.3 @@ -6,18 +6,19 @@
     1.4  SHORT_DESC="Portable access to network interfaces from Python."
     1.5  MAINTAINER="monghitri@aruba.it"
     1.6  LICENSE="MIT"
     1.7 +SOURCE="netifaces"
     1.8  WEB_SITE="https://pypi.org/project/$SOURCE/"
     1.9  
    1.10 -SOURCE="netifaces"
    1.11  TARBALL="$SOURCE-$VERSION.tar.gz"
    1.12  WGET_URL="https://files.pythonhosted.org/packages/source/n/$SOURCE/$TARBALL"
    1.13  
    1.14  DEPENDS="python"
    1.15  BUILD_DEPENDS="python python-dev python-setuptools"
    1.16  
    1.17 +# What is the latest version available today?
    1.18  current_version()
    1.19  {
    1.20 -	wget -O - $WEB_SITE 2>/dev/null | sed '/, version /!d;s|.*version ||;s|<.*||'
    1.21 +	wget -O - $WEB_SITE 2>/dev/null | sed "/$SOURCE [0-9]/!d;s|.*$SOURCE ||;s|<.*||"
    1.22  }
    1.23  
    1.24  # Rules to configure and make the package.