wok view wiringpi-pibrella/receipt @ rev 23834

Up alsa-lib (1.2.2), apache-ant (1.10.8), apache (2.4.43), lcms2 (2.10), libexit (0.6.22)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Jun 01 09:10:42 2020 +0000 (2020-06-01)
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 }