2015-12-02 16:13:37 -08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								# Maintainer: Alex Taber <aft dot pokemon at gmail dot com>
							 | 
						
					
						
							
								
									
										
										
										
											2015-06-08 03:58:09 -07:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								pkgname=teamviewer
							 | 
						
					
						
							
								
									
										
										
										
											2018-11-22 21:47:52 -08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								pkgver=14.0.14470
							 | 
						
					
						
							
								
									
										
										
										
											2018-04-04 01:43:30 -07:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								pkgrel=9
							 | 
						
					
						
							
								
									
										
										
										
											2015-12-02 16:13:37 -08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								pkgdesc='All-In-One Software for Remote Support and Online Meetings'
							 | 
						
					
						
							
								
									
										
										
										
											2018-04-04 01:43:30 -07:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								arch=('i686' 'x86_64' 'armv7h')
							 | 
						
					
						
							
								
									
										
										
										
											2015-12-02 16:13:37 -08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								url='http://www.teamviewer.com'
							 | 
						
					
						
							
								
									
										
										
										
											2015-06-08 03:58:09 -07:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								license=('custom')
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								options=('!strip')
							 | 
						
					
						
							
								
									
										
										
										
											2015-12-02 16:13:37 -08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								provides=('teamviewer')
							 | 
						
					
						
							
								
									
										
										
										
											2015-12-02 17:32:31 -08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								conflicts=('teamviewer-beta')
							 | 
						
					
						
							
								
									
										
										
										
											2018-04-05 01:19:28 -07:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								# /opt/teamviewer/tv_bin/script/teamviewer_setup checklibs can check deps for each TV component:
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								# TV_DMN, TV_DESK, TV_GUI
							 | 
						
					
						
							
								
									
										
										
										
											2018-04-21 18:49:25 -07:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								depends=(
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									'hicolor-icon-theme'
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									'qt5-webkit'
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									'qt5-x11extras'
							 | 
						
					
						
							
								
									
										
										
										
											2018-04-21 18:54:49 -07:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
									'qt5-quickcontrols' # Doesn't appear in namcap, won't display UI without it.
							 | 
						
					
						
							
								
									
										
										
										
											2018-04-21 18:49:25 -07:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								)
							 | 
						
					
						
							
								
									
										
										
										
											2018-06-06 05:10:53 -07:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								#depends_x86_64=(
							 | 
						
					
						
							
								
									
										
										
										
											2018-04-21 18:49:25 -07:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								# libdepends:
							 | 
						
					
						
							
								
									
										
										
										
											2018-06-06 05:10:53 -07:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								#	'lib32-libxtst'
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								#	'lib32-libxinerama'
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								#	'lib32-libxrandr'
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								#	'lib32-libxdamage'
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								#	'lib32-fontconfig'
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								#	'lib32-libsm')
							 | 
						
					
						
							
								
									
										
										
										
											2018-04-21 18:49:25 -07:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								#depends_i686=()
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								#depends_armv7h=()
							 | 
						
					
						
							
								
									
										
										
										
											2015-12-02 16:13:37 -08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								install=teamviewer.install
							 | 
						
					
						
							
								
									
										
										
										
											2018-04-04 01:43:30 -07:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								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")
							 | 
						
					
						
							
								
									
										
										
										
											2018-08-11 09:09:06 -07:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								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")
							 | 
						
					
						
							
								
									
										
										
										
											2018-11-22 21:47:52 -08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								sha256sums_i686=('9b61d0780274007985f54cee07efc6bb5b7ede3300608bb408a66bca3e74fb5e')
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								sha256sums_x86_64=('29d57df2b08cb7ccff426b613697c98298c80cbfa546bf019b2830dce60848b6')
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								sha256sums_armv7h=('4c5a56dc75aff3edb0c015ec361e060652baeb1c6ba2b68d42e1d9dbe2f683ae')
							 | 
						
					
						
							
								
									
										
										
										
											2015-06-08 03:58:09 -07:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							
								
									
										
										
										
											2015-12-02 16:13:37 -08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								prepare() {
							 | 
						
					
						
							
								
									
										
										
										
											2016-12-05 09:55:37 -08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
									warning "If the install fails, you need to uninstall previous major version of Teamviewer"
							 | 
						
					
						
							
								
									
										
										
										
											2018-04-04 01:43:30 -07:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
									[ -d data ] && rm -rf data
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									mkdir data
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									cd data
							 | 
						
					
						
							
								
									
										
										
										
											2018-04-04 02:30:13 -07:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
									for datatar in ../data.tar.*; do
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
										msg2 "Unpacking $datatar"
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
										tar -xf $datatar
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									done
							 | 
						
					
						
							
								
									
										
										
										
											2018-04-05 01:19:28 -07:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
									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
							 | 
						
					
						
							
								
									
										
										
										
											2015-06-08 03:58:09 -07:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								}
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								package() {
							 | 
						
					
						
							
								
									
										
										
										
											2015-12-02 16:13:37 -08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
									# Install
							 | 
						
					
						
							
								
									
										
										
										
											2016-12-05 09:55:37 -08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
									warning "If the install fails, you need to uninstall previous major version of Teamviewer"
							 | 
						
					
						
							
								
									
										
										
										
											2017-11-16 09:45:42 -08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
									cp -dr --no-preserve=ownership ./data/{etc,opt,usr,var} "${pkgdir}"/
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							
								
									
										
										
										
											2015-12-02 16:13:37 -08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
									# Additional files
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									rm "${pkgdir}"/opt/teamviewer/tv_bin/xdg-utils/xdg-email
							 | 
						
					
						
							
								
									
										
										
										
											2018-04-04 01:43:30 -07:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
									rm -rf "${pkgdir}"/etc/apt
							 | 
						
					
						
							
								
									
										
										
										
											2015-12-02 16:13:37 -08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
									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
							 | 
						
					
						
							
								
									
										
										
										
											2018-06-06 05:10:53 -07:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
									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
							 | 
						
					
						
							
								
									
										
										
										
											2015-06-08 03:58:09 -07:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								}
							 |