wok-6.x diff py3k/receipt @ rev 24459
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Feb 16 11:53:30 2022 +0000 (2022-02-16) |
parents | e04d8d743189 |
children |
line diff
1.1 --- a/py3k/receipt Wed Oct 10 18:41:29 2018 +0200 1.2 +++ b/py3k/receipt Wed Feb 16 11:53:30 2022 +0000 1.3 @@ -16,6 +16,13 @@ 1.4 BUILD_DEPENDS="readline-dev gdbm-dev openssl-dev sqlite-dev zlib-dev tk-dev \ 1.5 ncursesw-dev liblzma-dev wget" 1.6 1.7 +# What is the latest version available today? 1.8 +current_version() 1.9 +{ 1.10 + wget -O - https://www.python.org/downloads/ 2>/dev/null | \ 1.11 + sed '/Download Python [0-9]/!d;s|.*Python ||;s|<.*||;q' 1.12 +} 1.13 + 1.14 # Rules to configure and make the package. 1.15 compile_rules() 1.16 {