wok annotate raspberrypi-vc/receipt @ rev 25067

updated alsa-plugins (1.1.5 -> 1.2.6)
author Hans-G?nter Theisgen
date Fri Jun 10 13:40:50 2022 +0100 (2022-06-10)
parents 1067bb7f1e24
children 8ea0030e77cb
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
pascal@24308 19 # What is the latest version available today?
pascal@24308 20 current_version()
pascal@24308 21 {
pascal@24308 22 wget -O - https://github.com/raspberrypi/firmware/tags 2>/dev/null | \
pascal@24308 23 sed '/archive.*tar/!d;s|.*/[A-Za-z_-]*\(.*\).tar.*|\1|;q'
pascal@24308 24 }
pascal@24308 25
pankso@16523 26 # Cross tool PATH is not set in genpkg_rules
pankso@16523 27 compile_rules()
pankso@16523 28 {
pankso@16523 29 echo -n "Stripping VideoCore libraries..."
pankso@16523 30 ${ARCH}-slitaz-linux-gnueabi-strip -s ${src}/opt/vc/lib/*.so
pankso@16523 31 status
pankso@16523 32 }
pankso@16523 33
pankso@16522 34 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@16522 35 genpkg_rules()
pankso@16522 36 {
pankso@16523 37 vc="$fs/opt/vc"
pankso@16523 38 mkdir -p ${fs}/opt
pankso@16522 39 cp -a ${src}/opt/vc ${fs}/opt
pankso@16523 40 echo -n "Cleaning: VC libraries devel files"
pankso@16523 41 rm -rf ${vc}/include ${vc}/src ${vc}/lib/*.a
pankso@16523 42 status
pankso@16522 43 }
pankso@16523 44
pankso@16523 45 # PATH + LD_LIBRARY_PATH
pankso@16523 46 post_install()
pankso@16523 47 {
pankso@16523 48 # PATH + LD_LIBRARY_PATH
pascal@16526 49 if ! fgrep -q '/opt/vc/bin' ${1}/etc/profile; then
pankso@16525 50 echo -n "Enabling: /opt/vc/bin /opt/vc/lib"
pankso@16525 51 cat >> ${1}/etc/profile << EOT
pankso@16523 52
pankso@16523 53 # Raspberry Pi VC tools and libs
pankso@16525 54 export PATH=\$PATH:/opt/vc/bin
pankso@16525 55 export LD_LIBRARY_PATH=\$LD_LIBRARY_PATH:/opt/vc/lib
pankso@16523 56
pankso@16523 57 EOT
pankso@16525 58 status
pankso@16525 59 fi
pascal@18707 60 true
pankso@16523 61 }