wok-current view python-smbus/receipt @ rev 25624
Patch gst-ffmpeg to work with new gcc
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Mon Sep 04 19:03:50 2023 +0000 (11 months ago) |
parents | 1c88796e4a70 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="python-smbus"
4 VERSION="4.3"
5 CATEGORY="system-tools"
6 TAGS="python"
7 SHORT_DESC="SMBus access through the I2C /dev interface (from i2c-tools)."
8 MAINTAINER="pankso@slitaz.org"
9 LICENSE="GPL2"
10 WEB_SITE="https://git.kernel.org/pub/scm/utils/i2c-tools/i2c-tools.git/about/"
12 SOURCE="i2c-tools"
13 TARBALL="$SOURCE-$VERSION.tar.xz"
14 WGET_URL="https://www.kernel.org/pub/software/utils/$SOURCE/$TARBALL"
16 DEPENDS="python"
17 BUILD_DEPENDS="python-dev python-setuptools"
19 HOST_ARCH="i486 arm"
21 # What is the latest version available today?
22 current_version()
23 {
24 wget -O - https://git.kernel.org/pub/scm/utils/i2c-tools/i2c-tools.git/ 2>/dev/null | \
25 sed '/i2c-tools-/!d;/tar/!d;s|.*i2c-tools-||;s|.tar.*||;q'
26 }
28 # Rules to configure and make the package.
29 compile_rules()
30 {
31 # Cross compilation hack
32 case "$ARCH" in
33 (arm*)
34 mv /usr/bin/i486-slitaz-linux-gcc /tmp &&
35 ln -s /cross/${ARCH}/tools/bin/arm-slitaz-linux-gnueabi-gcc \
36 /usr/bin/i486-slitaz-linux-gcc
37 ;;
38 esac
40 make EXTRA=py-smbus &&
41 cd py-smbus &&
42 python setup.py install --root=$DESTDIR
44 case "$ARCH" in
45 (arm*)
46 rm /usr/bin/i486-slitaz-linux-gcc &&
47 mv /tmp/i486-slitaz-linux-gcc /usr/bin
48 ;;
49 esac
50 }
52 # Rules to gen a SliTaz package suitable for Tazpkg.
53 genpkg_rules()
54 {
55 cook_copy_folders lib
56 }