wok-6.x 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 cfa58aeee489
children c16799d15080
files fswebcam/receipt python-rpi-gpio/receipt python-smbus/receipt
line diff
     1.1 --- a/fswebcam/receipt	Wed Apr 23 15:48:36 2014 +0200
     1.2 +++ b/fswebcam/receipt	Wed Apr 23 16:32:16 2014 +0200
     1.3 @@ -11,7 +11,7 @@
     1.4  TARBALL="$PACKAGE-$VERSION.tar.xz"
     1.5  WGET_URL="$WEB_SITE/files/$TARBALL"
     1.6  TAGS="webcam"
     1.7 -HOST_ARCH="i486 arm"
     1.8 +HOST_ARCH="i486"
     1.9  
    1.10  DEPENDS="libgd"
    1.11  BUILD_DEPENDS="libgd-dev"
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/python-rpi-gpio/receipt	Wed Apr 23 16:32:16 2014 +0200
     2.3 @@ -0,0 +1,40 @@
     2.4 +# SliTaz package receipt.
     2.5 +
     2.6 +PACKAGE="python-rpi-gpio"
     2.7 +VERSION="0.5.5"
     2.8 +CATEGORY="raspberrypi"
     2.9 +SHORT_DESC="Python class to control the GPIO on a Raspberry Pi."
    2.10 +MAINTAINER="pankso@slitaz.org"
    2.11 +LICENSE="BSD"
    2.12 +SOURCE="RPi.GPIO"
    2.13 +TARBALL="$SOURCE-$VERSION.tar.gz"
    2.14 +WEB_SITE="https://pypi.python.org/pypi/RPi.GPIO"
    2.15 +WGET_URL="https://pypi.python.org/packages/source/R/$SOURCE/$TARBALL"
    2.16 +HOST_ARCH="arm"
    2.17 +
    2.18 +DEPENDS="python python-smbus"
    2.19 +BUILD_DEPENDS="python-dev setuptools"
    2.20 +
    2.21 +# Rules to configure and make the package.
    2.22 +compile_rules()
    2.23 +{
    2.24 +	# Cross compilation hack
    2.25 +	case "$ARCH" in
    2.26 +		arm*)
    2.27 +			mv /usr/bin/i486-slitaz-linux-gcc /tmp &&
    2.28 +			ln -s /cross/${ARCH}/tools/bin/arm-slitaz-linux-gnueabi-gcc \
    2.29 +				/usr/bin/i486-slitaz-linux-gcc ;;
    2.30 +	esac &&
    2.31 +	python setup.py install --root=$DESTDIR
    2.32 +	case "$ARCH" in
    2.33 +		arm*) 
    2.34 +			rm /usr/bin/i486-slitaz-linux-gcc &&
    2.35 +			mv /tmp/i486-slitaz-linux-gcc /usr/bin ;;
    2.36 +	esac
    2.37 +}
    2.38 +
    2.39 +# Rules to gen a SliTaz package suitable for Tazpkg.
    2.40 +genpkg_rules()
    2.41 +{
    2.42 +	cp -a $install/usr $fs
    2.43 +}
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/python-smbus/receipt	Wed Apr 23 16:32:16 2014 +0200
     3.3 @@ -0,0 +1,42 @@
     3.4 +# SliTaz package receipt.
     3.5 +
     3.6 +PACKAGE="python-smbus"
     3.7 +VERSION="3.1.1"
     3.8 +CATEGORY="system-tools"
     3.9 +SHORT_DESC="SMBus access through the I2C /dev interface (from i2c-tools)"
    3.10 +MAINTAINER="pankso@slitaz.org"
    3.11 +LICENSE="GPL2"
    3.12 +SOURCE="i2c-tools"
    3.13 +TARBALL="$SOURCE-$VERSION.tar.bz2"
    3.14 +WEB_SITE="http://www.lm-sensors.org/wiki/I2CTools"
    3.15 +WGET_URL="http://dl.lm-sensors.org/$SOURCE/releases/$TARBALL"
    3.16 +TAGS="python"
    3.17 +HOST_ARCH="i486 arm"
    3.18 +
    3.19 +DEPENDS="python"
    3.20 +BUILD_DEPENDS="python-dev setuptools"
    3.21 +
    3.22 +# Rules to configure and make the package.
    3.23 +compile_rules()
    3.24 +{
    3.25 +	# Cross compilation hack
    3.26 +	case "$ARCH" in
    3.27 +		arm*)
    3.28 +			mv /usr/bin/i486-slitaz-linux-gcc /tmp &&
    3.29 +			ln -s /cross/${ARCH}/tools/bin/arm-slitaz-linux-gnueabi-gcc \
    3.30 +				/usr/bin/i486-slitaz-linux-gcc ;;
    3.31 +	esac &&
    3.32 +	make EXTRA=py-smbus && cd py-smbus &&
    3.33 +	python setup.py install --root=$DESTDIR
    3.34 +	case "$ARCH" in
    3.35 +		arm*) 
    3.36 +			rm /usr/bin/i486-slitaz-linux-gcc &&
    3.37 +			mv /tmp/i486-slitaz-linux-gcc /usr/bin ;;
    3.38 +	esac
    3.39 +}
    3.40 +
    3.41 +# Rules to gen a SliTaz package suitable for Tazpkg.
    3.42 +genpkg_rules()
    3.43 +{
    3.44 +	cp -a $install/usr $fs
    3.45 +}