wok-current diff python-rpi-pyglow/receipt @ rev 25053
Up advancecomp (2.3), foomatic-db (4.0-20220223), sagan-rules (2.0.2)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Jun 05 19:53:43 2022 +0000 (2022-06-05) |
parents | 7b9df94be9aa |
children |
line diff
1.1 --- a/python-rpi-pyglow/receipt Thu Apr 24 20:43:02 2014 +0200 1.2 +++ b/python-rpi-pyglow/receipt Sun Jun 05 19:53:43 2022 +0000 1.3 @@ -1,19 +1,25 @@ 1.4 # SliTaz package receipt. 1.5 1.6 PACKAGE="python-rpi-pyglow" 1.7 -VERSION="git-1" 1.8 +VERSION="0.2" 1.9 CATEGORY="system-tools" 1.10 SHORT_DESC="Controlling the PiGlow from Python." 1.11 MAINTAINER="pankso@slitaz.org" 1.12 LICENSE="BSD" 1.13 -TARBALL="$PACKAGE-$VERSION.tar.bz2" 1.14 +TARBALL="$PACKAGE-$VERSION.tar.gz" 1.15 WEB_SITE="https://github.com/benleb/PyGlow" 1.16 -WGET_URL="git|git://github.com/benleb/PyGlow.git" 1.17 +WGET_URL="$WEB_SITE/archive/refs/tags/v$VERSION.tar.gz" 1.18 TAGS="raspberrypi rpi" 1.19 HOST_ARCH="arm" 1.20 1.21 DEPENDS="python python-smbus python-psutil python-rpi-gpio" 1.22 1.23 +current_version() 1.24 +{ 1.25 + wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ 1.26 + sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q' 1.27 +} 1.28 + 1.29 # Rules to gen a SliTaz package suitable for Tazpkg. 1.30 genpkg_rules() 1.31 {