wok-next view python-smbus/receipt @ rev 20909

Update homepages
author Aleksej Bobylev <al.bobylev@gmail.com>
date Mon Aug 13 00:47:17 2018 +0300 (2018-08-13)
parents 92698cd69f34
children d5aab818505e
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 WEB_SITE="https://git.kernel.org/pub/scm/utils/i2c-tools/i2c-tools.git/about/"
10 REPOLOGY="i2c-tools"
12 SOURCE="i2c-tools"
13 TARBALL="$SOURCE-$VERSION.tar.bz2"
14 WGET_URL="http://dl.lm-sensors.org/$SOURCE/releases/$TARBALL"
15 TAGS="python"
17 DEPENDS="python"
18 BUILD_DEPENDS="python-dev"
20 # Rules to configure and make the package.
21 compile_rules()
22 {
23 # Cross compilation hack
24 case "$ARCH" in
25 arm*)
26 mv /usr/bin/i486-slitaz-linux-gcc /tmp &&
27 ln -s /cross/${ARCH}/tools/bin/arm-slitaz-linux-gnueabi-gcc \
28 /usr/bin/i486-slitaz-linux-gcc ;;
29 esac &&
30 make EXTRA=py-smbus && cd py-smbus &&
31 python setup.py install --root=$DESTDIR
32 case "$ARCH" in
33 arm*)
34 rm /usr/bin/i486-slitaz-linux-gcc &&
35 mv /tmp/i486-slitaz-linux-gcc /usr/bin ;;
36 esac
37 }
39 # Rules to gen a SliTaz package suitable for Tazpkg.
40 genpkg_rules()
41 {
42 cp -a $install/usr $fs
43 }