wok-next annotate libpifacedigital/receipt @ rev 20465
Up LibreOffice (6.0.2), TiMidity++, jack, zstd (1.3.3)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Wed Mar 07 23:09:42 2018 +0200 (2018-03-07) |
parents | 2f2f071b10df |
children | d5aab818505e |
rev | line source |
---|---|
pankso@16602 | 1 # SliTaz package receipt. |
pankso@16602 | 2 |
pankso@16602 | 3 PACKAGE="libpifacedigital" |
pankso@16602 | 4 VERSION="0.2.0" |
pankso@16602 | 5 CATEGORY="system-tools" |
pankso@16602 | 6 SHORT_DESC="A simple library for controlling PiFace Digital." |
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="http://www.piface.org.uk" |
pankso@16602 | 11 WGET_URL="https://github.com/piface/libpifacedigital/archive/v${VERSION}.tar.gz" |
pankso@16602 | 12 |
pankso@16602 | 13 TAGS="raspberrypi rpi" |
pankso@16602 | 14 DEPENDS="i2c-tools libmcp23s17" |
pankso@16602 | 15 BUILD_DEPENDS="libmcp23s17" |
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"/gcc -o/${HOST_SYSTEM}-gcc -o/" \ |
pankso@16602 | 23 -e s"/^CFLAGS=.*/CFLAGS=-c -Wall $CFLAGS/" \ |
pankso@16602 | 24 -e s"#INCPATHS=.*#INCPATHS=/usr/include#" \ |
pankso@16602 | 25 -e s"#LIBPATHS=.*#LIBPATHS=/usr/lib#" Makefile |
pankso@16602 | 26 make && make example && |
pankso@16602 | 27 make pifacedigital |
pankso@16602 | 28 } |
pankso@16602 | 29 |
pankso@16602 | 30 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@16602 | 31 genpkg_rules() |
pankso@16602 | 32 { |
pankso@16602 | 33 mkdir -p $fs/usr/lib $fs/usr/bin $fs/usr/include |
pankso@16602 | 34 cp -a ${src}/${PACKAGE}.a ${fs}/usr/lib |
pankso@16602 | 35 cp -a ${src}/pifacedigital ${fs}/usr/bin |
pankso@16604 | 36 cp -a ${src}/example ${fs}/usr/bin/pifacedigital-test |
pankso@16602 | 37 cp -a ${src}/src/pifacedigital.h ${fs}/usr/include |
pankso@16602 | 38 } |