wok-current annotate python-rpi-pyglow/receipt @ rev 24139
Add redupe
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Nov 09 17:05:26 2021 +0000 (2021-11-09) |
parents | 7b9df94be9aa |
children |
rev | line source |
---|---|
pankso@16499 | 1 # SliTaz package receipt. |
pankso@16499 | 2 |
pankso@16499 | 3 PACKAGE="python-rpi-pyglow" |
pascal@24139 | 4 VERSION="0.2" |
pankso@16499 | 5 CATEGORY="system-tools" |
pankso@16499 | 6 SHORT_DESC="Controlling the PiGlow from Python." |
pankso@16499 | 7 MAINTAINER="pankso@slitaz.org" |
pankso@16499 | 8 LICENSE="BSD" |
pascal@24139 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pankso@16499 | 10 WEB_SITE="https://github.com/benleb/PyGlow" |
pascal@24139 | 11 WGET_URL="$WEB_SITE/archive/refs/tags/v$VERSION.tar.gz" |
pankso@16499 | 12 TAGS="raspberrypi rpi" |
pankso@16499 | 13 HOST_ARCH="arm" |
pankso@16499 | 14 |
pankso@16505 | 15 DEPENDS="python python-smbus python-psutil python-rpi-gpio" |
pankso@16499 | 16 |
pascal@24139 | 17 current_version() |
pascal@24139 | 18 { |
pascal@24139 | 19 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ |
pascal@24139 | 20 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q' |
pascal@24139 | 21 } |
pascal@24139 | 22 |
pankso@16499 | 23 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@16499 | 24 genpkg_rules() |
pankso@16499 | 25 { |
pankso@16499 | 26 pylibs="/usr/lib/python2.7" |
pankso@16499 | 27 mkdir -p $fs/${pylibs} $fs/usr/share $fs/usr/bin |
pankso@16499 | 28 cp -a ${src}/pyglow.py $fs/${pylibs} |
pankso@16499 | 29 cp -a ${src}/examples $fs/usr/share/pyglow |
pankso@16511 | 30 cp ${stuff}/vortex.py $fs/usr/share/pyglow |
pankso@16499 | 31 cp ${stuff}/pyglow $fs/usr/bin |
pankso@16499 | 32 } |