wok-current diff python-markupsafe/receipt @ rev 25024
Update some wget_url
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed May 18 20:10:17 2022 +0000 (2022-05-18) |
parents | 6459e4820526 |
children |
line diff
1.1 --- a/python-markupsafe/receipt Mon Apr 06 09:22:36 2020 +0100 1.2 +++ b/python-markupsafe/receipt Wed May 18 20:10:17 2022 +0000 1.3 @@ -1,3 +1,5 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 PACKAGE="python-markupsafe" 1.7 VERSION="1.1.1" 1.8 CATEGORY="development" 1.9 @@ -13,6 +15,13 @@ 1.10 DEPENDS="python" 1.11 BUILD_DEPENDS="python python-dev python-setuptools" 1.12 1.13 +# What is the latest version available today? 1.14 +current_version() 1.15 +{ 1.16 + wget -O - https://pypi.org/project/$SOURCE/ 2>/dev/null | \ 1.17 + sed "/$SOURCE-/!d;/tar/!d;s|.*$SOURCE-||;s|.tar.*||;q" 1.18 +} 1.19 + 1.20 # Rules to configure and make the package. 1.21 compile_rules() 1.22 {