wok view python-rpi-gpio/receipt @ rev 20648
Up zstd (1.3.8)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Jan 12 12:12:27 2019 +0100 (2019-01-12) |
parents | 007630052ef4 |
children | 814362194a8d |
line source
1 # SliTaz package receipt.
3 PACKAGE="python-rpi-gpio"
4 VERSION="0.5.5"
5 CATEGORY="system-tools"
6 SHORT_DESC="Python class to control the GPIO on a Raspberry Pi."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="BSD"
9 SOURCE="RPi.GPIO"
10 TARBALL="$SOURCE-$VERSION.tar.gz"
11 WEB_SITE="https://pypi.python.org/pypi/RPi.GPIO"
12 WGET_URL="https://pypi.python.org/packages/source/R/$SOURCE/$TARBALL"
13 TAGS="raspberrypi rpi"
14 HOST_ARCH="arm"
16 DEPENDS="python python-smbus"
17 BUILD_DEPENDS="python-dev setuptools"
19 # Rules to configure and make the package.
20 compile_rules()
21 {
22 # Cross compilation hack
23 case "$ARCH" in
24 arm*)
25 mv /usr/bin/i486-slitaz-linux-gcc /tmp &&
26 ln -s /cross/${ARCH}/tools/bin/arm-slitaz-linux-gnueabi-gcc \
27 /usr/bin/i486-slitaz-linux-gcc ;;
28 esac &&
29 python setup.py install --root=$DESTDIR
30 case "$ARCH" in
31 arm*)
32 rm /usr/bin/i486-slitaz-linux-gcc &&
33 mv /tmp/i486-slitaz-linux-gcc /usr/bin ;;
34 esac
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 cp -a $install/usr $fs
41 }