# $Id: PKGBUILD 211906 2014-04-29 12:35:13Z andyrtr $ # Maintainer: Jan de Groot # Contributor: Tobias Powalowski # Contributor: Thomas Bächler # Contributor: Alexander Baldeck pkgname=xf86-input-synaptics pkgver=1.7.5 pkgrel=1 pkgdesc="Synaptics driver for notebook touchpads" arch=('i686' 'x86_64') license=('custom') url="http://xorg.freedesktop.org/" depends=('libxtst' 'mtdev') makedepends=('xorg-server-devel' 'X-ABI-XINPUT_VERSION=20' 'libxi' 'libx11' 'resourceproto' 'scrnsaverproto') conflicts=('xorg-server<1.15.0' 'X-ABI-XINPUT_VERSION<20' 'X-ABI-XINPUT_VERSION>=21') replaces=('synaptics') provides=('synaptics') conflicts=('synaptics') groups=('xorg-drivers' 'xorg') backup=('etc/X11/xorg.conf.d/50-synaptics.conf') source=(http://xorg.freedesktop.org/releases/individual/driver/${pkgname}-${pkgver}.tar.bz2 add_tapbuttons.diff) sha256sums=('1f8423521ff747efa9d84ef33126ad4bbe27d5904731115aa70247bc388c91c7' '5298d3e871db3768b34cf8516d3f53f9291202e2ea5de3300256e1cd9119a1ec') build() { cd ${pkgname}-${pkgver} # * upstream disabled tapping by default if a physical left button is present - see FS#33282 # * enable MatchDevicePath directive by default - FS#33291 patch -Np1 -i ${srcdir}/add_tapbuttons.diff ./configure --prefix=/usr make } package() { cd ${pkgname}-${pkgver} make DESTDIR="${pkgdir}" install install -m755 -d "${pkgdir}/etc/X11/xorg.conf.d" install -m644 conf/50-synaptics.conf "${pkgdir}/etc/X11/xorg.conf.d/" install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}" install -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/" rm -rf "${pkgdir}/usr/share/X11" }