# HG changeset patch # User Christophe Lincoln # Date 1399167138 -7200 # Node ID 8990b8a225d3aa059a8a953ddee8f9027608d1df # Parent 4d5ea57834307751fe8b83a26738c11020a402e0 Add python-rpi-adafruit-leds (some python code to play with 7-segment and 8x8 LED) diff -r 4d5ea5783430 -r 8990b8a225d3 python-rpi-adafruit-leds/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/python-rpi-adafruit-leds/receipt Sun May 04 03:32:18 2014 +0200 @@ -0,0 +1,30 @@ +# SliTaz package receipt. + +PACKAGE="python-rpi-adafruit-leds" +GITHASH="99a2955eb6ddc81998ade7359ebb505fb70919d0" +VERSION=${GITHASH:0:6} +CATEGORY="system-tools" +SHORT_DESC="Adafruit Industries Python code for the RPi (7segment, 8x8 LED)" +MAINTAINER="pankso@slitaz.org" +LICENSE="BSD" +SOURCE="python-adafruit-code" +TARBALL="$PACKAGE-$VERSION.tar.zip" +WEB_SITE="https://www.adafruit.com/" +WGET_URL="https://codeload.github.com/adafruit/Adafruit-Raspberry-Pi-Python-Code/zip/$GITHASH" +HOST_ARCH="arm" + +DEPENDS="python python-smbus ic2-tools slitaz-arm-rpi" + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + python="$fs/usr/lib/python2.7" + mkdir -p ${python} ${fs}/usr/share/adafruit + cp -a ${src}/Adafruit_LEDBackpack ${fs}/usr/share/adafruit/LEDBackpack + # Can be imported to write custom code + cp ${src}/Adafruit_I2C/* ${python} + mv ${fs}/usr/share/adafruit/LEDBackpack/Adafruit_7Segment.py ${python} + mv ${fs}/usr/share/adafruit/LEDBackpack/Adafruit_8x8.py ${python} + mv ${fs}/usr/share/adafruit/LEDBackpack/Adafruit_LEDBackpack.py ${python} + rm ${fs}/usr/share/adafruit/LEDBackpack/Adafruit_I2C.py +}