rustdesk.sh 1.11 KB
Newer Older
1 2 3 4 5 6 7 8 9
#!/bin/sh -x

# It will be run with two args: buildroot spec
BUILDROOT="$1"
SPEC="$2"

. $(dirname $0)/common.sh

# put service file to the normal place
10
install_file usr/share/rustdesk/files/systemd/rustdesk.service /etc/systemd/system/$PRODUCT.service
11
remove_dir /usr/share/rustdesk/files/systemd
12

13
VERSION=$(grep "^Version:" $SPEC | sed -e "s|Version: ||")
14

15 16
if [ "$VERSION" = "1.1.8" ] || [ "$VERSION" = "1.1.9" ] ; then
echo "Note: use 1.1.x compatibility script"
17
echo "Categories=GNOME;GTK;Network;RemoteAccess;" >> usr/share/applications/$PRODUCT.desktop
18

19
add_libs_requires
20

21 22
[ "$(epm print info -s)" = "alt" ] || exit 0

23
add_unirequires xdotool
24

25
if ! epm install --skip-installed --no-remove python3-module-pynput ; then
26 27
    case "$(epm print info -e)" in
        ALTLinux/p9)
28 29
            # https://git.altlinux.org/tasks/316570/
            epm install --no-remove 316570
30 31 32 33 34
            ;;
   esac
fi

exit
35 36 37 38 39 40 41 42 43 44 45 46
fi

#### 1.2.3 and above

move_to_opt /usr/lib/rustdesk

subst "s|^Categories.*|Categories=GNOME;GTK;Network;RemoteAccess;|" usr/share/applications/$PRODUCT.desktop

add_bin_link_command

add_unirequires curl
add_libs_requires