# Maintainer: Alex Taber pkgname=teamviewer pkgver=12.0.85001 pkgrel=6 pkgdesc='All-In-One Software for Remote Support and Online Meetings' arch=('i686' 'x86_64') url='http://www.teamviewer.com' license=('custom') options=('!strip') provides=('teamviewer') conflicts=('teamviewer-beta') depends_x86_64=( 'lib32-fontconfig<2.8.1' 'lib32-libpng12' 'lib32-libsm' 'lib32-libxinerama' 'lib32-libxrender' 'lib32-libjpeg6-turbo' 'lib32-libxtst' 'libxtst') depends_i686=( 'fontconfig<2.8.1' 'libpng12' 'libsm' 'libxinerama' 'libxrender' 'libjpeg6-turbo' 'libxtst') install=teamviewer.install 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") sha256sums_i686=('7a729557ef7618c41c8a94a6d668fa84422ecf9acf2b1889ea52c727849f7f07') sha256sums_x86_64=('da586795ae999535a214162cd5f4b1c1175b64d99c4da08944957f8e725ad58a') prepare() { warning "If the install fails, you need to uninstall previous major version of Teamviewer" tar -xf data.tar.bz2 } package() { # 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 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 }