wok-next diff libmcp23s17/receipt @ rev 16602

Remove python-piface* (work only with python3) but add libmcp23s17 + libpifacedigital C library and utility
author Christophe Lincoln <pankso@slitaz.org>
date Wed May 07 17:38:57 2014 +0200 (2014-05-07)
parents
children 737e56a641f7
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/libmcp23s17/receipt	Wed May 07 17:38:57 2014 +0200
     1.3 @@ -0,0 +1,34 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="libmcp23s17"
     1.7 +VERSION="0.3.0"
     1.8 +CATEGORY="system-tools"
     1.9 +SHORT_DESC="A simple library for controlling PiFace Digital."
    1.10 +MAINTAINER="pankso@slitaz.org"
    1.11 +LICENSE="GPL"
    1.12 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.13 +WEB_SITE="https://github.com/piface/libmcp23s17"
    1.14 +WGET_URL="https://github.com/piface/libmcp23s17/archive/v${VERSION}.tar.gz"
    1.15 +HOST_ARCH="arm"
    1.16 +
    1.17 +DEPENDS="i2c-tools"
    1.18 +TAGS="raspberrypi rpi"
    1.19 +
    1.20 +# Rules to configure and make the package.
    1.21 +compile_rules()
    1.22 +{
    1.23 +	sed -i \
    1.24 +		-e s"/^CC=gcc/CC=${HOST_SYSTEM}-gcc/" \
    1.25 +		-e s"/^CFLAGS=.*/CFLAGS=-c -Wall $CFLAGS/" Makefile
    1.26 +	make && 
    1.27 +	${HOST_SYSTEM}-gcc -o mcp23s17-example example.c -Isrc/ -L. -lmcp23s17
    1.28 +}
    1.29 +
    1.30 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.31 +genpkg_rules()
    1.32 +{
    1.33 +	mkdir -p $fs/usr/bin $fs/usr/lib $fs/usr/include
    1.34 +	cp -a ${src}/*-example $fs/usr/bin
    1.35 +	cp -a ${src}/${PACKAGE}.a ${fs}/usr/lib
    1.36 +	cp -a ${src}/src/mcp23s17.h ${fs}/usr/include
    1.37 +}