wok-current annotate wiringpi-pibrella/receipt @ rev 24670
updated iperf (3.7 -> 3.11)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Mar 11 17:07:08 2022 +0100 (2022-03-11) |
parents | 9629573c8b54 |
children |
rev | line source |
---|---|
pankso@16670 | 1 # SliTaz package receipt. |
pankso@16670 | 2 |
pankso@16670 | 3 PACKAGE="wiringpi-pibrella" |
pankso@16670 | 4 GITHASH="53592f938900aa76f9b76b0726c1e18e39f405b5" |
pankso@16670 | 5 VERSION="${GITHASH:0:7}" |
pankso@16670 | 6 CATEGORY="system-tools" |
pankso@16670 | 7 SHORT_DESC="Examples for the Pibrella board from Pimoroni using WiringPi" |
pankso@16670 | 8 MAINTAINER="pankso@slitaz.org" |
pankso@16670 | 9 LICENSE="LGPL" |
pankso@16670 | 10 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pankso@16670 | 11 WEB_SITE="http://wiringpi.com/" |
pankso@16670 | 12 WGET_URL="https://git.drogon.net/?p=pibrella;a=snapshot;h=${GITHASH};sf=tgz" |
pankso@16670 | 13 TAGS="raspberrypi rpi" |
pankso@16670 | 14 HOST_ARCH="arm" |
pankso@16670 | 15 |
pankso@16670 | 16 DEPENDS="wiringpi" |
pankso@16670 | 17 # wiringpi + wiringpi-dev must be installed in sysroot |
pankso@16670 | 18 |
pascal@24465 | 19 # What is the latest version available today? |
pascal@24465 | 20 current_version() |
pascal@24465 | 21 { |
pascal@24465 | 22 wget -O - $WEB_SITE 2>/dev/null | \ |
pascal@24465 | 23 sed '/updated/!d;s|.* to ||;s|[ <].*||;q' |
pascal@24465 | 24 } |
pascal@24465 | 25 |
pankso@16670 | 26 # Rules to configure and make the package. |
pankso@16670 | 27 compile_rules() |
pankso@16670 | 28 { |
pankso@16670 | 29 sed -i s"#CC = gcc#CC = ${HOST_SYSTEM}-gcc#" Makefile |
pankso@16670 | 30 make || return 1 |
pankso@16670 | 31 } |
pankso@16670 | 32 |
pankso@16670 | 33 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@16670 | 34 genpkg_rules() |
pankso@16670 | 35 { |
pankso@16670 | 36 mkdir -p $fs/usr/bin $fs/usr/include |
pankso@16670 | 37 cp -a ${src}/tune $fs/usr/bin/pibrella-tune |
pankso@16670 | 38 cp -a ${src}/ladder $fs/usr/bin/pibrella-ladder |
pankso@16670 | 39 cp -a ${src}/wire $fs/usr/bin/pibrella-wire |
pankso@16670 | 40 cp -a ${src}/pibrella.h $fs/usr/include |
pankso@16670 | 41 } |