From 1bb33f46c7990728bd32951a3c41cffbb241d152 Mon Sep 17 00:00:00 2001 From: goodroot Date: Tue, 30 Sep 2025 12:06:31 -0700 Subject: [PATCH] v1.2.9-4: Final AUR package with standard installation pattern - Complete dependency set including waybar and python-requests - Standard AUR post_install pattern (no automatic service enabling) - Clear user instructions for setup and service enabling - Follows Arch Linux packaging best practices - Ready for production use --- .SRCINFO | 2 +- PKGBUILD | 2 +- hyprwhspr.install | 30 ++++++------------------------ 3 files changed, 8 insertions(+), 26 deletions(-) diff --git a/.SRCINFO b/.SRCINFO index 7ae75c4925f4..e69157f4c812 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.9 - pkgrel = 3 + pkgrel = 4 url = https://github.com/goodroot/hyprwhspr install = hyprwhspr.install arch = x86_64 diff --git a/PKGBUILD b/PKGBUILD index 47766cc3f45b..8c94f7e7d159 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -2,7 +2,7 @@ pkgname=hyprwhspr pkgver=1.2.9 -pkgrel=3 +pkgrel=4 pkgdesc="Native Whisper speech-to-text for Arch/Omarchy with Waybar integration" arch=('x86_64') url="https://github.com/goodroot/hyprwhspr" diff --git a/hyprwhspr.install b/hyprwhspr.install index a52ddbbbc5e1..77515a715997 100644 --- a/hyprwhspr.install +++ b/hyprwhspr.install @@ -1,31 +1,13 @@ post_install() { - # Detect the actual user (not root) - if [ -n "$SUDO_USER" ]; then - ACTUAL_USER="$SUDO_USER" - else - # Fallback: find first non-root user - ACTUAL_USER=$(stat -c '%U' /home 2>/dev/null | head -1 || echo "") - fi - - if [ -n "$ACTUAL_USER" ] && [ "$ACTUAL_USER" != "root" ]; then - # Run setup as the actual user - sudo -u "$ACTUAL_USER" bash -c 'hyprwhspr-setup' || { - echo "Warning: Could not run setup as user $ACTUAL_USER. Please run manually:" - echo " hyprwhspr-setup" - } - else - echo "Warning: Could not determine user. Please run setup manually:" - echo " hyprwhspr-setup" - fi - cat <<'EOF' -hyprwhspr installed and configured! +hyprwhspr installed successfully! -Services running: ydotoold.service, hyprwhspr.service -Waybar integration configured -Whisper models downloaded -User configuration created +To complete setup: + hyprwhspr-setup + +To enable services: + systemctl --user enable --now ydotoold.service hyprwhspr.service IMPORTANT: Log out and log back in for permissions to take effect (Required for /dev/uinput access)