wok-next view raspberrypi-vc/receipt @ rev 18716

cups, cups-pam: remove duplicate files with libcups; misc. edits.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Thu Dec 17 05:25:15 2015 +0200 (2015-12-17)
parents 9aa78458e396
children 85b9676f2614
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 }