mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-05 12:26:52 +02:00
testing/xf86-input-mtrack: new aport
https://github.com/p2rkw/xf86-input-mtrack xorg driver for multitouch trackpads
This commit is contained in:
parent
b9e877277e
commit
56af4fa770
41
testing/xf86-input-mtrack/APKBUILD
Normal file
41
testing/xf86-input-mtrack/APKBUILD
Normal file
@ -0,0 +1,41 @@
|
||||
# Contributor: Milan P. Stanić <mps@arvanta.net>
|
||||
# Maintainer: Milan P. Stanić <mps@arvanta.net>
|
||||
pkgname=xf86-input-mtrack
|
||||
_pkgver=0.5.0
|
||||
pkgver=${_pkgver}_git20220223
|
||||
_commitid=124b80f3913e44cc7fdc1ac36a639252f7c4bf1b
|
||||
pkgrel=0
|
||||
pkgdesc="xorg driver for multitouch trackpads"
|
||||
url="https://github.com/p2rkw/xf86-input-mtrack"
|
||||
arch="all"
|
||||
license="GPL-2.0-or-later"
|
||||
makedepends="mtdev-dev xorg-server-dev libtool"
|
||||
source="$pkgname-$_pkgver.tar.gz::https://github.com/p2rkw/xf86-input-mtrack/archive/$_commitid.tar.gz
|
||||
fix-time64.patch"
|
||||
builddir="$srcdir/"$pkgname-$_commitid
|
||||
|
||||
build() {
|
||||
./configure \
|
||||
--build=$CBUILD \
|
||||
--host=$CHOST \
|
||||
--prefix=/usr \
|
||||
--sysconfdir=/etc \
|
||||
--mandir=/usr/share/man \
|
||||
--localstatedir=/var \
|
||||
--enable-tools
|
||||
make
|
||||
}
|
||||
|
||||
check() {
|
||||
make check
|
||||
}
|
||||
|
||||
package() {
|
||||
make DESTDIR="$pkgdir" install
|
||||
#install -Dm644 10-mtrack.conf "$pkgdir"/usr/share/X11/xorg.conf.d/10-mtrack.conf
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
c9f02e7bd098851a95bcbcf935b3a8192eb390e687f1ed2bfcbebb81e84775e2b39518d94dab2f1d9bfe91c7df7e1db6a50810823612b34674054ced535662f3 xf86-input-mtrack-0.5.0.tar.gz
|
||||
6eb21849a39d2db2003cc4222879591d5b67b346e564e3e96fe1e109ae3071cceebdd56768ac82bd516bbc4566d7010069fc18ff7cb97f2bf1d005fde3088b7d fix-time64.patch
|
||||
"
|
||||
12
testing/xf86-input-mtrack/fix-time64.patch
Normal file
12
testing/xf86-input-mtrack/fix-time64.patch
Normal file
@ -0,0 +1,12 @@
|
||||
--- a/src/hwstate.c 2018-01-28 20:46:17.000000000 +0100
|
||||
+++ b/src/hwstate.c 2020-12-02 22:58:45.149335108 +0100
|
||||
@@ -41,7 +41,8 @@
|
||||
if (!caps->has_abs[MTDEV_WIDTH_MINOR])
|
||||
s->data[i].width_minor = s->data[i].width_major;
|
||||
}
|
||||
- timercp(&s->evtime, &syn->time);
|
||||
+ s->evtime.tv_sec = syn->input_event_sec;
|
||||
+ s->evtime.tv_usec = syn->input_event_usec;
|
||||
}
|
||||
|
||||
/*
|
||||
Loading…
x
Reference in New Issue
Block a user