# $Id: PKGBUILD 79271 2010-05-02 14:42:00Z tpowa $
# Maintainer: judd <jvinet@zeroflux.org>
pkgname=alsa-utils
pkgver=1.0.23
pkgrel=2
pkgdesc="An alternative implementation of Linux sound support"
arch=('i686' 'x86_64')
url="http://www.alsa-project.org"
#can not use >=$pkgver due to use of letters in alsa-lib update versioning
depends=("alsa-lib>1.0.22.99" 'dialog' 'pciutils' 'ncurses')
makedepends=('xmlto' 'docbook-xsl')
license=('GPL')
source=(ftp://ftp.alsa-project.org/pub/utils/$pkgname-${pkgver}.tar.bz2
        alsa
        alsaconf.patch
        alsa.conf.d)
backup=(etc/conf.d/alsa)

build() {
  cd $startdir/src/$pkgname-${pkgver}
  patch -Np1 -i ../alsaconf.patch || return 1
  ./configure --prefix=/usr
  make || return 1
  make DESTDIR=$startdir/pkg install
  install -D -m755 ../alsa $startdir/pkg/etc/rc.d/alsa
  install -D -m644 ../alsa.conf.d $startdir/pkg/etc/conf.d/alsa
}
md5sums=('cb0cf46029ac9549cf3a31bff6a4f4e1'
         '3ef812cae83053d01cd560284efad71f'
         '62ebef77d5617d0036012cc541dcf23c'
         '93089f0d8872078939f76dd2acaebc2b')