mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-11 15:34:36 +08:00
45 lines
1.5 KiB
Bash
45 lines
1.5 KiB
Bash
# Maintainer: Drake Justice <djustice@chakraos.org>
|
|
|
|
pkgname=xf86-input-synaptics
|
|
pkgver=1.8.0
|
|
pkgrel=3
|
|
pkgdesc="Synaptics driver for notebook touchpads"
|
|
arch=('x86_64')
|
|
license=('custom')
|
|
url="http://xorg.freedesktop.org/"
|
|
depends=('libxtst' 'mtdev' 'libevdev')
|
|
makedepends=('xorg-server' '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=('9bf27632aaa6c5e62621ca9c2ca00f9b309c85b039ee33cd592b189fc872c37a'
|
|
'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"
|
|
}
|
|
|