wok-current view libmcp23s17/receipt @ rev 22586
updated ccid (1.4.30 -> 1.4.31)
author | Hans-G?nter Theisgen |
---|---|
date | Tue Jan 07 14:37:06 2020 +0100 (2020-01-07) |
parents | 99f5993b3248 |
children | 5ea0ce1cecc0 |
line source
1 # SliTaz package receipt.
3 PACKAGE="libmcp23s17"
4 VERSION="0.3.0"
5 CATEGORY="system-tools"
6 SHORT_DESC="A simple C library for accessing an MCP23S17 port expander."
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 }