pkgname=hauppauge-hvr-firmware pkgver=1 pkgrel=2 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" "http://steventoth.net/linux/hvr1400/xc3028L-v36.fw") md5sums=('7fe395c1a398f079d98e416ee7be3777' '5260975b76ade7a1d37270129b6d6372') 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 cd $startdir/src/ cp -rp *.fw $startdir/pkg/lib/firmware }