Add touchpad hold-tap tool
This commit is contained in:
Executable
+20
@@ -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"
|
||||
Reference in New Issue
Block a user