summaryrefslogtreecommitdiffstats
path: root/abs/core/libhdhomerun/PKGBUILD
blob: 018ca37282e126e06f954b9527db641c87786ab1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
pkgname=libhdhomerun	
pkgver=20110925a
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=('a5ce955e287ef5a461067ec76a174cf4'
         '9dedecc1d4b4f4e49cac2f16b6e1869f'
         'e4073ec7cb0af8ca44019acbd0cdb64f'
         'b3c7fc8482760da747fd93e858677681'
         'f9e2af57fbd8cb3d8bad132639bbc62c'
         '0dafd968ea9bf7e4d154aad71ea9586d'
         'a50dae85d079049cf2c0af969a8516bf'
         '9b80487e02c1fec6a74adeaba26c8372'
         'f34d8a819be140874662a48e9225d0cd'
         'af9d51b83b2d0c6e05e90a3704ff7003')