pkgname=teamviewer pkgver=15.42.4 pkgrel=1 pkgdesc='All-In-One Software for Remote Support and Online Meetings' arch=('i686' 'x86_64' 'armv7h' 'aarch64') url='http://www.teamviewer.com' license=('custom') options=('!strip') provides=('teamviewer') conflicts=('teamviewer-beta') # /opt/teamviewer/tv_bin/script/teamviewer_setup checklibs can check deps for each TV component: # TV_DMN, TV_DESK, TV_GUI depends=( 'hicolor-icon-theme' 'qt5-x11extras' 'qt5-quickcontrols' # Doesn't appear in namcap, won't display UI without it. 'qt5-webengine' 'qt5-svg' ) #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.teamviewer.com/download/linux/version_${pkgver%%.*}x/teamviewer_${pkgver}_amd64.deb") source_i686=("https://dl.teamviewer.com/download/linux/version_${pkgver%%.*}x/teamviewer_${pkgver}_i386.deb") source_armv7h=("https://dl.teamviewer.com/download/linux/version_${pkgver%%.*}x/teamviewer_${pkgver}_armhf.deb") source_aarch64=("https://dl.teamviewer.com/download/linux/version_${pkgver%%.*}x/teamviewer_${pkgver}_arm64.deb") sha256sums_i686=('71bf9c3d92a8dd1e9ab3aa74306af0c53faac5051f606924352c83ba426c2f6e') sha256sums_x86_64=('80371bdb37c2f872aac8192bb0c3a5d7f4ad1a17ea4f007f448f8000bb3ad764') sha256sums_armv7h=('09bdfa704a287332ed8aff097b872965239b63d5932e712284bf2903f3627dfe') sha256sums_aarch64=('21bac7b4dd6411c3b20f7224ee50b9d988608440004a237fd068f4e008ec9297') prepare() { warning "If the install fails, you need to uninstall previous major version of Teamviewer" [ -d data ] && rm -rf data mkdir data cd data for datatar in ../data.tar.*; do msg2 "Unpacking $datatar" tar -xf $datatar done 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" msg2 "Running teamviewer_setup checklibs" ./opt/teamviewer/tv_bin/script/teamviewer_setup checklibs \ || msg2 "teamviewer_setup checklibs failed, contact maintainer with /tmp/teamviewerTARLibCheck/DependencyCheck.log" # Currently it always exits 0 } package() { # Install warning "If the install fails, you need to uninstall previous major version of Teamviewer" cp -dr --no-preserve=ownership ./data/{etc,opt,usr,var} "${pkgdir}"/ # Additional files rm "${pkgdir}"/opt/teamviewer/tv_bin/xdg-utils/xdg-email rm -rf "${pkgdir}"/etc/apt 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/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 # Uncomment to use system's native libraries. This can save around 150MiB of disk space #rm -rf "${pkgdir}"/opt/teamviewer/tv_bin/RTlib }