fix systemd issues on aur install

This commit is contained in:
LeonardoTrapani
2025-09-08 13:07:23 +02:00
parent e53fb42cc3
commit 8052fb4ada
3 changed files with 15 additions and 39 deletions
+3 -3
View File
@@ -1,6 +1,6 @@
# Maintainer: Leonardo Trapani <leo@trapani.sh> # Maintainer: Leonardo Trapani <leo@trapani.sh>
pkgname=hyprvoice-bin pkgname=hyprvoice-bin
pkgver=0.1.2 pkgver=0.1.3
pkgrel=1 pkgrel=1
pkgdesc="Voice-powered typing for Wayland/Hyprland" pkgdesc="Voice-powered typing for Wayland/Hyprland"
arch=('x86_64') arch=('x86_64')
@@ -25,8 +25,8 @@ source=(
"hyprvoice-${pkgver}::https://github.com/leonardotrapani/hyprvoice/releases/download/${pkgver}/hyprvoice-linux-x86_64" "hyprvoice-${pkgver}::https://github.com/leonardotrapani/hyprvoice/releases/download/${pkgver}/hyprvoice-linux-x86_64"
"hyprvoice.service" "hyprvoice.service"
) )
sha256sums=('aac0ba89ff96104b526bdbca7e70da17b6c77c44925181a1b9dafc65ca9b3da4' sha256sums=('e0b01b52559936016b17165280bf74232ab58275b4f4e5ee71ee41cae2b27cbd'
'8a9a764753c740a6c76e4173ccfb97b6e984ba52978124e307cebc9d62ed2596') '08acdc7d8d1ae5977d75b8e33ce23aead288fe15c1cc6a3c92eb19c2a502dd8d')
install=hyprvoice.install install=hyprvoice.install
package() { package() {
+10 -34
View File
@@ -1,49 +1,25 @@
post_install() { post_install() {
echo "==> Hyprvoice installation complete!" echo "==> Hyprvoice installed successfully!"
echo "" echo ""
echo " 📋 To use hyprvoice:"
# Auto-enable the service (safe to do during installation) echo " 1. Configure: hyprvoice configure"
echo "==> Enabling hyprvoice service..." echo " 2. Enable service: systemctl --user enable hyprvoice.service"
if systemctl --user enable hyprvoice.service 2>/dev/null; then echo " 3. Start service: systemctl --user start hyprvoice.service"
echo " ✅ Service enabled successfully" echo " 4. Add keybinding to your window manager"
else
echo " ⚠️ Service enable failed (you may need to run: systemctl --user enable hyprvoice.service)"
fi
echo ""
echo " 📋 Next steps:"
echo " 1. Configure hyprvoice: hyprvoice configure"
echo " 2. Start the service: systemctl --user start hyprvoice.service"
echo " 3. Add keybinding to your window manager config"
echo "" echo ""
echo " 🔑 For Hyprland, add to ~/.config/hypr/hyprland.conf:" echo " 🔑 For Hyprland, add to ~/.config/hypr/hyprland.conf:"
echo " bind = SUPER, R, exec, hyprvoice toggle" echo " bind = SUPER, R, exec, hyprvoice toggle"
echo "" echo ""
echo " 💡 The configure step will guide you through API key setup and preferences."
echo ""
} }
post_upgrade() { post_upgrade() {
echo "==> Hyprvoice has been upgraded." echo "==> Hyprvoice has been upgraded."
echo "" echo ""
echo " 📋 If you have hyprvoice running, restart it:"
# Check if service was running before upgrade echo " systemctl --user restart hyprvoice.service"
was_active=false
if systemctl --user is-active --quiet hyprvoice.service 2>/dev/null; then
was_active=true
echo "==> Service was running, restarting to apply updates..."
if systemctl --user restart hyprvoice.service 2>/dev/null; then
echo " ✅ Service restarted successfully"
else
echo " ⚠️ Service restart failed (you may need to run: systemctl --user restart hyprvoice.service)"
fi
else
echo "==> Service was not running (start with: systemctl --user start hyprvoice.service)"
fi
echo "" echo ""
echo " 📋 Check for new configuration options:"
echo " 📋 Additional steps:" echo " hyprvoice configure"
echo " 1. Check for new configuration options: hyprvoice configure"
echo "" echo ""
} }
+1 -1
View File
@@ -6,7 +6,7 @@ Wants=pipewire.service
[Service] [Service]
Type=simple Type=simple
ExecStart=%h/.local/bin/hyprvoice serve ExecStart=/usr/bin/hyprvoice serve
Restart=on-failure Restart=on-failure
RestartSec=5 RestartSec=5