updated on Tue Jan 17 08:05:08 UTC 2012
[aur-mirror.git] / pyjack / PKGBUILD
blobc13e4fceba5e568f7513010a649606868c355ddb
1 # Maintainer: masutu <masutu dot arch at gmail dot com>
2 # Contributor: masutu <masutu dot arch at gmail dot com>
4 pkgname=pyjack
5 pkgver=0.5.2
6 pkgrel=4
7 pkgdesc="Jack audio client module for python"
8 arch=('i686' 'x86_64')
9 url="http://sourceforge.net/projects/py-jack/"
10 license=('GPL')
11 depends=('jack' 'python2-numpy')
12 source=(http://downloads.sourceforge.net/py-jack/$pkgname-$pkgver.tar.gz)
13 md5sums=('74a08e527b567e26460e8ff74f56d658')
15 build() {
16         cd "$srcdir/$pkgname-$pkgver"
17         python2 setup.py build
19         for file in $(find ./demos -name '*.py' -print); do
20                 sed -i 's_#!.*/usr/bin/python_#!/usr/bin/python2_' $file
21         done
24 package() {
25         cd "$srcdir/$pkgname-$pkgver"
26         python2 setup.py install --prefix=$pkgdir/usr
27         
28         mkdir -p $pkgdir/usr/share/doc/$pkgname/demos
29         install -m644 demos/* $pkgdir/usr/share/doc/pyjack/demos
30         install -D -m644 Changelog $pkgdir/usr/share/doc/$pkgname/Changelog
31         install -D -m644 TODO $pkgdir/usr/share/doc/$pkgname/TODO
32         install -D -m644 README $pkgdir/usr/share/doc/$pkgname/README