wok-next view python-rpi-adafruit/receipt @ rev 17065

pack from qt4-base: libQtWebkit + qtconfig, rename old: qtconfig-phonon + libQtWebkit-video(add_gst*deps)
author Xander Ziiryanoff <psychomaniak@xakep.ru>
date Fri Aug 22 05:24:00 2014 +0200 (2014-08-22)
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 }