updated on Wed Jan 11 04:01:16 UTC 2012
[aur-mirror.git] / wahjam-git / PKGBUILD
blobf3b8a0049ed5a36993e0978aa9860f53b365ba6a
1 # Maintainer: Manuel Bärenz <manuel@enigmage.de>
3 pkgname=wahjam-git
4 pkgver=20111218
5 pkgrel=2
6 pkgdesc="A program to allow people to make real music together via the Internet; client and server; community developed version of ninjam from git"
7 arch=('i686' 'x86_64')
8 url="http://wahjam.org/"
9 depends=('ncurses' 'alsa-lib' 'libvorbis')
10 makedepends=('git' 'gcc')
11 license=('GPL')
12 provides=('wahjam-git')
13 replaces=('ninjam_client' 'ninjam_server')
15 _gitroot="https://github.com/wahjam/wahjam.git"
16 _gitname="wahjam"
18 build() {
19   cd $srcdir
20   msg "Connecting to the GIT server...."
21   
22   if [[ -d $srcdir/$_gitname ]] ; then
23     cd $_gitname
24     git pull origin
25     msg "The local files are updated."
26   else
27     git clone $_gitroot $_gitname
28   fi
29   
30   msg "GIT checkout done"
31   msg "Starting make..."
32   
33   cd $srcdir/$_gitname/ninjam/cursesclient
34   make || return 1
35   install -D -m755 cwahjam $pkgdir/usr/bin/cwahjam
37   cd $srcdir/$_gitname/ninjam/server
38   make || return 1
39   install -D -m755 wahjamsrv $pkgdir/usr/bin/wahjamsrv