teamviewer/PKGBUILD
Sebastian 'Swift Geek' Grzywna ff06caf63e Bump to 12.0.90041
2018-02-17 21:09:11 +01:00

67 lines
2.5 KiB
Bash

# Maintainer: Alex Taber <aft dot pokemon at gmail dot com>
pkgname=teamviewer
pkgver=12.0.90041
pkgrel=7
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'
'lib32-libpng12'
'lib32-libsm'
'lib32-libxinerama'
'lib32-libxrender'
'lib32-libjpeg6-turbo'
'lib32-libxtst'
'lib32-freetype2'
'lib32-dbus'
'libxtst')
depends_i686=(
'fontconfig'
'libpng12'
'libsm'
'libxinerama'
'libxrender'
'libjpeg6-turbo'
'freetype2'
'libxtst')
install=teamviewer.install
source_x86_64=("https://download.teamviewer.com/download/version_${pkgver%%.*}x/teamviewer_${pkgver}_amd64.deb"
"https://archive.archlinux.org/packages/l/lib32-freetype2/lib32-freetype2-2.8-2-x86_64.pkg.tar.xz")
source_i686=("https://download.teamviewer.com/download/version_${pkgver%%.*}x/teamviewer_${pkgver}_i386.deb"
"https://archive.archlinux.org/packages/f/freetype2/freetype2-2.8-2-i686.pkg.tar.xz")
sha256sums_i686=('8f2f108d2e303705a55111fd8af6561f25537b017bcc795766d6aba63a32eea5'
'd33cf8be0c4be1c602d368fb363c9029d87f2bc4fdfcae5063595ac482ca39e8')
sha256sums_x86_64=('a30bfaa0ddfa7f6ab03141f0deb8fd0a26760e1b18ea1cb9e54b5b54bf2c0131'
'4f39c9bd52579ac5d13980d760a5434fdb0f0638df07d2abca9ea44a779185e3')
prepare() {
warning "If the install fails, you need to uninstall previous major version of Teamviewer"
mkdir data
cd data
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 ./data/{etc,opt,usr,var} "${pkgdir}"/
# freetype workaround
[ -e "${srcdir}/usr/lib32/libfreetype.so.6.14.0" ] && install -D -m0755 "${srcdir}/usr/lib32/libfreetype.so.6.14.0" "${pkgdir}/opt/teamviewer/tv_bin/wine/lib/libfreetype.so.6"
[ -e "${srcdir}/usr/lib/libfreetype.so.6.14.0" ] && install -D -m0755 "${srcdir}/usr/lib/libfreetype.so.6.14.0" "${pkgdir}/opt/teamviewer/tv_bin/wine/lib/libfreetype.so.6"
# 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
}