pkgname=hauppauge-hvr-firmware
pkgver=1
pkgrel=1
pkgdesc="firmware needed for the hvr cards"
arch=(i686 x86_64)
url=""
makedepends='unzip'
source=("http://steventoth.net/linux/hvr1800/HVR-12x0-14x0-17x0_1_25_25271_WHQL.zip")


build() {
  cd $startdir || return 1
  mkdir -p $startdir/pkg/lib/firmware
  unzip -jo HVR-12x0-14x0-17x0_1_25_25271_WHQL.zip  Driver85/hcw85enc.rom
  unzip -jo HVR-12x0-14x0-17x0_1_25_25271_WHQL.zip Driver85/hcw85mlC.rom
  cd $startdir/src/Driver85
  mv hcw85enc.rom v4l-cx23885-enc.fw
  mv hcw85mlC.rom v4l-cx23885-avcore-01.fw
  cp -rp *.fw  $startdir/pkg/lib/firmware
}