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

PKGBUILD - teamspeak3

By: a guest on Aug 10th, 2011  |  syntax: Bash  |  size: 2.12 KB  |  views: 212  |  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: Slash <demodevil5[at]yahoo[dot]com>
  2. # Maintainer: J.W. Birdsong  <jwbirdsongATmailDOTcom>
  3.  
  4. pkgname=teamspeak3
  5. pkgver=3.0.0
  6. _pver=3.0.0
  7. pkgrel=1
  8. pkgdesc="TeamSpeak is software for quality voice communication via the Internet"
  9. url="http://www.teamspeak.com/"
  10. license=('custom')
  11. depends=('qt')
  12. optdepends=('libpulse':"obvious reasons")
  13. arch=('i686' 'x86_64')
  14. if [ "$CARCH" == "x86_64" ]; then
  15. _TSARCH='amd64'
  16. _TSMD5='62e1697b1aa73724133242fd8ab8ed50'
  17. else
  18. _TSARCH='x86'
  19. _TSMD5='2aae1eec66e94c92fbddfd291805c45c'
  20. fi
  21. _TSRUNFILE="TeamSpeak3-Client-linux_${_TSARCH}-${_pver}.run"
  22. source=("http://teamspeak.gameserver.gamed.de/ts3/releases/${_pver}/${_TSRUNFILE}"
  23. \
  24. 'teamspeak3.desktop' 'icon.xpm' 'teamspeak3.launcher')
  25.  
  26. md5sums=($_TSMD5
  27.          'be58a8798c5d1b7e95a89f6a6482db3e'
  28.          '19f103384e4c1a0aafc8fed44de0c87b'
  29.          '170fcbb1b468ce4f3dba7ee3fb2a1c6d')
  30.  
  31. build() {
  32.     cd ${srcdir}
  33.  
  34.     # Create Destination Directories
  35.     install -d ${pkgdir}/{usr/bin/,opt/}
  36.  
  37.     # Make Installer Executable
  38.     chmod +x ${_TSRUNFILE}
  39.  
  40.     # Run Installer
  41.     ./${_TSRUNFILE} --noexec --target teamspeak3
  42.  
  43.     # Move Program Data to Package Directory
  44.     mv ${srcdir}/teamspeak3/ ${pkgdir}/opt/
  45.  
  46.     # Remove Bundled Qt Libraries and Symlink system libraries to TS3 Directory
  47.     rm ${pkgdir}/opt/teamspeak3/libQt*
  48.     ln -s /usr/lib/libQtCore.so.4    ${pkgdir}/opt/teamspeak3/libQtCore.so.4
  49.     ln -s /usr/lib/libQtGui.so.4     ${pkgdir}/opt/teamspeak3/libQtGui.so.4
  50.     ln -s /usr/lib/libQtNetwork.so.4 ${pkgdir}/opt/teamspeak3/libQtNetwork.so.4
  51.  
  52.     # Install Desktop File
  53.     install -D -m644 $srcdir/teamspeak3.desktop \
  54.         ${pkgdir}/usr/share/applications/teamspeak3.desktop
  55.  
  56.     # Install Icon File
  57.     install -D -m644 $srcdir/icon.xpm \
  58.         ${pkgdir}/usr/share/pixmaps/teamspeak3.xpm
  59.  
  60.     # Install Custom License
  61.     install -D -m644 ${pkgdir}/opt/teamspeak3/LICENSE \
  62.         ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
  63.  
  64.     # Install Client Launcher
  65.     install -D -m755 $srcdir/teamspeak3.launcher \
  66.         ${pkgdir}/usr/bin/teamspeak3
  67. }
  68. # vim:set ts=2 sw=2 et: