wok annotate raspberrypi-vc/receipt @ rev 21578

created recipe for python-setuptools
author Hans-G?nter Theisgen
date Sun May 19 16:00:06 2019 +0100 (2019-05-19)
parents 9aa78458e396
children b569b85b0fb9
rev   line source
pankso@16522 1 # SliTaz package receipt.
pankso@16522 2
pankso@16522 3 PACKAGE="raspberrypi-vc"
pascal@16527 4 GITHASH="1db68b5da75330e4d21fa10b8271c0f463d605d2"
pascal@16527 5 VERSION=${GITHASH:0:6}
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/"
pascal@16527 13 WGET_URL="https://codeload.github.com/raspberrypi/firmware/zip/$GITHASH"
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
pascal@16526 42 if ! fgrep -q '/opt/vc/bin' ${1}/etc/profile; then
pankso@16525 43 echo -n "Enabling: /opt/vc/bin /opt/vc/lib"
pankso@16525 44 cat >> ${1}/etc/profile << EOT
pankso@16523 45
pankso@16523 46 # Raspberry Pi VC tools and libs
pankso@16525 47 export PATH=\$PATH:/opt/vc/bin
pankso@16525 48 export LD_LIBRARY_PATH=\$LD_LIBRARY_PATH:/opt/vc/lib
pankso@16523 49
pankso@16523 50 EOT
pankso@16525 51 status
pankso@16525 52 fi
pascal@18707 53 true
pankso@16523 54 }