wok-next view libpifacedigital/receipt @ rev 20674
Up putty (0.70)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat May 12 05:17:48 2018 +0300 (2018-05-12) |
parents | 2f2f071b10df |
children | d5aab818505e |
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"
13 TAGS="raspberrypi rpi"
14 DEPENDS="i2c-tools libmcp23s17"
15 BUILD_DEPENDS="libmcp23s17"
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"/gcc -o/${HOST_SYSTEM}-gcc -o/" \
23 -e s"/^CFLAGS=.*/CFLAGS=-c -Wall $CFLAGS/" \
24 -e s"#INCPATHS=.*#INCPATHS=/usr/include#" \
25 -e s"#LIBPATHS=.*#LIBPATHS=/usr/lib#" Makefile
26 make && make example &&
27 make pifacedigital
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 mkdir -p $fs/usr/lib $fs/usr/bin $fs/usr/include
34 cp -a ${src}/${PACKAGE}.a ${fs}/usr/lib
35 cp -a ${src}/pifacedigital ${fs}/usr/bin
36 cp -a ${src}/example ${fs}/usr/bin/pifacedigital-test
37 cp -a ${src}/src/pifacedigital.h ${fs}/usr/include
38 }