wok-current annotate python-rpi-adafruit/receipt @ rev 22120
updated wavemon (0.7.5 -> 0.9.0)
author | Hans-G?nter Theisgen |
---|---|
date | Sun Nov 03 15:16:39 2019 +0100 (2019-11-03) |
parents | 8bdba6bcdf42 |
children | 89c8d8b6cf48 |
rev | line source |
---|---|
pankso@16582 | 1 # SliTaz package receipt. |
pankso@16582 | 2 |
pankso@16583 | 3 PACKAGE="python-rpi-adafruit" |
pankso@16582 | 4 GITHASH="99a2955eb6ddc81998ade7359ebb505fb70919d0" |
pankso@16582 | 5 VERSION=${GITHASH:0:6} |
pankso@16582 | 6 CATEGORY="system-tools" |
pankso@16583 | 7 SHORT_DESC="Adafruit Industries Python code for the RPi" |
pankso@16582 | 8 MAINTAINER="pankso@slitaz.org" |
pankso@16582 | 9 LICENSE="BSD" |
pankso@16582 | 10 SOURCE="python-adafruit-code" |
pankso@16582 | 11 TARBALL="$PACKAGE-$VERSION.tar.zip" |
pankso@16582 | 12 WEB_SITE="https://www.adafruit.com/" |
pankso@16582 | 13 WGET_URL="https://codeload.github.com/adafruit/Adafruit-Raspberry-Pi-Python-Code/zip/$GITHASH" |
pankso@16582 | 14 HOST_ARCH="arm" |
pankso@16582 | 15 |
pankso@16583 | 16 # Leds support for now |
pascal@17482 | 17 DEPENDS="python python-smbus i2c-tools slitaz-arm-rpi" |
pankso@16582 | 18 |
pankso@16582 | 19 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@16582 | 20 genpkg_rules() |
pankso@16582 | 21 { |
pankso@16582 | 22 python="$fs/usr/lib/python2.7" |
pankso@16582 | 23 mkdir -p ${python} ${fs}/usr/share/adafruit |
pankso@16582 | 24 cp -a ${src}/Adafruit_LEDBackpack ${fs}/usr/share/adafruit/LEDBackpack |
pankso@16582 | 25 # Can be imported to write custom code |
pankso@16582 | 26 cp ${src}/Adafruit_I2C/* ${python} |
pankso@16582 | 27 mv ${fs}/usr/share/adafruit/LEDBackpack/Adafruit_7Segment.py ${python} |
pankso@16582 | 28 mv ${fs}/usr/share/adafruit/LEDBackpack/Adafruit_8x8.py ${python} |
pankso@16582 | 29 mv ${fs}/usr/share/adafruit/LEDBackpack/Adafruit_LEDBackpack.py ${python} |
pankso@16582 | 30 rm ${fs}/usr/share/adafruit/LEDBackpack/Adafruit_I2C.py |
pankso@16582 | 31 } |