wok rev 16602
Remove python-piface* (work only with python3) but add libmcp23s17 + libpifacedigital C library and utility
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Wed May 07 17:38:57 2014 +0200 (2014-05-07) |
parents | f499057669ab |
children | 737e56a641f7 |
files | libmcp23s17/receipt libpifacedigital/receipt python-pifacecommon/receipt python-pifacedigitalio/receipt |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/libmcp23s17/receipt Wed May 07 17:38:57 2014 +0200 1.3 @@ -0,0 +1,34 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="libmcp23s17" 1.7 +VERSION="0.3.0" 1.8 +CATEGORY="system-tools" 1.9 +SHORT_DESC="A simple library for controlling PiFace Digital." 1.10 +MAINTAINER="pankso@slitaz.org" 1.11 +LICENSE="GPL" 1.12 +TARBALL="$PACKAGE-$VERSION.tar.gz" 1.13 +WEB_SITE="https://github.com/piface/libmcp23s17" 1.14 +WGET_URL="https://github.com/piface/libmcp23s17/archive/v${VERSION}.tar.gz" 1.15 +HOST_ARCH="arm" 1.16 + 1.17 +DEPENDS="i2c-tools" 1.18 +TAGS="raspberrypi rpi" 1.19 + 1.20 +# Rules to configure and make the package. 1.21 +compile_rules() 1.22 +{ 1.23 + sed -i \ 1.24 + -e s"/^CC=gcc/CC=${HOST_SYSTEM}-gcc/" \ 1.25 + -e s"/^CFLAGS=.*/CFLAGS=-c -Wall $CFLAGS/" Makefile 1.26 + make && 1.27 + ${HOST_SYSTEM}-gcc -o mcp23s17-example example.c -Isrc/ -L. -lmcp23s17 1.28 +} 1.29 + 1.30 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.31 +genpkg_rules() 1.32 +{ 1.33 + mkdir -p $fs/usr/bin $fs/usr/lib $fs/usr/include 1.34 + cp -a ${src}/*-example $fs/usr/bin 1.35 + cp -a ${src}/${PACKAGE}.a ${fs}/usr/lib 1.36 + cp -a ${src}/src/mcp23s17.h ${fs}/usr/include 1.37 +}
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/libpifacedigital/receipt Wed May 07 17:38:57 2014 +0200 2.3 @@ -0,0 +1,39 @@ 2.4 +# SliTaz package receipt. 2.5 + 2.6 +PACKAGE="libpifacedigital" 2.7 +VERSION="0.2.0" 2.8 +CATEGORY="system-tools" 2.9 +SHORT_DESC="A simple library for controlling PiFace Digital." 2.10 +MAINTAINER="pankso@slitaz.org" 2.11 +LICENSE="GPL" 2.12 +TARBALL="$PACKAGE-$VERSION.tar.gz" 2.13 +WEB_SITE="http://www.piface.org.uk" 2.14 +WGET_URL="https://github.com/piface/libpifacedigital/archive/v${VERSION}.tar.gz" 2.15 +HOST_ARCH="arm" 2.16 + 2.17 +TAGS="raspberrypi rpi" 2.18 +DEPENDS="i2c-tools libmcp23s17" 2.19 +BUILD_DEPENDS="libmcp23s17" 2.20 + 2.21 +# Rules to configure and make the package. 2.22 +compile_rules() 2.23 +{ 2.24 + sed -i \ 2.25 + -e s"/^CC=gcc/CC=${HOST_SYSTEM}-gcc/" \ 2.26 + -e s"/gcc -o/${HOST_SYSTEM}-gcc -o/" \ 2.27 + -e s"/^CFLAGS=.*/CFLAGS=-c -Wall $CFLAGS/" \ 2.28 + -e s"#INCPATHS=.*#INCPATHS=/usr/include#" \ 2.29 + -e s"#LIBPATHS=.*#LIBPATHS=/usr/lib#" Makefile 2.30 + make && make example && 2.31 + make pifacedigital 2.32 +} 2.33 + 2.34 +# Rules to gen a SliTaz package suitable for Tazpkg. 2.35 +genpkg_rules() 2.36 +{ 2.37 + mkdir -p $fs/usr/lib $fs/usr/bin $fs/usr/include 2.38 + cp -a ${src}/${PACKAGE}.a ${fs}/usr/lib 2.39 + cp -a ${src}/pifacedigital ${fs}/usr/bin 2.40 + cp -s ${src}/example ${fs}/usr/bin/pifacedigital-example 2.41 + cp -a ${src}/src/pifacedigital.h ${fs}/usr/include 2.42 +}
3.1 --- a/python-pifacecommon/receipt Wed May 07 15:10:51 2014 +0000 3.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 3.3 @@ -1,28 +0,0 @@ 3.4 -# SliTaz package receipt. 3.5 - 3.6 -PACKAGE="python-pifacecommon" 3.7 -VERSION="4.0.0" 3.8 -CATEGORY="system-tools" 3.9 -SHORT_DESC="Common functions for interacting with PiFace products." 3.10 -MAINTAINER="pankso@slitaz.org" 3.11 -LICENSE="GPL" 3.12 -TARBALL="$PACKAGE-$VERSION.tar.gz" 3.13 -WEB_SITE="http://www.piface.org.uk" 3.14 -WGET_URL="https://github.com/piface/pifacecommon/archive/v${VERSION}.tar.gz" 3.15 -HOST_ARCH="arm" 3.16 - 3.17 -DEPENDS="python python-smbus i2c-tools" 3.18 -TAGS="raspberrypi rpi" 3.19 - 3.20 -# Rules to configure and make the package. 3.21 -compile_rules() 3.22 -{ 3.23 - python setup.py install --root=${DESTDIR} 3.24 -} 3.25 - 3.26 -# Rules to gen a SliTaz package suitable for Tazpkg. 3.27 -genpkg_rules() 3.28 -{ 3.29 - mkdir -p $fs 3.30 - cp -a ${install}/* ${fs} 3.31 -}
4.1 --- a/python-pifacedigitalio/receipt Wed May 07 15:10:51 2014 +0000 4.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 4.3 @@ -1,29 +0,0 @@ 4.4 -# SliTaz package receipt. 4.5 - 4.6 -PACKAGE="python-pifacedigitalio" 4.7 -VERSION="3.0.4" 4.8 -CATEGORY="system-tools" 4.9 -SHORT_DESC="The PiFace Digital input/output module." 4.10 -MAINTAINER="pankso@slitaz.org" 4.11 -LICENSE="GPL" 4.12 -TARBALL="$PACKAGE-$VERSION.tar.gz" 4.13 -WEB_SITE="http://www.piface.org.uk" 4.14 -WGET_URL="https://github.com/piface/pifacedigitalio/archive/v${VERSION}.tar.gz" 4.15 -HOST_ARCH="arm" 4.16 - 4.17 -DEPENDS="python python-smbus i2c-tools python-pifacecommon" 4.18 -TAGS="raspberrypi rpi" 4.19 - 4.20 -# Rules to configure and make the package. 4.21 -compile_rules() 4.22 -{ 4.23 - python setup.py install --root=${DESTDIR} 4.24 -} 4.25 - 4.26 -# Rules to gen a SliTaz package suitable for Tazpkg. 4.27 -genpkg_rules() 4.28 -{ 4.29 - mkdir -p $fs/usr/share 4.30 - cp -a ${install}/* ${fs} 4.31 - cp -a ${src}/examples $fs/usr/share/piface 4.32 -}