updated on Sat Jan 21 20:03:50 UTC 2012
[aur-mirror.git] / libneil-hg / PKGBUILD
blob5985ed15427cdc203908cbb5db5b0bc6d3370c2e
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>
7 pkgname=libneil-hg
8 pkgver=555
9 pkgrel=1
10 pkgdesc="A Buzz-like tracker library, fork of armstrong"
11 arch=('i686' 'x86_64')
12 license=('GPL2')
13 url="http://sites.google.com/site/neilsequencer/"
14 makedepends=('boost' 'mercurial' 'scons')
15 depends=('fftw' 'liblo' 'python2' 'libmad' 'alsa-lib' 'libsamplerate')
16 optdepends=('ladspa: ladspa plugins support'
17                         'dssi: dssi plugins support' 
18                         'jack: jack sound server support')
19 provides=('libneil')
20 conflicts=('aldrin' 'armstrong')
22 _hgroot="http://bitbucket.org/bucket_brigade"
23 _hgrepo=libneil
25 build() {
27   cd "$srcdir"
28   msg "Connecting to Mercurial server...."
29   if [ -d $_hgrepo ]; then
30     cd $_hgrepo
31     hg pull -u
32     msg "The local files are updated."
33   else
34     hg clone $_hgroot/$_hgrepo $_hgrepo
35   fi
37   msg "Mercurial clone done or server timeout"
38   msg "Starting make..."
40   rm -rf "$srcdir/$_hgrepo-build"
41   cp -r "$srcdir/$_hgrepo" "$srcdir/$_hgrepo-build"
42   cd "$srcdir/$_hgrepo-build"
44   # Python2 fixes
45   export PYTHON="python2"
46   sed \
47         -e "s_\(env python\).*_\12_" \
48         -e "s_\(bin/python\).*_\12_" \
49         -i `grep -rlE "(env python|bin/python)" .`
50   sed -i "s_'python_&2_" SConstruct
52   # Build
54   scons configure PREFIX=/usr DESTDIR="$pkgdir/"
55   scons
58 package() {
60   cd "$srcdir/$_hgrepo-build"
62   scons install