Commit 5f0e4fd0 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm play: add anydesk support

parent 6b19e506
#!/bin/sh
# TODO: common place
fatal()
{
echo "FATAL: $*" >&2
exit 1
}
PKGNAME=anydesk
if [ "$1" = "--remove" ] ; then
epm remove $PKGNAME
exit
fi
[ "$1" != "--run" ] && echo "Install AnyDesk from the official site" && exit
arch=$($DISTRVENDOR --distro-arch)
case $arch in
x86_64|amd64)
arch=$arch ;;
i686|i386)
arch=$arch ;;
i586)
arch=i686 ;;
*)
fatal "Unsupported arch $arch for $($DISTRVENDOR -d)"
esac
#if [ "$($DISTRVENDOR -d)" = "ALTLinux" ] ; then
# epm install https://zoom.us/client/latest/zoom_$arch.rpm
# exit
#fi
# https://download.anydesk.com/linux/anydesk_6.0.1-1_x86_64.rpm?
PKG="https://download.anydesk.com/linux/$(epm print constructname $PKGNAME "6.0.1-1" $arch "" "_")"
# we have workaround for their postinstall script, so always repack rpm package
repack=''
[ "$($DISTRVENDOR -p)" = "deb" ] || repack='--repack'
epm $repack install "$PKG"
#!/bin/sh -x
# It will be run with two args: buildroot spec
BUILDROOT="$1"
SPEC="$2"
PRODUCT=anydesk
mkdir -p $BUILDROOT/etc/systemd/system
ln -sf /usr/share/anydesk/files/systemd/anydesk.service $BUILDROOT/etc/systemd/system/anydesk.service
subst "s|/usr/share/anydesk/files/systemd/anydesk.service|/etc/systemd/system/anydesk.service|g" $SPEC
#subst '1iAutoProv:no' $SPEC
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment