#!/bin/sh -x# It will be run with two args: buildroot specBUILDROOT="$1"SPEC="$2".$(dirname$0)/common.sh# installing from tar, so we need fill some fields heresubst "s|^Group:.*|Group: Office|"$SPECsubst "s|^License: unknown$|License: Proprietary|"$SPECsubst "s|^URL:.*|URL: https://1c-connect.com/|"$SPECsubst "s|^Summary:.*|Summary: 1C Connect|"$SPECadd_bin_cdexec_command $PRODUCT$PRODUCTDIR/app/bin/connectinstall_file $PRODUCTDIR/app/bin/ico-app.png /usr/share/pixmaps/$PRODUCT.png# create desktop filemkdir-p$BUILDROOT/usr/share/applications/cat<<EOF >$BUILDROOT/usr/share/applications/$PRODUCT.desktop[Desktop Entry]Version=1.0Name=1C ConnectComment=1C ConnectExec=$PRODUCT -- %uIcon=$PRODUCTType=ApplicationCategories=Network;X-GNOME-UsesNotifications=trueEOFpack_file /usr/share/applications/$PRODUCT.desktop