From b8672ebb0303448605907b9fcd933fba096abc38 Mon Sep 17 00:00:00 2001 From: goodroot Date: Sat, 6 Sep 2025 16:00:37 -0700 Subject: [PATCH] Fix venv activation path issue - Use venv's python directly instead of sourcing activate script - This avoids hardcoded build paths in activate script - Bump pkgrel to 3 --- .SRCINFO | 2 +- PKGBUILD | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.SRCINFO b/.SRCINFO index 0ff01430c78d..b651999d4190 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 = 2 + pkgrel = 6 url = https://github.com/goodroot/hyprwhspr install = hyprwhspr.install arch = x86_64 diff --git a/PKGBUILD b/PKGBUILD index c57e0c4acb89..b58f3a762f61 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -2,7 +2,7 @@ pkgname=hyprwhspr pkgver=1.2.0 -pkgrel=2 +pkgrel=3 pkgdesc="Native Whisper speech-to-text for Arch/Omarchy with Waybar integration" arch=('x86_64') url="https://github.com/goodroot/hyprwhspr" @@ -55,9 +55,9 @@ package() { # Create Python virtual environment and install pip-only dependencies cd "${pkgdir}/opt/${pkgname}" python -m venv venv - source venv/bin/activate - pip install --upgrade pip - pip install sounddevice # Only dependency not available in Arch repos + # Use the venv's python directly to avoid path issues + ./venv/bin/python -m pip install --upgrade pip + ./venv/bin/python -m pip install sounddevice # Only dependency not available in Arch repos # Create symlink for easy access install -dm755 "${pkgdir}/usr/bin"