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

Untitled

By: a guest on May 12th, 2011  |  syntax: None  |  size: 2.06 KB  |  views: 144  |  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. # Maintainer: Jason Melton <jason[dot]melton[at]gmail[dot]com>
  2. # Contributor: Slash <demodevil5[at]yahoo[dot]com>
  3.  
  4. pkgname=teamspeak3
  5. pkgver=3.0.0rc1
  6. _pkgver=3.0.0-rc1
  7.  
  8. pkgrel=1
  9. pkgdesc="TeamSpeak is software for quality voice communication via the Internet"
  10. url="http://www.teamspeak.com/"      
  11. arch=(i686 x86_64)
  12. license=('custom')
  13. depends=('qt')
  14. source=('teamspeak3.desktop'
  15.         'icon.xpm'
  16.         'teamspeak3.launcher')
  17. md5sums=('be58a8798c5d1b7e95a89f6a6482db3e'
  18.          '19f103384e4c1a0aafc8fed44de0c87b'
  19.          '170fcbb1b468ce4f3dba7ee3fb2a1c6d')
  20.  
  21. if [ "$CARCH" == "x86_64" ]; then
  22.   _TSARCH="amd64"
  23.   md5sums[3]="5121a02321ab56772b515fd183fe0980"
  24. else
  25.   _TSARCH="x86"
  26.   md5sums[3]="257e8e712c9b2ec262a7e552bd0f9298"
  27. fi
  28.  
  29. source[3]="http://ftp.4players.de/pub/hosted/ts3/releases/rc1/TeamSpeak3-Client-linux_${_TSARCH}-${_pkgver}.run"  
  30.  
  31.  
  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. }
clone this paste RAW Paste Data