wok-6.x diff python-smbus/receipt @ rev 19381

palemoon: change sqlite version
author Xander Ziiryanoff <psychomaniak@xakep.ru>
date Thu Aug 18 16:53:29 2016 +0200 (2016-08-18)
parents
children 6135577f4d08
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/python-smbus/receipt	Thu Aug 18 16:53:29 2016 +0200
     1.3 @@ -0,0 +1,42 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="python-smbus"
     1.7 +VERSION="3.1.1"
     1.8 +CATEGORY="system-tools"
     1.9 +SHORT_DESC="SMBus access through the I2C /dev interface (from i2c-tools)"
    1.10 +MAINTAINER="pankso@slitaz.org"
    1.11 +LICENSE="GPL2"
    1.12 +SOURCE="i2c-tools"
    1.13 +TARBALL="$SOURCE-$VERSION.tar.bz2"
    1.14 +WEB_SITE="http://www.lm-sensors.org/wiki/I2CTools"
    1.15 +WGET_URL="http://dl.lm-sensors.org/$SOURCE/releases/$TARBALL"
    1.16 +TAGS="python"
    1.17 +HOST_ARCH="i486 arm"
    1.18 +
    1.19 +DEPENDS="python"
    1.20 +BUILD_DEPENDS="python-dev setuptools"
    1.21 +
    1.22 +# Rules to configure and make the package.
    1.23 +compile_rules()
    1.24 +{
    1.25 +	# Cross compilation hack
    1.26 +	case "$ARCH" in
    1.27 +		arm*)
    1.28 +			mv /usr/bin/i486-slitaz-linux-gcc /tmp &&
    1.29 +			ln -s /cross/${ARCH}/tools/bin/arm-slitaz-linux-gnueabi-gcc \
    1.30 +				/usr/bin/i486-slitaz-linux-gcc ;;
    1.31 +	esac &&
    1.32 +	make EXTRA=py-smbus && cd py-smbus &&
    1.33 +	python setup.py install --root=$DESTDIR
    1.34 +	case "$ARCH" in
    1.35 +		arm*) 
    1.36 +			rm /usr/bin/i486-slitaz-linux-gcc &&
    1.37 +			mv /tmp/i486-slitaz-linux-gcc /usr/bin ;;
    1.38 +	esac
    1.39 +}
    1.40 +
    1.41 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.42 +genpkg_rules()
    1.43 +{
    1.44 +	cp -a $install/usr $fs
    1.45 +}