wok-6.x annotate libmcp23s17/receipt @ rev 17039

Add linux-exofs
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Aug 19 08:12:29 2014 +0200 (2014-08-19)
parents 99f5993b3248
children 5ea0ce1cecc0
rev   line source
pankso@16602 1 # SliTaz package receipt.
pankso@16602 2
pankso@16602 3 PACKAGE="libmcp23s17"
pankso@16602 4 VERSION="0.3.0"
pankso@16602 5 CATEGORY="system-tools"
pankso@16603 6 SHORT_DESC="A simple C library for accessing an MCP23S17 port expander."
pankso@16602 7 MAINTAINER="pankso@slitaz.org"
pankso@16602 8 LICENSE="GPL"
pankso@16602 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
pankso@16602 10 WEB_SITE="https://github.com/piface/libmcp23s17"
pankso@16602 11 WGET_URL="https://github.com/piface/libmcp23s17/archive/v${VERSION}.tar.gz"
pankso@16602 12 HOST_ARCH="arm"
pankso@16602 13
pankso@16602 14 DEPENDS="i2c-tools"
pankso@16602 15 TAGS="raspberrypi rpi"
pankso@16602 16
pankso@16602 17 # Rules to configure and make the package.
pankso@16602 18 compile_rules()
pankso@16602 19 {
pankso@16602 20 sed -i \
pankso@16602 21 -e s"/^CC=gcc/CC=${HOST_SYSTEM}-gcc/" \
pankso@16602 22 -e s"/^CFLAGS=.*/CFLAGS=-c -Wall $CFLAGS/" Makefile
pankso@16602 23 make &&
pankso@16602 24 ${HOST_SYSTEM}-gcc -o mcp23s17-example example.c -Isrc/ -L. -lmcp23s17
pankso@16602 25 }
pankso@16602 26
pankso@16602 27 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@16602 28 genpkg_rules()
pankso@16602 29 {
pankso@16602 30 mkdir -p $fs/usr/bin $fs/usr/lib $fs/usr/include
pankso@16602 31 cp -a ${src}/*-example $fs/usr/bin
pankso@16602 32 cp -a ${src}/${PACKAGE}.a ${fs}/usr/lib
pankso@16602 33 cp -a ${src}/src/mcp23s17.h ${fs}/usr/include
pankso@16602 34 }