wok-6.x annotate wiringpi-pibrella/receipt @ rev 16670

Add wiringpi-pibrella
author Christophe Lincoln <pankso@slitaz.org>
date Thu May 15 19:27:26 2014 +0200 (2014-05-15)
parents
children 535c806240cc
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
pankso@16670 19 # Rules to configure and make the package.
pankso@16670 20 compile_rules()
pankso@16670 21 {
pankso@16670 22 sed -i s"#CC = gcc#CC = ${HOST_SYSTEM}-gcc#" Makefile
pankso@16670 23 make || return 1
pankso@16670 24 }
pankso@16670 25
pankso@16670 26 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@16670 27 genpkg_rules()
pankso@16670 28 {
pankso@16670 29 mkdir -p $fs/usr/bin $fs/usr/include
pankso@16670 30 cp -a ${src}/tune $fs/usr/bin/pibrella-tune
pankso@16670 31 cp -a ${src}/ladder $fs/usr/bin/pibrella-ladder
pankso@16670 32 cp -a ${src}/wire $fs/usr/bin/pibrella-wire
pankso@16670 33 cp -a ${src}/pibrella.h $fs/usr/include
pankso@16670 34 }