wok view 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 source
1 # SliTaz package receipt.
3 PACKAGE="libmcp23s17"
4 VERSION="0.3.0"
5 CATEGORY="system-tools"
6 SHORT_DESC="A simple library for controlling PiFace Digital."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="https://github.com/piface/libmcp23s17"
11 WGET_URL="https://github.com/piface/libmcp23s17/archive/v${VERSION}.tar.gz"
12 HOST_ARCH="arm"
14 DEPENDS="i2c-tools"
15 TAGS="raspberrypi rpi"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 sed -i \
21 -e s"/^CC=gcc/CC=${HOST_SYSTEM}-gcc/" \
22 -e s"/^CFLAGS=.*/CFLAGS=-c -Wall $CFLAGS/" Makefile
23 make &&
24 ${HOST_SYSTEM}-gcc -o mcp23s17-example example.c -Isrc/ -L. -lmcp23s17
25 }
27 # Rules to gen a SliTaz package suitable for Tazpkg.
28 genpkg_rules()
29 {
30 mkdir -p $fs/usr/bin $fs/usr/lib $fs/usr/include
31 cp -a ${src}/*-example $fs/usr/bin
32 cp -a ${src}/${PACKAGE}.a ${fs}/usr/lib
33 cp -a ${src}/src/mcp23s17.h ${fs}/usr/include
34 }