wok view python-rpi-adafruit/receipt @ rev 19174
syslinux/isolinux.cfg: force 32-bit framebuffer
author | Xander Ziiryanoff <psychomaniak@xakep.ru> |
---|---|
date | Thu Jun 02 18:18:02 2016 +0300 (2016-06-02) |
parents | 8bdba6bcdf42 |
children | 89c8d8b6cf48 |
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 i2c-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 }