updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / ardourd / PKGBUILD
blob907b0ae7928cfd1f4706bc135a7f559867a0539f
1 # Maintainer: SpepS <dreamspepser at yahoo dot it>
3 pkgname=ardourd
4 pkgver=0.1.7
5 pkgrel=2
6 pkgdesc="A proof-of-concept libardour-based record/playback, song, and mixer engine daemon as part of a modular audio production system."
7 arch=(i686 x86_64)
8 url="http://ayyi.org/"
9 license=('GPL')
10 depends=('dbus-glib' 'gtkmm' 'taglib' 'slv2'
11          'liblo' 'liblrdf' 'aubio' 'libsmf')
12 source=("http://ayyi.org/files/$pkgname-$pkgver.tar.bz2")
13 md5sums=('a607503412df125c298dddb018272eed')
15 build() {
16   cd "$srcdir/$pkgname-$pkgver"
18   # python2 fix
19   export PYTHON="python2"
21   # Architecture portability fix
22   sed -i "s|unsigned)sp|uintptr_t)sp|;s|0400|0600|" libs/ayyi/shm_seg.cc
24   # adding missing header in rubberband source
25   sed -i "22a#include <cstddef>" libs/rubberband/rubberband/RubberBandStretcher.h
27   # fix ARDOUR namespace
28   sed -i "s|.*\(namespace ARDOUR\).*|\1 {|;\$a}" libs/ardour/enums.cc
30   python2 waf configure --prefix=/usr \
31                         --aubio \
32                         --freedesktop \
33                         --lv2 \
34                         --nls \
35                         --versioned \
36                         --dbus \
37                         --build-docs
38 #                        --freesound \
39   python2 waf
42 package() {
43   cd "$srcdir/$pkgname-$pkgver"
45   python2 waf install --destdir="$pkgdir"