wok view raspberrypi-vc/receipt @ rev 22282
updated xorg-xf86-video-trident (1.3.6 -> 1.3.8)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Nov 13 14:36:23 2019 +0100 (2019-11-13) |
parents | 9aa78458e396 |
children | b569b85b0fb9 |
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 # Cross tool PATH is not set in genpkg_rules
20 compile_rules()
21 {
22 echo -n "Stripping VideoCore libraries..."
23 ${ARCH}-slitaz-linux-gnueabi-strip -s ${src}/opt/vc/lib/*.so
24 status
25 }
27 # Rules to gen a SliTaz package suitable for Tazpkg.
28 genpkg_rules()
29 {
30 vc="$fs/opt/vc"
31 mkdir -p ${fs}/opt
32 cp -a ${src}/opt/vc ${fs}/opt
33 echo -n "Cleaning: VC libraries devel files"
34 rm -rf ${vc}/include ${vc}/src ${vc}/lib/*.a
35 status
36 }
38 # PATH + LD_LIBRARY_PATH
39 post_install()
40 {
41 # PATH + LD_LIBRARY_PATH
42 if ! fgrep -q '/opt/vc/bin' ${1}/etc/profile; then
43 echo -n "Enabling: /opt/vc/bin /opt/vc/lib"
44 cat >> ${1}/etc/profile << EOT
46 # Raspberry Pi VC tools and libs
47 export PATH=\$PATH:/opt/vc/bin
48 export LD_LIBRARY_PATH=\$LD_LIBRARY_PATH:/opt/vc/lib
50 EOT
51 status
52 fi
53 true
54 }