pkgname=libhdhomerun pkgver=20110830 _altver=20110729 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') _firmware1=hdhomerun_atsc_firmware_${_altver}.bin _firmware2=hdhomerun_dvbt_firmware_${_altver}.bin _firmware3=hdhomerun3_atsc_firmware_${_altver}.bin _firmware4=hdhomerun3_dvbt_firmware_${_altver}.bin _firmware5=hdhomerun3_dvbtc_firmware_${_altver}.bin _firmware6=hdhomerun3_cablecard_firmware_${pkgver}.bin _firmware7=hdhomerun_tech_atsc_firmware_${_altver}.bin _firmware8=hdhomerun3_tech_atsc_firmware_${_altver}.bin _firmware9=hdhomerun3_tech_dvbtc_firmware_${_altver}.bin _url2=http://download.silicondust.com/hdhomerun source=("${_url2}/libhdhomerun_${pkgver}.tgz" "${_url2}/${_firmware1}" "${_url2}/${_firmware2}" "${_url2}/${_firmware3}" "${_url2}/${_firmware4}" "${_url2}/${_firmware5}" "${_url2}/${_firmware6}" "${_url2}/${_firmware7}" "${_url2}/${_firmware8}" "${_url2}/${_firmware9}") #"${_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 libhdhomerun.so ${pkgdir}/usr/lib/libhdhomerun.so install -D -m755 hdhomerun_config ${pkgdir}/usr/bin/hdhomerun_config # cd ${srcdir}/hdhomerun_config_gui # make DESTDIR=${pkgdir} install || return 1 cd ${srcdir} install -d ${pkgdir}/lib/firmware for file in ${_firmware1} ${_firmware2} ${_firmware3} ${_firmware4} \ ${_firmware5} ${_firmware6} ; do install -D ${srcdir}/${file} ${pkgdir}/lib/firmware/ done } md5sums=('44b7f164b3d5aa8c555cf59aeeab6ee1' 'c168642982c069b0bc40554cb3986e49' '300e16a29f182ef94486d920a5909e3e' 'f4b1341a593ae597a39c10cd81522dad' '1a45959ffee80acaaeb5fa81296acd20' 'b63f0cd1c632603a8bc68f63565176b2' 'e3ae2597dceda376d987584a23fdbdf5' '9c608d02dd6de39e55714887b38ca37a' 'f9303c9c8d90305b2da9855d327285bc' 'd517f629b01735037c10cf89d84a3215')