From 677bfd48e5730758f56760677298d3dd33ee5e16 Mon Sep 17 00:00:00 2001 From: goodroot Date: Sat, 6 Sep 2025 16:17:51 -0700 Subject: [PATCH] Complete AUR package automation - Add evdev to venv dependencies for complete self-contained environment - Restore automatic setup script execution in hyprwhspr.install - Package now handles NVIDIA detection, permissions, and services automatically - Bump pkgrel to 10 --- .SRCINFO | 2 +- hyprwhspr.install | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 34 insertions(+), 1 deletion(-) diff --git a/.SRCINFO b/.SRCINFO index 418c39ba7ff6..8c37ec6e84ca 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -1,7 +1,7 @@ pkgbase = hyprwhspr pkgdesc = Native Whisper speech-to-text for Arch/Omarchy with Waybar integration pkgver = 1.2.0 - pkgrel = 9 + pkgrel = 10 url = https://github.com/goodroot/hyprwhspr install = hyprwhspr.install arch = x86_64 diff --git a/hyprwhspr.install b/hyprwhspr.install index 74b1a42088a2..5961e02dae59 100644 --- a/hyprwhspr.install +++ b/hyprwhspr.install @@ -1,5 +1,23 @@ post_install() { echo "HyprWhspr has been installed to /opt/hyprwhspr/" + echo "" + echo "Running automatic setup..." + + # Run the installation script automatically + if [ -f "/opt/hyprwhspr/scripts/install-omarchy.sh" ]; then + echo "Executing installation script..." + cd /opt/hyprwhspr + ./scripts/install-omarchy.sh + echo "" + echo "✅ HyprWhspr setup completed successfully!" + echo "" + echo "⚠️ IMPORTANT: Log out and back in to ensure proper permissions" + echo " Then use Super+Alt+D to start dictation!" + else + echo "❌ Installation script not found. Please run manually:" + echo " /opt/hyprwhspr/scripts/install-omarchy.sh" + fi + echo "" echo "See GitHub for more information." echo " https://github.com/goodroot/hyprwhspr/" @@ -7,6 +25,21 @@ post_install() { post_upgrade() { echo "HyprWhspr has been upgraded successfully!" + echo "" + echo "Re-running setup to update configuration..." + + # Re-run the installation script to update components + if [ -f "/opt/hyprwhspr/scripts/install-omarchy.sh" ]; then + echo "Updating whisper.cpp and dependencies..." + cd /opt/hyprwhspr + ./scripts/install-omarchy.sh + echo "" + echo "✅ HyprWhspr update completed successfully!" + else + echo "❌ Installation script not found. Please run manually:" + echo " /opt/hyprwhspr/scripts/install-omarchy.sh" + fi + echo "" echo "See GitHub for more information." echo " https://github.com/goodroot/hyprwhspr/"