updated on Wed Jan 25 16:08:47 UTC 2012
[aur-mirror.git] / python2-pyo-svn / PKGBUILD
blob5cb890c434084aef91d15ea6bbc18ded45fa319e
1 # $Id$
2 # Maintainer: Arch Linux Pro Audio <dev@archaudio.org>
3 # Contributor: SpepS <dreamspepser at yahoo dot it>
4 # Contributor: Bernardo Barros <bernardobarros@gmail.com>
6 # In testing because it isrequired by soundgrain, 
7 # and it has (as the time of writing) just bugfixes in comparison to 0.02
9 pkgname=python2-pyo-svn
10 pkgver=541
11 pkgrel=1
12 pkgdesc="A Python module written in C to help digital signal processing script creation"
13 arch=('i686' 'x86_64')
14 url="http://code.google.com/p/pyo/"
15 license=('GPL')
16 provides=('python-pyo' 'pyo' 'python2-pyo')
17 conflicts=('python-pyo' 'pyo' 'python-pyo-svn' 'pyo-svn')
18 depends=('python2' 'portmidi' 'portaudio' 'liblo' 'libsndfile')
20 _svntrunk="http://pyo.googlecode.com/svn/trunk/"
21 _svnmod="pyo"
23 build() {
24   cd "$srcdir"
26   if [ -d $_svnmod/.svn ]; then
27     (cd $_svnmod && svn up -r $pkgver)
28   else
29     svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
30   fi
32   msg "SVN checkout done or server timeout"
33   msg "Starting make..."
35   rm -rf "$srcdir/$_svnmod-build"
36   cp -r "$srcdir/$_svnmod" "$srcdir/$_svnmod-build"
38   cd "$srcdir/$_svnmod-build"
40   export PYTHON="python2"
41   python2 setup.py --use-jack build
43   python2 setup.py install --use-jack --root="$pkgdir/"
45 #   cd "$srcdir/$_svnmod-build/doc"
46 #   install -d $pkgdir/usr/share/doc/pyo
47 #   cp -R * $pkgdir/usr/share/doc/pyo