1 # Maintainer: SpepS <dreamspepser at yahoo dot it>
6 pkgdesc="A Python module written in C to help digital signal processing script creation"
8 url="http://code.google.com/p/pyo/"
10 depends=('python2' 'portmidi' 'portaudio' 'liblo')
11 provides=('python2-pyo')
12 conflicts=('python2-pyo' 'python2-pyo-svn')
13 source=("http://pyo.googlecode.com/files/pyo_$pkgver-src.tar.bz2"
14 "http://pyo.googlecode.com/files/pyo_$pkgver-doc.tar.bz2")
15 md5sums=('95e22a5b24bf9489af0380bb1a37d2a0'
16 'be717c2fb1dbd6d42f1f623e632dcd12')
19 cd "$srcdir/pyo_$pkgver-src"
21 export PYTHON="python2"
23 # build both with and without double
24 python2 setup.py build --use-double --use-jack
25 python2 setup.py build --use-jack
29 cd "$srcdir/pyo_$pkgver-src"
31 # install both with and without double
32 python2 setup.py install {--use-double,} \
37 install -d "$pkgdir/usr/share/$pkgname"
38 cp -a examples "$pkgdir/usr/share/$pkgname"
41 install -d "$pkgdir/usr/share/doc/$pkgname"
42 cp -a ../pyo_$pkgver-doc/* "$pkgdir/usr/share/doc/$pkgname"
45 sed -i "s|env python|&2|g" `grep -rl "env python" "$pkgdir"`