blob: 7e036c53be10cd094143f0e8eb86da710cdbc490 (
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
|
## Maintainer: Thaodan <me@thaodan.de>
# Contributor: Joe Groocock <ts3-aur@frebib.net>
# Contributor: Sven-Hendrik Haase <sh@lutzhaase.com>
# Contributor: Slash <demodevil5[at]yahoo[dot]com>
# Contributor: J.W. Birdsong <jwbirdsongATmailDOTcom>
_pkgname=teamspeak3
pkgname=$_pkgname-wbundled
pkgver=3.6.2
pkgrel=1
pkgdesc="TeamSpeak is software for quality voice communication via the Internet"
url="http://www.teamspeak.com"
license=('custom')
depends=('quazip-qt5'
'libc++'
'qt5-svg'
'qt5-webengine'
'qt5-websockets')
optdepends=('libpulse')
provides=('teamspeak3')
conflicts=('teamspeak3')
arch=('x86_64')
# Stripping must be disabled to prevent patchelf'd binaries being corrupted.
# https://github.com/NixOS/patchelf/issues/10
makedepends=('patchelf')
options=(!strip)
source=('teamspeak3.desktop'
'teamspeak3.png'
'LICENSE'
"https://files.teamspeak-services.com/releases/client/${pkgver}/TeamSpeak3-Client-linux_amd64-${pkgver}.run")
sha512sums=('4cac0b7446dc3e728b232fdd6c6d75be1d2a5530635eab5918a4e7dd6a4a3fc21d6a75055da919b56e5cf849f4c5ba26ece56759a45bc4850eba3eb73853759d'
'af18ed36a3c8de90b60a7205ebf91a35d4b517f22f97d541c82debdb12697882469d9771fdf3fb8b081aeb74a01237f3afd4732daccf4b374dc6d39e7df5d444'
'd6d03f1bda86c90390ce0032e4d30e889977f80ff76ba1e5c443109e93cbedbee92c6fc2759f58d23659c15dba4f2ac718861571239ba117dcfe11f136f556dc'
'09448086ed3322ba5a37905c5b893fdf0860e5e80852da2713a2d3aceddc071ff6cd7bc213f494759b9448615a027130579da7292f59447b3c31553e151d35eb')
prepare() {
mkdir archive && cd archive
sh "${srcdir}"/TeamSpeak3-Client-linux_amd64-${pkgver}.run --tar -xf \
2>/dev/null
libquazip=$(cd /usr/lib;echo libquazip1-qt5.so*|cut -f2 -d " ")
# Remove bundled libraries..
rm -rf -- qt.conf *.so* \
platforms xcbglintegrations \
iconengines imageformats \
qtwebengine_locales \
sqldrivers \
ts3client_runscript.sh
# Fix libquazip1-qt5.so name
patchelf --replace-needed libquazip.so \
$libquazip ts3client_linux_amd64
patchelf --remove-rpath ts3client_linux_amd64
# Fix permissions
find . -type d -exec chmod 755 {} \;
find . -type f -exec chmod 644 {} \;
find \( -name \*.so -o \
-name package_inst \
-o -name ts3client\* \)\
-exec chmod 755 {} \;
}
package() {
install -d "${pkgdir}"/{usr/bin/,opt/teamspeak3}
cp -r archive/* ${pkgdir}/opt/teamspeak3/
install -D -m644 "${srcdir}"/teamspeak3.desktop "${pkgdir}"/usr/share/applications/teamspeak3.desktop
install -D -m644 "${srcdir}"/teamspeak3.png "${pkgdir}"/usr/share/pixmaps/teamspeak3.png
install -D -m644 "${srcdir}"/LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
ln -s /opt/teamspeak3/ts3client_linux_amd64 "${pkgdir}"/usr/bin/teamspeak3
}
# vim:set ts=2 sw=2 et:
|