Files
fedora-tools/scripts/build-touchpad-hold-tap-rpm

27 lines
968 B
Bash
Executable File

#!/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"
install -m 0755 \
"$repo_root/touchpad-hold-tap/touchpad-hold-tap-config" \
"$topdir/SOURCES/touchpad-hold-tap-config"
install -m 0755 \
"$repo_root/touchpad-hold-tap/tests/test-touchpad-hold-tap-config" \
"$topdir/SOURCES/test-touchpad-hold-tap-config"
rpmbuild \
--define "_topdir $topdir" \
-bb "$repo_root/touchpad-hold-tap/touchpad-hold-tap.spec"