updated on Wed Jan 11 04:01:16 UTC 2012
[aur-mirror.git] / mumble-git / PKGBUILD
blobe941bc2fe4115493abd1bf2fb51177893b8651c3
1 # $Id$
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
9 pkgname=mumble-git
10 pkgver=20111103
11 pkgrel=1
12 pkgdesc="A voice chat application similar to TeamSpeak"
13 url="http://mumble.sourceforge.net/"
14 arch=('i686' 'x86_64')
15 license=('GPL')
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')
19 options=('!libtool')
20 conflicts=('mumble')
21 provides=('mumble')
22 install=mumble.install
24 _gitroot="git://github.com/mumble-voip/mumble.git"
25 _gitname="mumble"
27 build() {
28     cd ${srcdir}
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."
34     else
35         git clone ${_gitroot}
36     fi
38     msg "GIT checkout done or server timeout"
39     msg "Starting make..."
41     rm -rf ${_gitname}-build
42     git clone ${_gitname}{,-build}
43     cd ${_gitname}-build
45     # Building mumble
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
52     make release
55 package() {
56     cd ${srcdir}/${_gitname}-build
58     # bin stuff
59     install -m755 -D ./release/mumble $pkgdir/usr/bin/mumble
60     install -m755 -D ./scripts/mumble-overlay $pkgdir/usr/bin/mumble-overlay
62     # lib stuff
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
70     # other stuff
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