# $Id: PKGBUILD 82932 2010-06-19 13:31:58Z ibiru $
# Maintainer:
# Contributor: dorphell <dorphell@archlinux.org>

pkgname=libao
pkgver=1.0.0
pkgrel=2
pkgdesc="A cross-platform audio output library and plugins"
url="http://www.xiph.org/ao"
arch=('i686' 'x86_64')
license=('GPL')
depends=('glibc' 'alsa-lib')
backup=('etc/libao.conf')
options=('!libtool')
source=("http://downloads.xiph.org/releases/ao/${pkgname}-${pkgver}.tar.gz"
	'libao.conf')
md5sums=('08283fbe1f587619053a156254afecec'
         '3ae8f3e3f1492210b3519af0f1f3c572')

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

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

  # Add conf file
  install -Dm0644 ${srcdir}/libao.conf ${pkgdir}/etc/libao.conf || return 1
}