From b6ac7284bbcff5320ad6a89bbcdf1342ec448511 Mon Sep 17 00:00:00 2001 From: Yakir Sitbon Date: Mon, 8 Jun 2015 13:58:09 +0300 Subject: [PATCH] Initial commit --- .SRCINFO | 14 ++++++++++++++ PKGBUILD | 45 +++++++++++++++++++++++++++++++++++++++++++++ teamviewer.install | 14 ++++++++++++++ 3 files changed, 73 insertions(+) create mode 100644 .SRCINFO create mode 100644 PKGBUILD create mode 100755 teamviewer.install diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 0000000..5f5dede --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,14 @@ +pkgbase = teamviewer + pkgdesc = All-In-One Software for Remote Support and Online Meetings + pkgver = 10.0.41499 + pkgrel = 1 + url = http://www.teamviewer.com + install = teamviewer.install + arch = i686 + arch = x86_64 + license = custom + depends = bash + options = !strip + +pkgname = teamviewer + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..ce15096 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,45 @@ +# Maintainer: Yakir Sitbon +# Contributor: Alucryd +# Contributor: Stas S +# Contributor: Hilinus + +pkgname=teamviewer +pkgver=10.0.41499 +pkgrel=1 +pkgdesc="All-In-One Software for Remote Support and Online Meetings" +arch=('i686' 'x86_64') +url="http://www.teamviewer.com" +license=('custom') +depends=('bash') +options=('!strip') +install=${pkgname}.install + +if [[ $CARCH == 'i686' ]]; then + source=("teamviewer_linux-${pkgver}.deb::http://download.teamviewer.com/download/teamviewer_i386.deb") + md5sums=('5aa2ce43cd9aea23ff3b64bfd498fcf3') + depends+=('alsa-lib' 'gcc-libs' 'libxdamage' 'libxtst' 'zlib' 'freetype2' 'libxrandr' 'libice' 'libsm') +elif [[ $CARCH == 'x86_64' ]]; then + source=("teamviewer_linux_x64-${pkgver}.deb::http://download.teamviewer.com/download/teamviewer_amd64.deb") + md5sums=('fdbc27543e0955e217097810a7983507') + depends+=('lib32-gcc-libs' 'lib32-alsa-lib' 'lib32-libxtst' 'lib32-libxdamage' 'lib32-zlib' 'lib32-freetype2' 'lib32-libxrandr' 'lib32-libice' 'lib32-libsm' 'lib32-libxinerama') +fi + +build() { + cd "${srcdir}" + tar -xf data.tar.gz +} + +package() { + cd "${srcdir}" + +# Install + cp -dr --no-preserve=ownership {etc,opt,usr,var} "${pkgdir}"/ + +# Additional files + rm "${pkgdir}"/opt/teamviewer/tv_bin/xdg-utils/xdg-email + install -dm 755 "${pkgdir}"/usr/{lib/systemd/system,share/applications,share/licenses/teamviewer} + install -m 644 "${pkgdir}"/opt/teamviewer/tv_bin/script/teamviewerd.service "${pkgdir}"/usr/lib/systemd/system/teamviewerd.service + ln -s /opt/teamviewer/tv_bin/desktop/teamviewer-teamviewer10.desktop "${pkgdir}"/usr/share/applications/teamviewer.desktop + ln -s /opt/teamviewer/License.txt "${pkgdir}"/usr/share/licenses/teamviewer/LICENSE +} + diff --git a/teamviewer.install b/teamviewer.install new file mode 100755 index 0000000..06b6bf9 --- /dev/null +++ b/teamviewer.install @@ -0,0 +1,14 @@ +post_install() { + echo "The Teamviewer daemon must be running for Teamviewer 10 to work." + echo "Execute 'sudo systemctl enable teamviewerd' in a terminal." +} + +post_upgrade() { + post_install +} + +post_remove() { + rm -rf /opt/teamviewer +} + +# vim: ts=2 sw=2 et: