Username: Password: Remember me
 
pkgname=anydesk
pkgver=4.0.1
pkgrel=9
pkgdesc="AnyDesk Free is an All-In-One Software for Remote Support"
screenshot=('https://anydesk.com/media/images/image-sshot-linux-main-en_scXhgcK.width-990.png')
arch=('x86_64')
url="http://anydesk.de/"
license=('custom:Freeware')
depends=('fakeroot' 'gtkglext' 'libglvnd' 'gtk2' 'libx11' 'glibc' 'glib2' 'gdk-pixbuf2' 'libxcb' 'cairo' 'pango' 'libxi' 'libxrandr' 'libxtst' 'libxext' 'libxfixes' 'libxdamage' 'gcc-libs')
optdepends=('libpulse')
conflicts=('anydesk-test')
source=(http://download.anydesk.com/linux/${pkgname}_${pkgver}-1_amd64.deb)
sha256sums=('b82af2bc51c78d442724e036bee4cd1e089f01543d5144aa420f109a1c77e9aa')
 
package() {
    cd "${pkgdir}"
    tar xf "${srcdir}/data.tar.gz"
    #
    msg2 "\e[1;32mAnyDesk now has a systemd file for unattendant access: anydesk.service \e[0m"
    install -D -m 644 "${pkgdir}/usr/share/anydesk/files/systemd/anydesk.service" "${pkgdir}/usr/lib/systemd/system/anydesk.service"
    sed -i "s/PIDFile=\/tm\/ad.pid/PIDFile=\/run\/anydesk.pid/" "${pkgdir}/usr/lib/systemd/system/anydesk.service"
}