updated on Thu Jan 19 16:10:29 UTC 2012
[aur-mirror.git] / linect-git / PKGBUILD
blobd1a60a87a425645d5b3cdae80daca78e890a309c
1 # Maintainer: Sven Schneider <archlinux.sandmann@googlemail.com>
3 pkgname=linect-git
4 pkgver=20101209
5 pkgrel=1
6 pkgdesc="An Open Source Kinect Linux module driver compatible with Video4Linux 2"
7 arch=('i686' 'x86_64')
8 url="https://github.com/berfenger/linect"
9 license=('GPL')
10 depends=()
11 makedepends=('kernel26-headers' 'git')
12 provides=('linect')
13 conflicts=('linect')
14 source=()
15 install="${pkgname}.install"
16 md5sums=()
18 _gitroot="git://github.com/berfenger/linect.git"
19 _gitname="linect"
21 build() {
22         cd "${srcdir}"
23         
24         if [ ! -d ${srcdir}/${_gitname} ]; then
25                 git clone ${_gitroot}
26         else
27                 cd ${_gitname}  && git pull origin
28         fi
29         
30         msg "GIT checkout done."
32         rm -rf "${srcdir}/${_gitname}-build"
33         cp -r "${srcdir}/${_gitname}" "${srcdir}/${_gitname}-build"
34         cd "${srcdir}/${_gitname}-build"
36         make
39 package() {
40         cd "${srcdir}/${_gitname}-build"
41         
42         install -Dm644 linect.ko "${pkgdir}/lib/modules/`uname -r`/kernel/drivers/misc/linect.ko"