summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarlo Capocasa2017-06-18 18:49:04 +0200
committerCarlo Capocasa2017-06-18 18:49:33 +0200
commit9b7bdd968a04fb5988610b670929d503df912670 (patch)
tree332a1ccb1a83eef15d11d208a9c8fb81e6ff1540
downloadaur-9b7bdd968a04fb5988610b670929d503df912670.tar.gz
initial
-rw-r--r--.SRCINFO24
-rw-r--r--PKGBUILD46
2 files changed, 70 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..b8a528a96c5
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,24 @@
+pkgbase = python-pyo
+ pkgdesc = A Python module written in C to help digital signal processing script creation.
+ pkgver = 0.8.6
+ pkgrel = 1
+ url = http://ajaxsoundstudio.com/software/pyo/
+ arch = i686
+ arch = x86_64
+ license = GPL
+ depends = python
+ depends = portmidi
+ depends = portaudio
+ depends = liblo
+ depends = libsndfile
+ optdepends = wxpython: wxWidgets GUI
+ provides = pyo=0.8.6
+ provides = python-pyo=0.8.6
+ conflicts = pyo
+ source = http://ajaxsoundstudio.com/downloads/pyo_0.8.6-src.tar.bz2
+ source = http://ajaxsoundstudio.com/downloads/pyo_0.8.6-doc.tar.bz2
+ md5sums = 5b461f18b8c1cbeee8a8f24e9dc3bda1
+ md5sums = 5c9b9c3bebe884444f80e8e8f048d975
+
+pkgname = python-pyo
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..4a2142c95a5
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,46 @@
+# Maintainer: Carlo Capocasa <carlo@capocasa.net>
+# Contributor: amiguet <contact at matthieuamiguet dot ch>
+
+# Based on python2-pyo by amiguet
+
+pkgname=python-pyo
+pkgver=0.8.6
+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=('python' 'portmidi' 'portaudio' 'liblo' 'libsndfile')
+optdepends=('wxpython: wxWidgets GUI')
+provides=("pyo=$pkgver" "python-pyo=$pkgver")
+conflicts=('pyo')
+source=("http://ajaxsoundstudio.com/downloads/pyo_$pkgver-src.tar.bz2"
+ "http://ajaxsoundstudio.com/downloads/pyo_$pkgver-doc.tar.bz2")
+md5sums=('5b461f18b8c1cbeee8a8f24e9dc3bda1'
+ '5c9b9c3bebe884444f80e8e8f048d975')
+
+export PYTHON=python
+
+build() {
+ cd "$srcdir/pyo_$pkgver-src"
+
+ $PYTHON setup.py build --use-double --use-jack
+}
+
+package() {
+ cd "$srcdir/pyo_$pkgver-src"
+ $PYTHON setup.py install --use-double \
+ --use-jack \
+ --root="$pkgdir/"
+
+ # examples
+ install -d "$pkgdir/usr/share/$pkgname"
+ cp -a examples "$pkgdir/usr/share/$pkgname"
+
+ # docs
+ install -d "$pkgdir/usr/share/doc/$pkgname"
+ cp -a ../pyo_$pkgver-doc/* "$pkgdir/usr/share/doc/$pkgname"
+
+ # python2 fix
+ #sed -i "s|env python|&2|g" `grep -rl "env python" "$pkgdir"`
+}