wok-6.x view wiringpi-pibrella/receipt @ rev 25134
updated phpeasyvcs (1.0 -> 2.0)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Jun 29 10:51:43 2022 +0100 (2022-06-29) |
parents | 9629573c8b54 |
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 # What is the latest version available today?
20 current_version()
21 {
22 wget -O - $WEB_SITE 2>/dev/null | \
23 sed '/updated/!d;s|.* to ||;s|[ <].*||;q'
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 sed -i s"#CC = gcc#CC = ${HOST_SYSTEM}-gcc#" Makefile
30 make || return 1
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 mkdir -p $fs/usr/bin $fs/usr/include
37 cp -a ${src}/tune $fs/usr/bin/pibrella-tune
38 cp -a ${src}/ladder $fs/usr/bin/pibrella-ladder
39 cp -a ${src}/wire $fs/usr/bin/pibrella-wire
40 cp -a ${src}/pibrella.h $fs/usr/include
41 }