summaryrefslogtreecommitdiffstats
path: root/abs/core/libhdhomerun/PKGBUILD
blob: 69986dfedf65fe6afcd21710a0f6227601bb0344 (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
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')