1 # Maintainer: Andrzej Giniewicz <gginiu@gmail.com>
3 pkgname=input-wacom-git
6 pkgdesc="Kernel driver for Wacom tablets - development version"
8 url="http://linuxwacom.sourceforge.net/"
10 depends=('kernel26>=2.6.26')
11 makedepends=('git' 'kernel26-headers')
12 provides=('input-wacom' 'input-wacom-cvs')
13 conflicts=('input-wacom' 'input-wacom-cvs')
14 replaces=('input-wacom-cvs')
17 _gitroot="git://linuxwacom.git.sourceforge.net/gitroot/linuxwacom/input-wacom"
18 _gitname="input-wacom"
23 msg "Connecting to GIT server...."
25 if [ -d $_gitname ] ; then
26 cd $_gitname && git pull origin
27 msg "The local files are updated."
32 msg "GIT checkout done or server timeout"
33 msg "Starting build..."
35 rm -rf "$srcdir/$_gitname-build"
36 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
37 cd "$srcdir/$_gitname-build"
42 gcc inputattach.c -o inputattach
46 cd "${srcdir}/$_gitname-build"
47 _ver=`uname -r | sed 's/[0-9]*\.[0-9]*\.\([0-9]*\).*/\1/'`
54 install -D -m 644 $_ver/wacom.ko "${pkgdir}"/lib/modules/$(uname -r)/updates/wacom.ko
55 install -D -m 644 $_ver/wacom_w8001.ko "${pkgdir}"/lib/modules/$(uname -r)/updates/wacom_w8001.ko
56 install -D -m 755 inputattach/inputattach "${pkgdir}"/usr/bin/inputattach