mirror of
https://aur.archlinux.org/anydesk-bin.git
synced 2025-10-02 05:01:53 +08:00
36 lines
1.9 KiB
Bash
36 lines
1.9 KiB
Bash
# Maintainer: Nico <d3sox at protonmail dot com>
|
|
pkgname=anydesk-bin
|
|
pkgver=7.1.0
|
|
pkgrel=1
|
|
pkgdesc="The Fast Remote Desktop Application"
|
|
arch=('x86_64')
|
|
url="https://anydesk.com"
|
|
license=('custom')
|
|
depends=('fakeroot' 'minizip' 'libglvnd' 'gtk3' 'libx11' 'glibc' 'glib2' 'gdk-pixbuf2' 'libxcb' 'cairo' 'pango' 'libxi' 'libxrender' 'libxrandr' 'libxtst' 'libxext' 'libxfixes' 'libxdamage' 'libxkbfile' 'gcc-libs' 'lsb-release' 'polkit' 'yp-tools')
|
|
optdepends=('libpulse: audio support' 'gnome-themes-extra: adwaita theme')
|
|
conflicts=('anydesk')
|
|
provides=('anydesk')
|
|
options=('!strip')
|
|
source=("https://download.anydesk.com/linux/anydesk-${pkgver}-amd64.tar.gz")
|
|
sha256sums=('0a9966659ae59cc8e69e93afcc53224863279d23579d7894b657978b45f9da5a')
|
|
|
|
package() {
|
|
# install binary
|
|
install -Dm 755 "${srcdir}/anydesk-${pkgver}/anydesk" "${pkgdir}/usr/bin/anydesk"
|
|
|
|
# install desktop entry
|
|
install -Dm 644 "${srcdir}/anydesk-${pkgver}/anydesk.desktop" "${pkgdir}/usr/share/applications/anydesk.desktop"
|
|
# workaround to fix crashes
|
|
sed -i 's/^Exec=/Exec=env GDK_BACKEND=x11 /' "${pkgdir}/usr/share/applications/anydesk.desktop"
|
|
|
|
# install polkit action
|
|
install -Dm 644 "${srcdir}/anydesk-${pkgver}/polkit-1/com.anydesk.anydesk.policy" "${pkgdir}/usr/share/polkit-1/actions/com.anydesk.anydesk.policy"
|
|
# install icon
|
|
install -Dm 644 "${srcdir}/anydesk-${pkgver}/icons/hicolor/scalable/apps/anydesk.svg" "${pkgdir}/usr/share/pixmaps/anydesk.svg"
|
|
# install license
|
|
install -Dm 644 "${srcdir}/anydesk-${pkgver}/copyright" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
|
|
|
printf "%b" "\e[1;33m==> WARNING: \e[0mAnyDesk has a systemd service for unattended access. Enable it with: systemctl enable --now anydesk\n"
|
|
# install systemd service
|
|
install -Dm 644 "${srcdir}/anydesk-${pkgver}/systemd/anydesk.service" "${pkgdir}/usr/lib/systemd/system/anydesk.service"
|
|
}
|