# $Id: PKGBUILD 26858 2009-02-13 15:56:55Z andyrtr $
# Maintainer: Jan de Groot <jgc@archlinux.org>
# Contributor: Tobias Powalowski  <tpowa@archlinux.org>
# Contributor: Thomas Bächler <thomas@archlinux.org>
# Contributor: Alexander Baldeck <alexander@archlinux.org>
pkgname=xf86-input-synaptics
pkgver=1.0.0
pkgrel=1
pkgdesc="synaptics driver for notebook touchpads"
arch=(i686 x86_64)
license=('custom')
url="http://w1.894.telia.com/~u89404340/touchpad/"
depends=('libx11')
makedepends=('pkgconfig' 'xorg-server>=1.5.3')
replaces=('synaptics')
provides=('synaptics')
conflicts=('synaptics')
options=(!libtool)
source=(http://xorg.freedesktop.org/releases/individual/driver/${pkgname}-${pkgver}.tar.bz2)
md5sums=('66dd051bb1885613d21ff7a77a7948d8')

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  ./configure --prefix=/usr || return 1
  make || return 1
  make DESTDIR="${pkgdir}" install || return 1
  install -d "${pkgdir}/usr/share/hal/fdi/policy/10osvendor"
  install -m644 fdi/*.fdi "${pkgdir}/usr/share/hal/fdi/policy/10osvendor/" || return 1
  install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
  install -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/" || return 1
}