wok-6.x annotate raspberrypi-vc/receipt @ rev 16523

raspberrypi-vc: strip down package and up PATH LD_LIBRARY_PATH in /etc/profile
author Christophe Lincoln <pankso@slitaz.org>
date Sat Apr 26 02:27:59 2014 +0200 (2014-04-26)
parents f9b13fb97dda
children 5b89f43c1d20
rev   line source
pankso@16522 1 # SliTaz package receipt.
pankso@16522 2
pankso@16522 3 PACKAGE="raspberrypi-vc"
pankso@16522 4 VERSION="1db68b"
pankso@16522 5 # 1db68b5da75330e4d21fa10b8271c0f463d605d2
pankso@16522 6 CATEGORY="system-tools"
pankso@16522 7 SHORT_DESC="Raspberry Pi VideoCore Tools (vcdbg, vcgencmd, raspivid, etc)."
pankso@16522 8 MAINTAINER="pankso@slitaz.org"
pankso@16522 9 LICENSE="custom"
pankso@16522 10 SOURCE="rpi-firmware"
pankso@16522 11 TARBALL="$SOURCE-$VERSION.zip"
pankso@16522 12 WEB_SITE="http://www.raspberrypi.org/"
pankso@16522 13 WGET_URL="https://codeload.github.com/raspberrypi/firmware/zip/master"
pankso@16522 14 TAGS="raspberrypi rpi"
pankso@16522 15 HOST_ARCH="arm"
pankso@16522 16
pankso@16522 17 BUILD_DEPENDS="wget"
pankso@16522 18
pankso@16523 19 # Cross tool PATH is not set in genpkg_rules
pankso@16523 20 compile_rules()
pankso@16523 21 {
pankso@16523 22 echo -n "Stripping VideoCore libraries..."
pankso@16523 23 ${ARCH}-slitaz-linux-gnueabi-strip -s ${src}/opt/vc/lib/*.so
pankso@16523 24 status
pankso@16523 25 }
pankso@16523 26
pankso@16522 27 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@16522 28 genpkg_rules()
pankso@16522 29 {
pankso@16523 30 vc="$fs/opt/vc"
pankso@16523 31 mkdir -p ${fs}/opt
pankso@16522 32 cp -a ${src}/opt/vc ${fs}/opt
pankso@16523 33 echo -n "Cleaning: VC libraries devel files"
pankso@16523 34 rm -rf ${vc}/include ${vc}/src ${vc}/lib/*.a
pankso@16523 35 status
pankso@16522 36 }
pankso@16523 37
pankso@16523 38 # PATH + LD_LIBRARY_PATH
pankso@16523 39 post_install()
pankso@16523 40 {
pankso@16523 41 # PATH + LD_LIBRARY_PATH
pankso@16523 42 echo -n "Enabling: /opt/vc/bin /opt/vc/lib"
pankso@16523 43 cat >> ${1}/etc/profile << EOT
pankso@16523 44
pankso@16523 45 # Raspberry Pi VC tools and libs
pankso@16523 46 export PATH=$PATH:/opt/vc/bin
pankso@16523 47 export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/vc/lib
pankso@16523 48
pankso@16523 49 EOT
pankso@16523 50 status
pankso@16523 51 }