wok annotate python-smbus/receipt @ rev 24032
modified get-teamviewer to be able to fetch versions < 13
author | Hans-G?nter Theisgen |
---|---|
date | Tue Apr 06 14:38:05 2021 +0100 (2021-04-06) |
parents | 6135577f4d08 |
children | 2f230197370e |
rev | line source |
---|---|
pankso@16495 | 1 # SliTaz package receipt. |
pankso@16495 | 2 |
pankso@16495 | 3 PACKAGE="python-smbus" |
pankso@16495 | 4 VERSION="3.1.1" |
pankso@16495 | 5 CATEGORY="system-tools" |
pankso@16495 | 6 SHORT_DESC="SMBus access through the I2C /dev interface (from i2c-tools)" |
pankso@16495 | 7 MAINTAINER="pankso@slitaz.org" |
pankso@16495 | 8 LICENSE="GPL2" |
pankso@16495 | 9 SOURCE="i2c-tools" |
pankso@16495 | 10 TARBALL="$SOURCE-$VERSION.tar.bz2" |
pascal@20679 | 11 WEB_SITE="https://git.kernel.org/pub/scm/utils/i2c-tools/i2c-tools.git/about/" |
pankso@16495 | 12 WGET_URL="http://dl.lm-sensors.org/$SOURCE/releases/$TARBALL" |
pankso@16495 | 13 TAGS="python" |
pankso@16495 | 14 HOST_ARCH="i486 arm" |
pankso@16495 | 15 |
pankso@16495 | 16 DEPENDS="python" |
pascal@21582 | 17 BUILD_DEPENDS="python-dev python-setuptools" |
pankso@16495 | 18 |
pankso@16495 | 19 # Rules to configure and make the package. |
pankso@16495 | 20 compile_rules() |
pankso@16495 | 21 { |
pankso@16495 | 22 # Cross compilation hack |
pankso@16495 | 23 case "$ARCH" in |
pankso@16495 | 24 arm*) |
pankso@16495 | 25 mv /usr/bin/i486-slitaz-linux-gcc /tmp && |
pankso@16495 | 26 ln -s /cross/${ARCH}/tools/bin/arm-slitaz-linux-gnueabi-gcc \ |
pankso@16495 | 27 /usr/bin/i486-slitaz-linux-gcc ;; |
pankso@16495 | 28 esac && |
pankso@16495 | 29 make EXTRA=py-smbus && cd py-smbus && |
pankso@16495 | 30 python setup.py install --root=$DESTDIR |
pankso@16495 | 31 case "$ARCH" in |
pankso@16495 | 32 arm*) |
pankso@16495 | 33 rm /usr/bin/i486-slitaz-linux-gcc && |
pankso@16495 | 34 mv /tmp/i486-slitaz-linux-gcc /usr/bin ;; |
pankso@16495 | 35 esac |
pankso@16495 | 36 } |
pankso@16495 | 37 |
pankso@16495 | 38 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@16495 | 39 genpkg_rules() |
pankso@16495 | 40 { |
pankso@16495 | 41 cp -a $install/usr $fs |
pankso@16495 | 42 } |