#!/bin/sh -x# It will run with two args: buildroot specBUILDROOT="$1"SPEC="$2"# move binaries from /usr/share/PKGNAME to _libdir/PKGNAMELIBDIR=$(rpmbuild --eval %_libdir 2>/dev/null)mkdir-p$BUILDROOT$LIBDIR/mv$BUILDROOT/usr/share/skypeforlinux/ $BUILDROOT$LIBDIR/subst "s|/usr/share/skypeforlinux|$LIBDIR/skypeforlinux|g"$SPECsubst "s|^SKYPE_PATH=.*|SKYPE_PATH=$LIBDIR/skypeforlinux/skypeforlinux|"$BUILDROOT/usr/bin/skypeforlinux