wok-6.x rev 16670
Add wiringpi-pibrella
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Thu May 15 19:27:26 2014 +0200 (2014-05-15) |
parents | 84c0372a9614 |
children | 8fa04e6be59c |
files | wiringpi-pibrella/receipt |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/wiringpi-pibrella/receipt Thu May 15 19:27:26 2014 +0200 1.3 @@ -0,0 +1,34 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="wiringpi-pibrella" 1.7 +GITHASH="53592f938900aa76f9b76b0726c1e18e39f405b5" 1.8 +VERSION="${GITHASH:0:7}" 1.9 +CATEGORY="system-tools" 1.10 +SHORT_DESC="Examples for the Pibrella board from Pimoroni using WiringPi" 1.11 +MAINTAINER="pankso@slitaz.org" 1.12 +LICENSE="LGPL" 1.13 +TARBALL="$PACKAGE-$VERSION.tar.gz" 1.14 +WEB_SITE="http://wiringpi.com/" 1.15 +WGET_URL="https://git.drogon.net/?p=pibrella;a=snapshot;h=${GITHASH};sf=tgz" 1.16 +TAGS="raspberrypi rpi" 1.17 +HOST_ARCH="arm" 1.18 + 1.19 +DEPENDS="wiringpi" 1.20 +# wiringpi + wiringpi-dev must be installed in sysroot 1.21 + 1.22 +# Rules to configure and make the package. 1.23 +compile_rules() 1.24 +{ 1.25 + sed -i s"#CC = gcc#CC = ${HOST_SYSTEM}-gcc#" Makefile 1.26 + make || return 1 1.27 +} 1.28 + 1.29 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.30 +genpkg_rules() 1.31 +{ 1.32 + mkdir -p $fs/usr/bin $fs/usr/include 1.33 + cp -a ${src}/tune $fs/usr/bin/pibrella-tune 1.34 + cp -a ${src}/ladder $fs/usr/bin/pibrella-ladder 1.35 + cp -a ${src}/wire $fs/usr/bin/pibrella-wire 1.36 + cp -a ${src}/pibrella.h $fs/usr/include 1.37 +}