1 # Maintainer: Nicky726 (Nicky726 <at> gmail <dot> com)
6 pkgdesc="V4L-DVB device drivers git version"
8 url="http://linuxtv.org/"
10 depends=('linux-headers' 'perl-proc-processtable' 'patchutils')
13 install=v4l-dvb.install
14 _gitroot="git://linuxtv.org/media_build.git"
15 _gitname="media_build"
17 sha1sums=('7bd95c8f07bdaeb3cec925c4db5c8f6bfbcc6cb5')
22 msg "Connecting to GIT server...."
24 if [ -d "${srcdir}/${_gitname}" ] ; then
25 cd ${_gitname} && git pull --rebase
30 msg "GIT checkout done or server timeout"
31 msg "Starting make..."
33 cd "${srcdir}/${_gitname}/linux"
36 # Build with 3.0-ARCH kernel
38 sed -i -e "s/KERNELRELEASE\ :=/KERNELRELEASE\ :=\ ${_kernver}/" \
39 -e "s/\$(KERNELRELEASE)/${_kernver}/" \
40 "${srcdir}/${_gitname}"/v4l/Makefile{,.sound}
41 # Use alternate config, because cx23885 module won't build
42 cp "${srcdir}/config" "${srcdir}/${_gitname}/v4l/.config"
47 install -dm755 "${srcdir}/lib/modules/$(uname -r)/updates"
48 cd "${srcdir}/${_gitname}"
49 make DESTDIR="${pkgdir}/lib/modules/$(uname -r)/updates" install