wok diff python-rpi-gpio/receipt @ rev 16495

Add python-smbus (from i2c-tools) + python-rpi-gpio to handle R-Pi gpio
author Christophe Lincoln <pankso@slitaz.org>
date Wed Apr 23 16:32:16 2014 +0200 (2014-04-23)
parents
children c16799d15080
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/python-rpi-gpio/receipt	Wed Apr 23 16:32:16 2014 +0200
     1.3 @@ -0,0 +1,40 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="python-rpi-gpio"
     1.7 +VERSION="0.5.5"
     1.8 +CATEGORY="raspberrypi"
     1.9 +SHORT_DESC="Python class to control the GPIO on a Raspberry Pi."
    1.10 +MAINTAINER="pankso@slitaz.org"
    1.11 +LICENSE="BSD"
    1.12 +SOURCE="RPi.GPIO"
    1.13 +TARBALL="$SOURCE-$VERSION.tar.gz"
    1.14 +WEB_SITE="https://pypi.python.org/pypi/RPi.GPIO"
    1.15 +WGET_URL="https://pypi.python.org/packages/source/R/$SOURCE/$TARBALL"
    1.16 +HOST_ARCH="arm"
    1.17 +
    1.18 +DEPENDS="python python-smbus"
    1.19 +BUILD_DEPENDS="python-dev setuptools"
    1.20 +
    1.21 +# Rules to configure and make the package.
    1.22 +compile_rules()
    1.23 +{
    1.24 +	# Cross compilation hack
    1.25 +	case "$ARCH" in
    1.26 +		arm*)
    1.27 +			mv /usr/bin/i486-slitaz-linux-gcc /tmp &&
    1.28 +			ln -s /cross/${ARCH}/tools/bin/arm-slitaz-linux-gnueabi-gcc \
    1.29 +				/usr/bin/i486-slitaz-linux-gcc ;;
    1.30 +	esac &&
    1.31 +	python setup.py install --root=$DESTDIR
    1.32 +	case "$ARCH" in
    1.33 +		arm*) 
    1.34 +			rm /usr/bin/i486-slitaz-linux-gcc &&
    1.35 +			mv /tmp/i486-slitaz-linux-gcc /usr/bin ;;
    1.36 +	esac
    1.37 +}
    1.38 +
    1.39 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.40 +genpkg_rules()
    1.41 +{
    1.42 +	cp -a $install/usr $fs
    1.43 +}