updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / v4l-hg / PKGBUILD
blob0729c73ade2d2d65713b355b1082830d9e2d788b
1 pkgname=v4l-hg
2 pkgver=20070512
3 pkgrel=2
4 pkgdesc="X.org v4l video driver"
5 makepends=('mercurial')
6 conflicts=('v4l-cvs')
7 url="http://mcentral.de/wiki/index.php/Em2880"
8 source=( \
9         'config' \
10         'Makefile-depmod.patch' \
11         'Makefile-lsmod.patch'\
13 md5sums=( \
14         '334ac08d9980f5130d09b36137f64e0f' \
15         '40084693888a7105adf4c0fbcb8afb03' \
16         'efcd91a0464ea471dc182a902d87cf4d'\
18 install=v4l-hg.install
19 license=('GPL')
20 arch=('i686')
22 _hgroot=http://mcentral.de/hg/~mrec/
23 _hgrepo=v4l-dvb-experimental
24 #_hgrepo=v4l-dvb-kernel
26 build() {
27         _kver=`uname -r`
28         cd $startdir/src
29         if [ -d ${_hgrepo} ]; then
30                 cd $startdir/src/${_hgrepo}/v4l
31                 hg pull -u
32         else
33                 hg clone ${_hgroot}${_hgrepo} || return 1
34                 cd $startdir/src/${_hgrepo}/v4l
35         fi
37         if [[ "grep `uname -r` src/v4l-dvb-experimental/v4l/oss/.version" == "" ]]; then
38                 make distclean || return 1
39         fi
41         #cp $startdir/src/config ./.config
42         make menuconfig
44         msg `pwd`
45         patch -Np0 -i $startdir/src/Makefile-lsmod.patch
47         make
48         patch -Np0 -i $startdir/src/Makefile-depmod.patch
49         make \
50                 DEST=$startdir/pkg/lib/modules/${_kver} \
51                 KDIR=$startdir/pkg/lib/modules/${_kver}/build \
52                 KDIR26=$startdir/pkg/lib/modules/${_kver}/kernel/drivers/media \
53                 install