updated on Sun Jan 22 12:09:12 UTC 2012
[aur-mirror.git] / input-wacom-git-linux / PKGBUILD
blobc573ee3e3f1ec06f850b82e158639b5a29272e52
1 # Maintainer: chilarch <arch@chilon.net>
3 pkgname=input-wacom-git-linux
4 pkgver=20110817
5 pkgrel=1
6 pkgdesc="Kernel driver for Wacom tablets - development version"
7 arch=('i686' 'x86_64')
8 url="http://linuxwacom.sourceforge.net/"
9 license=('GPL')
10 depends=('linux')
11 makedepends=('git' 'kernel26-headers')
12 provides=('input-wacom' 'input-wacom-cvs')
13 conflicts=('input-wacom' 'input-wacom-cvs')
14 replaces=('input-wacom-cvs')
15 options=('!libtool')
17 _gitroot="git://linuxwacom.git.sourceforge.net/gitroot/linuxwacom/input-wacom"
18 _gitname="input-wacom"
19 _ver=2.6.36
21 build() {
22   cd "$srcdir"
24   msg "Connecting to GIT server...."
26   if [ -d $_gitname ] ; then
27     cd $_gitname && git pull origin
28     msg "The local files are updated."
29   else
30     git clone $_gitroot
31   fi
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"
40   ./autogen.sh
41   make
42   make -C $_ver
43   cd inputattach
44   gcc inputattach.c -o inputattach
47 package() {
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