chore: sync AUR packages (shared)
This commit is contained in:
1 parent
81217eff4e
commit
051e55ca17
7 files changed
+90
-40
No files matched your search
@@ -1,7 +1,7 @@
|
||||
pkgbase = voxtype-bin
|
||||
pkgdesc = Push-to-talk voice-to-text for Linux (pre-built binaries)
|
||||
pkgver = 0.6.6
|
||||
pkgrel = 1
|
||||
pkgrel = 2
|
||||
url = https://voxtype.io
|
||||
install = voxtype-bin.install
|
||||
arch = x86_64
|
||||
@@ -26,12 +26,19 @@ pkgbase = voxtype-bin
|
||||
conflicts = voxtype
|
||||
backup = etc/voxtype/config.toml
|
||||
source = voxtype-0.6.6-avx2::https://github.com/peteonrails/voxtype/releases/download/v0.6.6/voxtype-0.6.6-linux-x86_64-avx2
|
||||
source = voxtype-0.6.6-avx2.asc::https://github.com/peteonrails/voxtype/releases/download/v0.6.6/voxtype-0.6.6-linux-x86_64-avx2.asc
|
||||
source = voxtype-0.6.6-avx512::https://github.com/peteonrails/voxtype/releases/download/v0.6.6/voxtype-0.6.6-linux-x86_64-avx512
|
||||
source = voxtype-0.6.6-avx512.asc::https://github.com/peteonrails/voxtype/releases/download/v0.6.6/voxtype-0.6.6-linux-x86_64-avx512.asc
|
||||
source = voxtype-0.6.6-vulkan::https://github.com/peteonrails/voxtype/releases/download/v0.6.6/voxtype-0.6.6-linux-x86_64-vulkan
|
||||
source = voxtype-0.6.6-vulkan.asc::https://github.com/peteonrails/voxtype/releases/download/v0.6.6/voxtype-0.6.6-linux-x86_64-vulkan.asc
|
||||
source = voxtype-0.6.6-onnx-avx2::https://github.com/peteonrails/voxtype/releases/download/v0.6.6/voxtype-0.6.6-linux-x86_64-onnx-avx2
|
||||
source = voxtype-0.6.6-onnx-avx2.asc::https://github.com/peteonrails/voxtype/releases/download/v0.6.6/voxtype-0.6.6-linux-x86_64-onnx-avx2.asc
|
||||
source = voxtype-0.6.6-onnx-avx512::https://github.com/peteonrails/voxtype/releases/download/v0.6.6/voxtype-0.6.6-linux-x86_64-onnx-avx512
|
||||
source = voxtype-0.6.6-onnx-avx512.asc::https://github.com/peteonrails/voxtype/releases/download/v0.6.6/voxtype-0.6.6-linux-x86_64-onnx-avx512.asc
|
||||
source = voxtype-0.6.6-onnx-cuda::https://github.com/peteonrails/voxtype/releases/download/v0.6.6/voxtype-0.6.6-linux-x86_64-onnx-cuda
|
||||
source = voxtype-0.6.6-onnx-cuda.asc::https://github.com/peteonrails/voxtype/releases/download/v0.6.6/voxtype-0.6.6-linux-x86_64-onnx-cuda.asc
|
||||
source = voxtype-0.6.6-onnx-rocm::https://github.com/peteonrails/voxtype/releases/download/v0.6.6/voxtype-0.6.6-linux-x86_64-onnx-rocm
|
||||
source = voxtype-0.6.6-onnx-rocm.asc::https://github.com/peteonrails/voxtype/releases/download/v0.6.6/voxtype-0.6.6-linux-x86_64-onnx-rocm.asc
|
||||
source = config-0.6.6.toml::https://raw.githubusercontent.com/peteonrails/voxtype/v0.6.6/config/default.toml
|
||||
source = voxtype-0.6.6.service::https://raw.githubusercontent.com/peteonrails/voxtype/v0.6.6/packaging/systemd/voxtype.service
|
||||
source = voxtype-0.6.6.bash::https://raw.githubusercontent.com/peteonrails/voxtype/v0.6.6/packaging/completions/voxtype.bash
|
||||
@@ -39,12 +46,19 @@ pkgbase = voxtype-bin
|
||||
source = voxtype-0.6.6.fish::https://raw.githubusercontent.com/peteonrails/voxtype/v0.6.6/packaging/completions/voxtype.fish
|
||||
source = LICENSE-0.6.6::https://raw.githubusercontent.com/peteonrails/voxtype/v0.6.6/LICENSE
|
||||
source = README-0.6.6.md::https://raw.githubusercontent.com/peteonrails/voxtype/v0.6.6/README.md
|
||||
validpgpkeys = E79F5BAF8CD51A806AA27DBB7DA2709247D75BC6
|
||||
sha256sums = 505933791bb9389ef851813c404eefe63b186eba3aa842b2b321a164ecb8a6db
|
||||
sha256sums = SKIP
|
||||
sha256sums = ad9631c1fa810cab0749d66b73a549b6634047bbe36f004ad52d24acf969a467
|
||||
sha256sums = SKIP
|
||||
sha256sums = 2f7cf1bb199c2d25cae6566c2df0bbe62d39e712f9abea329cb2d563a3b548fe
|
||||
sha256sums = SKIP
|
||||
sha256sums = 300d040d682e39fdb3a5beca4814cdd1bc127d61efaea917ea43031193aba92f
|
||||
sha256sums = SKIP
|
||||
sha256sums = 3799fb9a6d5d59e132286b8c5f7166d849a746dcd255d2b24b77c87a3bd9fbb6
|
||||
sha256sums = SKIP
|
||||
sha256sums = ce130d9190274b84c61c974dbeeb3d92c308285f40d4d0befaa135be49af1a09
|
||||
sha256sums = SKIP
|
||||
sha256sums = 456026cc5b0122b3f99a52691c82579bda16d1c36bd739a378b7b1ea24f1294f
|
||||
sha256sums = SKIP
|
||||
sha256sums = SKIP
|
||||
@@ -53,5 +67,6 @@ pkgbase = voxtype-bin
|
||||
sha256sums = SKIP
|
||||
sha256sums = SKIP
|
||||
sha256sums = SKIP
|
||||
sha256sums = SKIP
|
||||
|
||||
pkgname = voxtype-bin
|
||||
@@ -1,7 +1,7 @@
|
||||
# Maintainer: Peter Jackson <pete@peteonrails.com>
|
||||
pkgname=voxtype-bin
|
||||
pkgver=0.6.6
|
||||
pkgrel=1
|
||||
pkgrel=2
|
||||
pkgdesc="Push-to-talk voice-to-text for Linux (pre-built binaries)"
|
||||
arch=('x86_64')
|
||||
url="https://voxtype.io"
|
||||
@@ -30,17 +30,25 @@ provides=('voxtype')
|
||||
conflicts=('voxtype')
|
||||
backup=('etc/voxtype/config.toml')
|
||||
install=voxtype-bin.install
|
||||
validpgpkeys=('E79F5BAF8CD51A806AA27DBB7DA2709247D75BC6') # Peter Jackson <pete@peteonrails.com>
|
||||
_github="https://github.com/peteonrails/voxtype/releases/download/v$pkgver"
|
||||
source=(
|
||||
# Whisper binaries
|
||||
"voxtype-$pkgver-avx2::$_github/voxtype-$pkgver-linux-x86_64-avx2"
|
||||
"voxtype-$pkgver-avx2.asc::$_github/voxtype-$pkgver-linux-x86_64-avx2.asc"
|
||||
"voxtype-$pkgver-avx512::$_github/voxtype-$pkgver-linux-x86_64-avx512"
|
||||
"voxtype-$pkgver-avx512.asc::$_github/voxtype-$pkgver-linux-x86_64-avx512.asc"
|
||||
"voxtype-$pkgver-vulkan::$_github/voxtype-$pkgver-linux-x86_64-vulkan"
|
||||
"voxtype-$pkgver-vulkan.asc::$_github/voxtype-$pkgver-linux-x86_64-vulkan.asc"
|
||||
# ONNX binaries (all ONNX engines: Parakeet, Moonshine, SenseVoice, Paraformer, Dolphin, Omnilingual)
|
||||
"voxtype-$pkgver-onnx-avx2::$_github/voxtype-$pkgver-linux-x86_64-onnx-avx2"
|
||||
"voxtype-$pkgver-onnx-avx2.asc::$_github/voxtype-$pkgver-linux-x86_64-onnx-avx2.asc"
|
||||
"voxtype-$pkgver-onnx-avx512::$_github/voxtype-$pkgver-linux-x86_64-onnx-avx512"
|
||||
"voxtype-$pkgver-onnx-avx512.asc::$_github/voxtype-$pkgver-linux-x86_64-onnx-avx512.asc"
|
||||
"voxtype-$pkgver-onnx-cuda::$_github/voxtype-$pkgver-linux-x86_64-onnx-cuda"
|
||||
"voxtype-$pkgver-onnx-cuda.asc::$_github/voxtype-$pkgver-linux-x86_64-onnx-cuda.asc"
|
||||
"voxtype-$pkgver-onnx-rocm::$_github/voxtype-$pkgver-linux-x86_64-onnx-rocm"
|
||||
"voxtype-$pkgver-onnx-rocm.asc::$_github/voxtype-$pkgver-linux-x86_64-onnx-rocm.asc"
|
||||
# Config and support files
|
||||
"config-$pkgver.toml::https://raw.githubusercontent.com/peteonrails/voxtype/v$pkgver/config/default.toml"
|
||||
"voxtype-$pkgver.service::https://raw.githubusercontent.com/peteonrails/voxtype/v$pkgver/packaging/systemd/voxtype.service"
|
||||
@@ -53,13 +61,20 @@ source=(
|
||||
sha256sums=(
|
||||
# Whisper binaries
|
||||
'505933791bb9389ef851813c404eefe63b186eba3aa842b2b321a164ecb8a6db' # voxtype-avx2
|
||||
'SKIP' # voxtype-avx2.asc
|
||||
'ad9631c1fa810cab0749d66b73a549b6634047bbe36f004ad52d24acf969a467' # voxtype-avx512
|
||||
'SKIP' # voxtype-avx512.asc
|
||||
'2f7cf1bb199c2d25cae6566c2df0bbe62d39e712f9abea329cb2d563a3b548fe' # voxtype-vulkan
|
||||
'SKIP' # voxtype-vulkan.asc
|
||||
# ONNX binaries
|
||||
'300d040d682e39fdb3a5beca4814cdd1bc127d61efaea917ea43031193aba92f' # voxtype-onnx-avx2
|
||||
'SKIP' # voxtype-onnx-avx2.asc
|
||||
'3799fb9a6d5d59e132286b8c5f7166d849a746dcd255d2b24b77c87a3bd9fbb6' # voxtype-onnx-avx512
|
||||
'SKIP' # voxtype-onnx-avx512.asc
|
||||
'ce130d9190274b84c61c974dbeeb3d92c308285f40d4d0befaa135be49af1a09' # voxtype-onnx-cuda
|
||||
'SKIP' # voxtype-onnx-cuda.asc
|
||||
'456026cc5b0122b3f99a52691c82579bda16d1c36bd739a378b7b1ea24f1294f' # voxtype-onnx-rocm
|
||||
'SKIP' # voxtype-onnx-rocm.asc
|
||||
# Config and support files
|
||||
'SKIP' # config.toml
|
||||
'SKIP' # voxtype.service
|
||||
@@ -84,10 +99,8 @@ package() {
|
||||
install -Dm755 "$srcdir/voxtype-$pkgver-onnx-cuda" "$pkgdir/usr/lib/voxtype/voxtype-onnx-cuda"
|
||||
install -Dm755 "$srcdir/voxtype-$pkgver-onnx-rocm" "$pkgdir/usr/lib/voxtype/voxtype-onnx-rocm"
|
||||
|
||||
# Create symlink based on CPU capabilities (updated in .install file)
|
||||
# Default to avx2 for safety
|
||||
mkdir -p "$pkgdir/usr/bin"
|
||||
ln -sf /usr/lib/voxtype/voxtype-avx2 "$pkgdir/usr/bin/voxtype"
|
||||
# /usr/bin/voxtype symlink is managed by the .install script
|
||||
# to preserve user-configured backends across upgrades
|
||||
|
||||
# Install default configuration
|
||||
install -Dm644 "$srcdir/config-$pkgver.toml" "$pkgdir/etc/voxtype/config.toml"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
_detect_cpu() {
|
||||
# Detect CPU capabilities and symlink appropriate binary
|
||||
_set_default_backend() {
|
||||
# Set the default CPU backend based on CPU capabilities
|
||||
if grep -q avx512f /proc/cpuinfo 2>/dev/null; then
|
||||
ln -sf /usr/lib/voxtype/voxtype-avx512 /usr/bin/voxtype
|
||||
echo "avx512"
|
||||
@@ -9,6 +9,23 @@ _detect_cpu() {
|
||||
fi
|
||||
}
|
||||
|
||||
_preserve_or_set_backend() {
|
||||
# Restore saved backend from pre_upgrade, or set default
|
||||
local saved="/tmp/.voxtype-backend-upgrade"
|
||||
if [ -f "$saved" ]; then
|
||||
target=$(cat "$saved")
|
||||
rm -f "$saved"
|
||||
if [ -f "$target" ]; then
|
||||
ln -sf "$target" /usr/bin/voxtype
|
||||
echo "${target##*/voxtype-}"
|
||||
return
|
||||
fi
|
||||
fi
|
||||
|
||||
# No saved state or target gone — set default
|
||||
_set_default_backend
|
||||
}
|
||||
|
||||
_detect_gpu() {
|
||||
# Detect GPU for acceleration recommendation
|
||||
GPU_DETECTED=""
|
||||
@@ -56,7 +73,7 @@ post_install() {
|
||||
echo "==> Voxtype Post-installation Steps:"
|
||||
echo ""
|
||||
|
||||
CPU_VARIANT=$(_detect_cpu)
|
||||
CPU_VARIANT=$(_set_default_backend)
|
||||
echo " CPU backend: $CPU_VARIANT (using voxtype-$CPU_VARIANT)"
|
||||
|
||||
_detect_gpu
|
||||
@@ -78,15 +95,20 @@ post_install() {
|
||||
echo ""
|
||||
}
|
||||
|
||||
pre_upgrade() {
|
||||
# Save the current backend so post_upgrade can restore it
|
||||
if [ -L /usr/bin/voxtype ]; then
|
||||
readlink /usr/bin/voxtype > /tmp/.voxtype-backend-upgrade
|
||||
fi
|
||||
}
|
||||
|
||||
post_upgrade() {
|
||||
echo ""
|
||||
echo "==> Voxtype upgraded to 0.6.6"
|
||||
echo ""
|
||||
|
||||
CPU_VARIANT=$(_detect_cpu)
|
||||
echo " CPU backend: $CPU_VARIANT (using voxtype-$CPU_VARIANT)"
|
||||
|
||||
_detect_gpu
|
||||
BACKEND=$(_preserve_or_set_backend)
|
||||
echo " Backend: $BACKEND (using voxtype-$BACKEND)"
|
||||
|
||||
echo ""
|
||||
echo " v0.6.6: Media pause, audio feedback, KDE Plasma support, 7 bug fixes."
|
||||
|
||||
Reference in new issue
Block a user