1 # Maintainer: chilarch <arch@chilon.net>
3 pkgname=input-wacom-git-linux
6 pkgdesc="Kernel driver for Wacom tablets - development version"
8 url="http://linuxwacom.sourceforge.net/"
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"
24 msg "Connecting to GIT server...."
26 if [ -d $_gitname ] ; then
27 cd $_gitname && git pull origin
28 msg "The local files are updated."
33 msg "GIT checkout done or server timeout"
34 msg "Starting build..."
36 rm -rf "$srcdir/$_gitname-build"
37 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
38 cd "$srcdir/$_gitname-build"
44 gcc inputattach.c -o inputattach
48 cd "${srcdir}/$_gitname-build"
50 install -D -m 644 $_ver/wacom.ko "${pkgdir}"/lib/modules/$(uname -r)/updates/wacom.ko
51 install -D -m 644 $_ver/wacom_w8001.ko "${pkgdir}"/lib/modules/$(uname -r)/updates/wacom_w8001.ko
52 install -D -m 755 inputattach/inputattach "${pkgdir}"/usr/bin/inputattach