wok annotate libpifacedigital/receipt @ rev 24081

php-auth-pam: remove patch
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Jul 09 16:30:40 2021 +0000 (2021-07-09)
parents 2f2f071b10df
children 59547e97954f
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
pascal@24055 18 current_version()
pascal@24055 19 {
pascal@24055 20 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
pascal@24055 21 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q'
pascal@24055 22 }
pascal@24055 23
pankso@16602 24 # Rules to configure and make the package.
pankso@16602 25 compile_rules()
pankso@16602 26 {
pankso@16602 27 sed -i \
pankso@16602 28 -e s"/^CC=gcc/CC=${HOST_SYSTEM}-gcc/" \
pankso@16602 29 -e s"/gcc -o/${HOST_SYSTEM}-gcc -o/" \
pankso@16602 30 -e s"/^CFLAGS=.*/CFLAGS=-c -Wall $CFLAGS/" \
pankso@16602 31 -e s"#INCPATHS=.*#INCPATHS=/usr/include#" \
pankso@16602 32 -e s"#LIBPATHS=.*#LIBPATHS=/usr/lib#" Makefile
pankso@16602 33 make && make example &&
pankso@16602 34 make pifacedigital
pankso@16602 35 }
pankso@16602 36
pankso@16602 37 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@16602 38 genpkg_rules()
pankso@16602 39 {
pankso@16602 40 mkdir -p $fs/usr/lib $fs/usr/bin $fs/usr/include
pankso@16602 41 cp -a ${src}/${PACKAGE}.a ${fs}/usr/lib
pankso@16602 42 cp -a ${src}/pifacedigital ${fs}/usr/bin
pankso@16604 43 cp -a ${src}/example ${fs}/usr/bin/pifacedigital-test
pankso@16602 44 cp -a ${src}/src/pifacedigital.h ${fs}/usr/include
pankso@16602 45 }