wok-current annotate python-rpi-gpio/receipt @ rev 24906
updated minidlna (1.2.1 -> 1.3.0)
author | Hans-G?nter Theisgen |
---|---|
date | Sat Apr 09 14:37:52 2022 +0100 (2022-04-09) |
parents | 814362194a8d |
children |
rev | line source |
---|---|
pankso@16495 | 1 # SliTaz package receipt. |
pankso@16495 | 2 |
pankso@16495 | 3 PACKAGE="python-rpi-gpio" |
pankso@16495 | 4 VERSION="0.5.5" |
pankso@16496 | 5 CATEGORY="system-tools" |
pankso@16495 | 6 SHORT_DESC="Python class to control the GPIO on a Raspberry Pi." |
pankso@16495 | 7 MAINTAINER="pankso@slitaz.org" |
pankso@16495 | 8 LICENSE="BSD" |
pankso@16495 | 9 SOURCE="RPi.GPIO" |
pankso@16495 | 10 TARBALL="$SOURCE-$VERSION.tar.gz" |
pankso@16495 | 11 WEB_SITE="https://pypi.python.org/pypi/RPi.GPIO" |
pankso@16495 | 12 WGET_URL="https://pypi.python.org/packages/source/R/$SOURCE/$TARBALL" |
pankso@16496 | 13 TAGS="raspberrypi rpi" |
pankso@16495 | 14 HOST_ARCH="arm" |
pankso@16495 | 15 |
pankso@16495 | 16 DEPENDS="python python-smbus" |
pascal@21582 | 17 BUILD_DEPENDS="python-dev python-setuptools" |
pankso@16495 | 18 |
pascal@24391 | 19 # What is the latest version available today? |
pascal@24391 | 20 current_version() |
pascal@24391 | 21 { |
pascal@24391 | 22 wget -O - https://pypi.org/project/$SOURCE/ 2>/dev/null | \ |
pascal@24391 | 23 sed "/$SOURCE-/!d;/tar/!d;s|.*$SOURCE-||;s|.tar.*||;q" |
pascal@24391 | 24 } |
pascal@24391 | 25 |
pankso@16495 | 26 # Rules to configure and make the package. |
pankso@16495 | 27 compile_rules() |
pankso@16495 | 28 { |
pankso@16495 | 29 # Cross compilation hack |
pankso@16495 | 30 case "$ARCH" in |
pankso@16495 | 31 arm*) |
pankso@16495 | 32 mv /usr/bin/i486-slitaz-linux-gcc /tmp && |
pankso@16495 | 33 ln -s /cross/${ARCH}/tools/bin/arm-slitaz-linux-gnueabi-gcc \ |
pankso@16495 | 34 /usr/bin/i486-slitaz-linux-gcc ;; |
pankso@16495 | 35 esac && |
pankso@16495 | 36 python setup.py install --root=$DESTDIR |
pankso@16495 | 37 case "$ARCH" in |
pankso@16495 | 38 arm*) |
pankso@16495 | 39 rm /usr/bin/i486-slitaz-linux-gcc && |
pankso@16495 | 40 mv /tmp/i486-slitaz-linux-gcc /usr/bin ;; |
pankso@16495 | 41 esac |
pankso@16495 | 42 } |
pankso@16495 | 43 |
pankso@16495 | 44 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@16495 | 45 genpkg_rules() |
pankso@16495 | 46 { |
pankso@16495 | 47 cp -a $install/usr $fs |
pankso@16495 | 48 } |