pkgname=hdhomerun pkgver=20070726 pkgrel=1 pkgdesc="utils and firmware needed for the hdhomerun" arch=(i686 x86_64) url="http://www.silicondust.com" firmware=hdhomerun_firmware_20070716.bin source=("http://download.silicondust.com/hdhomerun/libhdhomerun_20070726.tgz http://download.silicondust.com/hdhomerun/$firmware") build() { cd $startdir/src || return 1 tar -xvf libhdhomerun_20070726.tgz cd libhdhomerun make || return 1 install -D -m755 hdhomerun_config $startdir/pkg/usr/bin/hdhomerun_config cd .. install -D -m755 $firmware $startdir/pkg/lib/firmware/$firmware }