wok-next view python-smbus/receipt @ rev 20730
glib: up (2.56.1) with static libs and Python2
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Tue May 29 15:17:41 2018 +0300 (2018-05-29) |
parents | 6c73b944e8dd |
children | 92698cd69f34 |
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"
15 DEPENDS="python"
16 BUILD_DEPENDS="python-dev"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 # Cross compilation hack
22 case "$ARCH" in
23 arm*)
24 mv /usr/bin/i486-slitaz-linux-gcc /tmp &&
25 ln -s /cross/${ARCH}/tools/bin/arm-slitaz-linux-gnueabi-gcc \
26 /usr/bin/i486-slitaz-linux-gcc ;;
27 esac &&
28 make EXTRA=py-smbus && cd py-smbus &&
29 python setup.py install --root=$DESTDIR
30 case "$ARCH" in
31 arm*)
32 rm /usr/bin/i486-slitaz-linux-gcc &&
33 mv /tmp/i486-slitaz-linux-gcc /usr/bin ;;
34 esac
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 cp -a $install/usr $fs
41 }