wok-current view python-rpi-pyglow/receipt @ rev 24139
Add redupe
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Nov 09 17:05:26 2021 +0000 (2021-11-09) |
parents | 7b9df94be9aa |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="python-rpi-pyglow"
4 VERSION="0.2"
5 CATEGORY="system-tools"
6 SHORT_DESC="Controlling the PiGlow from Python."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="BSD"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="https://github.com/benleb/PyGlow"
11 WGET_URL="$WEB_SITE/archive/refs/tags/v$VERSION.tar.gz"
12 TAGS="raspberrypi rpi"
13 HOST_ARCH="arm"
15 DEPENDS="python python-smbus python-psutil python-rpi-gpio"
17 current_version()
18 {
19 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
20 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q'
21 }
23 # Rules to gen a SliTaz package suitable for Tazpkg.
24 genpkg_rules()
25 {
26 pylibs="/usr/lib/python2.7"
27 mkdir -p $fs/${pylibs} $fs/usr/share $fs/usr/bin
28 cp -a ${src}/pyglow.py $fs/${pylibs}
29 cp -a ${src}/examples $fs/usr/share/pyglow
30 cp ${stuff}/vortex.py $fs/usr/share/pyglow
31 cp ${stuff}/pyglow $fs/usr/bin
32 }