blob: 041c5c5fb760a484913ce21137e4615099978483 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
# Maintainer: amiguet <contact at matthieuamiguet dot ch>
# Contributor: speps <spepser at aur dot archlinux dot org>
pkgname=python2-pyo
pkgver=0.9.1
pkgrel=1
pkgdesc="A Python module written in C to help digital signal processing script creation."
arch=('i686' 'x86_64')
url="http://ajaxsoundstudio.com/software/pyo/"
license=('GPL')
depends=('python2' 'portmidi' 'portaudio' 'liblo')
optdepends=('wxpython: wxWidgets GUI')
provides=("pyo=$pkgver" "python-pyo=$pkgver")
conflicts=('pyo' 'python-pyo')
source=("http://ajaxsoundstudio.com/downloads/pyo_$pkgver-src.tar.bz2"
"http://ajaxsoundstudio.com/downloads/pyo_$pkgver-doc.tar.bz2")
md5sums=('f3ba1c4b9330bca4a241a4caabf42a67'
'0ee8263a533e9ba5619cb72397d5d7ba')
build() {
cd "$srcdir/pyo_$pkgver-src"
export PYTHON=python2
python2 setup.py build --use-double --use-jack
}
package() {
cd "$srcdir/pyo_$pkgver-src"
python2 setup.py install --use-double \
--use-jack \
--root="$pkgdir/"
# examples
install -d "$pkgdir/usr/share/pyo"
cp -a examples "$pkgdir/usr/share/pyo"
# docs
install -d "$pkgdir/usr/share/doc/pyo"
cp -a ../pyo_$pkgver-doc/* "$pkgdir/usr/share/doc/pyo"
# python2 fix
sed -i "s|env python|&2|g" `grep -rl "env python" "$pkgdir"`
}
|