wok diff python-psutil/receipt @ rev 25075
created recipe for alsa-ucm-conf
author | Hans-G?nter Theisgen |
---|---|
date | Tue Jun 14 07:07:03 2022 +0100 (2022-06-14) |
parents | 1df6fa555414 |
children | 88b11e08f73a |
line diff
1.1 --- a/python-psutil/receipt Thu Jan 13 18:29:05 2022 +0000 1.2 +++ b/python-psutil/receipt Tue Jun 14 07:07:03 2022 +0100 1.3 @@ -6,9 +6,9 @@ 1.4 SHORT_DESC="A process and system utilities module for Python." 1.5 MAINTAINER="paul@slitaz.org" 1.6 LICENSE="BSD" 1.7 +SOURCE="psutil" 1.8 WEB_SITE="https://pypi.org/project/$SOURCE/" 1.9 1.10 -SOURCE="psutil" 1.11 TARBALL="$SOURCE-$VERSION.tar.gz" 1.12 WGET_URL="https://files.pythonhosted.org/packages/source/p/$SOURCE/$TARBALL" 1.13 1.14 @@ -17,9 +17,10 @@ 1.15 1.16 HOST_ARCH="i486 arm" 1.17 1.18 +# What is the latest version available today? 1.19 current_version() 1.20 { 1.21 - wget -O - $WEB_SITE 2>/dev/null | sed '/, version /!d;s|.*version ||;s|<.*||' 1.22 + wget -O - $WEB_SITE 2>/dev/null | sed "/$SOURCE [0-9]/!d;s|.*$SOURCE ||;s|<.*||;q" 1.23 } 1.24 1.25 # Rules to configure and make the package.