updated on Sat Jan 14 12:12:45 UTC 2012
[aur-mirror.git] / murmur-git / PKGBUILD
blob2c46c10d2004fc9cffebb0b0578a8f0ceb881c79
1 # Contributor: Otto Allmendinger <otto.allmendinger@googlemail.com>
3 _gitroot="git://mumble.git.sf.net/gitroot/mumble/mumble"
4 _gitname="mumble"
6 pkgname="murmur-git"
7 pkgver=20091218
8 pkgrel=1
9 pkgdesc="The voice chat application server for Mumble (git version)"
10 arch=("i686" "x86_64")
11 url="http://mumble.sourceforge.net"
12 makedepends=("git" "boost")
13 depends=("avahi" "lsb-release" "protobuf" "qt>=4.4.0")
14 conflicts=("murmur" "murmur-static" "murmur-ice")
15 license=('GPL')
16 backup=(etc/murmur.ini
17         etc/logrotate.d/murmur
18         etc/conf.d/murmur)
20 install="murmur.install"
21 source=("murmur.rc.d" "murmur.conf.d" "murmur.logrotate.d")
23 md5sums=('b99061be67c54bf0bb4a061fd1280281'
24          '11c1cc875e8021739ec2087252cf0533'
25          'c56726cb267ead68f37f35c28e36e6fa')
27 build() {
28     cd $srcdir
30     msg "Connecting to GIT Server..."
32     if [ -d $_gitname ]; then
33         cd $_gitname && git pull origin || return 1
34         msg "The local files are updated"
35     else
36         git clone $_gitroot || return 1
37     fi
39     [ -e "$srcdir/$_gitname-build" ] && rm -rf "$srcdir/$_gitname-build"
41     git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build" || return 1
43     cd "$srcdir/$_gitname-build"
45     msg "GIT checkout done"
47     # build
49     msg "Starting make..."
51     qmake main.pro CONFIG+="no-client no-ice"
53     make || return 1
55         sed -e "s|database=|database=/var/lib/murmur/murmur.sqlite|" \
56         -e "s|dbus=session|#dbus=session|" \
57         -e "s|#logfile=murmur.log|logfile=/var/log/murmur/murmur.log|" \
58         -e "s|#pidfile=|pidfile=/var/run/murmur/murmur.pid|" \
59         -e "s|#uname=|uname=murmur|" \
60         -i scripts/murmur.ini || return 1
62     # install
64         install -dm755 $pkgdir/var/lib/murmur
65         install -dm755 $pkgdir/var/log/murmur
66         install -dm755 $pkgdir/var/run/murmur
67         install -Dm755 release/murmurd $pkgdir/usr/sbin/murmurd
68         install -Dm644 scripts/murmur.ini $pkgdir/etc/murmur.ini
69         install -Dm644 $startdir/murmur.logrotate.d $pkgdir/etc/logrotate.d/murmur
70         install -Dm755 $startdir/murmur.rc.d $pkgdir/etc/rc.d/murmur
71         install -Dm644 $startdir/murmur.conf.d $pkgdir/etc/conf.d/murmur
72         install -Dm644 README $pkgdir/usr/share/doc/murmur/README
73     install -Dm644 man/murmurd.1 $pkgdir/usr/share/man/man1/murmurd.1