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
							 | 
						
					
						
							
								
									
										
										
										
											2016-01-26 13:30:56 -08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								pkgver=11.0.53191
							 | 
						
					
						
							
								
									
										
										
										
											2016-01-27 04:12:49 -08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								pkgrel=2.1
							 | 
						
					
						
							
								
									
										
										
										
											2015-12-02 16:13:37 -08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								pkgdesc='All-In-One Software for Remote Support and Online Meetings'
							 | 
						
					
						
							
								
									
										
										
										
											2015-06-08 03:58:09 -07:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								arch=('i686' 'x86_64')
							 | 
						
					
						
							
								
									
										
										
										
											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')
							 | 
						
					
						
							
								
									
										
										
										
											2015-12-02 16:13:37 -08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								depends_x86_64=(
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									'lib32-fontconfig'
							 | 
						
					
						
							
								
									
										
										
										
											2016-02-20 04:35:17 -08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
									'lib32-libpng'
							 | 
						
					
						
							
								
									
										
										
										
											2015-12-02 16:13:37 -08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
									'lib32-libsm'
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									'lib32-libxinerama'
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									'lib32-libxrender')
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								depends_i686=(
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									'fontconfig'
							 | 
						
					
						
							
								
									
										
										
										
											2016-02-20 04:35:17 -08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
									'libpng'
							 | 
						
					
						
							
								
									
										
										
										
											2015-12-02 16:13:37 -08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
									'libsm'
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									'libxinerama'
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									'libxrender')
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								install=teamviewer.install
							 | 
						
					
						
							
								
									
										
										
										
											2016-01-27 04:12:49 -08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								source_x86_64=("https://download.teamviewer.com/download/version_${pkgver%%.*}x/teamviewer_${pkgver}_amd64.deb")
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								source_i686=("https://download.teamviewer.com/download/version_${pkgver%%.*}x/teamviewer_${pkgver}_i386.deb")
							 | 
						
					
						
							
								
									
										
										
										
											2016-01-26 13:30:56 -08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								sha256sums_x86_64=('D624C93679A25B00013A13B74B51746EEEDE674A2C68746C574A086D79A08A48')
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								sha256sums_i686=('E37F4FA053648366A73AC7AF684CEE8567F3D5EF580AC5F63CBC7A68DA6124FB')
							 | 
						
					
						
							
								
									
										
										
										
											2015-06-08 03:58:09 -07:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							
								
									
										
										
										
											2015-12-02 16:13:37 -08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								prepare() {
							 | 
						
					
						
							
								
									
										
										
										
											2015-12-03 13:59:09 -08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
									echo "If the install fails, you need to uninstall Teamviewer 10"
							 | 
						
					
						
							
								
									
										
										
										
											2015-12-03 13:52:16 -08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
									tar -xf data.tar.bz2
							 | 
						
					
						
							
								
									
										
										
										
											2015-06-08 03:58:09 -07:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								}
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								package() {
							 | 
						
					
						
							
								
									
										
										
										
											2015-12-02 16:13:37 -08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
									# Install
							 | 
						
					
						
							
								
									
										
										
										
											2015-12-03 13:50:53 -08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
									echo "If the install fails here, you need to uninstall Teamviewer 10"
							 | 
						
					
						
							
								
									
										
										
										
											2015-12-02 16:13:37 -08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
									cp -dr --no-preserve=ownership {etc,opt,usr,var} "${pkgdir}"/
							 | 
						
					
						
							
								
									
										
										
										
											2015-06-08 03:58:09 -07:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							
								
									
										
										
										
											2015-12-02 16:13:37 -08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
									# 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/tv_bin/desktop/teamviewer-teamviewer${pkgver%%.*}.desktop \
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
										"${pkgdir}"/usr/share/applications/teamviewer.desktop
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
									ln -s /opt/teamviewer/License.txt \
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
										"${pkgdir}"/usr/share/licenses/teamviewer/LICENSE
							 | 
						
					
						
							
								
									
										
										
										
											2015-06-08 03:58:09 -07:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								}
							 |