updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / neil-hg / PKGBUILD
blob465f6809346459cdc23994de71ef783f23552714
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=neil-hg
8 pkgver=1694
9 pkgrel=1
10 pkgdesc="A Buzz-like tracker, fork of aldrin"
11 arch=('i686' 'x86_64')
12 license=('GPL2')
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')
19 provides=('neil')
20 conflicts=('aldrin' 'armstrong' 'libneil-hg')
21 install="$pkgname.install"
23 _hgroot="http://bitbucket.org/bucket_brigade"
24 _hgrepo=neil
26 build() {
28   cd "$srcdir"
29   msg "Connecting to Mercurial server...."
30   if [ -d $_hgrepo ]; then
31     cd $_hgrepo
32     hg pull -u
33     msg "The local files are updated."
34   else
35     hg clone $_hgroot/$_hgrepo $_hgrepo
36   fi
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"
45   # Python2 fixes
46   export PYTHON="python2"
47   sed \
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
53   
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
58   
59   # Build
60   scons configure PREFIX=/usr DESTDIR="$pkgdir/"
61   scons
65 package() {
67   cd "$srcdir/$_hgrepo-build"
68   scons install