blob: 58e90134857b0f89c561286e993bee196665d04a (
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
50
|
# Maintainer: Nicky726 (Nicky726 <at> gmail <dot> com)
pkgname=v4l-dvb
pkgver=20111110
pkgrel=1
pkgdesc="V4L-DVB device drivers git version"
arch=('i686' 'x86_64')
url="http://linuxtv.org/"
license=('GPL')
depends=('kernel26')
makedepends=('git' 'linux-api-headers' 'perl-proc-processtable' 'patchutils')
options=(!makeflags)
install=v4l-dvb.install
_gitroot="git://linuxtv.org/media_build.git"
_gitname="media_build"
source=(config)
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
_kernver=`uname -r`
sed -i -e "s/KERNELRELEASE\ :=/KERNELRELEASE\ :=\ ${_kernver}/" \
-e "s/\$(KERNELRELEASE)/${_kernver}/" \
"${srcdir}/${_gitname}"/v4l/Makefile{,.sound}
# Use alternate config, because cx23885 module won't build
# cp "${srcdir}/config" "${srcdir}/${_gitname}/v4l/.config"
make
}
package() {
install -dm755 "${srcdir}/lib/modules/$(uname -r)/updates"
cd "${srcdir}/${_gitname}"
make DESTDIR="${pkgdir}/lib/modules/$(uname -r)/updates" install
}
md5sums=('927cc1fcddc2a71a7fde97322237c7a8')
|