2 # Maintainer: Radioactiveman <thomas-lange2@gmx.de>
3 # Contributor: Sven-Hendrik Haase <sh@lutzhaase.com>
4 # Contributor: Lauri Niskanen <ape@ape3000.com>
6 # If you want support for your G15 Keyboard, please add 'g15daemon'
7 # to the depends and delete "no-g15" in the configure line below
12 pkgdesc="A voice chat application similar to TeamSpeak"
13 url="http://mumble.sourceforge.net/"
14 arch=('i686' 'x86_64')
16 depends=('qt' 'speex' 'lsb-release' 'libxi' 'avahi' 'libsndfile' 'protobuf' 'libpulse' 'celt')
17 makedepends=('git' 'boost' 'mesa')
18 # optdepends=('portaudio: for portaudio back-end' 'g15daemon: G15 Keyboard support')
22 install=mumble.install
24 _gitroot="git://github.com/mumble-voip/mumble.git"
29 msg "Connecting to GIT server..."
31 if [[ -d ${_gitname} ]]; then
32 cd ${_gitname} && git pull origin && cd ..
33 msg "The local files are updated."
38 msg "GIT checkout done or server timeout"
39 msg "Starting make..."
41 rm -rf ${_gitname}-build
42 git clone ${_gitname}{,-build}
46 /usr/bin/qmake main.pro \
47 CONFIG+="no-bundled-celt no-bundled-speex no-speechd no-g15 no-xevie no-server \
48 no-embed-qt-translations no-update packaged" \
49 DEFINES+="PLUGIN_PATH=/usr/lib/mumble"
50 # Build fix, thanks IncredibleLaser
51 sed -i "s/CELT_SET_VBR_RATE/CELT_SET_BITRATE/g" src/mumble/AudioInput.cpp
56 cd ${srcdir}/${_gitname}-build
59 install -m755 -D ./release/mumble $pkgdir/usr/bin/mumble
60 install -m755 -D ./scripts/mumble-overlay $pkgdir/usr/bin/mumble-overlay
63 install -m755 -D ./release/libmumble.so.1.2.4 $pkgdir/usr/lib/mumble/libmumble.so.1.2.4
64 ln -s libmumble.so.1.2.4 $pkgdir/usr/lib/mumble/libmumble.so
65 ln -s libmumble.so.1.2.4 $pkgdir/usr/lib/mumble/libmumble.so.1
66 ln -s libmumble.so.1.2.4 $pkgdir/usr/lib/mumble/libmumble.so.1.2
67 install -m755 -D ./release/plugins/liblink.so $pkgdir/usr/lib/mumble/liblink.so
68 install -m755 -D ./release/plugins/libmanual.so $pkgdir/usr/lib/mumble/libmanual.so
71 install -m644 -D ./scripts/mumble.desktop $pkgdir/usr/share/applications/mumble.desktop
72 install -m755 -d $pkgdir/usr/share/man/man1
73 install -m644 -D ./man/mum* $pkgdir/usr/share/man/man1/
74 install -m644 -D ./icons/mumble.svg $pkgdir/usr/share/icons/hicolor/scalable/apps/mumble.svg