wok-next view python-pyglow/receipt @ rev 21126
Hide more packages.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Jan 18 02:36:44 2019 +0200 (2019-01-18) |
parents | c9a7a7b42a86 |
children |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="python-pyglow"
4 VERSION="0.2"
5 CATEGORY="system-tools"
6 SHORT_DESC="Controlling the PiGlow from Python"
7 MAINTAINER="devel@slitaz.org"
8 LICENSE="BSD"
9 WEB_SITE="https://github.com/benleb/PyGlow"
10 HOST_ARCH="any"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="https://github.com/benleb/PyGlow/archive/v$VERSION.tar.gz"
15 BUILD_DEPENDS="python-dev python-rpi.gpio python3-dev python3-rpi.gpio git"
16 BUILD_DEPENDS="python-dev python3-dev"
17 SPLIT="${PACKAGE/python/python3}:3"
19 compile_rules() {
20 python$SET -B setup.py install --root=$install || return 1
22 mkdir -p $install/usr/share/
23 cp -r $src/examples $install/usr/share/pyglow
24 install -Dm755 $stuff/vortex.py $install/usr/share/pyglow/vortex.py
25 install -Dm755 $stuff/pyglow $install/usr/bin/pyglow
26 }
28 genpkg_rules() {
29 copy @std
30 py="${PACKAGE%%-*}" # python/python3
31 DEPENDS="$py $py-smbus $py-psutil $py-rpi.gpio"
32 TAGS="raspberrypi rpi"
33 }