#!/bin/sh -x# It will be run with two args: buildroot specBUILDROOT="$1"SPEC="$2".$(dirname$0)/common.shsubst "s|^Group:.*|Group: Graphics|"$SPECsubst "s|^License: unknown$|License: zlib/libpng|"$SPECsubst "s|^URL:.*|URL: https://armorpaint.org|"$SPECsubst "s|^Summary:.*|Summary: 3D PBR texture painting software|"$SPECcat<<EOF | create_file /usr/share/applications/$PRODUCT.desktop[Desktop Entry]Version=1.0Type=ApplicationName=$PRODUCTComment=3D PBR texture painting softwareExec=$PRODUCT %fIcon=$PRODUCTTerminal=falseStartupNotify=trueCategories=Engineering;EOFadd_bin_exec_command#add_bin_link_command $PRODUCTCUR $PRODUCTadd_libs_requires