# $Id: PKGBUILD 34235 2009-04-08 11:01:52Z eric $
# Maintainer: Eric Belanger <eric@archlinux.org>
# Contributor: Jason Chu <jchu@xentac.net>

pkgname=libsamplerate
pkgver=0.1.7
pkgrel=1
pkgdesc="Secret Rabbit Code - aka Sample Rate Converter for audio"
arch=('i686' 'x86_64')
url="http://www.mega-nerd.com/SRC/index.html"
license=('GPL')
depends=('libsndfile' 'flac>=1.1.4')
options=('!libtool')
source=(http://www.mega-nerd.com/SRC/libsamplerate-${pkgver}.tar.gz)
md5sums=('ad093e60ec44f0a60de8e29983ddbc0f')
sha1sums=('98a52392eb97f9ba724ca024b3af29a8a0cc0206')

build() {
  cd ${srcdir}/${pkgname}-${pkgver}
  ./configure --prefix=/usr || return 1
  make || return 1
  make DESTDIR=${pkgdir} install || return 1
}