diff options
author | Chris Severance | 2018-10-15 17:43:31 -0400 |
---|---|---|
committer | Chris Severance | 2018-10-15 17:43:31 -0400 |
commit | 01af53d79eb57e7181bf03ef0a89116331a403fc (patch) | |
tree | e02126ad8df47011c1351aca34133f1b156a86f0 | |
parent | f1580f73ffe32037fbd09585e2be07aa408d6b50 (diff) | |
download | aur-01af53d79eb57e7181bf03ef0a89116331a403fc.tar.gz |
autu: Update to 13.2.26559-1
-rw-r--r-- | .SRCINFO | 22 | ||||
-rw-r--r-- | PKGBUILD | 97 | ||||
-rw-r--r-- | teamviewer.install | 25 |
3 files changed, 113 insertions, 31 deletions
@@ -1,26 +1,30 @@ +# Generated by mksrcinfo v8 +# Mon Oct 15 21:43:31 UTC 2018 pkgbase = teamviewer-beta - pkgdesc = All-In-One Software for Remote Support and Online Meetings - beta version - pkgver = 13.2.13582 + pkgdesc = All-In-One Software for Remote Support and Online Meetings + pkgver = 13.2.26559 pkgrel = 1 url = http://www.teamviewer.com install = teamviewer.install arch = i686 arch = x86_64 + arch = armv7h license = custom depends = qt5-base depends = qt5-declarative - depends = qt5-x11extras - depends = qt5-webkit depends = hicolor-icon-theme + depends = qt5-webkit depends = qt5-x11extras depends = qt5-quickcontrols - provides = teamviewer + provides = teamviewer=13 conflicts = teamviewer options = !strip - source_i686 = https://dl.tvcdn.de/download/linux/version_13x/teamviewer_13.2.13582_i386.deb - sha256sums_i686 = 9b0b1a0bbf7e353436d4e216cf7ca34c65962333e2086e7e42c39d6499ec9d45 - source_x86_64 = https://dl.tvcdn.de/download/linux/version_13x/teamviewer_13.2.13582_amd64.deb - sha256sums_x86_64 = 04a09b016c3df38b7d4583788820c092a249024f26287f952b9c1d059fecca3f + source_i686 = https://dl.tvcdn.de/download/linux/version_13x/teamviewer_13.2.26559_i386.deb + sha256sums_i686 = 52adf3cebcb32b88a0290de6a0071fd7ced4619d810c483128a662f05c7e8e84 + source_x86_64 = https://dl.tvcdn.de/download/linux/version_13x/teamviewer_13.2.26559_amd64.deb + sha256sums_x86_64 = ad9820118b18b66bd31552c30fd8965436ac3c4ffb733ec9d8a22db5b6d193b1 + source_armv7h = https://dl.tvcdn.de/download/linux/version_13x/teamviewer-host_13.2.26559_armhf.deb + sha256sums_armv7h = c7083c0fed10350c1f0893daa562422473d74e6a57727969068b1c6fd4d54151 pkgname = teamviewer-beta @@ -1,4 +1,6 @@ -# Maintainer: Louis Tim Larsen <louis(a)louis.dk> +# Maintainer: Chris Severance aur.severach aATt spamgourmet dott com +# Contributor: Alex Taber <aft dot pokemon at gmail dot com> +# Contributor: Louis Tim Larsen <louis(a)louis.dk> # Contributor: Ignacio <nachohc89 at gmail dot com> # Contributor: Gun Onen <brookline653 at yahoo dot com> # Contributor: Christian Hesse <mai at eworm dot de> @@ -7,36 +9,91 @@ # Contributor: Stas S <whats_up at tut dot by> # Contributor: Hilinus <itahilinus at hotmail dot it> -pkgname=teamviewer-beta -pkgver=13.2.13582 +_opt_RPM=0 + +set -u +pkgname=teamviewer +pkgname+='-beta' +pkgver=13.2.26559 pkgrel=1 -pkgdesc='All-In-One Software for Remote Support and Online Meetings - beta version' -arch=('i686' 'x86_64') +pkgdesc='All-In-One Software for Remote Support and Online Meetings' +arch=('i686' 'x86_64' 'armv7h') url='http://www.teamviewer.com' license=('custom') options=('!strip') -provides=('teamviewer') +provides=("teamviewer=${pkgver%%.*}") conflicts=('teamviewer') -depends=('qt5-base' 'qt5-declarative' 'qt5-x11extras' 'qt5-webkit' 'hicolor-icon-theme' 'qt5-x11extras' 'qt5-quickcontrols') +depends=( + 'qt5-base' + 'qt5-declarative' + 'hicolor-icon-theme' + 'qt5-webkit' + 'qt5-x11extras' + 'qt5-quickcontrols' # Doesn't appear in namcap, won't display UI without it. +) +#depends_x86_64=( +# libdepends: +# 'lib32-libxtst' +# 'lib32-libxinerama' +# 'lib32-libxrandr' +# 'lib32-libxdamage' +# 'lib32-fontconfig' +# 'lib32-libsm') +#depends_i686=() +#depends_armv7h=() install=teamviewer.install source_x86_64=("https://dl.tvcdn.de/download/linux/version_${pkgver%%.*}x/teamviewer_${pkgver}_amd64.deb") source_i686=("https://dl.tvcdn.de/download/linux/version_${pkgver%%.*}x/teamviewer_${pkgver}_i386.deb") -sha256sums_i686=('9b0b1a0bbf7e353436d4e216cf7ca34c65962333e2086e7e42c39d6499ec9d45') -sha256sums_x86_64=('04a09b016c3df38b7d4583788820c092a249024f26287f952b9c1d059fecca3f') +source_armv7h=("https://dl.tvcdn.de/download/linux/version_${pkgver%%.*}x/teamviewer-host_${pkgver}_armhf.deb") +#source_armv7h=("https://dl.tvcdn.de/download/linux/version_${pkgver%%.*}x/teamviewer-host_13.2.13582_armhf.deb") +sha256sums_i686=('52adf3cebcb32b88a0290de6a0071fd7ced4619d810c483128a662f05c7e8e84') +sha256sums_x86_64=('ad9820118b18b66bd31552c30fd8965436ac3c4ffb733ec9d8a22db5b6d193b1') +sha256sums_armv7h=('c7083c0fed10350c1f0893daa562422473d74e6a57727969068b1c6fd4d54151') + +if [ "${_opt_RPM}" -ne 0 ]; then + source_x86_64=("${source_x86_64[@]//_amd64.deb/.x86_64.rpm}") + source_i686=("${source_i686[@]//_i386.deb/.i686.rpm}") + source_armv7h=("${source_armv7h[@]//_armhf.deb/.armv7hl.rpm}") +fi prepare() { - tar -xf data.tar.xz + warning "If the install fails, you need to uninstall previous major version of Teamviewer" + local datatar + shopt -s nullglob + for datatar in data.tar.*; do + msg2 "Unpacking $datatar" + tar -xf $datatar + done + shopt -u nullglob + sed -i '/function CheckQtQuickControls()/{N;a ls /usr/lib/qt/qml/QtQuick/Controls/qmldir &>/dev/null && return # ArchLinux +}' ./opt/teamviewer/tv_bin/script/teamviewer_setup || msg2 "Patching CheckQtQuickControls failed! Contact maintainer" +} + +check() { + msg2 "Running teamviewer_setup checklibs" + if ! ./opt/teamviewer/tv_bin/script/teamviewer_setup checklibs; then + msg2 "teamviewer_setup checklibs failed, contact maintainer with /tmp/teamviewerTARLibCheck/DependencyCheck.log" # Currently it always exits 0 + false + fi } package() { - # Install - cp -dr --no-preserve=ownership {etc,opt,usr,var} "${pkgdir}"/ - rm -rf ${pkgdir}/etc/apt - # Additional files - rm "${pkgdir}"/opt/teamviewer/tv_bin/xdg-utils/xdg-email - install -D -m0644 "${pkgdir}"/opt/teamviewer/tv_bin/script/teamviewerd.service \ - "${pkgdir}"/usr/lib/systemd/system/teamviewerd.service - install -d -m0755 "${pkgdir}"/usr/{share/applications,share/licenses/teamviewer} - ln -s /opt/teamviewer/doc/License.txt \ - "${pkgdir}"/usr/share/licenses/teamviewer/LICENSE + # Install + warning "If the install fails, you need to uninstall previous major version of Teamviewer" + cp -dr --no-preserve=ownership {etc,opt,usr,var} "${pkgdir}"/ + + # Additional files + rm "${pkgdir}"/opt/teamviewer/tv_bin/xdg-utils/xdg-email + rm -rf "${pkgdir}"/etc/apt + rm -rf "${pkgdir}"/etc/yum.repos.d + install -D -m0644 "${pkgdir}"/opt/teamviewer/tv_bin/script/teamviewerd.service \ + "${pkgdir}"/usr/lib/systemd/system/teamviewerd.service + install -d -m0755 "${pkgdir}"/usr/{share/applications,share/licenses/teamviewer} + ln -s /opt/teamviewer/doc/License.txt \ + "${pkgdir}"/usr/share/licenses/teamviewer/LICENSE + if [ "$CARCH" = "x86_64" ] && [ -f "${pkgdir}/opt/teamviewer/tv_bin/script/libdepend" ]; then + msg2 "Removing libdepend to ditch lib32 dependencies" + rm "${pkgdir}/opt/teamviewer/tv_bin/script/libdepend" + fi } +set +u diff --git a/teamviewer.install b/teamviewer.install index 49abca3a723d..af6f63e6d412 100644 --- a/teamviewer.install +++ b/teamviewer.install @@ -1,14 +1,35 @@ +# not autostarting TeamViewer makes remote support impossible +_opt_AutoStart=1 + post_install() { - echo "The Teamviewer daemon must be running for Teamviewer to work." - echo "Execute 'systemctl enable teamviewerd' in a terminal." + systemctl daemon-reload + if [ "${_opt_AutoStart}" -eq 0 ]; then + if ! systemctl -q is-active 'teamviewerd.service'; then + echo "The Teamviewer daemon must be running for Teamviewer to work." + echo "Execute 'sudo systemctl enable --now teamviewerd' in a terminal." + fi + else + systemctl enable --now 'teamviewerd.service' + fi } post_upgrade() { post_install } +pre_remove() { + if [ "${_opt_AutoStart}" -ne 0 ]; then + systemctl disable --now 'teamviewerd.service' + fi +} + +pre_upgrade() { + pre_remove +} + post_remove() { rm -rf /opt/teamviewer + systemctl daemon-reload } # vim: ts=2 sw=2 et: |