wok-current view wiringpi-pibrella/receipt @ rev 18128

marco: update deps (again)
author Yuri Pourre <yuripourre@gmail.com>
date Thu Jun 11 13:43:49 2015 -0300 (2015-06-11)
parents
children 535c806240cc
line source
1 # SliTaz package receipt.
3 PACKAGE="wiringpi-pibrella"
4 GITHASH="53592f938900aa76f9b76b0726c1e18e39f405b5"
5 VERSION="${GITHASH:0:7}"
6 CATEGORY="system-tools"
7 SHORT_DESC="Examples for the Pibrella board from Pimoroni using WiringPi"
8 MAINTAINER="pankso@slitaz.org"
9 LICENSE="LGPL"
10 TARBALL="$PACKAGE-$VERSION.tar.gz"
11 WEB_SITE="http://wiringpi.com/"
12 WGET_URL="https://git.drogon.net/?p=pibrella;a=snapshot;h=${GITHASH};sf=tgz"
13 TAGS="raspberrypi rpi"
14 HOST_ARCH="arm"
16 DEPENDS="wiringpi"
17 # wiringpi + wiringpi-dev must be installed in sysroot
19 # Rules to configure and make the package.
20 compile_rules()
21 {
22 sed -i s"#CC = gcc#CC = ${HOST_SYSTEM}-gcc#" Makefile
23 make || return 1
24 }
26 # Rules to gen a SliTaz package suitable for Tazpkg.
27 genpkg_rules()
28 {
29 mkdir -p $fs/usr/bin $fs/usr/include
30 cp -a ${src}/tune $fs/usr/bin/pibrella-tune
31 cp -a ${src}/ladder $fs/usr/bin/pibrella-ladder
32 cp -a ${src}/wire $fs/usr/bin/pibrella-wire
33 cp -a ${src}/pibrella.h $fs/usr/include
34 }