Advertisement
masgatot

Untitled

Jun 2nd, 2015
267
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.81 KB | None | 0 0
  1. # Maintainer: Yakir Sitbon <kingyes1 at gmail dot com>
  2. # Contributor: Alucryd <alucryd at gmail dot com>
  3. # Contributor: Stas S <whats_up at tut dot by>
  4. # Contributor: Hilinus <itahilinus at hotmail dot it>
  5.  
  6. pkgname=teamviewer
  7. pkgver=10.0.41499
  8. pkgrel=1
  9. pkgdesc="All-In-One Software for Remote Support and Online Meetings"
  10. arch=('i686' 'x86_64')
  11. url="http://www.teamviewer.com"
  12. license=('custom')
  13. depends=('bash')
  14. options=('!strip')
  15. install=${pkgname}.install
  16.  
  17. if [[ $CARCH == 'i686' ]]; then
  18. source=("teamviewer_linux-${pkgver}.deb::http://download.teamviewer.com/download/teamviewer_i386.deb")
  19. md5sums=('5aa2ce43cd9aea23ff3b64bfd498fcf3')
  20. depends+=('alsa-lib' 'gcc-libs' 'libxdamage' 'libxtst' 'zlib' 'freetype2' 'libxrandr' 'libice' 'libsm')
  21. elif [[ $CARCH == 'x86_64' ]]; then
  22. source=("teamviewer_linux_x64-${pkgver}.deb::http://download.teamviewer.com/download/teamviewer_amd64.deb")
  23. md5sums=('fdbc27543e0955e217097810a7983507')
  24. depends+=('lib32-gcc-libs' 'lib32-alsa-lib' 'lib32-libxtst' 'lib32-libxdamage' 'lib32-zlib' 'lib32-freetype2' 'lib32-libxrandr' 'lib32-libice' 'lib32-libsm' 'lib32-libxinerama')
  25. fi
  26.  
  27. build() {
  28. cd "${srcdir}"
  29. tar -xf data.tar.gz
  30. }
  31.  
  32. package() {
  33. cd "${srcdir}"
  34.  
  35. # Install
  36. cp -dr --no-preserve=ownership {etc,opt,usr,var} "${pkgdir}"/
  37.  
  38. # Additional files
  39. rm "${pkgdir}"/opt/teamviewer/tv_bin/xdg-utils/xdg-email
  40. install -dm 755 "${pkgdir}"/usr/{lib/systemd/system,share/applications,share/licenses/teamviewer}
  41. install -m 644 "${pkgdir}"/opt/teamviewer/tv_bin/script/teamviewerd.service "${pkgdir}"/usr/lib/systemd/system/teamviewerd.service
  42. ln -s /opt/teamviewer/tv_bin/desktop/teamviewer-teamviewer10.desktop "${pkgdir}"/usr/share/applications/teamviewer.desktop
  43. ln -s /opt/teamviewer/License.txt "${pkgdir}"/usr/share/licenses/teamviewer/LICENSE
  44. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement