summaryrefslogtreecommitdiffstats
path: root/abs/core/v4l-dvb/PKGBUILD
blob: 446333516ff0d0e06e317d1f4c3054e41305f502 (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
# Maintainer: Cecil Watson<knoppmyth@gmail.com>

pkgname=v4l-dvb
_kernver=`uname -r`
pkgver=20120113
pkgrel=2
pkgdesc="V4L-DVB device drivers (newer than those included in kernel)"
arch=('i686' 'x86_64')
url="http://linuxtv.org/"
license=('GPL2')
depends=('kernel26')
makedepends=('git' 'kernel26-headers' 'perl-proc-processtable' 'patchutils')
options=(!makeflags)
install=v4l-dvb.install
_gitroot="git://linuxtv.org/media_build.git"
_gitname="media_build"

build() {
  cd "${srcdir}"
  msg "Connecting to GIT server...."

  if [ -d "${srcdir}/${_gitname}" ] ; then
    cd ${_gitname} && git checkout -- . && git pull --rebase
  else
    git clone ${_gitroot}
  fi

  msg "GIT checkout done or server timeout"
  msg "Starting make..."

  cd "${srcdir}/${_gitname}/linux"
  make download untar
  cd ..

#  Build with 3.0-ARCH kernel
#  sed -i -e "s/KERNELRELEASE\ :=/KERNELRELEASE\ :=\ ${_kernver}/" \
#    -e "s/\$(KERNELRELEASE)/${_kernver}/" \
#    "${srcdir}/${_gitname}"/v4l/Makefile{,.sound}

  make
}

package() {
  cd "${srcdir}/${_gitname}"
  make DESTDIR="${pkgdir}" install
  rm -fr ${pkgdir}/lib/modules/$_kernver/modules*
}
md5sums=()