wok annotate python-smbus/receipt @ rev 25618
Update get-pcem-roms
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Aug 28 14:28:52 2023 +0000 (16 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 } |