updated on Sat Jan 14 00:11:12 UTC 2012
[aur-mirror.git] / python2-pyo / PKGBUILD
blob1f42b25d8da26b4e4d48ea81fe9875065c3a829e
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 pkgname=python2-pyo
7 pkgver=0.5.0
8 pkgrel=1
9 pkgdesc="A Python module written in C to help digital signal processing script creation"
10 arch=('i686' 'x86_64')
11 url="http://code.google.com/p/pyo/"
12 license=('GPL')
13 depends=('python2' 'portmidi' 'portaudio' 'liblo')
14 provides=('python-pyo')
15 conflicts=('python-pyo' 'python-pyo-svn' 'python2-pyo-svn')
16 source=("http://pyo.googlecode.com/files/pyo_$pkgver-src.tar.bz2"
17         "http://pyo.googlecode.com/files/pyo_$pkgver-doc.tar.bz2")
18 md5sums=('2d10de2493b27c4761a832281360b99f'
19          '57afd5acca499b5b4e2a17ff35052929')
21 build() {
22   cd "$srcdir/pyo_$pkgver-src"
24   export PYTHON="python2"
26   # build both with and without double
27   python2 setup.py build --use-double --use-jack
28   python2 setup.py build --use-jack
31 package() {
32   cd "$srcdir/pyo_$pkgver-src"
34   # install both with and without double
35   python2 setup.py install {--use-double,} \
36                            --use-jack \
37                            --root="$pkgdir/"
39   # examples
40   install -d "$pkgdir/usr/share/$pkgname"
41   cp -a examples "$pkgdir/usr/share/$pkgname"
43   # docs
44   install -d "$pkgdir/usr/share/doc/$pkgname"
45   cp -a ../pyo_$pkgver-doc/* "$pkgdir/usr/share/doc/$pkgname"