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

pkgname=v4l-dvb
_kernver=`uname -r`
pkgver=20120904
pkgrel=1
pkgdesc="V4L-DVB device drivers (newer than those included in kernel26)"
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 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}/lib/modules/$_kernver/updates" install
  # compress new kernel modules
  find ${pkgdir}/lib/modules/$_kernver/updates/ -not -name 'media.ko' -name '*.ko' -exec gzip '{}' \;
}
md5sums=()