#!/bin/sh -x# It will run with two args: buildroot specBUILDROOT="$1"SPEC="$2"PRODUCT=yandex-telemostPRODUCTDIR=/opt/eepm-wine/$PRODUCT.$(dirname$0)/common.shadd_requires '/usr/bin/wine'add_bin_link_command $PRODUCT$PRODUCTDIR/run.shcat<<EOF | create_file /usr/share/applications/$PRODUCT.desktop[Desktop Entry]Name=Yandex TelemostExec=$PRODUCT %FType=ApplicationStartupNotify=trueIcon=$PRODUCTStartupWMClass=YandexTelemost.exeCategories=Wine;Chat;Network;InstantMessaging;EOF# copied from unpacked exe file: Telemost.exei=256install_file ipfs://QmXkZQuL8CrJDvNSSAGk7uYro12zkaaRuddCrxsK5EPXHu /usr/share/icons/hicolor/${i}x${i}/apps/$PRODUCT.png