updated on Sun Jan 15 04:04:02 UTC 2012
[aur-mirror.git] / stk11xx-git / PKGBUILD
blobd07307054209fa717edcbd67659932f9abed78cb
1 # Maintainer: Marcin Karpezo <sirmacik at gmail dot com>
3 pkgname=stk11xx-git
4 pkgver=20111008
5 pkgrel=1
6 pkgdesc="Syntek DC-1125 Camera Driver (integrated camera in Asus laptops)"
7 arch=(i686 x86_64)
8 url="http://syntekdriver.sourceforge.net"
9 license=('GPL')
10 depends=()
11 makedepends=('git' 'ctags' 'linux-headers')
12 provides=('stk11xx')
13 replaces=('stk11xx')
14 source=()
15 md5sums=() #generate with 'makepkg -g'
17 _gitroot="git://git.stuge.se/stk11xx-driver.git"
18 _gitname="stk11xx-driver"
20 build() {
21   cd "$srcdir"
22   msg "Connecting to GIT server...."
24   if [ -d $_gitname ] ; then
25     cd $_gitname && git pull origin
26     msg "The local files are updated."
27   else
28     git clone $_gitroot $_gitname
29   fi
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
41 package() {
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
47