blob: e4096adae4a146527e8d96025f70d2cfa11eb100 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
|
# Maintainer: Jasper van Bourgognie <louiecaulfield at gmail dot com>
# Contributor: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
_pkgname=libinput
pkgname=$_pkgname-three-finger-drag
pkgver=1.31.3
pkgrel=1
pkgdesc="Input device management and event handling library"
url="https://wayland.freedesktop.org/libinput/doc/latest/"
arch=(x86_64)
license=(MIT)
provides=(
"$_pkgname=$pkgver"
"$_pkgname-tools=$pkgver"
libinput.so
)
conflicts=(
"$_pkgname"
"$_pkgname-tools"
)
depends=(
glibc
libevdev
libgcc
libwacom
lua54
mtdev
systemd-libs
)
makedepends=(
cairo
check
git
glib2
gtk4
libx11
meson
python
python-libevdev
python-pyudev
python-yaml
wayland
wayland-protocols
)
checkdepends=(python-pytest)
source=(
"git+https://gitlab.freedesktop.org/$_pkgname/$_pkgname.git?signed#tag=$pkgver"
0001-meson-build-options-for-3-4-finger-dragging.patch
)
b2sums=(
'SKIP'
'58ef451c3c28748b60a7ed928059b43c7b17df6e5fb6cf990d2d745e0fc3e3dd3ad9e0076007e83c0c491a9e12813f5eba49b1a9c390ec58cf0ca8206743e190'
)
validpgpkeys=(
3C2C43D9447D5938EF4551EBE23B7E70B467F0BF # Peter Hutterer (Who-T) <office@who-t.net>
)
prepare() {
cd $_pkgname
patch -Np1 -i "$srcdir/0001-meson-build-options-for-3-4-finger-dragging.patch"
}
build() {
local meson_options=(
# upstream recommends not building docs
-D documentation=false
# ship 3-finger drag enabled by default
-D 3fg-drag-default=3fg
# always commit to a drag at the 80ms timeout, never to a 3fg swipe
-D 3fg-drag-always-drag=true
)
arch-meson $_pkgname build "${meson_options[@]}"
meson compile -C build
}
check() {
meson test -C build --print-errorlogs
}
package() {
meson install -C build --destdir "$pkgdir"
install -Dm644 $_pkgname/COPYING -t "$pkgdir/usr/share/licenses/$pkgname"
}
# vim:set sw=2 sts=-1 et:
|