# Template file for 'anydesk'
pkgname=anydesk
version=5.0.0
revision=1
archs="i686 x86_64"
wrksrc=${pkgname}-${version}
short_desc="Fast remote desktop application"
maintainer="mobinmob <mobinmob@disroot.org>"
license="custom:Proprietary"
#Free for personal use. Terms and conditions:https://anydesk.com/en/terms
homepage="https://anydesk.com/remote-desktop"
nopie=yes
restricted=yes

if [ "${XBPS_TARGET_MACHINE}" = "x86_64" ] ; then
	distfiles="https://download.anydesk.com/linux/anydesk-${version}-amd64.tar.gz"
	checksum=3c1c694ea990d7bbc1bd10ec60502cb6801d042bbbaee82ca0f6d8f114869ca1
elif [ "${XBPS_TARGET_MACHINE}" = "i686" ]; then
	distfiles="https://download.anydesk.com/linux/anydesk-${version}-i686.tar.gz"
	checksum=97905b6d678a0289cc4ea387525648d2b125363f979bb7de63d8af6f21037463
fi

do_install() {
	vmkdir usr/share/icons/anydesk
	vcopy "icons/*" usr/share/icons/anydesk
	vmkdir usr/share/applications
	vinstall anydesk.desktop 0644 usr/share/applications
	vmkdir usr/share/polkit-1/actions
	vcopy "polkit-1/*.policy" usr/share/polkit-1/actions
	vbin anydesk
	vlicense copyright
	vdoc changelog
	vdoc README
}

