# $Id: PKGBUILD 59422 2009-11-23 20:05:10Z giovanni $
# Maintainer: Thomas Baechler <thomas@archlinux.org>
# Contributor: Giovanni Scafora <giovanni@archlinux.org>

pkgname=ipw2100-fw
pkgver=1.3
pkgrel=4
pkgdesc="Intel Centrino Drivers firmware for IPW2100"
arch=('any')
url="http://ipw2100.sourceforge.net/"
license=('custom')
depends=()
replaces=('ipw2100')
source=(http://bughost.org/firmware/${pkgname}-${pkgver}.tgz)
md5sums=('46aa75bcda1a00efa841f9707bbbd113')

build() {
  cd "${srcdir}"
  
  # Install firmware
  for i in *.fw
  do
    install -D -m 644 $i "${pkgdir}/lib/firmware/$i" || return 1
  done 
  # Install license
  install -D -m 644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" || return 1
}