67 lines
2.5 KiB
Bash
67 lines
2.5 KiB
Bash
# Maintainer: Alex Taber <aft dot pokemon at gmail dot com>
|
|
|
|
pkgname=teamviewer
|
|
pkgver=12.0.85001
|
|
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=('7a729557ef7618c41c8a94a6d668fa84422ecf9acf2b1889ea52c727849f7f07'
|
|
'd33cf8be0c4be1c602d368fb363c9029d87f2bc4fdfcae5063595ac482ca39e8')
|
|
sha256sums_x86_64=('da586795ae999535a214162cd5f4b1c1175b64d99c4da08944957f8e725ad58a'
|
|
'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
|
|
}
|