# $Id: PKGBUILD 79046 2010-04-30 05:38:39Z tpowa $
# Contributor: Jochen Immendörfer <jochen dot immendoerfer at gmail dot com>
# Package Maintainer: Tobias Powalowski <tpowa@archlinux.org>
pkgname=alsa-firmware
pkgver=1.0.23
pkgrel=1
pkgdesc="ALSA firmware package"
arch=('i686' 'x86_64')
url="http://alsa-project.org/"
license=('GPL')
source=(ftp://ftp.alsa-project.org/pub/firmware/$pkgname-$pkgver.tar.bz2)
options=(!strip)

build() {
  cd $srcdir/$pkgname-$pkgver
  ./configure --prefix=/usr
  make || return 1
  make DESTDIR=$pkgdir install || return 1
  # remove files which conflicts with kernel26-firmware
  rm -rf ${pkgdir}/lib/firmware/ess/maestro3_assp_kernel.fw || return 1
  rm -rf ${pkgdir}/lib/firmware/ess/maestro3_assp_minisrc.fw || return 1
  rm -rf ${pkgdir}/lib/firmware/korg/k1212.dsp || return 1
  rm -rf ${pkgdir}/lib/firmware/sb16/alaw_main.csp || return 1
  rm -rf ${pkgdir}/lib/firmware/sb16/ima_adpcm_capture.csp || return 1
  rm -rf ${pkgdir}/lib/firmware/sb16/ima_adpcm_init.csp || return 1
  rm -rf ${pkgdir}/lib/firmware/sb16/ima_adpcm_playback.csp || return 1
  rm -rf ${pkgdir}/lib/firmware/sb16/mulaw_main.csp || return 1
  rm -rf ${pkgdir}/lib/firmware/yamaha/ds1_ctrl.fw || return 1
  rm -rf ${pkgdir}/lib/firmware/yamaha/ds1_dsp.fw || return 1
  rm -rf ${pkgdir}/lib/firmware/yamaha/ds1e_ctrl.fw || return 1
  rm -rf ${pkgdir}/lib/firmware/yamaha/yss225_registers.bin || return 1
}
md5sums=('e3f755331d6d485f6fd697249b90f877')