wok-6.x view python-smbus/receipt @ rev 18949

mdocml: add LDFLAGS
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Mar 06 21:11:00 2016 +0100 (2016-03-06)
parents
children 6135577f4d08
line source
1 # SliTaz package receipt.
3 PACKAGE="python-smbus"
4 VERSION="3.1.1"
5 CATEGORY="system-tools"
6 SHORT_DESC="SMBus access through the I2C /dev interface (from i2c-tools)"
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 SOURCE="i2c-tools"
10 TARBALL="$SOURCE-$VERSION.tar.bz2"
11 WEB_SITE="http://www.lm-sensors.org/wiki/I2CTools"
12 WGET_URL="http://dl.lm-sensors.org/$SOURCE/releases/$TARBALL"
13 TAGS="python"
14 HOST_ARCH="i486 arm"
16 DEPENDS="python"
17 BUILD_DEPENDS="python-dev setuptools"
19 # Rules to configure and make the package.
20 compile_rules()
21 {
22 # Cross compilation hack
23 case "$ARCH" in
24 arm*)
25 mv /usr/bin/i486-slitaz-linux-gcc /tmp &&
26 ln -s /cross/${ARCH}/tools/bin/arm-slitaz-linux-gnueabi-gcc \
27 /usr/bin/i486-slitaz-linux-gcc ;;
28 esac &&
29 make EXTRA=py-smbus && cd py-smbus &&
30 python setup.py install --root=$DESTDIR
31 case "$ARCH" in
32 arm*)
33 rm /usr/bin/i486-slitaz-linux-gcc &&
34 mv /tmp/i486-slitaz-linux-gcc /usr/bin ;;
35 esac
36 }
38 # Rules to gen a SliTaz package suitable for Tazpkg.
39 genpkg_rules()
40 {
41 cp -a $install/usr $fs
42 }