wok view libpifacedigital/receipt @ rev 19941

memtest: remove help command line, useless
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu May 04 12:47:15 2017 +0200 (2017-05-04)
parents 737e56a641f7
children 5ea0ce1cecc0
line source
1 # SliTaz package receipt.
3 PACKAGE="libpifacedigital"
4 VERSION="0.2.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="http://www.piface.org.uk"
11 WGET_URL="https://github.com/piface/libpifacedigital/archive/v${VERSION}.tar.gz"
12 HOST_ARCH="arm"
14 TAGS="raspberrypi rpi"
15 DEPENDS="i2c-tools libmcp23s17"
16 BUILD_DEPENDS="libmcp23s17"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 sed -i \
22 -e s"/^CC=gcc/CC=${HOST_SYSTEM}-gcc/" \
23 -e s"/gcc -o/${HOST_SYSTEM}-gcc -o/" \
24 -e s"/^CFLAGS=.*/CFLAGS=-c -Wall $CFLAGS/" \
25 -e s"#INCPATHS=.*#INCPATHS=/usr/include#" \
26 -e s"#LIBPATHS=.*#LIBPATHS=/usr/lib#" Makefile
27 make && make example &&
28 make pifacedigital
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 mkdir -p $fs/usr/lib $fs/usr/bin $fs/usr/include
35 cp -a ${src}/${PACKAGE}.a ${fs}/usr/lib
36 cp -a ${src}/pifacedigital ${fs}/usr/bin
37 cp -a ${src}/example ${fs}/usr/bin/pifacedigital-test
38 cp -a ${src}/src/pifacedigital.h ${fs}/usr/include
39 }