Pastebin launched a little side project called HostCabi.net, check it out ;-)Don't like ads? PRO users don't see any ads ;-)
Guest

xelados

By: a guest on Jun 4th, 2010  |  syntax: None  |  size: 1.79 KB  |  hits: 131  |  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.  
  3. pkgname=teamspeak3
  4. pkgver=beta21
  5. pkgrel=1
  6. pkgdesc="TeamSpeak is software for quality voice communication via the Internet"
  7. url="http://www.teamspeak.com/"
  8. license=('custom')
  9. depends=('qt')
  10. arch=('i686' 'x86_64')
  11. source=("http://ftp.4players.de/pub/hosted/ts3/releases/beta-${pkgver:4:2}/TeamSpeak3-Client-linux_x86-3.0.0-${pkgver}.run" \
  12. 'teamspeak3.desktop' 'icon.xpm' 'teamspeak3.launcher')
  13. md5sums=('bdc6e124e18da6bcf01ba969f423984c'
  14.          'be58a8798c5d1b7e95a89f6a6482db3e'
  15.          '19f103384e4c1a0aafc8fed44de0c87b'
  16.          '170fcbb1b468ce4f3dba7ee3fb2a1c6d')
  17. _TSARCH='x86'
  18.  
  19. if [ "$CARCH" == "x86_64" ]; then
  20.     source[0]="http://ftp.4players.de/pub/hosted/ts3/releases/beta-${pkgver:4:2}/TeamSpeak3-Client-linux_amd64-3.0.0-${pkgver}.run"
  21.     md5sums[0]='46c6d14eb29a949c329326dbb3111241'
  22.     _TSARCH='amd64'
  23. fi
  24.  
  25. build() {
  26.     cd $srcdir
  27.  
  28.     # Create Destination Directories
  29.     install -d $pkgdir/{usr/bin/,opt/}
  30.  
  31.     # Make Installer Executable
  32.     chmod +x TeamSpeak3-Client-linux_${_TSARCH}-3.0.0-${pkgver}.run
  33.  
  34.     # Run Installer
  35.     ./TeamSpeak3-Client-linux_${_TSARCH}-3.0.0-${pkgver}.run --noexec --target teamspeak3
  36.  
  37.     # Move Program Data to Package Directory
  38.     mv $srcdir/teamspeak3/ $pkgdir/opt/
  39.  
  40.     # Install Desktop File
  41.     install -D -m644 $srcdir/teamspeak3.desktop \
  42.         $pkgdir/usr/share/applications/teamspeak3.desktop
  43.  
  44.     # Install Icon File
  45.     install -D -m644 $srcdir/icon.xpm \
  46.         $pkgdir/usr/share/pixmaps/teamspeak3.xpm
  47.  
  48.     # Install Custom License
  49.     install -D -m644 $pkgdir/opt/teamspeak3/LICENSE \
  50.         $pkgdir/usr/share/licenses/$pkgname/LICENSE
  51.  
  52.     # Install Client Launcher
  53.     install -D -m755 $srcdir/teamspeak3.launcher \
  54.         $pkgdir/usr/bin/teamspeak3
  55. }