wok-next annotate python-pyglow/receipt @ rev 21370
updated minidlna (1.1.4 -> 1.2.1)
author | Hans-G?nter Theisgen |
---|---|
date | Thu Apr 16 09:58:07 2020 +0100 (2020-04-16) |
parents | c9a7a7b42a86 |
children |
rev | line source |
---|---|
al@20972 | 1 # SliTaz package receipt v2. |
al@20972 | 2 |
al@20972 | 3 PACKAGE="python-pyglow" |
al@20972 | 4 VERSION="0.2" |
al@20972 | 5 CATEGORY="system-tools" |
al@20972 | 6 SHORT_DESC="Controlling the PiGlow from Python" |
al@21020 | 7 MAINTAINER="devel@slitaz.org" |
al@20972 | 8 LICENSE="BSD" |
al@20972 | 9 WEB_SITE="https://github.com/benleb/PyGlow" |
al@20972 | 10 HOST_ARCH="any" |
al@20972 | 11 |
al@20972 | 12 TARBALL="$PACKAGE-$VERSION.tar.gz" |
al@20972 | 13 WGET_URL="https://github.com/benleb/PyGlow/archive/v$VERSION.tar.gz" |
al@20972 | 14 |
al@20972 | 15 BUILD_DEPENDS="python-dev python-rpi.gpio python3-dev python3-rpi.gpio git" |
al@20972 | 16 BUILD_DEPENDS="python-dev python3-dev" |
al@20972 | 17 SPLIT="${PACKAGE/python/python3}:3" |
al@20972 | 18 |
al@20972 | 19 compile_rules() { |
al@20972 | 20 python$SET -B setup.py install --root=$install || return 1 |
al@20972 | 21 |
al@20972 | 22 mkdir -p $install/usr/share/ |
al@20972 | 23 cp -r $src/examples $install/usr/share/pyglow |
al@20972 | 24 install -Dm755 $stuff/vortex.py $install/usr/share/pyglow/vortex.py |
al@20972 | 25 install -Dm755 $stuff/pyglow $install/usr/bin/pyglow |
al@20972 | 26 } |
al@20972 | 27 |
al@20972 | 28 genpkg_rules() { |
al@20972 | 29 copy @std |
al@20972 | 30 py="${PACKAGE%%-*}" # python/python3 |
al@20972 | 31 DEPENDS="$py $py-smbus $py-psutil $py-rpi.gpio" |
al@20972 | 32 TAGS="raspberrypi rpi" |
al@20972 | 33 } |