Add touchpad hold-tap tool

This commit is contained in:
ajp_anton
2026-08-30 00:28:02 +00:00
commit 1f0090392d
9 changed files with 963 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
#!/usr/bin/env bash
set -euo pipefail
repo_root=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")/.." && pwd)
topdir="$repo_root/rpmbuild"
mkdir -p "$topdir"/{BUILD,BUILDROOT,RPMS,SOURCES,SPECS,SRPMS}
install -m 0644 \
"$repo_root/touchpad-hold-tap/90-touchpad-hold-tap.lua" \
"$topdir/SOURCES/90-touchpad-hold-tap.lua"
install -m 0644 "$repo_root/LICENSE" "$topdir/SOURCES/LICENSE"
install -m 0644 \
"$repo_root/touchpad-hold-tap/tests/test-touchpad-hold-tap.lua" \
"$topdir/SOURCES/test-touchpad-hold-tap.lua"
install -m 0644 "$repo_root/README.md" "$topdir/SOURCES/README.md"
rpmbuild \
--define "_topdir $topdir" \
-bb "$repo_root/touchpad-hold-tap/touchpad-hold-tap.spec"