Commit aea2f772 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm play scripts: cleanup

parent 23251b2a
......@@ -6,16 +6,17 @@ SPEC="$2"
PRODUCT=discord
LIBDIR=/opt
PRODUCTDIR=/opt/$PRODUCT
mkdir -p $BUILDROOT$LIBDIR/
mv $BUILDROOT/usr/share/$PRODUCT/ $BUILDROOT$LIBDIR/$PRODUCT/
subst "s|/usr/share/$PRODUCT|$LIBDIR/$PRODUCT|g" $SPEC
mv $BUILDROOT/usr/share/$PRODUCT/ $BUILDROOT$PRODUCTDIR/
subst "s|/usr/share/$PRODUCT|$PRODUCTDIR|g" $SPEC
subst '1iAutoProv:no' $SPEC
# usual command skype
mkdir -p $BUILDROOT/usr/bin/
ln -sf $LIBDIR/$PRODUCT/Discord $BUILDROOT/usr/bin/$PRODUCT
subst "s|/usr/share/discord/Discord|/usr/bin/$PRODUCT|g" $BUILDROOT/$LIBDIR/$PRODUCT/discord.desktop
ln -sf $LIBDIR/$PRODUCT/discord.desktop $BUILDROOT/usr/share/applications/discord.desktop
ln -sf $LIBDIR/$PRODUCT/discord.png $BUILDROOT/usr/share/pixmaps/discord.png
ln -sf $PRODUCTDIR/Discord $BUILDROOT/usr/bin/$PRODUCT
subst "s|/usr/share/discord/Discord|/usr/bin/$PRODUCT|g" $BUILDROOT/$PRODUCTDIR/discord.desktop
ln -sf $PRODUCTDIR/discord.desktop $BUILDROOT/usr/share/applications/discord.desktop
ln -sf $PRODUCTDIR/discord.png $BUILDROOT/usr/share/pixmaps/discord.png
......@@ -3,6 +3,8 @@
# It will be run with two args: buildroot spec
# Name this script as package name
# You can use EGET and SUDO variable, distr_vendor and epm commands
BUILDROOT="$1"
SPEC="$2"
......@@ -39,7 +39,8 @@ fi
[ -x $BUILDROOT/usr/bin/yandex-browser ] || ln -sv yandex-browser-beta $BUILDROOT/usr/bin/yandex-browser
# replace embedded xdg tools
for EMBDIR in /opt/yandex/browser-beta/{xdg-mime,xdg-settings} ; do
for EMBDIR in $PRODUCTDIR/{xdg-mime,xdg-settings} ; do
[ -s $BUILDROOT$EMBDIR ] || continue
rm -v $BUILDROOT$EMBDIR
ln -s /usr/bin/$(basename $EMBDIR) $BUILDROOT$EMBDIR
done
......
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