ipera-client.sh 871 Bytes
Newer Older
1 2 3 4 5 6 7
#!/bin/sh -x
# It will run with two args: buildroot spec
BUILDROOT="$1"
SPEC="$2"
PRODUCT=ipera-client
PRODUCTDIR=/opt/ipera

8 9
PREINSTALL_PACKAGES="libQt5Pdf.so.5()(64bit)"

10 11 12
. $(dirname $0)/common.sh

LIBDIR=$(echo $BUILDROOT/opt/ipera/client/*/lib)
13
[ -d "$LIBDIR" ] || exit
14

15
if epm assure patchelf ; then
16 17 18 19
cd $LIBDIR
for i in lib*.so.* gstreamer-0.10/lib*.so.*  ; do
    a= patchelf --set-rpath '$ORIGIN' $i
done
20
fi
21

22 23 24
#for i in ../bin/qml/QtQuick/Particles.2/libparticlesplugin.so ; do
#    a= patchelf --set-rpath "$LIBDIR" $i
#done
25 26

filter_from_requires "libldap_r-2.4.so.2(OPENLDAP_2.*)(64bit)" "liblber-2.4.so.2(OPENLDAP_2.*)(64bit)" "ld-linux-.*(GLIBC_PRIVATE)"
27 28 29
# ignore embedded libs
filter_from_requires libQt5 libav libcrypto.so libdbus-1.so libicu liblibraw.so libssl.so libswresample libswscale libva libvdpau
filter_from_requires libgst libuv
30 31

set_autoreq 'yes'