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

PKGBUILD - teamspeak 3.0.3-1

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