wok view raspberrypi-vc/receipt @ rev 25001
updated nnn (4.0 -> 4.5)
author | Hans-G?nter Theisgen |
---|---|
date | Mon May 16 14:07:26 2022 +0100 (2022-05-16) |
parents | 1067bb7f1e24 |
children | 8ea0030e77cb |
line source
1 # SliTaz package receipt.
3 PACKAGE="raspberrypi-vc"
4 GITHASH="1db68b5da75330e4d21fa10b8271c0f463d605d2"
5 VERSION=${GITHASH:0:6}
6 CATEGORY="system-tools"
7 SHORT_DESC="Raspberry Pi VideoCore Tools (vcdbg, vcgencmd, raspivid, etc)."
8 MAINTAINER="pankso@slitaz.org"
9 LICENSE="custom"
10 SOURCE="rpi-firmware"
11 TARBALL="$SOURCE-$VERSION.zip"
12 WEB_SITE="http://www.raspberrypi.org/"
13 WGET_URL="https://codeload.github.com/raspberrypi/firmware/zip/$GITHASH"
14 TAGS="raspberrypi rpi"
15 HOST_ARCH="arm"
17 BUILD_DEPENDS="wget"
19 # What is the latest version available today?
20 current_version()
21 {
22 wget -O - https://github.com/raspberrypi/firmware/tags 2>/dev/null | \
23 sed '/archive.*tar/!d;s|.*/[A-Za-z_-]*\(.*\).tar.*|\1|;q'
24 }
26 # Cross tool PATH is not set in genpkg_rules
27 compile_rules()
28 {
29 echo -n "Stripping VideoCore libraries..."
30 ${ARCH}-slitaz-linux-gnueabi-strip -s ${src}/opt/vc/lib/*.so
31 status
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 vc="$fs/opt/vc"
38 mkdir -p ${fs}/opt
39 cp -a ${src}/opt/vc ${fs}/opt
40 echo -n "Cleaning: VC libraries devel files"
41 rm -rf ${vc}/include ${vc}/src ${vc}/lib/*.a
42 status
43 }
45 # PATH + LD_LIBRARY_PATH
46 post_install()
47 {
48 # PATH + LD_LIBRARY_PATH
49 if ! fgrep -q '/opt/vc/bin' ${1}/etc/profile; then
50 echo -n "Enabling: /opt/vc/bin /opt/vc/lib"
51 cat >> ${1}/etc/profile << EOT
53 # Raspberry Pi VC tools and libs
54 export PATH=\$PATH:/opt/vc/bin
55 export LD_LIBRARY_PATH=\$LD_LIBRARY_PATH:/opt/vc/lib
57 EOT
58 status
59 fi
60 true
61 }