updated on Tue Jan 10 12:02:00 UTC 2012
[aur-mirror.git] / jack-audio-connection-kit-svn / PKGBUILD
bloba9ef3ebded9e5d68ab1cb1d5098776700773840b
1 pkgname=jack-audio-connection-kit-svn
2 pkgver=4094
3 pkgrel=1
4 pkgdesc="A low-latency audio server for multiprocessor machines"
5 arch=('i686' 'x86_64')
6 license=('GPL2' 'LGPL2')
7 depends=('dbus-core' 'python2' 'libsamplerate' 'celt' 'ffado')
8 makedepends=('python-waf')
9 provides=('jack-audio-connection-kit')
10 conflicts=('jack-audio-connection-kit-mp' 'jack')
11 url="http://www.grame.fr/~letz/jackdmp.html"
12 backup=('etc/conf.d/jack-audio-connection-kit')
13 options=('!libtool')
14 source=(jack-audio-connection-kit
15 jack-audio-connection-kit1
16 jack.sh)
17 md5sums=('5504df77df2ac9680f990c699c9210ae'
18 '112bbf9583793c3e7480e1da91150a14'
19 'd784fa8b6d98d27699781bd9a7cf19f0')
20 _svnmod="jackmp"
21 _svntrunk="http://subversion.jackaudio.org/jack/jack2/trunk/"
23 build() {
25 cd $startdir/src/
26         mkdir -p ~/.subversion; touch ~/.subversion/servers
27         msg "Connecting to $_svnmod.sf.net SVN server..."
29 #       svn co $_svntrunk $_svnmod
31   if [ -d $_svnmod ] ; then
32     (cd $_svnmod && svn update)
33     msg "The local files are updated."
34   else
35     svn co ${_svntrunk} ${_svnmod}
36   fi
39         msg "SVN checkout done or server timeout"
40         msg "Starting make..."
42         #mkdir -p $startdir/pkg/usr/
45 msg ${startdir} startdir
46   cd ${startdir}/src/$_svnmod/jackmp
47   python2 waf configure --classic --profile  --enable-pkg-config-dbus-service-dir --alsa --firewire --prefix=/usr || return 1
48   python2 waf build || return 1
49   python2 waf install --destdir=${startdir}/pkg
50   mkdir -p $startdir/pkg/etc/rc.d
51   mkdir -p $startdir/pkg/etc/conf.d
52   mkdir -p $startdir/pkg/etc/profile.d
53   cp $startdir/src/jack.sh  $startdir/pkg/etc/profile.d
54   cp $startdir/src/jack-audio-connection-kit  $startdir/pkg/etc/rc.d
55   cp $startdir/src/jack-audio-connection-kit1  $startdir/pkg/etc/conf.d/jack-audio-connection-kit
56  }