1 # Contributor: Aidan Taniane <aidanjt@gmail.com>
2 # Notes: this PKGBUILD should be suitable for any card in the v4l-dvb SCM tree
3 # with only some trivial changes
7 pkgdesc="Kernel V4L modules for Phillips SAA7134 cards"
9 url="http://linuxtv.org/hg/v4l-dvb"
11 makedepends=('mercurial' 'gcc' 'make' 'which' 'module-init-tools' 'grep')
12 optdepends=('linuxtv-dvb-apps: Useful tools for configuring your DVB card'
13 'mplayer: A V4l/DVB capable media player'
14 'mythtv: mplayer on steroids, a fully complete PVR system')
15 source=('saa7134-hg.install' 'saa7134-hg.kconfig')
16 md5sums=('8b57019c8bd9da816d7460375306c591' 'a32743f1fcf99406a72e7884c1a7a390')
17 install=('saa7134-hg.install')
18 _hgroot=('http://linuxtv.org/hg/v4l-dvb')
22 local _treedir="${startdir}/src/v4l-dvb"
23 local _kdir="/lib/modules/$(uname -r)/updates/"
24 local _docdir="${startdir}/pkg/usr/share/${pkgname}"
26 # Step into the v4l tree
29 # Copy config in place
30 cp ${startdir}/${pkgname}.kconfig ${_treedir}/v4l/.config || return 1
36 make DESTDIR=$startdir/pkg/ KDIR26=$_kdir install
37 rm ${startdir}/pkg/lib/modules/$(uname -r)/modules.*
39 # Install Documentation
41 cp -Rf ${_treedir}/linux/Documentation/video4linux/{CARDLIST,README}.saa7134 ${_docdir}/
42 echo "The module_parm* lines in saa7134-core.c have been dumped here for your convieniance,
43 they should be useful when dealing with troublesome cards that need certain
44 settings when being modprobed or insmod'ed.
46 Also note that for Medion MD8800 cards, you need to add 'use_frontend=1' to get
51 $(egrep "module_param\(|MODULE_PARM_DESC\(" ${_treedir}/v4l/saa7134-core.c)
55 $(egrep "module_param\(|MODULE_PARM_DESC\(" ${_treedir}/v4l/saa7134-dvb.c)
56 " &> ${_docdir}/${pkgname}.parms