This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!

Teamviewer PKGBUILD

By: ava1ar on Feb 16th, 2013  |  syntax: Bash  |  size: 1.41 KB  |  views: 167  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. pkgname=teamviewer
  2. pkgver=8.0.17147
  3. pkgrel=2
  4. pkgdesc="All-in-one solution for accessing PC's using the internet"
  5. arch=('i686' 'x86_64')
  6. url="http://www.teamviewer.com"
  7. license="custom"
  8. makedepends=('binutils')
  9. install=teamviewer.install
  10.  
  11. if [ "$CARCH" = 'i686' ]; then
  12.   source=("teamviewer_linux-${pkgver}.deb::http://www.teamviewer.com/download/teamviewer_linux.deb")
  13.   md5sums=('47790ed345a7b7970fc1f2ac50c97002')
  14.   depends=('libsm' 'libxext' 'freetype2' 'libxtst')
  15. elif [ "$CARCH" = 'x86_64' ]; then
  16.   source=("teamviewer_linux_x64-${pkgver}.deb::http://www.teamviewer.com/download/teamviewer_linux_x64.deb")
  17.   md5sums=('a252c5cbb8703eed113b51ce0fe66419')
  18.   depends=('lib32-libsm' 'lib32-libxext' 'lib32-glibc' 'lib32-freetype2' 'lib32-gcc-libs' \
  19.   'lib32-alsa-lib' 'lib32-libx11' 'lib32-libxtst' 'lib32-libxdamage' 'lib32-libxfixes' \
  20.   'lib32-libxcb' 'lib32-libxi' 'lib32-libxau' 'lib32-libxdmcp')
  21. fi
  22.  
  23. package() {
  24.         cd $srcdir
  25.         [ "$CARCH" = "i686" ] && ar x ${pkgname}_linux-${pkgver}*
  26.         [ "$CARCH" = "x86_64" ] && ar x ${pkgname}_linux_x64-${pkgver}*
  27.         tar xvf data.tar.gz
  28.         cp -R opt $pkgdir
  29.         cp -R usr $pkgdir
  30.         install -Dm644 $pkgdir/opt/teamviewer8/License.txt $pkgdir/usr/share/licenses/${pkgname}/License.txt
  31.         install -Dm644 "$pkgdir/opt/teamviewer8/tv_bin/desktop/$pkgname-${pkgname}8.desktop" $pkgdir/usr/share/applications/$pkgname.desktop"
  32. }
clone this paste RAW Paste Data