wok-next view libmcp23s17/receipt @ rev 20912

Remove ruby-enterprise
https://old.blog.phusion.nl/2012/02/21/ruby-enterprise-edition-1-8-7-2012-02-released-end-of-life-imminent/
author Aleksej Bobylev <al.bobylev@gmail.com>
date Mon Aug 20 08:19:43 2018 +0300 (2018-08-20)
parents 99f5993b3248
children
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 }