updated on Mon Jan 16 00:01:41 UTC 2012
[aur-mirror.git] / teamspeak3rc2 / PKGBUILD
blob1b9fc907e6299ea2ae5566e9cdb66d6445054a51
1 # Contributor: Slash <demodevil5[at]yahoo[dot]com>
2 # Maintainer: J.W. Birdsong  <jwbirdsongATmailDOTcom>
4 pkgname=teamspeak3rc2
5 pkgver=3.0.1
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" 
15 'teamspeak3.desktop' 'icon.xpm' 'teamspeak3.launcher')
18     md5sums=('bc66e7328a6820970305fb2cf18854eb'
19            'be58a8798c5d1b7e95a89f6a6482db3e'
20            '19f103384e4c1a0aafc8fed44de0c87b'
21            '170fcbb1b468ce4f3dba7ee3fb2a1c6d')
23     _TSARCH='x86'
25     if [ "$CARCH" == "x86_64" ]; then
26     
27     source[0]="http://teamspeak.gameserver.gamed.de/ts3/releases/${pkgver}/TeamSpeak3-Client-linux_amd64-${pkgver}.run"
28       md5sums[0]='a6d5d707b0764ef9fbc1b6d8602aa413'
29       _TSARCH='amd64'
30     fi
31   build() {
32     cd ${srcdir}
34     # Create Destination Directories
35     install -d ${pkgdir}/{usr/bin/,opt/}
37     # Make Installer Executable
38     chmod +x TeamSpeak3-Client-linux_${_TSARCH}-${pkgver}.run
40     # Run Installer
41     ./TeamSpeak3-Client-linux_${_TSARCH}-${pkgver}.run --noexec --target teamspeak3
43     # Move Program Data to Package Directory
44     mv ${srcdir}/teamspeak3/ ${pkgdir}/opt/
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
52     # Install Desktop File
53     install -D -m644 $srcdir/teamspeak3.desktop \
54         ${pkgdir}/usr/share/applications/teamspeak3.desktop
56     # Install Icon File
57     install -D -m644 $srcdir/icon.xpm \
58         ${pkgdir}/usr/share/pixmaps/teamspeak3.xpm
60     # Install Custom License
61     install -D -m644 ${pkgdir}/opt/teamspeak3/LICENSE \
62         ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
64     # Install Client Launcher
65     install -D -m755 $srcdir/teamspeak3.launcher \
66         ${pkgdir}/usr/bin/teamspeak3
68 # vim:set ts=2 sw=2 et: