teamviewer.sh 725 Bytes
Newer Older
1 2 3
#!/bin/sh

PKGNAME="teamviewer"
4
SUPPORTEDARCHES="x86_64 armhf"
5 6 7 8
DESCRIPTION="Teamviewer from the official site"

. $(dirname $0)/common.sh

9

10
arch="$(epm print info -a)"
11 12 13 14 15 16 17 18 19 20 21
case "$arch" in
    x86_64|x86)
        ;;
    armhf)
        PKGNAME="teamviewer-host"
        ;;
    *)
        fatal "$arch arch is not supported"
        ;;
esac

22

23 24
# See https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=teamviewer

25
repack=''
26
[ "$(epm print info -p)" = "deb" ] || repack='--repack'
27

28
# epm uses eget to download * names
29
epm $repack install "https://download.teamviewer.com/download/linux/$(epm print constructname $PKGNAME)" || exit
30

31 32 33
cat <<EOF

Note: run
34
# serv teamviewerd on
35
to enable needed teamviewer system service (daemon)
36
EOF