wok rev 16467

R-Pi: add gst-omx, libbcm2835, picamera, rcswitch-pi
author Christophe Lincoln <pankso@slitaz.org>
date Tue Apr 22 02:07:08 2014 +0200 (2014-04-22)
parents 84d4534a5de3
children 94128ce5fcfd
files gst-omx/receipt libbcm2835/receipt picamera/receipt rcswitch-pi/receipt
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/gst-omx/receipt	Tue Apr 22 02:07:08 2014 +0200
     1.3 @@ -0,0 +1,30 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="gst-omx"
     1.7 +VERSION="1.0.0"
     1.8 +CATEGORY="system-tools"
     1.9 +SHORT_DESC="GSt OpenMAX IL plugin with hw-accelerated video decoding on the R-Pi."
    1.10 +MAINTAINER="pankso@slitaz.org"
    1.11 +LICENSE="GPL"
    1.12 +TARBALL="$PACKAGE-$VERSION.tar.xz"
    1.13 +WEB_SITE="http://gstreamer.freedesktop.org/releases/gst-omx/1.0.0.html"
    1.14 +WGET_URL="http://gstreamer.freedesktop.org/src/gst-omx/gst-omx-1.0.0.tar.xz"
    1.15 +HOST_ARCH="arm"
    1.16 +
    1.17 +DEPENDS="gstreamer-1.0 gst-plugins-base-1.0"
    1.18 +BUILD_DEPENDS="gstreamer-1.0-dev gst-plugins-base-1.0-dev"
    1.19 +
    1.20 +# Rules to configure and make the package.
    1.21 +compile_rules()
    1.22 +{
    1.23 +	./configure $CONFIGURE_ARGS &&
    1.24 +	make && make install
    1.25 +}
    1.26 +
    1.27 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.28 +genpkg_rules()
    1.29 +{
    1.30 +	mkdir -p $fs/usr
    1.31 +	cp -a ${install}/usr/lib ${fs}/usr
    1.32 +	rm ${fs}/usr/lib/*/*.la
    1.33 +}
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/libbcm2835/receipt	Tue Apr 22 02:07:08 2014 +0200
     2.3 @@ -0,0 +1,29 @@
     2.4 +# SliTaz package receipt.
     2.5 +
     2.6 +PACKAGE="libbcm2835"
     2.7 +VERSION="1.36"
     2.8 +CATEGORY="system-tools"
     2.9 +SHORT_DESC="C library for Broadcom BCM 2835 as used in Raspberry Pi."
    2.10 +MAINTAINER="pankso@slitaz.org"
    2.11 +LICENSE="GPL"
    2.12 +SOURCE="bcm2835"
    2.13 +TARBALL="$SOURCE-$VERSION.tar.gz"
    2.14 +WEB_SITE="http://www.airspayce.com/mikem/bcm2835/index.html"
    2.15 +WGET_URL="http://www.airspayce.com/mikem/bcm2835/$TARBALL"
    2.16 +HOST_ARCH="arm"
    2.17 +
    2.18 +# Rules to configure and make the package.
    2.19 +compile_rules()
    2.20 +{
    2.21 +	./configure $CONFIGURE_ARGS &&
    2.22 +	make && make install
    2.23 +}
    2.24 +
    2.25 +# Rules to gen a SliTaz package suitable for Tazpkg.
    2.26 +genpkg_rules()
    2.27 +{
    2.28 +	mkdir -p $fs/usr/share/${PACKAGE}
    2.29 +	cp -a ${install}/usr/lib ${fs}/usr
    2.30 +	cp -a ${install}/usr/include ${fs}/usr
    2.31 +	cp -a ${src}/examples ${fs}/usr/share/${PACKAGE}
    2.32 +}
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/picamera/receipt	Tue Apr 22 02:07:08 2014 +0200
     3.3 @@ -0,0 +1,28 @@
     3.4 +# SliTaz package receipt.
     3.5 +
     3.6 +PACKAGE="picamera"
     3.7 +VERSION="1.3"
     3.8 +CATEGORY="multimedia"
     3.9 +SHORT_DESC="A pure Python interface for the Raspberry Pi camera module."
    3.10 +MAINTAINER="pankso@slitaz.org"
    3.11 +LICENSE="BSD"
    3.12 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    3.13 +WEB_SITE="https://pypi.python.org/pypi/picamera/"
    3.14 +WGET_URL="https://pypi.python.org/packages/source/p/$PACKAGE/$TARBALL"
    3.15 +HOST_ARCH="arm"
    3.16 +
    3.17 +DEPENDS="python"
    3.18 +BUILD_DEPENDS="python wget"
    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 +	cp -a $install/usr $fs
    3.30 +}
    3.31 +
     4.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.2 +++ b/rcswitch-pi/receipt	Tue Apr 22 02:07:08 2014 +0200
     4.3 @@ -0,0 +1,35 @@
     4.4 +# SliTaz package receipt.
     4.5 +
     4.6 +PACKAGE="rcswitch-pi"
     4.7 +GITHASH="2c9c027217ae0b4fe132e0725db166ac29f93974"
     4.8 +VERSION="${GITHASH:0:7}"
     4.9 +CATEGORY="system-tools"
    4.10 +SHORT_DESC="Control remote power sockets using the Raspberry Pi."
    4.11 +MAINTAINER="pankso@slitaz.org"
    4.12 +LICENSE="GPL"
    4.13 +TARBALL="$PACKAGE-$VERSION.tar.bz2"
    4.14 +WEB_SITE="https://github.com/r10r/rcswitch-pi"
    4.15 +WGET_URL="git|git://github.com/r10r/rcswitch-pi.git"
    4.16 +HOST_ARCH="arm"
    4.17 +
    4.18 +DEPENDS="wiringpi"
    4.19 +BUILD_DEPENDS="wiringpi-dev"
    4.20 +
    4.21 +# Rules to configure and make the package.
    4.22 +compile_rules()
    4.23 +{
    4.24 +	git checkout ${GITHASH} &&
    4.25 +	make 
    4.26 +}
    4.27 +
    4.28 +# SliTaz package testsuite
    4.29 +testsuite() {
    4.30 +	readelf -h ${src}/send || return 1
    4.31 +}
    4.32 +
    4.33 +# Rules to gen a SliTaz package suitable for Tazpkg.
    4.34 +genpkg_rules()
    4.35 +{
    4.36 +	mkdir -p $fs/usr/bin
    4.37 +	install -m 0755 ${src}/send ${fs}/usr/bin/${PACKAGE}
    4.38 +}