#!/bin/sh -x# It will be run with two args: buildroot specBUILDROOT="$1"SPEC="$2"PRODUCT=rustdesk.$(dirname$0)/common.shsubst '1iAutoProv:no'$SPEC# put service file to the normal placemkdir-p$BUILDROOT/etc/systemd/system/cp$BUILDROOT/usr/share/rustdesk/files/systemd/rustdesk.service $BUILDROOT/etc/systemd/system/$PRODUCT.serviceremove_file /usr/share/rustdesk/files/systemd/rustdesk.servicepack_file /etc/systemd/system/$PRODUCT.service# TODO# if [[ "$parsedVersion" -gt "360" ]]; then# sudo -H pip3 install pynputremove_file /usr/share/rustdesk/files/pynput_service.py# filter_from_requires "python3(pynput.*"echo"Categories=GNOME;GTK;Network;RemoteAccess;">>$BUILDROOT/usr/share/applications/$PRODUCT.desktop