pkgname=libhdhomerun pkgver=20120128 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_${pkgver}.bin _firmware2=hdhomerun_dvbt_firmware_${pkgver}.bin _firmware3=hdhomerun3_atsc_firmware_${pkgver}.bin _firmware4=hdhomerun3_dvbt_firmware_${pkgver}.bin _firmware5=hdhomerun3_dvbtc_firmware_${pkgver}.bin _firmware6=hdhomerun3_cablecard_firmware_${pkgver}.bin _firmware7=hdhomerun_tech_atsc_firmware_${pkgver}.bin _firmware8=hdhomerun3_tech_atsc_firmware_${pkgver}.bin _firmware9=hdhomerun3_tech_dvbtc_firmware_${pkgver}.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=('8b1c5c3b723f2e7b3d1b7599c1c1c1c8' '441cc1915f5c38ef779e66f0198305be' '90d027bdbee27af5bb4aef13ba361f91' '8d303e61ce4a3ad57be980e2f27ad1f5' '4f96d55d4a84f9edff730663bd836a3f' '16d0a18e5971acf47a2d0d635b4c6c74' 'e32423f02872d1ce6432cb7c24f7d41f' 'cbe27be2dd94b59cc745c5112ef54912' '469cac13aa65b9ac5a04a15b7d050893' 'da478fce3260c8982dbcfb8cf3a46415')