sherpa-onnx-bin

LOW
maintainer agony4001 0 votes scanned 2026-10-23 15:37:50.087015
View on AUR
Why flagged

Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.

Triggered rules

Low Few votes, recently uploaded zero_votes_recent

Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.

PKGBUILD

1# Maintainer: agony <27015 at riseup dot net>
2
3pkgname=sherpa-onnx-bin
4_pkgname=sherpa-onnx
5pkgver=1.13.8
6pkgrel=2
7pkgdesc="Speech-to-text, TTS, diarization and VAD with next-gen Kaldi and onnxruntime (prebuilt)"
8arch=('x86_64' 'aarch64' 'armv7h')
9url="https://github.com/k2-fsa/sherpa-onnx"
10license=('Apache-2.0')
11depends=('alsa-lib' 'glibc' 'libgcc' 'libstdc++')
12makedepends=('patchelf')
13provides=("${_pkgname}=${pkgver}")
14conflicts=("${_pkgname}")
15_release="${url}/releases/download/v${pkgver}/${_pkgname}-v${pkgver}"
16_raw="https://raw.githubusercontent.com/k2-fsa/${_pkgname}/v${pkgver}/${_pkgname}/c-api"
17# The ARM tarballs ship no headers; the two C API headers at the same tag are identical to the x86_64 copy
18source=("c-api-${pkgver}.h::${_raw}/c-api.h"
19 "cxx-api-${pkgver}.h::${_raw}/cxx-api.h")
20source_x86_64=("${_release}-linux-x64-shared.tar.bz2")
21source_aarch64=("${_release}-linux-aarch64-shared-cpu.tar.bz2")
22source_armv7h=("${_release}-linux-arm-gnueabihf-shared.tar.bz2")
23sha256sums=('2a1b95084be8fd1deb3228fcad2fd3f7f0258b64582f7402281ec174c7b7f4ce'
24 '5b02af132b382a82addfa47f927d9cb41bb71d8598d78253ded41410fb12dbda')
25sha256sums_x86_64=('c0bdb7907d3a74bba1d55d22bf4d9fa75586cf1530614ebe88a27b9118e015c4')
26sha256sums_aarch64=('4e3734f82bc1379fd91f219f5869c7e9d03b7a4f7561907d8abca4849c51a789')
27sha256sums_armv7h=('832c200eb361e361c587812f116436760e7728d2ee93ea4759ad5d59ab5c2e6c')
28
29package() {
30 local src
31 case "$CARCH" in
32 x86_64) src="${_pkgname}-v${pkgver}-linux-x64-shared" ;;
33 aarch64) src="${_pkgname}-v${pkgver}-linux-aarch64-shared-cpu" ;;
34 armv7h) src="${_pkgname}-v${pkgver}-linux-arm-gnueabihf-shared" ;;
35 esac
36 local libdir="/usr/lib/${_pkgname}"
37
38 # Bundled onnxruntime stays out of /usr/lib: extra/onnxruntime ships the same soname
39 # Only the three sherpa libraries are taken: the armv7h tarball also bundles libasound, which must stay the system one
40 install -Dm755 "${src}"/lib/{libonnxruntime,libsherpa-onnx-c-api,libsherpa-onnx-cxx-api}.so -t "${pkgdir}${libdir}"
41 install -Dm755 "${src}"/bin/sherpa-onnx-* -t "${pkgdir}/usr/bin"
42 install -Dm644 "c-api-${pkgver}.h" "${pkgdir}/usr/include/${_pkgname}/c-api/c-api.h"
43 install -Dm644 "cxx-api-${pkgver}.h" "${pkgdir}/usr/include/${_pkgname}/c-api/cxx-api.h"
44
45 # Upstream RPATH is relative to the tarball tree; point binaries at the private libdir
46 local f
47 for f in "${pkgdir}"/usr/bin/*; do
48 if [[ $(head -c4 "$f") == $'\x7fELF' ]]; then
49 patchelf --set-rpath "${libdir}" "$f"
50 fi
51 done
52}
53

Changes since previous scan

--- PKGBUILD @ 2026-10-14 00:06
+++ PKGBUILD @ 2026-10-23 15:37
@@ -3,27 +3,44 @@
pkgname=sherpa-onnx-bin
_pkgname=sherpa-onnx
pkgver=1.13.8
-pkgrel=1
+pkgrel=2
pkgdesc="Speech-to-text, TTS, diarization and VAD with next-gen Kaldi and onnxruntime (prebuilt)"
-arch=('x86_64')
+arch=('x86_64' 'aarch64' 'armv7h')
url="https://github.com/k2-fsa/sherpa-onnx"
license=('Apache-2.0')
depends=('alsa-lib' 'glibc' 'libgcc' 'libstdc++')
makedepends=('patchelf')
provides=("${_pkgname}=${pkgver}")
conflicts=("${_pkgname}")
-source=("${url}/releases/download/v${pkgver}/${_pkgname}-v${pkgver}-linux-x64-shared.tar.bz2")
-sha256sums=('c0bdb7907d3a74bba1d55d22bf4d9fa75586cf1530614ebe88a27b9118e015c4')
+_release="${url}/releases/download/v${pkgver}/${_pkgname}-v${pkgver}"
+_raw="https://raw.githubusercontent.com/k2-fsa/${_pkgname}/v${pkgver}/${_pkgname}/c-api"
+# The ARM tarballs ship no headers; the two C API headers at the same tag are identical to the x86_64 copy
+source=("c-api-${pkgver}.h::${_raw}/c-api.h"
+ "cxx-api-${pkgver}.h::${_raw}/cxx-api.h")
+source_x86_64=("${_release}-linux-x64-shared.tar.bz2")
+source_aarch64=("${_release}-linux-aarch64-shared-cpu.tar.bz2")
+source_armv7h=("${_release}-linux-arm-gnueabihf-shared.tar.bz2")
+sha256sums=('2a1b95084be8fd1deb3228fcad2fd3f7f0258b64582f7402281ec174c7b7f4ce'
+ '5b02af132b382a82addfa47f927d9cb41bb71d8598d78253ded41410fb12dbda')
+sha256sums_x86_64=('c0bdb7907d3a74bba1d55d22bf4d9fa75586cf1530614ebe88a27b9118e015c4')
+sha256sums_aarch64=('4e3734f82bc1379fd91f219f5869c7e9d03b7a4f7561907d8abca4849c51a789')
+sha256sums_armv7h=('832c200eb361e361c587812f116436760e7728d2ee93ea4759ad5d59ab5c2e6c')
package() {
- local src="${_pkgname}-v${pkgver}-linux-x64-shared"
+ local src
+ case "$CARCH" in
+ x86_64) src="${_pkgname}-v${pkgver}-linux-x64-shared" ;;
+ aarch64) src="${_pkgname}-v${pkgver}-linux-aarch64-shared-cpu" ;;
+ armv7h) src="${_pkgname}-v${pkgver}-linux-arm-gnueabihf-shared" ;;
+ esac
local libdir="/usr/lib/${_pkgname}"
# Bundled onnxruntime stays out of /usr/lib: extra/onnxruntime ships the same soname
- install -d "${pkgdir}${libdir}" "${pkgdir}/usr/include"
- cp -dr --no-preserve=ownership "${src}"/lib/. "${pkgdir}${libdir}/"
- install -Dm755 "${src}"/bin/* -t "${pkgdir}/usr/bin"
- cp -dr --no-preserve=ownership "${src}/include/${_pkgname}" "${pkgdir}/usr/include/"
+ # Only the three sherpa libraries are taken: the armv7h tarball also bundles libasound, which must stay the system one
+ install -Dm755 "${src}"/lib/{libonnxruntime,libsherpa-onnx-c-api,libsherpa-onnx-cxx-api}.so -t "${pkgdir}${libdir}"
+ install -Dm755 "${src}"/bin/sherpa-onnx-* -t "${pkgdir}/usr/bin"
+ install -Dm644 "c-api-${pkgver}.h" "${pkgdir}/usr/include/${_pkgname}/c-api/c-api.h"
+ install -Dm644 "cxx-api-${pkgver}.h" "${pkgdir}/usr/include/${_pkgname}/c-api/cxx-api.h"
# Upstream RPATH is relative to the tarball tree; point binaries at the private libdir
local f

Scan history

Scanned at (UTC)SeverityRules
2026-10-23 15:37:50 Low 1
2026-10-15 00:28:05 Clean 2
2026-10-14 01:18:27 Low 1
2026-10-14 00:06:47 Low 2
2026-10-13 17:17:20 Low 2

Report a package

Reports go to the AURWatch maintainer (one person) and are read by hand. No login required.

0 / 4000
Your suggestion