wok-current annotate python-rpi-adafruit/receipt @ rev 24906
updated minidlna (1.2.1 -> 1.3.0)
author | Hans-G?nter Theisgen |
---|---|
date | Sat Apr 09 14:37:52 2022 +0100 (2022-04-09) |
parents | 9689f1b75619 |
children |
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 |
pascal@17482 | 17 DEPENDS="python python-smbus i2c-tools slitaz-arm-rpi" |
pankso@16582 | 18 |
pascal@24476 | 19 # What is the latest version available today? |
pascal@24476 | 20 current_version() |
pascal@24476 | 21 { |
pascal@24476 | 22 wget -O - https://github.com/adafruit/Adafruit-Raspberry-Pi-Python-Code/commits/master 2>/dev/null | \ |
pascal@24476 | 23 sed '/commits_list_item/!d;s|.*commits/\(......\).*|\1|;q' |
pascal@24476 | 24 } |
pascal@24476 | 25 |
pankso@16582 | 26 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@16582 | 27 genpkg_rules() |
pankso@16582 | 28 { |
pankso@16582 | 29 python="$fs/usr/lib/python2.7" |
pankso@16582 | 30 mkdir -p ${python} ${fs}/usr/share/adafruit |
pankso@16582 | 31 cp -a ${src}/Adafruit_LEDBackpack ${fs}/usr/share/adafruit/LEDBackpack |
pankso@16582 | 32 # Can be imported to write custom code |
pankso@16582 | 33 cp ${src}/Adafruit_I2C/* ${python} |
pankso@16582 | 34 mv ${fs}/usr/share/adafruit/LEDBackpack/Adafruit_7Segment.py ${python} |
pankso@16582 | 35 mv ${fs}/usr/share/adafruit/LEDBackpack/Adafruit_8x8.py ${python} |
pankso@16582 | 36 mv ${fs}/usr/share/adafruit/LEDBackpack/Adafruit_LEDBackpack.py ${python} |
pankso@16582 | 37 rm ${fs}/usr/share/adafruit/LEDBackpack/Adafruit_I2C.py |
pankso@16582 | 38 } |