Commit fdeeda08 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm play anydesk: update for new upstream package placement

parent 48002901
#!/bin/sh #!/bin/sh
PKGNAME=anydesk PKGNAME=anydesk
SUPPORTEDARCHES="x86_64 x86" SUPPORTEDARCHES="x86_64"
VERSION="$2" VERSION="$2"
DESCRIPTION="AnyDesk from the official site" DESCRIPTION="AnyDesk from the official site"
. $(dirname $0)/common.sh . $(dirname $0)/common.sh
arch=$(epm print info --distro-arch) warn_version_is_not_supported
case $arch in
x86_64|amd64)
arch=$arch ;;
i686|i386)
arch=$arch ;;
i586)
arch=i686 ;;
*)
fatal "Unsupported arch $arch for $(epm print info -d)"
esac
# rpm packages have a release in their names
[ "$(epm print info -p)" = "rpm" ] && [ "$VERSION" != "*" ] && VERSION="$VERSION-1"
# current links: # current links:
# https://download.anydesk.com/rpm/anydesk_6.0.1-1_x86_64.rpm # https://download.anydesk.com/linux/anydesk_6.3.2-1_x86_64.rpm
# https://download.anydesk.com/os-specific/rhel8/anydesk-6.0.1-1.el8.x86_64.rpm # https://download.anydesk.com/linux/anydesk-6.3.2-1.el8.x86_64.rpm
# https://download.anydesk.com/deb/anydesk_6.0.1-1_amd64.deb # https://download.anydesk.com/linux/anydesk_6.3.2-1_amd64.deb
[ "$VERSION" = "*" ] || VERSION="$VERSION-1"
PKGMASK="$(epm print constructname $PKGNAME "$VERSION" $arch '' '_')" #PKGMASK="$(epm print constructname $PKGNAME "$VERSION" '' '' '_')"
# we miss obsoleted libpangox on ALT, so use RHEL8 build #[ "$(epm print info -s)" = "alt" ] &&
# lib.req: WARNING: /usr/bin/anydesk: library libpangox-1.0.so.0 not found # use el8 build for all systems
#[ "$(epm print info -s)" = "alt" ] && PKGMASK="os-specific/rhel8/$(epm print constructname $PKGNAME "*" $arch)" PKGMASK="$(epm print constructname $PKGNAME "$VERSION.el8")"
if [ "$VERSION" = "*" ] ; then if [ "$VERSION" = "*" ] ; then
PKGURL="$(eget --list --latest https://download.anydesk.com/linux/ "./$PKGMASK")" PKGURL="$(eget --list --latest https://download.anydesk.com/linux/$PKGMASK)"
else else
# https://download.anydesk.com/linux/anydesk_6.3.0-1_amd64.deb
# https://download.anydesk.com/linux/anydesk_6.3.0-1_x86_64.rpm
PKGURL="https://download.anydesk.com/linux/$PKGMASK" PKGURL="https://download.anydesk.com/linux/$PKGMASK"
fi fi
......
...@@ -11,8 +11,10 @@ PRODUCT=anydesk ...@@ -11,8 +11,10 @@ PRODUCT=anydesk
remove_file /usr/share/anydesk/files/init/anydesk remove_file /usr/share/anydesk/files/init/anydesk
# put service file to the normal place # put service file to the normal place
install_file usr/share/anydesk/files/systemd/anydesk.service /etc/systemd/system/anydesk.service if [ -f usr/share/anydesk/files/systemd/anydesk.service ] ; then
remove_file /usr/share/anydesk/files/systemd/anydesk.service install_file usr/share/anydesk/files/systemd/anydesk.service /etc/systemd/system/anydesk.service
remove_file /usr/share/anydesk/files/systemd/anydesk.service
fi
fix_desktop_file /usr/bin/$PRODUCT fix_desktop_file /usr/bin/$PRODUCT
......
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