1 # Contributor: Berkus <berkus@madfire.net>
2 # Contributor: Robert Emil Berge <filoktetes@linuxophic.org>
3 # Contributor: Sebastien Piccand <sebcactus gmail com>
4 # Contributor: SpepS <dreamspepser at yahoo dot it>
5 # Maintainer: Gimmeapill <gimmeapill at gmail dot com>
10 pkgdesc="A Buzz-like tracker, fork of aldrin"
11 arch=('i686' 'x86_64')
13 url="http://sites.google.com/site/neilsequencer/"
14 makedepends=('mercurial' 'scons' 'boost' 'docbook-xsl' 'xmlto')
15 depends=('hicolor-icon-theme' 'pygtk' 'python2-numpy' 'fftw' 'liblo' 'python2' 'libmad' 'alsa-lib' 'libsamplerate')
16 optdepends=('ladspa: ladspa plugins support'
17 'dssi: dssi plugins support'
18 'jack: jack sound server support')
20 conflicts=('aldrin' 'armstrong' 'libneil-hg')
21 install="$pkgname.install"
23 _hgroot="http://bitbucket.org/bucket_brigade"
29 msg "Connecting to Mercurial server...."
30 if [ -d $_hgrepo ]; then
33 msg "The local files are updated."
35 hg clone $_hgroot/$_hgrepo $_hgrepo
38 msg "Mercurial clone done or server timeout"
39 msg "Starting make..."
41 rm -rf "$srcdir/$_hgrepo-build"
42 cp -r "$srcdir/$_hgrepo" "$srcdir/$_hgrepo-build"
43 cd "$srcdir/$_hgrepo-build"
46 export PYTHON="python2"
48 -e "s_\(env python\).*_\12_" \
49 -e "s_\(bin/python\).*_\12_" \
50 -i `grep -rlE "(env python|bin/python)" .`
51 sed -i "s_'python_&2_" SConstruct
52 sed -i "s_'python_&2_" $srcdir/$_hgrepo-build/libneil/SConscript
54 # GCC 4.6 fix (shouldn't be necessary anymore)
55 # sed -e "s|'python |'python2 |g" \
56 # -e "s|--rpath|-Wl,-rpath=|" \
57 # -i libneil/SConscript
60 scons configure PREFIX=/usr DESTDIR="$pkgdir/"
67 cd "$srcdir/$_hgrepo-build"