wok-current annotate python-rpi-pyglow/receipt @ rev 25117
updated pcre2 and pcre2-dev (10.34 -> 10.40)
author | Hans-G?nter Theisgen |
---|---|
date | Sat Jun 25 16:50:46 2022 +0100 (2022-06-25) |
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 } |