# $Id: PKGBUILD 150683 2012-02-20 06:58:41Z allan $
# Maintainer: Tobias Kieslich tobias [funnychar] archlinux org
# Contributor: Peter Baldwin <bald_pete@hotmail.com>
# Contributor: Shinlun Hsieh <yngwiexx@yahoo.com.tw>

pkgname=aubio
pkgver=0.3.2
pkgrel=5
pkgdesc="A library for audio labelling"
arch=('i686' 'x86_64')
url="http://aubio.org/"
license=('GPL')
depends=('libsamplerate' 'fftw' 'jack')
options=('!libtool')
source=("http://aubio.org/pub/${pkgname}-${pkgver}.tar.gz"
        aubio-linking.patch)
md5sums=('ffc3e5e4880fec67064f043252263a44'
         '674259ce137ca28ef24bd62482829cd5')

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"

  patch -Np1 -i $srcdir/aubio-linking.patch

  ./configure --prefix=/usr
  make
}

package() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  make DESTDIR="${pkgdir}" install
}
