wok-next annotate python-rpi-adafruit/receipt @ rev 16936
Up xterm (309), enable 256-color: package 20kB even less!
author | Xander Ziiryanoff <psychomaniak@xakep.ru> |
---|---|
date | Tue Jul 22 11:57:18 2014 +0200 (2014-07-22) |
parents | c2c48e06bc0a |
children | 9689f1b75619 |
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 |
pankso@16582 | 17 DEPENDS="python python-smbus ic2-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 } |