mirror of
https://github.com/archlinux/aur.git
synced 2026-03-05 01:22:44 +01:00
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:
parent
418267ac1f
commit
1bb33f46c7
3 changed files with 8 additions and 26 deletions
2
.SRCINFO
2
.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
|
||||
|
|
|
|||
2
PKGBUILD
2
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"
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue