wok-current rev 25240

updated python-smbus (3.1.1 -> 4.3)
author Hans-G?nter Theisgen
date Thu Jul 14 06:30:07 2022 +0100 (2022-07-14)
parents 9edbd848b62f
children 3b333032b798
files python-smbus/receipt
line diff
     1.1 --- a/python-smbus/receipt	Thu Jul 14 06:22:37 2022 +0100
     1.2 +++ b/python-smbus/receipt	Thu Jul 14 06:30:07 2022 +0100
     1.3 @@ -1,21 +1,23 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="python-smbus"
     1.7 -VERSION="3.1.1"
     1.8 +VERSION="4.3"
     1.9  CATEGORY="system-tools"
    1.10 -SHORT_DESC="SMBus access through the I2C /dev interface (from i2c-tools)"
    1.11 +TAGS="python"
    1.12 +SHORT_DESC="SMBus access through the I2C /dev interface (from i2c-tools)."
    1.13  MAINTAINER="pankso@slitaz.org"
    1.14  LICENSE="GPL2"
    1.15 +WEB_SITE="https://git.kernel.org/pub/scm/utils/i2c-tools/i2c-tools.git/about/"
    1.16 +
    1.17  SOURCE="i2c-tools"
    1.18  TARBALL="$SOURCE-$VERSION.tar.xz"
    1.19 -WEB_SITE="https://git.kernel.org/pub/scm/utils/i2c-tools/i2c-tools.git/about/"
    1.20 -WGET_URL="https://mirrors.edge.kernel.org/pub/software/utils/$SOURCE/$TARBALL"
    1.21 -TAGS="python"
    1.22 -HOST_ARCH="i486 arm"
    1.23 +WGET_URL="https://www.kernel.org/pub/software/utils/$SOURCE/$TARBALL"
    1.24  
    1.25  DEPENDS="python"
    1.26  BUILD_DEPENDS="python-dev python-setuptools"
    1.27  
    1.28 +HOST_ARCH="i486 arm"
    1.29 +
    1.30  # What is the latest version available today?
    1.31  current_version()
    1.32  {
    1.33 @@ -28,22 +30,27 @@
    1.34  {
    1.35  	# Cross compilation hack
    1.36  	case "$ARCH" in
    1.37 -		arm*)
    1.38 +		(arm*)
    1.39  			mv /usr/bin/i486-slitaz-linux-gcc /tmp &&
    1.40  			ln -s /cross/${ARCH}/tools/bin/arm-slitaz-linux-gnueabi-gcc \
    1.41 -				/usr/bin/i486-slitaz-linux-gcc ;;
    1.42 -	esac &&
    1.43 -	make EXTRA=py-smbus && cd py-smbus &&
    1.44 +				/usr/bin/i486-slitaz-linux-gcc
    1.45 +			;;
    1.46 +	esac
    1.47 +
    1.48 +	make EXTRA=py-smbus &&
    1.49 +	cd py-smbus &&
    1.50  	python setup.py install --root=$DESTDIR
    1.51 +
    1.52  	case "$ARCH" in
    1.53 -		arm*) 
    1.54 +		(arm*) 
    1.55  			rm /usr/bin/i486-slitaz-linux-gcc &&
    1.56 -			mv /tmp/i486-slitaz-linux-gcc /usr/bin ;;
    1.57 +			mv /tmp/i486-slitaz-linux-gcc /usr/bin
    1.58 +			;;
    1.59  	esac
    1.60  }
    1.61  
    1.62  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.63  genpkg_rules()
    1.64  {
    1.65 -	cp -a $install/usr $fs
    1.66 +	cook_copy_folders	lib
    1.67  }