updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / xf86-input-multitouch-git / PKGBUILD
blob8c6baafb73d157d46326e67bfca2d4071066b29d
1 # Maintainer: Dave Reisner <d@falconindy.com>
3 pkgname=xf86-input-multitouch-git
4 pkgver=20110209
5 pkgrel=1
6 pkgdesc="A multitouch X driver using the kernel MT protocol"
7 arch=('i686' 'x86_64')
8 url="http://bitmath.org/code/multitouch/"
9 license=('GPL')
10 depends=('mtdev')
11 makedepends=('git' 'xorg-server-devel')
12 provides=('xf86-input-multitouch')
13 conflicts=('xf86-input-multitouch')
14 source=('10-multitouch.conf')
15 md5sums=('2bdf08d4526179bb369806d6b7b3a243')
17 _gitroot="http://bitmath.org/git/multitouch.git"
18 _gitname="multitouch"
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
41 package() {
42   cd "$srcdir/$_gitname-build"
44   make DESTDIR="$pkgdir/" install
45   install -Dm644 "$srcdir/10-multitouch.conf" "$pkgdir/etc/X11/xorg.conf.d/10-multitouch.conf"