wok-current annotate python-rpi-gpio/receipt @ rev 16542

slitaz-menus: add Arabic translations (from xfce & lxde)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue Apr 29 09:40:24 2014 +0000 (2014-04-29)
parents 007630052ef4
children 814362194a8d
rev   line source
pankso@16495 1 # SliTaz package receipt.
pankso@16495 2
pankso@16495 3 PACKAGE="python-rpi-gpio"
pankso@16495 4 VERSION="0.5.5"
pankso@16496 5 CATEGORY="system-tools"
pankso@16495 6 SHORT_DESC="Python class to control the GPIO on a Raspberry Pi."
pankso@16495 7 MAINTAINER="pankso@slitaz.org"
pankso@16495 8 LICENSE="BSD"
pankso@16495 9 SOURCE="RPi.GPIO"
pankso@16495 10 TARBALL="$SOURCE-$VERSION.tar.gz"
pankso@16495 11 WEB_SITE="https://pypi.python.org/pypi/RPi.GPIO"
pankso@16495 12 WGET_URL="https://pypi.python.org/packages/source/R/$SOURCE/$TARBALL"
pankso@16496 13 TAGS="raspberrypi rpi"
pankso@16495 14 HOST_ARCH="arm"
pankso@16495 15
pankso@16495 16 DEPENDS="python python-smbus"
pankso@16495 17 BUILD_DEPENDS="python-dev setuptools"
pankso@16495 18
pankso@16495 19 # Rules to configure and make the package.
pankso@16495 20 compile_rules()
pankso@16495 21 {
pankso@16495 22 # Cross compilation hack
pankso@16495 23 case "$ARCH" in
pankso@16495 24 arm*)
pankso@16495 25 mv /usr/bin/i486-slitaz-linux-gcc /tmp &&
pankso@16495 26 ln -s /cross/${ARCH}/tools/bin/arm-slitaz-linux-gnueabi-gcc \
pankso@16495 27 /usr/bin/i486-slitaz-linux-gcc ;;
pankso@16495 28 esac &&
pankso@16495 29 python setup.py install --root=$DESTDIR
pankso@16495 30 case "$ARCH" in
pankso@16495 31 arm*)
pankso@16495 32 rm /usr/bin/i486-slitaz-linux-gcc &&
pankso@16495 33 mv /tmp/i486-slitaz-linux-gcc /usr/bin ;;
pankso@16495 34 esac
pankso@16495 35 }
pankso@16495 36
pankso@16495 37 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@16495 38 genpkg_rules()
pankso@16495 39 {
pankso@16495 40 cp -a $install/usr $fs
pankso@16495 41 }