wok view python-rpi-gpio/receipt @ rev 22982

kdelibs: modified WGET_URL
author Hans-G?nter Theisgen
date Sat Feb 29 17:42:51 2020 +0100 (2020-02-29)
parents c16799d15080
children 104a2a2e5484
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 python-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 }