updated on Mon Jan 23 20:11:11 UTC 2012
[aur-mirror.git] / rtaudio / PKGBUILD
blobe655d2ae0ea1c7f1ce8c04b8e48d8fb1ac80e442
1 # Maintainer: SpepS <dreamspepser at yahoo dot it>
3 pkgname=rtaudio
4 pkgver=4.0.10
5 pkgrel=1
6 pkgdesc="A set of C++ classes that provide a common API for realtime audio input/output."
7 arch=(i686 x86_64)
8 url="http://www.music.mcgill.ca/~gary/rtaudio/"
9 license=('GPL')
10 depends=('jack')
11 makedepends=('python2-distribute')
12 optdepends=('python2: python bindings')
13 source=("${url}release/${pkgname}-${pkgver}.tar.gz")
14 md5sums=('68fc7fead74762e5fa3e8aa69ae1c10d')
16 build() {
17   cd "$srcdir/$pkgname-$pkgver"
19   ./configure --prefix=/usr \
20               --with-alsa \
21               --with-oss \
22               --with-jack
23   make
24   cd tests && make
26   # python bindings
27   cd ../contrib/python/pyrtaudio
28   CFLAGS="$CFLAGS -I../../../include" \
29   python2 setup.py build
32 package() {
33   cd "$srcdir/$pkgname-$pkgver"
35   # lib
36   install -Dm755 librtaudio.so "$pkgdir/usr/lib/librtaudio.so"
38   # configuration utility
39   install -Dm755 rtaudio-config "$pkgdir/usr/bin/rtaudio-config"
41   # docs
42   install -d "$pkgdir"/usr/{include,share/doc}/$pkgname
43   cp -a doc/{html,images,release.txt} "$pkgdir/usr/share/doc/$pkgname"
45   # headers
46   install *.h include/* "$pkgdir/usr/include/$pkgname"
48   # utilities and tests
49   for _ex in `find tests -maxdepth 1 -perm 755 -type f`; do
50     install -Dm755 $_ex "$pkgdir/usr/bin/$pkgname-${_ex/*\//}"
51   done
53   # python bindings
54   cd contrib/python/pyrtaudio && python2 setup.py install --root="$pkgdir/"
56   # python sample
57   install -Dm644 PyRtAudioTest.py "$pkgdir/usr/share/doc/$pkgname/"
60 # vim:set ts=2 sw=2 et: