wok annotate python-smbus/receipt @ rev 19786

binutils: depends on flex (ar, ranlib)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Wed Feb 22 15:22:41 2017 +0200 (2017-02-22)
parents
children 6135577f4d08
rev   line source
pankso@16495 1 # SliTaz package receipt.
pankso@16495 2
pankso@16495 3 PACKAGE="python-smbus"
pankso@16495 4 VERSION="3.1.1"
pankso@16495 5 CATEGORY="system-tools"
pankso@16495 6 SHORT_DESC="SMBus access through the I2C /dev interface (from i2c-tools)"
pankso@16495 7 MAINTAINER="pankso@slitaz.org"
pankso@16495 8 LICENSE="GPL2"
pankso@16495 9 SOURCE="i2c-tools"
pankso@16495 10 TARBALL="$SOURCE-$VERSION.tar.bz2"
pankso@16495 11 WEB_SITE="http://www.lm-sensors.org/wiki/I2CTools"
pankso@16495 12 WGET_URL="http://dl.lm-sensors.org/$SOURCE/releases/$TARBALL"
pankso@16495 13 TAGS="python"
pankso@16495 14 HOST_ARCH="i486 arm"
pankso@16495 15
pankso@16495 16 DEPENDS="python"
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 make EXTRA=py-smbus && cd py-smbus &&
pankso@16495 30 python setup.py install --root=$DESTDIR
pankso@16495 31 case "$ARCH" in
pankso@16495 32 arm*)
pankso@16495 33 rm /usr/bin/i486-slitaz-linux-gcc &&
pankso@16495 34 mv /tmp/i486-slitaz-linux-gcc /usr/bin ;;
pankso@16495 35 esac
pankso@16495 36 }
pankso@16495 37
pankso@16495 38 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@16495 39 genpkg_rules()
pankso@16495 40 {
pankso@16495 41 cp -a $install/usr $fs
pankso@16495 42 }