# SliTaz package receipt. PACKAGE="python-smbus" VERSION="4.3" CATEGORY="system-tools" TAGS="python" SHORT_DESC="SMBus access through the I2C /dev interface (from i2c-tools)." MAINTAINER="pankso@slitaz.org" LICENSE="GPL2" WEB_SITE="https://git.kernel.org/pub/scm/utils/i2c-tools/i2c-tools.git/about/" SOURCE="i2c-tools" TARBALL="$SOURCE-$VERSION.tar.xz" WGET_URL="https://www.kernel.org/pub/software/utils/$SOURCE/$TARBALL" DEPENDS="python" BUILD_DEPENDS="python-dev python-setuptools" HOST_ARCH="i486 arm" # What is the latest version available today? current_version() { wget -O - https://git.kernel.org/pub/scm/utils/i2c-tools/i2c-tools.git/ 2>/dev/null | \ sed '/i2c-tools-/!d;/tar/!d;s|.*i2c-tools-||;s|.tar.*||;q' } # Rules to configure and make the package. compile_rules() { # Cross compilation hack case "$ARCH" in (arm*) mv /usr/bin/i486-slitaz-linux-gcc /tmp && ln -s /cross/${ARCH}/tools/bin/arm-slitaz-linux-gnueabi-gcc \ /usr/bin/i486-slitaz-linux-gcc ;; esac make EXTRA=py-smbus && cd py-smbus && python setup.py install --root=$DESTDIR case "$ARCH" in (arm*) rm /usr/bin/i486-slitaz-linux-gcc && mv /tmp/i486-slitaz-linux-gcc /usr/bin ;; esac } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { cook_copy_folders lib }