trueconf.sh 857 Bytes
Newer Older
1 2 3 4
#!/bin/sh -x
# It will run with two args: buildroot spec
BUILDROOT="$1"
SPEC="$2"
5 6
ORIGINPACKAGE="$4"

7
PRODUCT=trueconf
8
PRODUCTDIR=/opt/trueconf/client
9

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

12 13
# follow original requires
reqs="$(epm requires "$ORIGINPACKAGE")"
14
[ -n "$reqs" ] && add_requires "$(echo $reqs | sed -e 's|pulseaudio||g' )"
15

16 17 18
# for old trueconf (before 8.4.0.1957)
[ -d .$PRODUCTDIR ] || PRODUCTDIR=/opt/$PRODUCT

19
add_bin_link_command
20

21 22 23 24 25 26
chmod a+x .$PRODUCTDIR/trueconf
chmod a+x .$PRODUCTDIR/trueconf-autostart

if [ -e .$PRODUCTDIR/QtWebEngineProcess ]; then
    chmod a+x .$PRODUCTDIR/QtWebEngineProcess
fi
27

28 29
# TODO: report the bug:
# libhwloc.so.5 => not found (we have only libhwloc.so.15)
30 31 32 33
#remove_file $PRODUCTDIR/lib/libtbbbind.so
#remove_file $PRODUCTDIR/lib/libtbbbind.so.2
# or
#filter_from_requires libhwloc.so.5
34

35
# (requires is disabled by default now)