# HG changeset patch # User Christophe Lincoln # Date 1398263536 -7200 # Node ID 007630052ef44227e0c645d57f264e5e795d2781 # Parent cfa58aeee489a1f3585b61fc1cad6f6800fd15ac Add python-smbus (from i2c-tools) + python-rpi-gpio to handle R-Pi gpio diff -r cfa58aeee489 -r 007630052ef4 fswebcam/receipt --- a/fswebcam/receipt Wed Apr 23 15:48:36 2014 +0200 +++ b/fswebcam/receipt Wed Apr 23 16:32:16 2014 +0200 @@ -11,7 +11,7 @@ TARBALL="$PACKAGE-$VERSION.tar.xz" WGET_URL="$WEB_SITE/files/$TARBALL" TAGS="webcam" -HOST_ARCH="i486 arm" +HOST_ARCH="i486" DEPENDS="libgd" BUILD_DEPENDS="libgd-dev" diff -r cfa58aeee489 -r 007630052ef4 python-rpi-gpio/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/python-rpi-gpio/receipt Wed Apr 23 16:32:16 2014 +0200 @@ -0,0 +1,40 @@ +# SliTaz package receipt. + +PACKAGE="python-rpi-gpio" +VERSION="0.5.5" +CATEGORY="raspberrypi" +SHORT_DESC="Python class to control the GPIO on a Raspberry Pi." +MAINTAINER="pankso@slitaz.org" +LICENSE="BSD" +SOURCE="RPi.GPIO" +TARBALL="$SOURCE-$VERSION.tar.gz" +WEB_SITE="https://pypi.python.org/pypi/RPi.GPIO" +WGET_URL="https://pypi.python.org/packages/source/R/$SOURCE/$TARBALL" +HOST_ARCH="arm" + +DEPENDS="python python-smbus" +BUILD_DEPENDS="python-dev setuptools" + +# Rules to configure and make the package. +compile_rules() +{ + # Cross compilation hack + case "$ARCH" in + arm*) + mv /usr/bin/i486-slitaz-linux-gcc /tmp && + ln -s /cross/${ARCH}/tools/bin/arm-slitaz-linux-gnueabi-gcc \ + /usr/bin/i486-slitaz-linux-gcc ;; + esac && + python setup.py install --root=$DESTDIR + case "$ARCH" in + arm*) + rm /usr/bin/i486-slitaz-linux-gcc && + mv /tmp/i486-slitaz-linux-gcc /usr/bin ;; + esac +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + cp -a $install/usr $fs +} diff -r cfa58aeee489 -r 007630052ef4 python-smbus/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/python-smbus/receipt Wed Apr 23 16:32:16 2014 +0200 @@ -0,0 +1,42 @@ +# SliTaz package receipt. + +PACKAGE="python-smbus" +VERSION="3.1.1" +CATEGORY="system-tools" +SHORT_DESC="SMBus access through the I2C /dev interface (from i2c-tools)" +MAINTAINER="pankso@slitaz.org" +LICENSE="GPL2" +SOURCE="i2c-tools" +TARBALL="$SOURCE-$VERSION.tar.bz2" +WEB_SITE="http://www.lm-sensors.org/wiki/I2CTools" +WGET_URL="http://dl.lm-sensors.org/$SOURCE/releases/$TARBALL" +TAGS="python" +HOST_ARCH="i486 arm" + +DEPENDS="python" +BUILD_DEPENDS="python-dev setuptools" + +# Rules to configure and make the package. +compile_rules() +{ + # Cross compilation hack + case "$ARCH" in + arm*) + mv /usr/bin/i486-slitaz-linux-gcc /tmp && + ln -s /cross/${ARCH}/tools/bin/arm-slitaz-linux-gnueabi-gcc \ + /usr/bin/i486-slitaz-linux-gcc ;; + esac && + make EXTRA=py-smbus && cd py-smbus && + python setup.py install --root=$DESTDIR + case "$ARCH" in + arm*) + rm /usr/bin/i486-slitaz-linux-gcc && + mv /tmp/i486-slitaz-linux-gcc /usr/bin ;; + esac +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + cp -a $install/usr $fs +}