updated on Tue Jan 17 12:00:36 UTC 2012
[aur-mirror.git] / python-pyo / PKGBUILD
blobb4743e41ccefb4b39f3417abb04845bf0367fc2e
1 # Maintainer: SpepS <dreamspepser at yahoo dot it>
3 pkgname=python-pyo
4 pkgver=0.6.0
5 pkgrel=1
6 pkgdesc="A Python module written in C to help digital signal processing script creation"
7 arch=('i686' 'x86_64')
8 url="http://code.google.com/p/pyo/"
9 license=('GPL')
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')
18 build() {
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
28 package() {
29   cd "$srcdir/pyo_$pkgver-src"
31   # install both with and without double
32   python2 setup.py install {--use-double,} \
33                             --use-jack \
34                             --root="$pkgdir/"
36   # examples
37   install -d "$pkgdir/usr/share/$pkgname"
38   cp -a examples "$pkgdir/usr/share/$pkgname"
40   # docs
41   install -d "$pkgdir/usr/share/doc/$pkgname"
42   cp -a ../pyo_$pkgver-doc/* "$pkgdir/usr/share/doc/$pkgname"
44   # python2 fix
45   sed -i "s|env python|&2|g" `grep -rl "env python" "$pkgdir"`