wok view python-rpi-gpio/receipt @ rev 21525
updated ncftp (3.2.5 -> 3.2.6)
author | Hans-G?nter Theisgen |
---|---|
date | Fri May 03 17:43:50 2019 +0100 (2019-05-03) |
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 }