# HG changeset patch # User Christophe Lincoln # Date 1398367106 -7200 # Node ID fe06085e7586b73acb3750d7f0c92aea323cb057 # Parent 7b9df94be9aa90c3dc5b18eae3682e156e42c53a Add wiringpi-piglow (small utility writtrn in C to handle PiGlow leds) diff -r 7b9df94be9aa -r fe06085e7586 wiringpi-dev/receipt --- a/wiringpi-dev/receipt Thu Apr 24 20:43:02 2014 +0200 +++ b/wiringpi-dev/receipt Thu Apr 24 21:18:26 2014 +0200 @@ -8,6 +8,7 @@ MAINTAINER="pankso@slitaz.org" LICENSE="LGPL" WEB_SITE="http://wiringpi.com/" +TAGS="raspberrypi rpi" HOST_ARCH="arm" WANTED="wiringpi" diff -r 7b9df94be9aa -r fe06085e7586 wiringpi-piglow/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/wiringpi-piglow/receipt Thu Apr 24 21:18:26 2014 +0200 @@ -0,0 +1,21 @@ +# SliTaz package receipt. + +PACKAGE="wiringpi-piglow" +GITHASH="f18c8f7204d6354220fd6754578b3daa43734e1b" +VERSION="${GITHASH:0:7}" +CATEGORY="system-tools" +SHORT_DESC="The WiringPi Piglow utility (useful for SHell scripts)." +MAINTAINER="pankso@slitaz.org" +LICENSE="LGPL" +WEB_SITE="http://wiringpi.com/" +TAGS="raspberrypi rpi" +HOST_ARCH="arm" + +WANTED="wiringpi" + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/bin + cp -a ${src}/examples/PiGlow/piglow $fs/usr/bin +} diff -r 7b9df94be9aa -r fe06085e7586 wiringpi/receipt --- a/wiringpi/receipt Thu Apr 24 20:43:02 2014 +0200 +++ b/wiringpi/receipt Thu Apr 24 21:18:26 2014 +0200 @@ -10,8 +10,11 @@ TARBALL="$PACKAGE-$VERSION.tar.bz2" WEB_SITE="http://wiringpi.com/" WGET_URL="git|git://git.drogon.net/wiringPi" +TAGS="raspberrypi rpi" HOST_ARCH="arm" +RELATED="wiringpi-dev wiringpi-piglow" + # Rules to configure and make the package. compile_rules() { @@ -42,6 +45,14 @@ patch -p0 < ${stuff}/gpio-decodePin.patch mkdir -p ${DESTDIR}/usr/bin make && make install + + # Extra: PiGlow --> wiringpi-piglow + cd ${src}/examples/PiGlow + sed -i \ + -e s'#^INCLUDE.*#INCLUDE = -I. -I${DESTDIR}/usr/include#' \ + -e s'#^LDFLAGS.*#LDFLAGS= -L${DESTDIR}/usr/lib#' \ + -e s"#^CC.*#CC = ${HOST_SYSTEM}-gcc#" Makefile + make } # SliTaz package testsuite