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
This commit is contained in:
goodroot 2025-09-06 16:00:37 -07:00
parent bcaeb08e4f
commit b8672ebb03
2 changed files with 5 additions and 5 deletions

View file

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

View file

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