1 # Contributor: Kaos < gianlucaatlas_AT_gmail_DOT_com >
2 # Contributor: Radu Andries < admiral0_AT_tuxfamily_DOT_org >
4 pkgname=xf86-input-synaptics-multitouch-git
7 pkgdesc="Synaptics driver for notebook touchpads"
9 url="http://w1.894.telia.com/~u89404340/touchpad/"
11 depends=('libxi>=1.2.1' 'libxtst')
12 makedepends=('pkgconfig' 'xorg-server' 'git' 'xorg-util-macros' 'xorg-server-devel')
13 provides=('synaptics' 'xf86-input-synaptics')
14 conflicts=('synaptics')
15 groups=('xorg-input-drivers')
17 source=(11-x11-synaptics.fdi multitouch.patch)
18 md5sums=('3578ce95cf437fa930ede2daaac4bf4a'
19 'bc575095d5cb4f66605f9bef0ddbef1c')
21 _gitroot="git://anongit.freedesktop.org/xorg/driver/xf86-input-synaptics"
22 _gitname="xf86-input-synaptics"
26 msg "Connecting to GIT server...."
28 if [ -d $_gitname ] ; then
29 cd $_gitname && git pull origin
30 msg "The local files are updated."
34 patch -Np1 < $srcdir/multitouch.patch
37 msg "GIT checkout done or server timeout"
38 msg "Starting make..."
40 rm -rf "$srcdir/$_gitname-build"
41 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
42 cd "$srcdir/$_gitname-build"
45 ./configure --prefix=/usr || return 1
47 make DESTDIR="${pkgdir}" install || return 1
48 install -d "${pkgdir}/usr/share/hal/fdi/policy/10osvendor"
49 install -m644 ${srcdir}/11-x11-synaptics.fdi "${pkgdir}/usr/share/hal/fdi/policy/10osvendor/" || return 1
50 install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
51 install -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/" || return 1