# HG changeset patch # User Christophe Lincoln # Date 1398472079 -7200 # Node ID 8c5c14df0537a39bfa779b9a230eb89f7c7cf2c4 # Parent f9b13fb97ddaff1e34642f94593dd786b19c5e2c raspberrypi-vc: strip down package and up PATH LD_LIBRARY_PATH in /etc/profile diff -r f9b13fb97dda -r 8c5c14df0537 raspberrypi-vc/receipt --- a/raspberrypi-vc/receipt Sat Apr 26 02:04:47 2014 +0200 +++ b/raspberrypi-vc/receipt Sat Apr 26 02:27:59 2014 +0200 @@ -16,9 +16,36 @@ BUILD_DEPENDS="wget" +# Cross tool PATH is not set in genpkg_rules +compile_rules() +{ + echo -n "Stripping VideoCore libraries..." + ${ARCH}-slitaz-linux-gnueabi-strip -s ${src}/opt/vc/lib/*.so + status +} + # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { - mkdir -p $fs/opt + vc="$fs/opt/vc" + mkdir -p ${fs}/opt cp -a ${src}/opt/vc ${fs}/opt + echo -n "Cleaning: VC libraries devel files" + rm -rf ${vc}/include ${vc}/src ${vc}/lib/*.a + status } + +# PATH + LD_LIBRARY_PATH +post_install() +{ + # PATH + LD_LIBRARY_PATH + echo -n "Enabling: /opt/vc/bin /opt/vc/lib" + cat >> ${1}/etc/profile << EOT + +# Raspberry Pi VC tools and libs +export PATH=$PATH:/opt/vc/bin +export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/vc/lib + +EOT + status +}