1 # Maintainer: Marcin Karpezo <sirmacik at gmail dot com>
6 pkgdesc="Syntek DC-1125 Camera Driver (integrated camera in Asus laptops)"
8 url="http://syntekdriver.sourceforge.net"
11 makedepends=('git' 'ctags' 'linux-headers')
15 md5sums=() #generate with 'makepkg -g'
17 _gitroot="git://git.stuge.se/stk11xx-driver.git"
18 _gitname="stk11xx-driver"
22 msg "Connecting to GIT server...."
24 if [ -d $_gitname ] ; then
25 cd $_gitname && git pull origin
26 msg "The local files are updated."
28 git clone $_gitroot $_gitname
31 msg "GIT checkout done or server timeout"
32 msg "Starting make..."
34 rm -rf "$srcdir/$_gitname-build"
35 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
36 cd "$srcdir/$_gitname-build"
38 make -f Makefile.standalone
42 cd "$srcdir/$_gitname-build"
43 install -d $pkgdir/lib/modules/`uname -r`/kernel/drivers/media/video
44 install -m 644 $srcdir/$_gitname-build/stk11xx.ko $pkgdir/lib/modules/`uname -r`/kernel/drivers/media/video
45 install -d $pkgdir/usr/share/stk11xx
46 install -m 644 $srcdir/$_gitname-build/README $pkgdir/usr/share/stk11xx