1 # Maintainer: Adam Vogt <vogt.adam@gmail.com> # adapted to the fliped git repo
2 # Contributor: Andrea Scarpino <bash.lnx@gmail.com>
3 # Contributor: Giovanni Scafora <linuxmania@gmail.com>
4 # Contributor: Robert Emil Berge <filoktetes@linuxophic.org>
6 _kernver=`uname -r | sed 's/-ARCH//'`
7 pkgname=linux-uvc-flip-git
10 pkgdesc="Linux driver for USB Video Class devices, patched to flip the video"
11 arch=('i686' 'x86_64')
12 url="http://linux-uvc.berlios.de"
16 install=linux-uvc.install
20 _gitroot="git://github.com/dfu/linux-uvc_flip.git"
21 _gitname="linux-uvc_flip"
25 msg "Connecting to GIT server...."
27 if [ -d $startdir/src/$_gitname ] ; then
28 cd $_gitname && git pull origin
29 msg "The local files are updated."
34 msg "GIT checkout done or server timeout"
35 msg "Starting make..."
37 rm -r $startdir/src/$_gitname-build
38 cp -r $startdir/src/$_gitname $startdir/src/$_gitname-build
39 cd $startdir/src/$_gitname-build
42 #Install kernel module as uvcvideo-flip
43 install -D -m644 uvcvideo.ko $pkgdir/lib/modules/`uname -r`/\
44 kernel/drivers/media/video/uvc/uvcvideo-flip.ko
45 sed -i -e "s/KERNEL_VERSION='.*'/KERNEL_VERSION='`uname -r`'/" $startdir/*.install