pkgname=libhdhomerun pkgver=20100828 pkgrel=1 pkgdesc="utils and firmware needed for the hdhomerun" arch=('i686' 'x86_64') url="http://www.silicondust.com" license=('GPL3') makedepends=('gtk2') optdepends=('gtk2: for using hdhomerun_config_gui') replaces=('hdhomerun') firmware=hdhomerun_atsc_firmware_${pkgver}.bin firmware2=hdhomerun_dvbt_firmware_${pkgver}.bin firmware3=hdhomerun_tech_atsc_firmware_${pkgver}.bin url2=http://download.silicondust.com/hdhomerun source=("${url2}/libhdhomerun_${pkgver}.tgz" "${url2}/${firmware}" "${url2}/${firmware2}" "${url2}/${firmware3}" "${url2}/hdhomerun_config_gui_${pkgver}.tgz") build() { cd ${srcdir}/libhdhomerun make || return 1 cd ${srcdir}/hdhomerun_config_gui ./configure --prefix=/usr || return 1 make || return 1 } package() { cd ${srcdir}/libhdhomerun install -D -m755 hdhomerun_config ${pkgdir}/usr/bin/hdhomerun_config cd ${srcdir}/hdhomerun_config_gui make DESTDIR=${pkgdir} install || return 1 cd ${srcdir} mkdir -p ${pkgdir}/lib/firmware cp ${srcdir}/*.bin ${pkgdir}/lib/firmware/ } md5sums=('3923ea7f88504271f76117aa608062e2' 'bfc6b2fc80680795dac0c642807963ad' '99f422cf78a6f0ee79647c75c4ea9b5b' '4e2e693057f9251873558fcec2522b46' '6c602c5d11eff26c70a707f6559d3f3f')