wok-next view wiringpi-pibrella/receipt @ rev 20443

The rest of my "home work" for update many packages (up to Xorg, GTK and Openbox) for Next and mainly for Next64. Since this point this repository is open for commits. Many errors are expected due to harfbuzz-freetype dependency loop...
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat Feb 24 16:17:33 2018 +0200 (2018-02-24)
parents
children
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 }