wok-6.x view python-smbus/receipt @ rev 21633
openmotif: modified WGET_URL again
author | Hans-G?nter Theisgen |
---|---|
date | Tue May 28 15:10:25 2019 +0100 (2019-05-28) |
parents | 6135577f4d08 |
children | 2f230197370e |
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="https://git.kernel.org/pub/scm/utils/i2c-tools/i2c-tools.git/about/"
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 python-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 }