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

teamviewer8 PKGBUILD

By: Trizen on Feb 17th, 2013  |  syntax: Bash  |  size: 1.47 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. # Contributor: Trizen <echo dHJpemVueEBnbWFpbC5jb20K | base64 -d>
  2.  
  3. pkgname=teamviewer
  4. pkgver=8.0.17147
  5. pkgrel=3
  6. pkgdesc="All-in-one solution for accessing PC's using the internet"
  7. arch=('i686' 'x86_64')
  8. url="http://www.teamviewer.com"
  9. license="custom"
  10. makedepends=('binutils')
  11. install=teamviewer.install
  12.  
  13. if [ $CARCH == 'i686' ]; then
  14.   source=("teamviewer_linux-${pkgver}.deb::http://www.teamviewer.com/download/teamviewer_linux.deb")
  15.   md5sums=('47790ed345a7b7970fc1f2ac50c97002')
  16.   depends=('libsm' 'libxext' 'freetype2' 'libxtst')
  17. elif [ $CARCH == 'x86_64' ]; then
  18.   source=("teamviewer_linux_x64-${pkgver}.deb::http://www.teamviewer.com/download/teamviewer_linux_x64.deb")
  19.   md5sums=('a252c5cbb8703eed113b51ce0fe66419')
  20.   depends=('lib32-libsm' 'lib32-libxext' 'lib32-glibc' 'lib32-freetype2' 'lib32-gcc-libs' \
  21.   'lib32-alsa-lib' 'lib32-libx11' 'lib32-libxtst' 'lib32-libxdamage' 'lib32-libxfixes' \
  22.   'lib32-libxcb' 'lib32-libxi' 'lib32-libxau' 'lib32-libxdmcp')
  23. fi
  24.  
  25.  
  26. package() {
  27.         cd $srcdir
  28.         [ $CARCH == "i686" ] && ar x ${pkgname}_linux-${pkgver}*
  29.         [ $CARCH == "x86_64" ] && ar x ${pkgname}_linux_x64-${pkgver}*
  30.  
  31.         tar xvf data.tar.gz
  32.  
  33.         cp -R opt $pkgdir
  34.         cp -R usr $pkgdir
  35.  
  36.         install -Dm644 ./opt/teamviewer8/License.txt $pkgdir/usr/share/licenses/${pkgname}/License.txt
  37.         install -Dm644 "./opt/teamviewer8/tv_bin/desktop/$pkgname-${pkgname}8.desktop" "$pkgdir/usr/share/applications/$pkgname.desktop"
  38. }
clone this paste RAW Paste Data