summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 82c969bcd09c46281c4d8517933719abf3c5f9e4 (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
# $Id: PKGBUILD 266875 2017-11-15 14:29:11Z foutrelis $
# Maintainer: Giovanni Scafora <giovanni@archlinux.org>
# Contributor: Andrea Scarpino <andrea@archlinux.org>

pkgname=ivtv-utils
pkgver=1.4.1
pkgrel=9
pkgdesc="Userspace utilities for Hauppauge PVR cards"
arch=('x86_64')
license=('GPL')
url="http://ivtvdriver.org"
# original location out of service, fetching things from various places of the interwebs
# source=("http://dl.ivtvdriver.org/ivtv/stable/${pkgname}-${pkgver}.tar.gz"
#         "http://dl.ivtvdriver.org/ivtv/firmware/ivtv-firmware.tar.gz")
source=("http://us.archive.ubuntu.com/ubuntu/pool/multiverse/i/${pkgname}/${pkgname}_${pkgver}.orig.tar.gz"
        "http://pkgs.fedoraproject.org/repo/pkgs/ivtv-firmware/ivtv-firmware-20080701.tar.gz/b9a871f1c569025be9c48a77b3515faf/ivtv-firmware-20080701.tar.gz")
depends=('gcc-libs')
conflicts=('v4l-utils')
md5sums=('3a4219d698262ca2b28e41f0f547b0a2'
         'b9a871f1c569025be9c48a77b3515faf')
 
build() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  make
}

package() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  make DESTDIR="${pkgdir}" PREFIX=/usr install

  cd "${srcdir}"
  for file in v4l-cx2341x-dec.fw  v4l-cx2341x-enc.fw v4l-pvrusb2-24xxx-01.fw  v4l-pvrusb2-29xxx-01.fw v4l-cx2341x-init.mpg; do
    install -D -m644 $file "${pkgdir}/usr/lib/firmware/$file"
  done

  # FS#15133 - files already provided by the kernel-headers package
  rm -rf "${pkgdir}"/usr/include
  # Resolve conflict with v4l-utils
  rm -f "${pkgdir}"/usr/bin/v4l2-ctl
}