Files
voculinux/packaging/aur/vocalinux/PKGBUILD
T
Jatin K MalikandGitHub 068530535b chore(license): migrate from GPL-3.0 to AGPL-3.0 (#660)
Align Vocalinux with the other VocaHQ distribution projects
(VocaMac, VocaPhone, VocaServer) under AGPL-3.0.
2026-08-08 13:10:37 -07:00

72 lines
2.0 KiB
Bash

# Maintainer: Jatin K Malik <jatinkrmalik@gmail.com>
# Updated by .github/workflows/release.yml on v* tags. Setup: docs/AUR.md
pkgname=vocalinux
# AUR pkgver cannot contain hyphens (v0.14.0-beta -> 0.14.0beta).
pkgver=0.15.0
_tag=0.15.0
pkgrel=1
pkgdesc="Free, offline voice dictation for Linux"
arch=('any')
url="https://github.com/jatinkrmalik/vocalinux"
license=('AGPL-3.0-only')
depends=(
'python>=3.9'
'python-gobject'
'gtk3'
'libayatana-appindicator'
'ibus'
'gobject-introspection'
'python-cairo'
'python-pynput'
'python-pywhispercpp'
'python-pyaudio'
'portaudio'
'python-numpy'
'python-requests'
'python-tqdm'
'python-psutil'
'python-lxml'
'python-pydub'
'python-evdev'
'python-xlib'
'hicolor-icon-theme'
)
makedepends=(
'python-build'
'python-installer'
'python-wheel'
'python-setuptools'
)
optdepends=(
'python-pywhispercpp-cpu: CPU-only whisper.cpp backend (default provider)'
'python-pywhispercpp-cuda: NVIDIA GPU whisper.cpp backend'
'python-pywhispercpp-rocm: AMD GPU whisper.cpp backend'
'python-onnxruntime: Silero VAD'
'xdotool: X11 injection fallback'
'xclip: X11 clipboard tools (copy/paste injection fallbacks)'
'wl-clipboard: Wayland clipboard (wl-copy/wl-paste) injection fallbacks'
'wtype: Wayland keystroke injection fallback'
)
conflicts=('vocalinux-git')
source=("${pkgname}-${_tag}.tar.gz::https://github.com/jatinkrmalik/vocalinux/archive/refs/tags/v${_tag}.tar.gz")
# SKIP until the v${_tag} tarball exists. release.yml sets updpkgsums=true on publish.
sha256sums=('SKIP')
build() {
cd "${pkgname}-${_tag}"
python -m build --wheel --no-isolation
}
package() {
cd "${pkgname}-${_tag}"
python -m installer --destdir="${pkgdir}" dist/*.whl
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
install -Dm644 vocalinux.desktop "${pkgdir}/usr/share/applications/vocalinux.desktop"
for icon in resources/icons/scalable/*.svg; do
install -Dm644 "$icon" "${pkgdir}/usr/share/icons/hicolor/scalable/apps/$(basename "$icon")"
done
}