void-packages/srcpkgs/anydesk/template

34 lines
1.1 KiB
Bash

# Template file for 'anydesk'
pkgname=anydesk
version=5.1.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=edf0b040c00d90c370d4d53ab2bb0dd4f2257050bcf6d665fc3f7f2c243fae7e
elif [ "${XBPS_TARGET_MACHINE}" = "i686" ]; then
distfiles="https://download.anydesk.com/linux/anydesk-${version}-i686.tar.gz"
checksum=6aff74caf96481fc6488ee4f951b61f17577d703b759488f698640bcd24ac63e
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
}