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
This commit is contained in:
goodroot 2025-09-30 12:06:31 -07:00
parent 418267ac1f
commit 1bb33f46c7
3 changed files with 8 additions and 26 deletions

View file

@ -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

View file

@ -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"

View file

@ -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)