blob: 7e8ebce770dd85960caa2a263dabcd779574fef7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
# Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>
# Contributor: Slash <demodevil5[at]yahoo[dot]com>
# Contributor: J.W. Birdsong <jwbirdsongATmailDOTcom>
pkgname=teamspeak3
pkgver=3.0.9.2
pkgrel=4
pkgdesc="TeamSpeak is software for quality voice communication via the Internet"
url="http://www.teamspeak.com/"
license=('custom')
depends=('qt4' 'libpulse')
arch=('i686' 'x86_64')
source=("http://teamspeak.gameserver.gamed.de/ts3/releases/${pkgver}/TeamSpeak3-Client-linux_x86-${pkgver}.run"
'teamspeak3.desktop'
'icon.xpm'
'teamspeak3.launcher')
md5sums=('b9ca1362f6f79644357c5558ee5ddfd2'
'98e987a42511f159fa2228f5e0bffed1'
'19f103384e4c1a0aafc8fed44de0c87b'
'170fcbb1b468ce4f3dba7ee3fb2a1c6d')
_TSARCH='x86'
if [ "$CARCH" == "x86_64" ]; then
source[0]="http://teamspeak.gameserver.gamed.de/ts3/releases/${pkgver}/TeamSpeak3-Client-linux_amd64-${pkgver}.run"
md5sums[0]='a15002b92e3cd4585dc9ce07818bf446'
_TSARCH='amd64'
fi
build() {
cd ${srcdir}
# Create Destination Directories
install -d ${pkgdir}/{usr/bin/,opt/}
# Make Installer Executable
chmod +x TeamSpeak3-Client-linux_${_TSARCH}-${pkgver}.run
# Run Installer
./TeamSpeak3-Client-linux_${_TSARCH}-${pkgver}.run --noexec --target teamspeak3
# Move Program Data to Package Directory
mv ${srcdir}/teamspeak3/ ${pkgdir}/opt/
# Remove Bundled Qt Libraries and Symlink system libraries to TS3 Directory
rm ${pkgdir}/opt/teamspeak3/libQt*
ln -s /usr/lib/libQtCore.so.4 ${pkgdir}/opt/teamspeak3/libQtCore.so.4
ln -s /usr/lib/libQtGui.so.4 ${pkgdir}/opt/teamspeak3/libQtGui.so.4
ln -s /usr/lib/libQtNetwork.so.4 ${pkgdir}/opt/teamspeak3/libQtNetwork.so.4
# Install Desktop File
install -D -m644 $srcdir/teamspeak3.desktop ${pkgdir}/usr/share/applications/teamspeak3.desktop
# Install Icon File
install -D -m644 $srcdir/icon.xpm ${pkgdir}/usr/share/pixmaps/teamspeak3.xpm
# Install Custom License
install -D -m644 ${pkgdir}/opt/teamspeak3/LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
# Install Client Launcher
install -D -m755 $srcdir/teamspeak3.launcher ${pkgdir}/usr/bin/teamspeak3
}
# vim:set ts=2 sw=2 et:
|