Commit 5ad29c54 authored by Vitaly Lipatov's avatar Vitaly Lipatov

add repack for teams (move to /opt, fix reqs)

parent 4a45569e
#!/bin/sh -x
# It will run with two args: buildroot spec
BUILDROOT="$1"
SPEC="$2"
PRODUCT=teams
LIBDIR=/opt
if [ "$($DISTRVENDOR -e)" = "ALTLinux/p8" ] ; then
# drop unsupported binary
#subst '1i%filter_from_requires /^libm.so.6(GLIBC_2.27).*/d' $SPEC
rm -rf $BUILDROOT/usr/share/teams/resources/app.asar.unpacked/node_modules/@microsoft/fasttext-languagedetector/build/
subst "s|.*/usr/share/teams/resources/app.asar.unpacked/node_modules/@microsoft/fasttext-languagedetector/build/.*||" $SPEC
fi
# move to more correct place
subst "s|^TEAMS_PATH=.*|$LIBDIR/$PRODUCT/teams|" $BUILDROOT/usr/bin/teams
mkdir -p $BUILDROOT/$LIBDIR
mv -v $BUILDROOT/usr/share/teams/ $BUILDROOT/$LIBDIR/
subst "s|/usr/share/teams|$LIBDIR/$PRODUCT|" $SPEC
subst '1iAutoProv:no' $SPEC
# ignore embedded libs
subst '1i%filter_from_requires /^libGLESv2.so().*/d' $SPEC
subst '1i%filter_from_requires /^libEGL.so().*/d' $SPEC
subst '1i%filter_from_requires /^libffmpeg.so().*/d' $SPEC
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment