
Receipt for package "wiringpi"
# SliTaz package receipt. PACKAGE="wiringpi" GITHASH="f18c8f7204d6354220fd6754578b3daa43734e1b" VERSION="${GITHASH:0:7}" CATEGORY="system-tools" SHORT_DESC="GPIO access library written in C for the Raspberry Pi/BCM2835." MAINTAINER="pankso@slitaz.org" LICENSE="LGPL" TARBALL="$PACKAGE-$VERSION.tar.gz" WEB_SITE="http://wiringpi.com/" WGET_URL="https://git.drogon.net/?p=wiringPi;a=snapshot;h=${GITHASH};sf=tgz" TAGS="raspberrypi rpi" HOST_ARCH="arm" RELATED="wiringpi-dev wiringpi-piglow wiringpi-piface" # 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() { # Fixes: fancy paths in Makefile and do sym link manually sed -i \ -e s"#CC = gcc#CC = ${HOST_SYSTEM}-gcc#" \ -e s"#DESTDIR=.*#DESTDIR=$DESTDIR#" \ -e s"#PREFIX=.*#PREFIX=/usr#" */Makefile # First: WiringPi Library cd ${src}/wiringPi make || return 1 sed -i '/libwiringPi.so$/'d Makefile make install && cd ${DESTDIR}/usr/lib ln -s libwiringPi.so.2.0 libwiringPi.so # Second: Devices Library cd ${src}/devLib sed -i \ -e s'#^INCLUDE.*#INCLUDE = -I. -I${DESTDIR}/usr/include#' \ -e '/libwiringPiDev.so$/'d Makefile make || return 1 make install && cd ${DESTDIR}/usr/lib ln -s libwiringPiDev.so.2.0 libwiringPiDev.so # Last: GPIO Utility cd ${src}/gpio patch -p0 < ${stuff}/gpio-decodePin.patch mkdir -p ${DESTDIR}/usr/bin make && make install # Extra: PiGlow --> wiringpi-piglow echo "Compiling PiGlow example..." 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 # Extra: PiFace --> wiringpi-piface cd ${src}/examples/PiFace 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 testsuite() { readelf -Ah ${install}/usr/bin/gpio || return 1 } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/lib cp -a ${install}/usr/lib/*.so* $fs/usr/lib cp -a ${install}/usr/bin $fs/usr }
6093 packages and 258600 files in current database (Wed Apr 23 16:49:15 2025)