wok-next rev 16579
Add python-rpi-adafruit-leds (some python code to play with 7-segment and 8x8 LED)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sun May 04 03:32:18 2014 +0200 (2014-05-04) |
parents | 4d5ea5783430 |
children | c1cdacb7defd |
files | python-rpi-adafruit-leds/receipt |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/python-rpi-adafruit-leds/receipt Sun May 04 03:32:18 2014 +0200 1.3 @@ -0,0 +1,30 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="python-rpi-adafruit-leds" 1.7 +GITHASH="99a2955eb6ddc81998ade7359ebb505fb70919d0" 1.8 +VERSION=${GITHASH:0:6} 1.9 +CATEGORY="system-tools" 1.10 +SHORT_DESC="Adafruit Industries Python code for the RPi (7segment, 8x8 LED)" 1.11 +MAINTAINER="pankso@slitaz.org" 1.12 +LICENSE="BSD" 1.13 +SOURCE="python-adafruit-code" 1.14 +TARBALL="$PACKAGE-$VERSION.tar.zip" 1.15 +WEB_SITE="https://www.adafruit.com/" 1.16 +WGET_URL="https://codeload.github.com/adafruit/Adafruit-Raspberry-Pi-Python-Code/zip/$GITHASH" 1.17 +HOST_ARCH="arm" 1.18 + 1.19 +DEPENDS="python python-smbus ic2-tools slitaz-arm-rpi" 1.20 + 1.21 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.22 +genpkg_rules() 1.23 +{ 1.24 + python="$fs/usr/lib/python2.7" 1.25 + mkdir -p ${python} ${fs}/usr/share/adafruit 1.26 + cp -a ${src}/Adafruit_LEDBackpack ${fs}/usr/share/adafruit/LEDBackpack 1.27 + # Can be imported to write custom code 1.28 + cp ${src}/Adafruit_I2C/* ${python} 1.29 + mv ${fs}/usr/share/adafruit/LEDBackpack/Adafruit_7Segment.py ${python} 1.30 + mv ${fs}/usr/share/adafruit/LEDBackpack/Adafruit_8x8.py ${python} 1.31 + mv ${fs}/usr/share/adafruit/LEDBackpack/Adafruit_LEDBackpack.py ${python} 1.32 + rm ${fs}/usr/share/adafruit/LEDBackpack/Adafruit_I2C.py 1.33 +}