wok-current annotate python-smbus/receipt @ rev 25786
Bump gvfs to fix issue with open files on android device, patch udev to fix mtp issue on pcmanfm
| author | Stanislas Leduc <shann@slitaz.org> |
|---|---|
| date | Tue Jul 29 18:05:13 2025 +0000 (2 months ago) |
| parents | 1c88796e4a70 |
| children |
| rev | line source |
|---|---|
| pankso@16495 | 1 # SliTaz package receipt. |
| pankso@16495 | 2 |
| pankso@16495 | 3 PACKAGE="python-smbus" |
| Hans-Günter@25240 | 4 VERSION="4.3" |
| pankso@16495 | 5 CATEGORY="system-tools" |
| Hans-Günter@25240 | 6 TAGS="python" |
| Hans-Günter@25240 | 7 SHORT_DESC="SMBus access through the I2C /dev interface (from i2c-tools)." |
| pankso@16495 | 8 MAINTAINER="pankso@slitaz.org" |
| pankso@16495 | 9 LICENSE="GPL2" |
| Hans-Günter@25240 | 10 WEB_SITE="https://git.kernel.org/pub/scm/utils/i2c-tools/i2c-tools.git/about/" |
| Hans-Günter@25240 | 11 |
| pankso@16495 | 12 SOURCE="i2c-tools" |
| pascal@24994 | 13 TARBALL="$SOURCE-$VERSION.tar.xz" |
| Hans-Günter@25240 | 14 WGET_URL="https://www.kernel.org/pub/software/utils/$SOURCE/$TARBALL" |
| pankso@16495 | 15 |
| pankso@16495 | 16 DEPENDS="python" |
| pascal@21582 | 17 BUILD_DEPENDS="python-dev python-setuptools" |
| pankso@16495 | 18 |
| Hans-Günter@25240 | 19 HOST_ARCH="i486 arm" |
| Hans-Günter@25240 | 20 |
| pascal@24459 | 21 # What is the latest version available today? |
| pascal@24459 | 22 current_version() |
| pascal@24459 | 23 { |
| pascal@24459 | 24 wget -O - https://git.kernel.org/pub/scm/utils/i2c-tools/i2c-tools.git/ 2>/dev/null | \ |
| pascal@24459 | 25 sed '/i2c-tools-/!d;/tar/!d;s|.*i2c-tools-||;s|.tar.*||;q' |
| pascal@24459 | 26 } |
| pascal@24459 | 27 |
| pankso@16495 | 28 # Rules to configure and make the package. |
| pankso@16495 | 29 compile_rules() |
| pankso@16495 | 30 { |
| pankso@16495 | 31 # Cross compilation hack |
| pankso@16495 | 32 case "$ARCH" in |
| Hans-Günter@25240 | 33 (arm*) |
| pankso@16495 | 34 mv /usr/bin/i486-slitaz-linux-gcc /tmp && |
| pankso@16495 | 35 ln -s /cross/${ARCH}/tools/bin/arm-slitaz-linux-gnueabi-gcc \ |
| Hans-Günter@25240 | 36 /usr/bin/i486-slitaz-linux-gcc |
| Hans-Günter@25240 | 37 ;; |
| Hans-Günter@25240 | 38 esac |
| Hans-Günter@25240 | 39 |
| Hans-Günter@25240 | 40 make EXTRA=py-smbus && |
| Hans-Günter@25240 | 41 cd py-smbus && |
| pankso@16495 | 42 python setup.py install --root=$DESTDIR |
| Hans-Günter@25240 | 43 |
| pankso@16495 | 44 case "$ARCH" in |
| Hans-Günter@25240 | 45 (arm*) |
| pankso@16495 | 46 rm /usr/bin/i486-slitaz-linux-gcc && |
| Hans-Günter@25240 | 47 mv /tmp/i486-slitaz-linux-gcc /usr/bin |
| Hans-Günter@25240 | 48 ;; |
| pankso@16495 | 49 esac |
| pankso@16495 | 50 } |
| pankso@16495 | 51 |
| pankso@16495 | 52 # Rules to gen a SliTaz package suitable for Tazpkg. |
| pankso@16495 | 53 genpkg_rules() |
| pankso@16495 | 54 { |
| Hans-Günter@25240 | 55 cook_copy_folders lib |
| pankso@16495 | 56 } |