wok-next diff python-smbus/receipt @ rev 21705
updated graphviz (2.40.1 -> 2.44.0)
author | Hans-G?nter Theisgen |
---|---|
date | Mon Jul 06 14:36:48 2020 +0100 (2020-07-06) |
parents | 7506b35e1c6f |
children |
line diff
1.1 --- a/python-smbus/receipt Mon Aug 13 00:47:17 2018 +0300 1.2 +++ b/python-smbus/receipt Mon Jul 06 14:36:48 2020 +0100 1.3 @@ -1,43 +1,28 @@ 1.4 -# SliTaz package receipt. 1.5 +# SliTaz package receipt v2. 1.6 1.7 PACKAGE="python-smbus" 1.8 VERSION="3.1.1" 1.9 CATEGORY="system-tools" 1.10 SHORT_DESC="SMBus access through the I2C /dev interface (from i2c-tools)" 1.11 -MAINTAINER="pankso@slitaz.org" 1.12 +MAINTAINER="devel@slitaz.org" 1.13 LICENSE="GPL2" 1.14 WEB_SITE="https://git.kernel.org/pub/scm/utils/i2c-tools/i2c-tools.git/about/" 1.15 REPOLOGY="i2c-tools" 1.16 1.17 -SOURCE="i2c-tools" 1.18 -TARBALL="$SOURCE-$VERSION.tar.bz2" 1.19 -WGET_URL="http://dl.lm-sensors.org/$SOURCE/releases/$TARBALL" 1.20 -TAGS="python" 1.21 +TARBALL="i2c-tools-$VERSION.tar.bz2" 1.22 +WGET_URL="http://dl.lm-sensors.org/i2c-tools/releases/$TARBALL" 1.23 1.24 -DEPENDS="python" 1.25 BUILD_DEPENDS="python-dev" 1.26 1.27 -# Rules to configure and make the package. 1.28 -compile_rules() 1.29 -{ 1.30 - # Cross compilation hack 1.31 - case "$ARCH" in 1.32 - arm*) 1.33 - mv /usr/bin/i486-slitaz-linux-gcc /tmp && 1.34 - ln -s /cross/${ARCH}/tools/bin/arm-slitaz-linux-gnueabi-gcc \ 1.35 - /usr/bin/i486-slitaz-linux-gcc ;; 1.36 - esac && 1.37 - make EXTRA=py-smbus && cd py-smbus && 1.38 - python setup.py install --root=$DESTDIR 1.39 - case "$ARCH" in 1.40 - arm*) 1.41 - rm /usr/bin/i486-slitaz-linux-gcc && 1.42 - mv /tmp/i486-slitaz-linux-gcc /usr/bin ;; 1.43 - esac 1.44 +compile_rules() { 1.45 + make EXTRA=py-smbus || return 1 1.46 + 1.47 + cd py-smbus 1.48 + python -B setup.py install --root=$install 1.49 } 1.50 1.51 -# Rules to gen a SliTaz package suitable for Tazpkg. 1.52 -genpkg_rules() 1.53 -{ 1.54 - cp -a $install/usr $fs 1.55 +genpkg_rules() { 1.56 + copy @std 1.57 + DEPENDS="python" 1.58 + TAGS="python" 1.59 }