# SliTaz package receipt. PACKAGE="wiringpi-pibrella" GITHASH="53592f938900aa76f9b76b0726c1e18e39f405b5" VERSION="${GITHASH:0:7}" CATEGORY="system-tools" SHORT_DESC="Examples for the Pibrella board from Pimoroni using WiringPi" MAINTAINER="pankso@slitaz.org" LICENSE="LGPL" TARBALL="$PACKAGE-$VERSION.tar.gz" WEB_SITE="http://wiringpi.com/" WGET_URL="https://git.drogon.net/?p=pibrella;a=snapshot;h=${GITHASH};sf=tgz" TAGS="raspberrypi rpi" HOST_ARCH="arm" DEPENDS="wiringpi" # wiringpi + wiringpi-dev must be installed in sysroot # What is the latest version available today? current_version() { wget -O - $WEB_SITE 2>/dev/null | \ sed '/updated/!d;s|.* to ||;s|[ <].*||;q' } # Rules to configure and make the package. compile_rules() { sed -i s"#CC = gcc#CC = ${HOST_SYSTEM}-gcc#" Makefile make || return 1 } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/bin $fs/usr/include cp -a ${src}/tune $fs/usr/bin/pibrella-tune cp -a ${src}/ladder $fs/usr/bin/pibrella-ladder cp -a ${src}/wire $fs/usr/bin/pibrella-wire cp -a ${src}/pibrella.h $fs/usr/include }