skypeforlinux.sh 606 Bytes
Newer Older
1 2
#!/bin/sh -x

Vitaly Lipatov's avatar
Vitaly Lipatov committed
3
# It will be run with two args: buildroot spec
4 5 6
BUILDROOT="$1"
SPEC="$2"

7
PRODUCT=skype
8 9 10
PRODUCTDIR=/opt/skype

. $(dirname $0)/common-chromium-browser.sh
11

12
# remove key install script
13
remove_dir /opt/skypeforlinux
14

15
move_to_opt /usr/share/skypeforlinux
16

17
subst "s|^SKYPE_PATH=.*|SKYPE_PATH=$PRODUCTDIR/skypeforlinux|" $BUILDROOT/usr/bin/skypeforlinux
18 19 20 21

subst '1iAutoProv:no' $SPEC

# ignore embedded libs
22
drop_embedded_reqs
23

24
# usual command skype
25 26 27
mkdir -p $BUILDROOT/usr/bin/
ln -s /usr/bin/skypeforlinux $BUILDROOT/usr/bin/skype
subst 's|%files|%files\n/usr/bin/skype|' $SPEC
28

29
fix_chrome_sandbox