wok annotate libpifacedigital/receipt @ rev 22292

updated xorg-xkeyboard-config and xorg-xkeyboard-config-dev (2.2.1 -> 2.5.1)
author Hans-G?nter Theisgen
date Wed Nov 13 16:21:48 2019 +0100 (2019-11-13)
parents 737e56a641f7
children 5ea0ce1cecc0
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 HOST_ARCH="arm"
pankso@16602 13
pankso@16602 14 TAGS="raspberrypi rpi"
pankso@16602 15 DEPENDS="i2c-tools libmcp23s17"
pankso@16602 16 BUILD_DEPENDS="libmcp23s17"
pankso@16602 17
pankso@16602 18 # Rules to configure and make the package.
pankso@16602 19 compile_rules()
pankso@16602 20 {
pankso@16602 21 sed -i \
pankso@16602 22 -e s"/^CC=gcc/CC=${HOST_SYSTEM}-gcc/" \
pankso@16602 23 -e s"/gcc -o/${HOST_SYSTEM}-gcc -o/" \
pankso@16602 24 -e s"/^CFLAGS=.*/CFLAGS=-c -Wall $CFLAGS/" \
pankso@16602 25 -e s"#INCPATHS=.*#INCPATHS=/usr/include#" \
pankso@16602 26 -e s"#LIBPATHS=.*#LIBPATHS=/usr/lib#" Makefile
pankso@16602 27 make && make example &&
pankso@16602 28 make pifacedigital
pankso@16602 29 }
pankso@16602 30
pankso@16602 31 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@16602 32 genpkg_rules()
pankso@16602 33 {
pankso@16602 34 mkdir -p $fs/usr/lib $fs/usr/bin $fs/usr/include
pankso@16602 35 cp -a ${src}/${PACKAGE}.a ${fs}/usr/lib
pankso@16602 36 cp -a ${src}/pifacedigital ${fs}/usr/bin
pankso@16604 37 cp -a ${src}/example ${fs}/usr/bin/pifacedigital-test
pankso@16602 38 cp -a ${src}/src/pifacedigital.h ${fs}/usr/include
pankso@16602 39 }