wok-current rev 16582
Rename python-rpi-adafruit package
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sun May 04 05:33:27 2014 +0200 (2014-05-04) |
parents | d6bd3fc6e0bd |
children | 8bdba6bcdf42 |
files | python-rpi-adafruit-leds/receipt python-rpi-adafruit/receipt |
line diff
1.1 --- a/python-rpi-adafruit-leds/receipt Sun May 04 04:42:11 2014 +0200 1.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 1.3 @@ -1,30 +0,0 @@ 1.4 -# SliTaz package receipt. 1.5 - 1.6 -PACKAGE="python-rpi-adafruit-leds" 1.7 -GITHASH="99a2955eb6ddc81998ade7359ebb505fb70919d0" 1.8 -VERSION=${GITHASH:0:6} 1.9 -CATEGORY="system-tools" 1.10 -SHORT_DESC="Adafruit Industries Python code for the RPi (7segment, 8x8 LED)" 1.11 -MAINTAINER="pankso@slitaz.org" 1.12 -LICENSE="BSD" 1.13 -SOURCE="python-adafruit-code" 1.14 -TARBALL="$PACKAGE-$VERSION.tar.zip" 1.15 -WEB_SITE="https://www.adafruit.com/" 1.16 -WGET_URL="https://codeload.github.com/adafruit/Adafruit-Raspberry-Pi-Python-Code/zip/$GITHASH" 1.17 -HOST_ARCH="arm" 1.18 - 1.19 -DEPENDS="python python-smbus ic2-tools slitaz-arm-rpi" 1.20 - 1.21 -# Rules to gen a SliTaz package suitable for Tazpkg. 1.22 -genpkg_rules() 1.23 -{ 1.24 - python="$fs/usr/lib/python2.7" 1.25 - mkdir -p ${python} ${fs}/usr/share/adafruit 1.26 - cp -a ${src}/Adafruit_LEDBackpack ${fs}/usr/share/adafruit/LEDBackpack 1.27 - # Can be imported to write custom code 1.28 - cp ${src}/Adafruit_I2C/* ${python} 1.29 - mv ${fs}/usr/share/adafruit/LEDBackpack/Adafruit_7Segment.py ${python} 1.30 - mv ${fs}/usr/share/adafruit/LEDBackpack/Adafruit_8x8.py ${python} 1.31 - mv ${fs}/usr/share/adafruit/LEDBackpack/Adafruit_LEDBackpack.py ${python} 1.32 - rm ${fs}/usr/share/adafruit/LEDBackpack/Adafruit_I2C.py 1.33 -}
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/python-rpi-adafruit/receipt Sun May 04 05:33:27 2014 +0200 2.3 @@ -0,0 +1,30 @@ 2.4 +# SliTaz package receipt. 2.5 + 2.6 +PACKAGE="python-rpi-adafruit-leds" 2.7 +GITHASH="99a2955eb6ddc81998ade7359ebb505fb70919d0" 2.8 +VERSION=${GITHASH:0:6} 2.9 +CATEGORY="system-tools" 2.10 +SHORT_DESC="Adafruit Industries Python code for the RPi (7segment, 8x8 LED)" 2.11 +MAINTAINER="pankso@slitaz.org" 2.12 +LICENSE="BSD" 2.13 +SOURCE="python-adafruit-code" 2.14 +TARBALL="$PACKAGE-$VERSION.tar.zip" 2.15 +WEB_SITE="https://www.adafruit.com/" 2.16 +WGET_URL="https://codeload.github.com/adafruit/Adafruit-Raspberry-Pi-Python-Code/zip/$GITHASH" 2.17 +HOST_ARCH="arm" 2.18 + 2.19 +DEPENDS="python python-smbus ic2-tools slitaz-arm-rpi" 2.20 + 2.21 +# Rules to gen a SliTaz package suitable for Tazpkg. 2.22 +genpkg_rules() 2.23 +{ 2.24 + python="$fs/usr/lib/python2.7" 2.25 + mkdir -p ${python} ${fs}/usr/share/adafruit 2.26 + cp -a ${src}/Adafruit_LEDBackpack ${fs}/usr/share/adafruit/LEDBackpack 2.27 + # Can be imported to write custom code 2.28 + cp ${src}/Adafruit_I2C/* ${python} 2.29 + mv ${fs}/usr/share/adafruit/LEDBackpack/Adafruit_7Segment.py ${python} 2.30 + mv ${fs}/usr/share/adafruit/LEDBackpack/Adafruit_8x8.py ${python} 2.31 + mv ${fs}/usr/share/adafruit/LEDBackpack/Adafruit_LEDBackpack.py ${python} 2.32 + rm ${fs}/usr/share/adafruit/LEDBackpack/Adafruit_I2C.py 2.33 +}