linux-3-finger-drag-git
LOW
maintainer Aetf
0 votes
scanned 2026-08-21 01:13:51.509442
Why flagged
Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.
Triggered rules
Low
Few votes, recently uploaded
zero_votes_recent
Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.
PKGBUILD
1
# Maintainer: Aetf <aetf at unlimited-code dot works>
2
pkgname=linux-3-finger-drag-git
3
_pkgname=linux-3-finger-drag
4
pkgver=1.7.0.r12.gae22def
5
pkgrel=1
6
pkgdesc="Three-finger drag gestures for touchpads, as found on macOS"
7
arch=('x86_64' 'aarch64')
8
url="https://github.com/lmr97/linux-3-finger-drag"
9
license=('MIT')
10
depends=('glibc' 'libgcc')
11
makedepends=('cargo' 'git')
12
provides=("$_pkgname=$pkgver")
13
conflicts=("$_pkgname")
14
backup=("etc/$_pkgname/3fd-config.json")
15
install="$pkgname.install"
16
source=("$_pkgname::git+$url.git"
17
'80-linux-3-finger-drag.rules'
18
'three-finger-drag.service'
19
'uinput.conf')
20
b2sums=('SKIP'
21
'988418e1f14c59ae56ebfddd9c2830fe1afd38b03fc649852516465a713bd6a76d647516260d63b2815d8619c5e7b53930bd7afcea944635eb7026d424d3471d'
22
'f9d454942f083a589fb7f588159f86ec6debb16f3135cf6e573e9b5d6b4fb90a1dba571c25193f5527664d3a48732056ebb18c829548354db605060f50721225'
23
'6447424a864f4c54320eabc7948c34601f51084ad3d3889ab7cf13a50bff79d79284d9cc25413d2bbb868cca3394dc80dffcdd4cf006c519099a96dcf2196045')
24
25
pkgver() {
26
cd "$_pkgname"
27
28
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
29
}
30
31
prepare() {
32
cd "$_pkgname"
33
34
export RUSTUP_TOOLCHAIN=stable
35
cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
36
}
37
38
build() {
39
cd "$_pkgname"
40
41
export RUSTUP_TOOLCHAIN=stable
42
export CARGO_TARGET_DIR=target
43
44
cargo build --frozen --release --all-features
45
}
46
47
check() {
48
cd "$_pkgname"
49
50
export RUSTUP_TOOLCHAIN=stable
51
52
# The integration suite drives real uinput devices and is #[ignore]d
53
# upstream, so this runs the pure gesture-machine tests only.
54
cargo test --frozen --all-features
55
}
56
57
package() {
58
cd "$_pkgname"
59
60
install -Dm0755 "target/release/$_pkgname" -t "$pkgdir/usr/bin"
61
62
# A system unit, not upstream's user unit -- see the file for why.
63
install -Dm0644 "$srcdir/three-finger-drag.service" -t "$pkgdir/usr/lib/systemd/system"
64
install -Dm0644 3fd-config.json -t "$pkgdir/etc/$_pkgname"
65
66
# Not upstream's 60-uinput.rules: that one grants the logged-in user access,
67
# which this packaging deliberately does not rely on. See the file for why.
68
install -Dm0644 "$srcdir/80-$_pkgname.rules" -t "$pkgdir/usr/lib/udev/rules.d"
69
70
# Guarantees the module is up, so the rule also lands on the real device node.
71
install -Dm0644 "$srcdir/uinput.conf" "$pkgdir/usr/lib/modules-load.d/$_pkgname.conf"
72
73
install -Dm0644 README.md CHANGELOG.md -t "$pkgdir/usr/share/doc/$_pkgname"
74
install -Dm0644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
75
}
76
77
# vim:set ts=2 sw=2 et:
78
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-08-21 01:13:51 | Low | 1 |