1 # Contributor: Tobias Powalowski <tpowa@archlinux.org>
2 # Contributor: Thomas Bächler <thomas@archlinux.org>
3 # Contributor: Alexander Baldeck <alexander@archlinux.org>
4 # Contributor: Kaspar Bumke <kaspar.bumke@gmail.com>
6 pkgname=synaptics-xrandr
7 _pkgname=xf86-input-synaptics
10 pkgdesc="Synaptics driver for notebook touchpads with patch to enable axis rotation."
13 url="http://xorg.freedesktop.org/"
15 makedepends=('xorg-server-devel' 'libxi' 'libx11')
16 conflicts=('xorg-server<1.10.0')
17 replaces=('synaptics')
18 provides=('synaptics')
19 conflicts=('synaptics')
20 groups=('xorg-drivers' 'xorg')
22 backup=('etc/X11/xorg.conf.d/10-synaptics.conf')
23 source=(http://xorg.freedesktop.org/releases/individual/driver/${_pkgname}-${pkgver}.tar.bz2 10-synaptics.conf synaptics-xrandr.patch)
25 sha1sums=('e41201476f4bc8658291808d2d6ef2e0535179ae'
26 '68e1f4ef5e1038231d210eb422fa4d18c5922f0f'
27 '38fa5f885386206eb3c0fed64035d15209dffd1c')
30 cd "${srcdir}/${_pkgname}-${pkgver}"
31 patch -p1 < ../synaptics-xrandr.patch || return 1
32 ./configure --prefix=/usr
36 cd "${srcdir}/${_pkgname}-${pkgver}"
37 make DESTDIR="${pkgdir}" install
38 install -m755 -d "${pkgdir}/etc/X11/xorg.conf.d"
39 install -m644 "${srcdir}/10-synaptics.conf" "${pkgdir}/etc/X11/xorg.conf.d/"
40 install -m755 -d "${pkgdir}/usr/share/licenses/${_pkgname}"
41 install -m644 COPYING "${pkgdir}/usr/share/licenses/${_pkgname}/"
43 rm -rf "${pkgdir}/usr/share/X11"