wok-next diff 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 diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/wiringpi-pibrella/receipt	Sat Feb 24 16:17:33 2018 +0200
     1.3 @@ -0,0 +1,34 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="wiringpi-pibrella"
     1.7 +GITHASH="53592f938900aa76f9b76b0726c1e18e39f405b5"
     1.8 +VERSION="${GITHASH:0:7}"
     1.9 +CATEGORY="system-tools"
    1.10 +SHORT_DESC="Examples for the Pibrella board from Pimoroni using WiringPi"
    1.11 +MAINTAINER="pankso@slitaz.org"
    1.12 +LICENSE="LGPL"
    1.13 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.14 +WEB_SITE="http://wiringpi.com/"
    1.15 +WGET_URL="https://git.drogon.net/?p=pibrella;a=snapshot;h=${GITHASH};sf=tgz"
    1.16 +TAGS="raspberrypi rpi"
    1.17 +HOST_ARCH="arm"
    1.18 +
    1.19 +DEPENDS="wiringpi"
    1.20 +# wiringpi + wiringpi-dev must be installed in sysroot
    1.21 +
    1.22 +# Rules to configure and make the package.
    1.23 +compile_rules()
    1.24 +{
    1.25 +	sed -i s"#CC	= gcc#CC = ${HOST_SYSTEM}-gcc#" Makefile
    1.26 +	make || return 1
    1.27 +}
    1.28 +
    1.29 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.30 +genpkg_rules()
    1.31 +{
    1.32 +	mkdir -p $fs/usr/bin $fs/usr/include
    1.33 +	cp -a ${src}/tune $fs/usr/bin/pibrella-tune
    1.34 +	cp -a ${src}/ladder $fs/usr/bin/pibrella-ladder
    1.35 +	cp -a ${src}/wire $fs/usr/bin/pibrella-wire
    1.36 +	cp -a ${src}/pibrella.h $fs/usr/include
    1.37 +}