wok-6.x view python-rpi-adafruit/receipt @ rev 17212
cyrus-imapd: enable murder
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Oct 10 15:22:16 2014 +0200 (2014-10-10) |
parents | c2c48e06bc0a |
children | 9689f1b75619 |
line source
1 # SliTaz package receipt.
3 PACKAGE="python-rpi-adafruit"
4 GITHASH="99a2955eb6ddc81998ade7359ebb505fb70919d0"
5 VERSION=${GITHASH:0:6}
6 CATEGORY="system-tools"
7 SHORT_DESC="Adafruit Industries Python code for the RPi"
8 MAINTAINER="pankso@slitaz.org"
9 LICENSE="BSD"
10 SOURCE="python-adafruit-code"
11 TARBALL="$PACKAGE-$VERSION.tar.zip"
12 WEB_SITE="https://www.adafruit.com/"
13 WGET_URL="https://codeload.github.com/adafruit/Adafruit-Raspberry-Pi-Python-Code/zip/$GITHASH"
14 HOST_ARCH="arm"
16 # Leds support for now
17 DEPENDS="python python-smbus ic2-tools slitaz-arm-rpi"
19 # Rules to gen a SliTaz package suitable for Tazpkg.
20 genpkg_rules()
21 {
22 python="$fs/usr/lib/python2.7"
23 mkdir -p ${python} ${fs}/usr/share/adafruit
24 cp -a ${src}/Adafruit_LEDBackpack ${fs}/usr/share/adafruit/LEDBackpack
25 # Can be imported to write custom code
26 cp ${src}/Adafruit_I2C/* ${python}
27 mv ${fs}/usr/share/adafruit/LEDBackpack/Adafruit_7Segment.py ${python}
28 mv ${fs}/usr/share/adafruit/LEDBackpack/Adafruit_8x8.py ${python}
29 mv ${fs}/usr/share/adafruit/LEDBackpack/Adafruit_LEDBackpack.py ${python}
30 rm ${fs}/usr/share/adafruit/LEDBackpack/Adafruit_I2C.py
31 }