updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / xf86-input-synaptics-multitouch-git / PKGBUILD
blobe1a5759aa380471f1c33f488f46826170a9188ff
1 # Contributor: Kaos < gianlucaatlas_AT_gmail_DOT_com >
2 # Contributor: Radu Andries < admiral0_AT_tuxfamily_DOT_org >
4 pkgname=xf86-input-synaptics-multitouch-git
5 pkgver=20110107
6 pkgrel=1
7 pkgdesc="Synaptics driver for notebook touchpads"
8 arch=('i686' 'x86_64')
9 url="http://w1.894.telia.com/~u89404340/touchpad/"
10 license=('custom')
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')
16 options=(!libtool)
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"
24 build() {
25   cd "$srcdir"
26   msg "Connecting to GIT server...."
28   if [ -d $_gitname ] ; then
29     cd $_gitname && git pull origin
30     msg "The local files are updated."
31   else
32     git clone $_gitroot
33     cd $_gitname
34     patch -Np1 < $srcdir/multitouch.patch
35   fi
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"
44   ./autogen.sh
45   ./configure --prefix=/usr || return 1
46   make || 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
52