Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!

teamviewer 7 PKGBUILD

By: scorici on Mar 2nd, 2013  |  syntax: None  |  size: 1.41 KB  |  views: 88  |  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=7.0.9377
  3. pkgrel=1
  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="nonfree"
  8. makedepends=('binutils')
  9.  
  10.  
  11. if [ $CARCH == 'i686' ]; then
  12. source=("teamviewer_linux-${pkgver}.deb::http://www.teamviewer.com/download/version_7x/teamviewer_linux.deb")
  13. md5sums=('ab13157b1f68234e1887332cda93786a')
  14. depends=('libsm' 'libxext' 'freetype2' 'libxtst')
  15. elif [ $CARCH == 'x86_64' ]; then
  16. source=("teamviewer_linux_x64-${pkgver}.deb::http://www.teamviewer.com/download/version_7x/teamviewer_linux_x64.deb")
  17. md5sums=('bb63d2bd4879fc8956b754b227402a66')
  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.  
  24. package() {
  25. cd $srcdir
  26. [ $CARCH == "i686" ] && ar x ${pkgname}_linux-${pkgver}*
  27. [ $CARCH == "x86_64" ] && ar x ${pkgname}_linux_x64-${pkgver}*
  28. tar xvf data.tar.gz
  29. cp -R opt $pkgdir
  30. cp -R usr $pkgdir
  31. mkdir -p $pkgdir/usr/share/applications
  32. echo "[Desktop Entry]
  33. Version=1.0
  34. Encoding=UTF-8
  35. Name=TeamViewer 7
  36. Comment=TeamViewer Remote Control Application
  37. Exec=teamviewer7
  38. Icon=/opt/teamviewer/teamviewer/7/desktop/teamviewer.png
  39. Type=Application
  40. Categories=Network;
  41. " > $pkgdir/usr/share/applications/teamviewer.desktop
  42. }
clone this paste RAW Paste Data