Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] New package: libvosk-0.3.43
@ 2022-08-31 21:38 JohnGebbie
  2022-09-02  7:33 ` JohnGebbie
                   ` (33 more replies)
  0 siblings, 34 replies; 35+ messages in thread
From: JohnGebbie @ 2022-08-31 21:38 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1049 bytes --]

There is a new pull request by JohnGebbie against master on the void-packages repository

https://github.com/JohnGebbie/void-packages libvosk
https://github.com/void-linux/void-packages/pull/39015

New package: libvosk-0.3.43
WORK IN PROGRESS

#### Testing the changes
- I tested the changes in this PR: **briefly**

#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**

#### Local build testing
- I built this PR locally for my native architecture, (x86_64-glibc)
- I built this PR locally for these architectures:
	- x86_64-musL

The other architectures seem to have problems.

Vosk is a dependency of a program I'd like to package, but Vosk is the hard bit and I was wondering if this template using prebuilt binaries was acceptable.
Thank you.

Closes https://github.com/void-linux/void-packages/issues/39009


A patch file from https://github.com/void-linux/void-packages/pull/39015.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-libvosk-39015.patch --]
[-- Type: text/x-diff, Size: 1314 bytes --]

From de81b36f793e44ac70dcd8e0412f53cfaa40ac4c Mon Sep 17 00:00:00 2001
From: John Gebbie <me@johngebbie.com>
Date: Wed, 31 Aug 2022 22:16:21 +0100
Subject: [PATCH] New package: libvosk-0.3.43

---
 srcpkgs/libvosk/template | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)
 create mode 100644 srcpkgs/libvosk/template

diff --git a/srcpkgs/libvosk/template b/srcpkgs/libvosk/template
new file mode 100644
index 000000000000..d50493f942e6
--- /dev/null
+++ b/srcpkgs/libvosk/template
@@ -0,0 +1,22 @@
+# Template file for 'libvosk'
+pkgname=libvosk
+version=0.3.43
+revision=1
+archs="aarch64 aarch64-musl armv7l armv7l-musl x86_64 x86_64-musl"
+wrksrc="vosk-linux-$(arch)-$version"
+short_desc="Offline speech recognition library"
+maintainer="John Gebbie <me@johngebbie.com>"
+license="Apache-2.0"
+homepage="https://alphacephei.com/vosk"
+distfiles="https://github.com/alphacep/vosk-api/releases/download/v$version/$wrksrc.zip"
+declare -A _sums=(
+[aarch64]=14acc86898e9430f0aff32207a45445761aabc48feca0e381c65c91db634414b
+[armv7l]=cf3dd76d8433a77840599a766039e31ba91df49e12285fa07f8892fff3ee3b4b
+[x86_64]=75a92b73507df4f7fa0746d16f9ba9266ad6656fdf02aab3c6d1e91aa7bb9803
+)
+checksum="${_sums[$(arch)]}"
+
+do_install() {
+	vinstall libvosk.so 644 usr/lib
+	vinstall vosk_api.h 644 usr/include
+}

^ permalink raw reply	[flat|nested] 35+ messages in thread

* Re: New package: libvosk-0.3.43
  2022-08-31 21:38 [PR PATCH] New package: libvosk-0.3.43 JohnGebbie
@ 2022-09-02  7:33 ` JohnGebbie
  2022-09-02  9:01 ` JohnGebbie
                   ` (32 subsequent siblings)
  33 siblings, 0 replies; 35+ messages in thread
From: JohnGebbie @ 2022-09-02  7:33 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 559 bytes --]

New comment by JohnGebbie on void-packages repository

https://github.com/void-linux/void-packages/pull/39015#issuecomment-1235168599

Comment:
I'm guessing my template's no good, and I'm trying to write one that does all the compiling.

Vosk has a bunch of dependencies that have been modified for itself and wouldn't make packages of their own.
How do I write a template with multiple things to build?
What happens with multiple distfiles, when I `ls` in the template, it just seems to be the files of one of them?
Can you have multiple buid_styles?


^ permalink raw reply	[flat|nested] 35+ messages in thread

* Re: New package: libvosk-0.3.43
  2022-08-31 21:38 [PR PATCH] New package: libvosk-0.3.43 JohnGebbie
  2022-09-02  7:33 ` JohnGebbie
@ 2022-09-02  9:01 ` JohnGebbie
  2022-09-02 18:59 ` JohnGebbie
                   ` (31 subsequent siblings)
  33 siblings, 0 replies; 35+ messages in thread
From: JohnGebbie @ 2022-09-02  9:01 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 522 bytes --]

New comment by JohnGebbie on void-packages repository

https://github.com/void-linux/void-packages/pull/39015#issuecomment-1235168599

Comment:
I'm guessing my template's no good, and I'm trying to write one that does all the compiling.

Vosk has a bunch of dependencies that have been modified for itself and wouldn't make packages of their own.
How do I write a template with multiple things to build?
How do multiple distfiles work with build_styles, the order of the distfiles doesn't seem to make a difference?


^ permalink raw reply	[flat|nested] 35+ messages in thread

* Re: New package: libvosk-0.3.43
  2022-08-31 21:38 [PR PATCH] New package: libvosk-0.3.43 JohnGebbie
  2022-09-02  7:33 ` JohnGebbie
  2022-09-02  9:01 ` JohnGebbie
@ 2022-09-02 18:59 ` JohnGebbie
  2022-09-03 12:04 ` [PR PATCH] [Updated] " JohnGebbie
                   ` (30 subsequent siblings)
  33 siblings, 0 replies; 35+ messages in thread
From: JohnGebbie @ 2022-09-02 18:59 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 522 bytes --]

New comment by JohnGebbie on void-packages repository

https://github.com/void-linux/void-packages/pull/39015#issuecomment-1235168599

Comment:
I'm guessing my template's no good, and I'm trying to write one that does all the compiling.

Vosk has a bunch of dependencies that have been modified for itself and wouldn't make packages of their own.
How do I write a template with multiple things to build?
How do multiple distfiles work with build_styles, the order of the distfiles doesn't seem to make a difference?


^ permalink raw reply	[flat|nested] 35+ messages in thread

* Re: [PR PATCH] [Updated] New package: libvosk-0.3.43
  2022-08-31 21:38 [PR PATCH] New package: libvosk-0.3.43 JohnGebbie
                   ` (2 preceding siblings ...)
  2022-09-02 18:59 ` JohnGebbie
@ 2022-09-03 12:04 ` JohnGebbie
  2022-09-03 12:11 ` New package: vosk-api-0.3.43 JohnGebbie
                   ` (29 subsequent siblings)
  33 siblings, 0 replies; 35+ messages in thread
From: JohnGebbie @ 2022-09-03 12:04 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1054 bytes --]

There is an updated pull request by JohnGebbie against master on the void-packages repository

https://github.com/JohnGebbie/void-packages libvosk
https://github.com/void-linux/void-packages/pull/39015

New package: libvosk-0.3.43
WORK IN PROGRESS

#### Testing the changes
- I tested the changes in this PR: **briefly**

#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**

#### Local build testing
- I built this PR locally for my native architecture, (x86_64-glibc)
- I built this PR locally for these architectures:
	- x86_64-musL

The other architectures seem to have problems.

Vosk is a dependency of a program I'd like to package, but Vosk is the hard bit and I was wondering if this template using prebuilt binaries was acceptable.
Thank you.

Closes https://github.com/void-linux/void-packages/issues/39009


A patch file from https://github.com/void-linux/void-packages/pull/39015.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-libvosk-39015.patch --]
[-- Type: text/x-diff, Size: 3414 bytes --]

From 1a7d477b5268eecbc8e9abd1f33820a0957dd721 Mon Sep 17 00:00:00 2001
From: John Gebbie <me@johngebbie.com>
Date: Sat, 3 Sep 2022 13:02:48 +0100
Subject: [PATCH] New package: vosk-api-0.3.43

---
 srcpkgs/vosk-api/template | 67 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 67 insertions(+)
 create mode 100644 srcpkgs/vosk-api/template

diff --git a/srcpkgs/vosk-api/template b/srcpkgs/vosk-api/template
new file mode 100644
index 000000000000..58c904f13232
--- /dev/null
+++ b/srcpkgs/vosk-api/template
@@ -0,0 +1,67 @@
+# Template file for 'vosk-api'
+pkgname=vosk-api
+version=0.3.43
+revision=1
+_openblas_ver=0.3.20
+_clapack_ver=3.2.1
+_openfst_commit=7dfd808194105162f20084bb4d8e4ee4b65266d5
+_kaldi_commit=76cd51d44c0a61e3905c35cadb2ec5f54f3e42d1
+build_style="gnu-makefile"
+make_use_env=yes
+make_build_args="-C src KALDI_ROOT=../../kaldi-${_kaldi_commit}
+	OPENFST_ROOT=../../kaldi-${_kaldi_commit}/tools/openfst
+	OPENBLAS_ROOT=../../kaldi-${_kaldi_commit}/tools/OpenBLAS/install"
+hostmakedepends="autoconf automake cmake libtool"
+short_desc="Offline speech recognition toolkit"
+maintainer="John Gebbie <me@johngebbie.com>"
+license="Apache-2.0"
+homepage="https://alphacephei.com/vosk"
+distfiles="https://github.com/alphacep/vosk-api/archive/v$version/vosk-api-$version.tar.gz
+https://github.com/xianyi/OpenBLAS/archive/v${_openblas_ver}/openblas-${_openblas_ver}.tar.gz
+https://github.com/alphacep/clapack/archive/v${_clapack_ver}/clapack-${_clapack_ver}.tar.gz
+https://github.com/alphacep/kaldi/archive/$_kaldi_commit.tar.gz
+https://github.com/alphacep/openfst/archive/$_openfst_commit.tar.gz"
+checksum="50fa82bfbfe3fc5be868237c84ac180eb55da0b65b1803bf022899673afda024
+8495c9affc536253648e942908e88e097f2ec7753ede55aca52e5dead3029e3c
+8d8ff8259454cae392bb58bc4971fef1db632c9fb5cdf61255cd495bd6d6ac4d
+4f50b51d0596970b0c1e1356c6a3e791810d1fbc75f2024cd30e818b7b299382
+a7bac90acb9a12fdfe50c240c9bb730a7bcb5c3b3ac32017c4d27177b059680a"
+
+pre_build() {
+	cd "$XBPS_BUILDDIR"
+	ln -sf "../../OpenBLAS-${_openblas_ver}" "kaldi-${_kaldi_commit}/tools/OpenBLAS"
+	ln -sf "../../clapack-${_clapack_ver}" "kaldi-${_kaldi_commit}/tools/clapack"
+	ln -sf "../../openfst-${_openfst_commit}" "kaldi-${_kaldi_commit}/tools/openfst"
+	autoreconf -fi "openfst-${_openfst_commit}"
+
+	make -C "OpenBLAS-${_openblas_ver}" ONLY_CBLAS=1 DYNAMIC_ARCH=1 TARGET=NEHALEM USE_LOCKING=1 USE_THREAD=0 all
+	make -C "OpenBLAS-${_openblas_ver}" PREFIX="${XBPS_BUILDDIR}/OpenBLAS-${_openblas_ver}/install" install
+
+	cmake -S "clapack-${_clapack_ver}" -B "build-clapack-${_clapack_ver}"
+	make -C "build-clapack-${_clapack_ver}/F2CLIBS"
+	make -C "build-clapack-${_clapack_ver}/BLAS"
+	make -C "build-clapack-${_clapack_ver}/SRC"
+	find "build-clapack-${_clapack_ver}" -name "*.a" | xargs cp -t "${XBPS_BUILDDIR}/OpenBLAS-${_openblas_ver}/install/lib"
+
+	cd "${XBPS_BUILDDIR}/openfst-${_openfst_commit}"
+	./configure \
+		--prefix="${XBPS_BUILDDIR}/kaldi-${_kaldi_commit}/tools/openfst" \
+		--enable-static \
+		--enable-shared \
+		--enable-far \
+		--enable-ngram-fsts \
+		--enable-lookahead-fsts \
+		--with-pic \
+		--disable-bin
+	make
+	make install
+
+	cd "${XBPS_BUILDDIR}/kaldi-${_kaldi_commit}/src"
+	./configure --mathlib=OPENBLAS_CLAPACK --shared --use-cuda=no
+	make online2 lm rnnlm
+}
+
+do_install() {
+	vinstall src/vosk_api.h 644 usr/include
+	vinstall src/libvosk.so 644 usr/lib
+}

^ permalink raw reply	[flat|nested] 35+ messages in thread

* Re: New package: vosk-api-0.3.43
  2022-08-31 21:38 [PR PATCH] New package: libvosk-0.3.43 JohnGebbie
                   ` (3 preceding siblings ...)
  2022-09-03 12:04 ` [PR PATCH] [Updated] " JohnGebbie
@ 2022-09-03 12:11 ` JohnGebbie
  2022-09-03 14:11 ` [PR PATCH] [Updated] " JohnGebbie
                   ` (28 subsequent siblings)
  33 siblings, 0 replies; 35+ messages in thread
From: JohnGebbie @ 2022-09-03 12:11 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 227 bytes --]

New comment by JohnGebbie on void-packages repository

https://github.com/void-linux/void-packages/pull/39015#issuecomment-1236107476

Comment:
I think that's it there, except I'll try to update it to use the openblas package.

^ permalink raw reply	[flat|nested] 35+ messages in thread

* Re: [PR PATCH] [Updated] New package: vosk-api-0.3.43
  2022-08-31 21:38 [PR PATCH] New package: libvosk-0.3.43 JohnGebbie
                   ` (4 preceding siblings ...)
  2022-09-03 12:11 ` New package: vosk-api-0.3.43 JohnGebbie
@ 2022-09-03 14:11 ` JohnGebbie
  2022-09-03 14:12 ` JohnGebbie
                   ` (27 subsequent siblings)
  33 siblings, 0 replies; 35+ messages in thread
From: JohnGebbie @ 2022-09-03 14:11 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 745 bytes --]

There is an updated pull request by JohnGebbie against master on the void-packages repository

https://github.com/JohnGebbie/void-packages libvosk
https://github.com/void-linux/void-packages/pull/39015

New package: vosk-api-0.3.43
#### Testing the changes
- I tested the changes in this PR: **briefly**

#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**

#### Local build testing
- I built this PR locally for my native architecture, (x86_64-glibc)

Closes https://github.com/void-linux/void-packages/issues/39009


A patch file from https://github.com/void-linux/void-packages/pull/39015.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-libvosk-39015.patch --]
[-- Type: text/x-diff, Size: 3414 bytes --]

From b6e25c23770ef8531b4d5d3b25ac19f39c5820df Mon Sep 17 00:00:00 2001
From: John Gebbie <me@johngebbie.com>
Date: Sat, 3 Sep 2022 13:02:48 +0100
Subject: [PATCH] New package: vosk-api-0.3.43

---
 srcpkgs/vosk-api/template | 67 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 67 insertions(+)
 create mode 100644 srcpkgs/vosk-api/template

diff --git a/srcpkgs/vosk-api/template b/srcpkgs/vosk-api/template
new file mode 100644
index 000000000000..58c904f13232
--- /dev/null
+++ b/srcpkgs/vosk-api/template
@@ -0,0 +1,67 @@
+# Template file for 'vosk-api'
+pkgname=vosk-api
+version=0.3.43
+revision=1
+_openblas_ver=0.3.20
+_clapack_ver=3.2.1
+_openfst_commit=7dfd808194105162f20084bb4d8e4ee4b65266d5
+_kaldi_commit=76cd51d44c0a61e3905c35cadb2ec5f54f3e42d1
+build_style="gnu-makefile"
+make_use_env=yes
+make_build_args="-C src KALDI_ROOT=../../kaldi-${_kaldi_commit}
+	OPENFST_ROOT=../../kaldi-${_kaldi_commit}/tools/openfst
+	OPENBLAS_ROOT=../../kaldi-${_kaldi_commit}/tools/OpenBLAS/install"
+hostmakedepends="autoconf automake cmake libtool"
+short_desc="Offline speech recognition toolkit"
+maintainer="John Gebbie <me@johngebbie.com>"
+license="Apache-2.0"
+homepage="https://alphacephei.com/vosk"
+distfiles="https://github.com/alphacep/vosk-api/archive/v$version/vosk-api-$version.tar.gz
+https://github.com/xianyi/OpenBLAS/archive/v${_openblas_ver}/openblas-${_openblas_ver}.tar.gz
+https://github.com/alphacep/clapack/archive/v${_clapack_ver}/clapack-${_clapack_ver}.tar.gz
+https://github.com/alphacep/kaldi/archive/$_kaldi_commit.tar.gz
+https://github.com/alphacep/openfst/archive/$_openfst_commit.tar.gz"
+checksum="50fa82bfbfe3fc5be868237c84ac180eb55da0b65b1803bf022899673afda024
+8495c9affc536253648e942908e88e097f2ec7753ede55aca52e5dead3029e3c
+8d8ff8259454cae392bb58bc4971fef1db632c9fb5cdf61255cd495bd6d6ac4d
+4f50b51d0596970b0c1e1356c6a3e791810d1fbc75f2024cd30e818b7b299382
+a7bac90acb9a12fdfe50c240c9bb730a7bcb5c3b3ac32017c4d27177b059680a"
+
+pre_build() {
+	cd "$XBPS_BUILDDIR"
+	ln -sf "../../OpenBLAS-${_openblas_ver}" "kaldi-${_kaldi_commit}/tools/OpenBLAS"
+	ln -sf "../../clapack-${_clapack_ver}" "kaldi-${_kaldi_commit}/tools/clapack"
+	ln -sf "../../openfst-${_openfst_commit}" "kaldi-${_kaldi_commit}/tools/openfst"
+	autoreconf -fi "openfst-${_openfst_commit}"
+
+	make -C "OpenBLAS-${_openblas_ver}" ONLY_CBLAS=1 DYNAMIC_ARCH=1 TARGET=NEHALEM USE_LOCKING=1 USE_THREAD=0 all
+	make -C "OpenBLAS-${_openblas_ver}" PREFIX="${XBPS_BUILDDIR}/OpenBLAS-${_openblas_ver}/install" install
+
+	cmake -S "clapack-${_clapack_ver}" -B "build-clapack-${_clapack_ver}"
+	make -C "build-clapack-${_clapack_ver}/F2CLIBS"
+	make -C "build-clapack-${_clapack_ver}/BLAS"
+	make -C "build-clapack-${_clapack_ver}/SRC"
+	find "build-clapack-${_clapack_ver}" -name "*.a" | xargs cp -t "${XBPS_BUILDDIR}/OpenBLAS-${_openblas_ver}/install/lib"
+
+	cd "${XBPS_BUILDDIR}/openfst-${_openfst_commit}"
+	./configure \
+		--prefix="${XBPS_BUILDDIR}/kaldi-${_kaldi_commit}/tools/openfst" \
+		--enable-static \
+		--enable-shared \
+		--enable-far \
+		--enable-ngram-fsts \
+		--enable-lookahead-fsts \
+		--with-pic \
+		--disable-bin
+	make
+	make install
+
+	cd "${XBPS_BUILDDIR}/kaldi-${_kaldi_commit}/src"
+	./configure --mathlib=OPENBLAS_CLAPACK --shared --use-cuda=no
+	make online2 lm rnnlm
+}
+
+do_install() {
+	vinstall src/vosk_api.h 644 usr/include
+	vinstall src/libvosk.so 644 usr/lib
+}

^ permalink raw reply	[flat|nested] 35+ messages in thread

* Re: New package: vosk-api-0.3.43
  2022-08-31 21:38 [PR PATCH] New package: libvosk-0.3.43 JohnGebbie
                   ` (5 preceding siblings ...)
  2022-09-03 14:11 ` [PR PATCH] [Updated] " JohnGebbie
@ 2022-09-03 14:12 ` JohnGebbie
  2022-09-03 14:13 ` [PR PATCH] [Updated] " JohnGebbie
                   ` (26 subsequent siblings)
  33 siblings, 0 replies; 35+ messages in thread
From: JohnGebbie @ 2022-09-03 14:12 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 161 bytes --]

New comment by JohnGebbie on void-packages repository

https://github.com/void-linux/void-packages/pull/39015#issuecomment-1236128112

Comment:
That's it ready.

^ permalink raw reply	[flat|nested] 35+ messages in thread

* Re: [PR PATCH] [Updated] New package: vosk-api-0.3.43
  2022-08-31 21:38 [PR PATCH] New package: libvosk-0.3.43 JohnGebbie
                   ` (6 preceding siblings ...)
  2022-09-03 14:12 ` JohnGebbie
@ 2022-09-03 14:13 ` JohnGebbie
  2022-09-03 14:14 ` JohnGebbie
                   ` (25 subsequent siblings)
  33 siblings, 0 replies; 35+ messages in thread
From: JohnGebbie @ 2022-09-03 14:13 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 745 bytes --]

There is an updated pull request by JohnGebbie against master on the void-packages repository

https://github.com/JohnGebbie/void-packages libvosk
https://github.com/void-linux/void-packages/pull/39015

New package: vosk-api-0.3.43
#### Testing the changes
- I tested the changes in this PR: **briefly**

#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**

#### Local build testing
- I built this PR locally for my native architecture, (x86_64-glibc)

Closes https://github.com/void-linux/void-packages/issues/39009


A patch file from https://github.com/void-linux/void-packages/pull/39015.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-libvosk-39015.patch --]
[-- Type: text/x-diff, Size: 3496 bytes --]

From 74ec7888caf6191050e0880a8f5e3afef097c8d9 Mon Sep 17 00:00:00 2001
From: John Gebbie <me@johngebbie.com>
Date: Sat, 3 Sep 2022 13:02:48 +0100
Subject: [PATCH] New package: vosk-api-0.3.43

---
 srcpkgs/vosk-api/template | 69 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 69 insertions(+)
 create mode 100644 srcpkgs/vosk-api/template

diff --git a/srcpkgs/vosk-api/template b/srcpkgs/vosk-api/template
new file mode 100644
index 000000000000..998bace88dd1
--- /dev/null
+++ b/srcpkgs/vosk-api/template
@@ -0,0 +1,69 @@
+# Template file for 'vosk-api'
+pkgname=vosk-api
+version=0.3.43
+revision=1
+_openblas_ver=0.3.20
+_clapack_ver=3.2.1
+_openfst_commit=7dfd808194105162f20084bb4d8e4ee4b65266d5
+_kaldi_commit=76cd51d44c0a61e3905c35cadb2ec5f54f3e42d1
+build_style="gnu-makefile"
+make_use_env=yes
+make_build_args="-C src KALDI_ROOT=../../kaldi-${_kaldi_commit}
+	OPENFST_ROOT=../../kaldi-${_kaldi_commit}/tools/openfst
+	OPENBLAS_ROOT=../../kaldi-${_kaldi_commit}/tools/OpenBLAS/install"
+hostmakedepends="autoconf automake cmake libtool"
+short_desc="Offline speech recognition toolkit"
+maintainer="John Gebbie <me@johngebbie.com>"
+license="Apache-2.0"
+homepage="https://alphacephei.com/vosk"
+distfiles="https://github.com/alphacep/vosk-api/archive/v$version/vosk-api-$version.tar.gz
+https://github.com/xianyi/OpenBLAS/archive/v${_openblas_ver}/openblas-${_openblas_ver}.tar.gz
+https://github.com/alphacep/clapack/archive/v${_clapack_ver}/clapack-${_clapack_ver}.tar.gz
+https://github.com/alphacep/kaldi/archive/$_kaldi_commit.tar.gz
+https://github.com/alphacep/openfst/archive/$_openfst_commit.tar.gz"
+checksum="50fa82bfbfe3fc5be868237c84ac180eb55da0b65b1803bf022899673afda024
+8495c9affc536253648e942908e88e097f2ec7753ede55aca52e5dead3029e3c
+8d8ff8259454cae392bb58bc4971fef1db632c9fb5cdf61255cd495bd6d6ac4d
+4f50b51d0596970b0c1e1356c6a3e791810d1fbc75f2024cd30e818b7b299382
+a7bac90acb9a12fdfe50c240c9bb730a7bcb5c3b3ac32017c4d27177b059680a"
+
+# I tried using the openblas package (version 0.3.21) but it was incompatible.
+
+pre_build() {
+	cd "$XBPS_BUILDDIR"
+	ln -sf "../../OpenBLAS-${_openblas_ver}" "kaldi-${_kaldi_commit}/tools/OpenBLAS"
+	ln -sf "../../clapack-${_clapack_ver}" "kaldi-${_kaldi_commit}/tools/clapack"
+	ln -sf "../../openfst-${_openfst_commit}" "kaldi-${_kaldi_commit}/tools/openfst"
+	autoreconf -fi "openfst-${_openfst_commit}"
+
+	make -C "OpenBLAS-${_openblas_ver}" ONLY_CBLAS=1 DYNAMIC_ARCH=1 TARGET=NEHALEM USE_LOCKING=1 USE_THREAD=0 all
+	make -C "OpenBLAS-${_openblas_ver}" PREFIX="${XBPS_BUILDDIR}/OpenBLAS-${_openblas_ver}/install" install
+
+	cmake -S "clapack-${_clapack_ver}" -B "build-clapack-${_clapack_ver}"
+	make -C "build-clapack-${_clapack_ver}/F2CLIBS"
+	make -C "build-clapack-${_clapack_ver}/BLAS"
+	make -C "build-clapack-${_clapack_ver}/SRC"
+	find "build-clapack-${_clapack_ver}" -name "*.a" | xargs cp -t "${XBPS_BUILDDIR}/OpenBLAS-${_openblas_ver}/install/lib"
+
+	cd "${XBPS_BUILDDIR}/openfst-${_openfst_commit}"
+	./configure \
+		--prefix="${XBPS_BUILDDIR}/kaldi-${_kaldi_commit}/tools/openfst" \
+		--enable-static \
+		--enable-shared \
+		--enable-far \
+		--enable-ngram-fsts \
+		--enable-lookahead-fsts \
+		--with-pic \
+		--disable-bin
+	make
+	make install
+
+	cd "${XBPS_BUILDDIR}/kaldi-${_kaldi_commit}/src"
+	./configure --mathlib=OPENBLAS_CLAPACK --shared --use-cuda=no
+	make online2 lm rnnlm
+}
+
+do_install() {
+	vinstall src/vosk_api.h 644 usr/include
+	vinstall src/libvosk.so 644 usr/lib
+}

^ permalink raw reply	[flat|nested] 35+ messages in thread

* Re: New package: vosk-api-0.3.43
  2022-08-31 21:38 [PR PATCH] New package: libvosk-0.3.43 JohnGebbie
                   ` (7 preceding siblings ...)
  2022-09-03 14:13 ` [PR PATCH] [Updated] " JohnGebbie
@ 2022-09-03 14:14 ` JohnGebbie
  2022-09-03 14:14 ` JohnGebbie
                   ` (24 subsequent siblings)
  33 siblings, 0 replies; 35+ messages in thread
From: JohnGebbie @ 2022-09-03 14:14 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 161 bytes --]

New comment by JohnGebbie on void-packages repository

https://github.com/void-linux/void-packages/pull/39015#issuecomment-1236128364

Comment:
That's it ready.

^ permalink raw reply	[flat|nested] 35+ messages in thread

* Re: New package: vosk-api-0.3.43
  2022-08-31 21:38 [PR PATCH] New package: libvosk-0.3.43 JohnGebbie
                   ` (8 preceding siblings ...)
  2022-09-03 14:14 ` JohnGebbie
@ 2022-09-03 14:14 ` JohnGebbie
  2022-09-03 20:52 ` [PR PATCH] [Updated] " JohnGebbie
                   ` (23 subsequent siblings)
  33 siblings, 0 replies; 35+ messages in thread
From: JohnGebbie @ 2022-09-03 14:14 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 161 bytes --]

New comment by JohnGebbie on void-packages repository

https://github.com/void-linux/void-packages/pull/39015#issuecomment-1236128112

Comment:
That's it ready.

^ permalink raw reply	[flat|nested] 35+ messages in thread

* Re: [PR PATCH] [Updated] New package: vosk-api-0.3.43
  2022-08-31 21:38 [PR PATCH] New package: libvosk-0.3.43 JohnGebbie
                   ` (9 preceding siblings ...)
  2022-09-03 14:14 ` JohnGebbie
@ 2022-09-03 20:52 ` JohnGebbie
  2022-09-04  8:26 ` JohnGebbie
                   ` (22 subsequent siblings)
  33 siblings, 0 replies; 35+ messages in thread
From: JohnGebbie @ 2022-09-03 20:52 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 745 bytes --]

There is an updated pull request by JohnGebbie against master on the void-packages repository

https://github.com/JohnGebbie/void-packages libvosk
https://github.com/void-linux/void-packages/pull/39015

New package: vosk-api-0.3.43
#### Testing the changes
- I tested the changes in this PR: **briefly**

#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**

#### Local build testing
- I built this PR locally for my native architecture, (x86_64-glibc)

Closes https://github.com/void-linux/void-packages/issues/39009


A patch file from https://github.com/void-linux/void-packages/pull/39015.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-libvosk-39015.patch --]
[-- Type: text/x-diff, Size: 4204 bytes --]

From 9df768c9fdd3f04276e23e765bed26c0e7a71041 Mon Sep 17 00:00:00 2001
From: John Gebbie <me@johngebbie.com>
Date: Sat, 3 Sep 2022 13:02:48 +0100
Subject: [PATCH] New package: vosk-api-0.3.43

---
 srcpkgs/vosk-api/template      | 79 ++++++++++++++++++++++++++++++++++
 srcpkgs/vosk-model-small-en-us |  1 +
 2 files changed, 80 insertions(+)
 create mode 100644 srcpkgs/vosk-api/template
 create mode 120000 srcpkgs/vosk-model-small-en-us

diff --git a/srcpkgs/vosk-api/template b/srcpkgs/vosk-api/template
new file mode 100644
index 000000000000..99c712e74194
--- /dev/null
+++ b/srcpkgs/vosk-api/template
@@ -0,0 +1,79 @@
+# Template file for 'vosk-api'
+pkgname=vosk-api
+version=0.3.43
+revision=1
+_openblas_ver=0.3.20
+_clapack_ver=3.2.1
+_openfst_commit=7dfd808194105162f20084bb4d8e4ee4b65266d5
+_kaldi_commit=76cd51d44c0a61e3905c35cadb2ec5f54f3e42d1
+build_style="gnu-makefile"
+make_use_env=yes
+make_build_args="-C src KALDI_ROOT=../../kaldi-${_kaldi_commit}
+	OPENFST_ROOT=../../kaldi-${_kaldi_commit}/tools/openfst
+	OPENBLAS_ROOT=../../kaldi-${_kaldi_commit}/tools/OpenBLAS/install"
+hostmakedepends="autoconf automake cmake libtool"
+short_desc="Offline speech recognition toolkit"
+maintainer="John Gebbie <me@johngebbie.com>"
+license="Apache-2.0"
+homepage="https://alphacephei.com/vosk"
+distfiles="https://github.com/alphacep/vosk-api/archive/v$version/vosk-api-$version.tar.gz
+https://github.com/xianyi/OpenBLAS/archive/v${_openblas_ver}/openblas-${_openblas_ver}.tar.gz
+https://github.com/alphacep/clapack/archive/v${_clapack_ver}/clapack-${_clapack_ver}.tar.gz
+https://github.com/alphacep/kaldi/archive/$_kaldi_commit.tar.gz
+https://github.com/alphacep/openfst/archive/$_openfst_commit.tar.gz
+https://alphacephei.com/vosk/models/vosk-model-small-en-us-0.15.zip"
+checksum="50fa82bfbfe3fc5be868237c84ac180eb55da0b65b1803bf022899673afda024
+8495c9affc536253648e942908e88e097f2ec7753ede55aca52e5dead3029e3c
+8d8ff8259454cae392bb58bc4971fef1db632c9fb5cdf61255cd495bd6d6ac4d
+4f50b51d0596970b0c1e1356c6a3e791810d1fbc75f2024cd30e818b7b299382
+a7bac90acb9a12fdfe50c240c9bb730a7bcb5c3b3ac32017c4d27177b059680a
+30f26242c4eb449f948e42cb302dd7a686cb29a3423a8367f99ff41780942498"
+
+# I tried using the openblas package (version 0.3.21) but it was incompatible.
+
+pre_build() {
+	cd "$XBPS_BUILDDIR"
+	ln -sf "../../OpenBLAS-${_openblas_ver}" "kaldi-${_kaldi_commit}/tools/OpenBLAS"
+	ln -sf "../../clapack-${_clapack_ver}" "kaldi-${_kaldi_commit}/tools/clapack"
+	ln -sf "../../openfst-${_openfst_commit}" "kaldi-${_kaldi_commit}/tools/openfst"
+	autoreconf -fi "openfst-${_openfst_commit}"
+
+	make -C "OpenBLAS-${_openblas_ver}" ONLY_CBLAS=1 DYNAMIC_ARCH=1 TARGET=NEHALEM USE_LOCKING=1 USE_THREAD=0 all
+	make -C "OpenBLAS-${_openblas_ver}" PREFIX="${XBPS_BUILDDIR}/OpenBLAS-${_openblas_ver}/install" install
+
+	cmake -S "clapack-${_clapack_ver}" -B "build-clapack-${_clapack_ver}"
+	make -C "build-clapack-${_clapack_ver}/F2CLIBS"
+	make -C "build-clapack-${_clapack_ver}/BLAS"
+	make -C "build-clapack-${_clapack_ver}/SRC"
+	find "build-clapack-${_clapack_ver}" -name "*.a" | xargs cp -t "${XBPS_BUILDDIR}/OpenBLAS-${_openblas_ver}/install/lib"
+
+	cd "${XBPS_BUILDDIR}/openfst-${_openfst_commit}"
+	./configure \
+		--prefix="${XBPS_BUILDDIR}/kaldi-${_kaldi_commit}/tools/openfst" \
+		--enable-static \
+		--enable-shared \
+		--enable-far \
+		--enable-ngram-fsts \
+		--enable-lookahead-fsts \
+		--with-pic \
+		--disable-bin
+	make
+	make install
+
+	cd "${XBPS_BUILDDIR}/kaldi-${_kaldi_commit}/src"
+	./configure --mathlib=OPENBLAS_CLAPACK --shared --use-cuda=no
+	make online2 lm rnnlm
+}
+
+do_install() {
+	vinstall src/vosk_api.h 644 usr/include
+	vinstall src/libvosk.so 644 usr/lib
+}
+
+vosk-model-small-en-us_package() {
+	short_desc="Lightweight english language model"
+	pkg_install() {
+		vmkdir usr/share/vosk-models
+		mv "${XBPS_BUILDDIR}/vosk-model-small-en-us-0.15" "${PKGDESTDIR}/usr/share/vosk-models/small-en-us"
+	}
+}
diff --git a/srcpkgs/vosk-model-small-en-us b/srcpkgs/vosk-model-small-en-us
new file mode 120000
index 000000000000..db9953d33676
--- /dev/null
+++ b/srcpkgs/vosk-model-small-en-us
@@ -0,0 +1 @@
+vosk-api
\ No newline at end of file

^ permalink raw reply	[flat|nested] 35+ messages in thread

* Re: New package: vosk-api-0.3.43
  2022-08-31 21:38 [PR PATCH] New package: libvosk-0.3.43 JohnGebbie
                   ` (10 preceding siblings ...)
  2022-09-03 20:52 ` [PR PATCH] [Updated] " JohnGebbie
@ 2022-09-04  8:26 ` JohnGebbie
  2022-09-17 13:05 ` [PR PATCH] [Updated] " JohnGebbie
                   ` (21 subsequent siblings)
  33 siblings, 0 replies; 35+ messages in thread
From: JohnGebbie @ 2022-09-04  8:26 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 255 bytes --]

New comment by JohnGebbie on void-packages repository

https://github.com/void-linux/void-packages/pull/39015#issuecomment-1236287727

Comment:
I'll work on the other architectures but do you know why the top one failed at the "Compare to previous" step?

^ permalink raw reply	[flat|nested] 35+ messages in thread

* Re: [PR PATCH] [Updated] New package: vosk-api-0.3.43
  2022-08-31 21:38 [PR PATCH] New package: libvosk-0.3.43 JohnGebbie
                   ` (11 preceding siblings ...)
  2022-09-04  8:26 ` JohnGebbie
@ 2022-09-17 13:05 ` JohnGebbie
  2022-09-17 13:09 ` JohnGebbie
                   ` (20 subsequent siblings)
  33 siblings, 0 replies; 35+ messages in thread
From: JohnGebbie @ 2022-09-17 13:05 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 745 bytes --]

There is an updated pull request by JohnGebbie against master on the void-packages repository

https://github.com/JohnGebbie/void-packages libvosk
https://github.com/void-linux/void-packages/pull/39015

New package: vosk-api-0.3.43
#### Testing the changes
- I tested the changes in this PR: **briefly**

#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**

#### Local build testing
- I built this PR locally for my native architecture, (x86_64-glibc)

Closes https://github.com/void-linux/void-packages/issues/39009


A patch file from https://github.com/void-linux/void-packages/pull/39015.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-libvosk-39015.patch --]
[-- Type: text/x-diff, Size: 7204 bytes --]

From 117a6c59102045d0250183fb4d947817617d9f2d Mon Sep 17 00:00:00 2001
From: John Gebbie <me@johngebbie.com>
Date: Sat, 3 Sep 2022 13:02:48 +0100
Subject: [PATCH] New package: vosk-api-0.3.43

---
 srcpkgs/vosk-api/patches/openblas.diff | 55 ++++++++++++++++++
 srcpkgs/vosk-api/template              | 78 ++++++++++++++++++++++++++
 srcpkgs/vosk-model-small-en-us         |  1 +
 3 files changed, 134 insertions(+)
 create mode 100644 srcpkgs/vosk-api/patches/openblas.diff
 create mode 100644 srcpkgs/vosk-api/template
 create mode 120000 srcpkgs/vosk-model-small-en-us

diff --git a/srcpkgs/vosk-api/patches/openblas.diff b/srcpkgs/vosk-api/patches/openblas.diff
new file mode 100644
index 000000000000..4ae3aac80393
--- /dev/null
+++ b/srcpkgs/vosk-api/patches/openblas.diff
@@ -0,0 +1,55 @@
+--- a/src/matrix/cblas-wrappers.h
++++ b/src/matrix/cblas-wrappers.h
+@@ -383,10 +383,10 @@ inline void mul_elements(
+ // add clapack here
+ #if !defined(HAVE_ATLAS)
+ inline void clapack_Xtptri(KaldiBlasInt *num_rows, float *Mdata, KaldiBlasInt *result) {
+-  stptri_(const_cast<char *>("U"), const_cast<char *>("N"), num_rows, Mdata, result);
++  stptri_(const_cast<char *>("U"), const_cast<char *>("N"), num_rows, Mdata, result, 1, 1);
+ }
+ inline void clapack_Xtptri(KaldiBlasInt *num_rows, double *Mdata, KaldiBlasInt *result) {
+-  dtptri_(const_cast<char *>("U"), const_cast<char *>("N"), num_rows, Mdata, result);
++  dtptri_(const_cast<char *>("U"), const_cast<char *>("N"), num_rows, Mdata, result, 1, 1);
+ }
+ // 
+ inline void clapack_Xgetrf2(KaldiBlasInt *num_rows, KaldiBlasInt *num_cols, 
+@@ -420,7 +420,7 @@ inline void clapack_Xgesvd(char *v, char *u, KaldiBlasInt *num_cols,
+   sgesvd_(v, u,
+           num_cols, num_rows, Mdata, stride,
+           sv, Vdata, vstride, Udata, ustride, 
+-          p_work, l_work, result); 
++          p_work, l_work, result, 1, 1);
+ }
+ inline void clapack_Xgesvd(char *v, char *u, KaldiBlasInt *num_cols,
+                            KaldiBlasInt *num_rows, double *Mdata, KaldiBlasInt *stride,
+@@ -430,25 +430,25 @@ inline void clapack_Xgesvd(char *v, char *u, KaldiBlasInt *num_cols,
+   dgesvd_(v, u,
+           num_cols, num_rows, Mdata, stride,
+           sv, Vdata, vstride, Udata, ustride,
+-          p_work, l_work, result); 
++          p_work, l_work, result, 1, 1);
+ }
+ //
+ void inline clapack_Xsptri(KaldiBlasInt *num_rows, float *Mdata, 
+                            KaldiBlasInt *ipiv, float *work, KaldiBlasInt *result) {
+-  ssptri_(const_cast<char *>("U"), num_rows, Mdata, ipiv, work, result);
++  ssptri_(const_cast<char *>("U"), num_rows, Mdata, ipiv, work, result, 1);
+ }
+ void inline clapack_Xsptri(KaldiBlasInt *num_rows, double *Mdata, 
+                            KaldiBlasInt *ipiv, double *work, KaldiBlasInt *result) {
+-  dsptri_(const_cast<char *>("U"), num_rows, Mdata, ipiv, work, result);
++  dsptri_(const_cast<char *>("U"), num_rows, Mdata, ipiv, work, result, 1);
+ }
+ //
+ void inline clapack_Xsptrf(KaldiBlasInt *num_rows, float *Mdata,
+                            KaldiBlasInt *ipiv, KaldiBlasInt *result) {
+-  ssptrf_(const_cast<char *>("U"), num_rows, Mdata, ipiv, result);
++  ssptrf_(const_cast<char *>("U"), num_rows, Mdata, ipiv, result, 1);
+ }
+ void inline clapack_Xsptrf(KaldiBlasInt *num_rows, double *Mdata,
+                            KaldiBlasInt *ipiv, KaldiBlasInt *result) {
+-  dsptrf_(const_cast<char *>("U"), num_rows, Mdata, ipiv, result);
++  dsptrf_(const_cast<char *>("U"), num_rows, Mdata, ipiv, result, 1);
+ }
+ #else
+ inline void clapack_Xgetrf(MatrixIndexT num_rows, MatrixIndexT num_cols,
diff --git a/srcpkgs/vosk-api/template b/srcpkgs/vosk-api/template
new file mode 100644
index 000000000000..e74d7f4214b0
--- /dev/null
+++ b/srcpkgs/vosk-api/template
@@ -0,0 +1,78 @@
+# Template file for 'vosk-api'
+pkgname=vosk-api
+version=0.3.43
+revision=1
+_openblas_ver=0.3.20
+_clapack_ver=3.2.1
+_openfst_commit=7dfd808194105162f20084bb4d8e4ee4b65266d5
+_kaldi_commit=76cd51d44c0a61e3905c35cadb2ec5f54f3e42d1
+build_style="gnu-makefile"
+make_use_env=yes
+make_build_args="-C src KALDI_ROOT=../../kaldi-${_kaldi_commit}
+	OPENFST_ROOT=../../kaldi-${_kaldi_commit}/tools/openfst
+	OPENBLAS_ROOT=../../kaldi-${_kaldi_commit}/tools/OpenBLAS/install"
+hostmakedepends="autoconf automake cmake libtool"
+makedepends="openblas-devel"
+short_desc="Offline speech recognition toolkit"
+maintainer="John Gebbie <me@johngebbie.com>"
+license="Apache-2.0"
+homepage="https://alphacephei.com/vosk"
+distfiles="https://github.com/alphacep/vosk-api/archive/v$version/vosk-api-$version.tar.gz
+https://github.com/alphacep/clapack/archive/v${_clapack_ver}/clapack-${_clapack_ver}.tar.gz
+https://github.com/alphacep/kaldi/archive/$_kaldi_commit.tar.gz
+https://github.com/alphacep/openfst/archive/$_openfst_commit.tar.gz
+https://alphacephei.com/vosk/models/vosk-model-small-en-us-0.15.zip"
+checksum="50fa82bfbfe3fc5be868237c84ac180eb55da0b65b1803bf022899673afda024
+8d8ff8259454cae392bb58bc4971fef1db632c9fb5cdf61255cd495bd6d6ac4d
+4f50b51d0596970b0c1e1356c6a3e791810d1fbc75f2024cd30e818b7b299382
+a7bac90acb9a12fdfe50c240c9bb730a7bcb5c3b3ac32017c4d27177b059680a
+30f26242c4eb449f948e42cb302dd7a686cb29a3423a8367f99ff41780942498"
+patch_args="-Np1 ../kaldi-${_kaldi_commit}/src/matrix/cblas-wrappers.h"
+
+pre_build() {
+	cd "${XBPS_BUILDDIR}"
+
+	mkdir -p "kaldi-${_kaldi_commit}/tools/OpenBLAS/install/lib"
+	ln -sf /usr/include/openblas "kaldi-${_kaldi_commit}/tools/OpenBLAS/install/include"
+	ln -sf /usr/lib/libopenblas.a "kaldi-${_kaldi_commit}/tools/OpenBLAS/install/lib"
+
+	ln -sf "../../clapack-${_clapack_ver}" "kaldi-${_kaldi_commit}/tools/clapack"
+	ln -sf "../../openfst-${_openfst_commit}" "kaldi-${_kaldi_commit}/tools/openfst"
+	autoreconf -fi "openfst-${_openfst_commit}"
+
+	cmake -S "clapack-${_clapack_ver}" -B "build-clapack-${_clapack_ver}"
+	make -C "build-clapack-${_clapack_ver}/F2CLIBS"
+	make -C "build-clapack-${_clapack_ver}/BLAS"
+	make -C "build-clapack-${_clapack_ver}/SRC"
+	find "build-clapack-${_clapack_ver}" -name "*.a" | xargs cp -t "${XBPS_BUILDDIR}/kaldi-${_kaldi_commit}/tools/OpenBLAS/install/lib"
+
+	cd "${XBPS_BUILDDIR}/openfst-${_openfst_commit}"
+	./configure \
+		--prefix="${XBPS_BUILDDIR}/kaldi-${_kaldi_commit}/tools/openfst" \
+		--enable-static \
+		--enable-shared \
+		--enable-far \
+		--enable-ngram-fsts \
+		--enable-lookahead-fsts \
+		--with-pic \
+		--disable-bin
+	make
+	make install
+
+	cd "${XBPS_BUILDDIR}/kaldi-${_kaldi_commit}/src"
+	./configure --mathlib=OPENBLAS_CLAPACK --shared --use-cuda=no
+	make online2 lm rnnlm
+}
+
+do_install() {
+	vinstall src/vosk_api.h 644 usr/include
+	vinstall src/libvosk.so 644 usr/lib
+}
+
+vosk-model-small-en-us_package() {
+	short_desc="Lightweight english language model"
+	pkg_install() {
+		vmkdir usr/share/vosk-models
+		mv "${XBPS_BUILDDIR}/vosk-model-small-en-us-0.15" "${PKGDESTDIR}/usr/share/vosk-models/small-en-us"
+	}
+}
diff --git a/srcpkgs/vosk-model-small-en-us b/srcpkgs/vosk-model-small-en-us
new file mode 120000
index 000000000000..db9953d33676
--- /dev/null
+++ b/srcpkgs/vosk-model-small-en-us
@@ -0,0 +1 @@
+vosk-api
\ No newline at end of file

^ permalink raw reply	[flat|nested] 35+ messages in thread

* Re: New package: vosk-api-0.3.43
  2022-08-31 21:38 [PR PATCH] New package: libvosk-0.3.43 JohnGebbie
                   ` (12 preceding siblings ...)
  2022-09-17 13:05 ` [PR PATCH] [Updated] " JohnGebbie
@ 2022-09-17 13:09 ` JohnGebbie
  2022-09-18 11:00 ` [PR PATCH] [Updated] " JohnGebbie
                   ` (19 subsequent siblings)
  33 siblings, 0 replies; 35+ messages in thread
From: JohnGebbie @ 2022-09-17 13:09 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 246 bytes --]

New comment by JohnGebbie on void-packages repository

https://github.com/void-linux/void-packages/pull/39015#issuecomment-1250068342

Comment:
That's it working with the `openblas-devel` package. I still need to work on the other architectures.

^ permalink raw reply	[flat|nested] 35+ messages in thread

* Re: [PR PATCH] [Updated] New package: vosk-api-0.3.43
  2022-08-31 21:38 [PR PATCH] New package: libvosk-0.3.43 JohnGebbie
                   ` (13 preceding siblings ...)
  2022-09-17 13:09 ` JohnGebbie
@ 2022-09-18 11:00 ` JohnGebbie
  2022-09-21 15:53 ` JohnGebbie
                   ` (18 subsequent siblings)
  33 siblings, 0 replies; 35+ messages in thread
From: JohnGebbie @ 2022-09-18 11:00 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 745 bytes --]

There is an updated pull request by JohnGebbie against master on the void-packages repository

https://github.com/JohnGebbie/void-packages libvosk
https://github.com/void-linux/void-packages/pull/39015

New package: vosk-api-0.3.43
#### Testing the changes
- I tested the changes in this PR: **briefly**

#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**

#### Local build testing
- I built this PR locally for my native architecture, (x86_64-glibc)

Closes https://github.com/void-linux/void-packages/issues/39009


A patch file from https://github.com/void-linux/void-packages/pull/39015.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-libvosk-39015.patch --]
[-- Type: text/x-diff, Size: 7289 bytes --]

From a893804c96c45f342a16b36387d7b8fada9b83a4 Mon Sep 17 00:00:00 2001
From: John Gebbie <me@johngebbie.com>
Date: Sat, 3 Sep 2022 13:02:48 +0100
Subject: [PATCH] New package: vosk-api-0.3.43

---
 srcpkgs/vosk-api/patches/openblas.diff | 55 ++++++++++++++++++
 srcpkgs/vosk-api/template              | 79 ++++++++++++++++++++++++++
 srcpkgs/vosk-model-small-en-us         |  1 +
 3 files changed, 135 insertions(+)
 create mode 100644 srcpkgs/vosk-api/patches/openblas.diff
 create mode 100644 srcpkgs/vosk-api/template
 create mode 120000 srcpkgs/vosk-model-small-en-us

diff --git a/srcpkgs/vosk-api/patches/openblas.diff b/srcpkgs/vosk-api/patches/openblas.diff
new file mode 100644
index 000000000000..4ae3aac80393
--- /dev/null
+++ b/srcpkgs/vosk-api/patches/openblas.diff
@@ -0,0 +1,55 @@
+--- a/src/matrix/cblas-wrappers.h
++++ b/src/matrix/cblas-wrappers.h
+@@ -383,10 +383,10 @@ inline void mul_elements(
+ // add clapack here
+ #if !defined(HAVE_ATLAS)
+ inline void clapack_Xtptri(KaldiBlasInt *num_rows, float *Mdata, KaldiBlasInt *result) {
+-  stptri_(const_cast<char *>("U"), const_cast<char *>("N"), num_rows, Mdata, result);
++  stptri_(const_cast<char *>("U"), const_cast<char *>("N"), num_rows, Mdata, result, 1, 1);
+ }
+ inline void clapack_Xtptri(KaldiBlasInt *num_rows, double *Mdata, KaldiBlasInt *result) {
+-  dtptri_(const_cast<char *>("U"), const_cast<char *>("N"), num_rows, Mdata, result);
++  dtptri_(const_cast<char *>("U"), const_cast<char *>("N"), num_rows, Mdata, result, 1, 1);
+ }
+ // 
+ inline void clapack_Xgetrf2(KaldiBlasInt *num_rows, KaldiBlasInt *num_cols, 
+@@ -420,7 +420,7 @@ inline void clapack_Xgesvd(char *v, char *u, KaldiBlasInt *num_cols,
+   sgesvd_(v, u,
+           num_cols, num_rows, Mdata, stride,
+           sv, Vdata, vstride, Udata, ustride, 
+-          p_work, l_work, result); 
++          p_work, l_work, result, 1, 1);
+ }
+ inline void clapack_Xgesvd(char *v, char *u, KaldiBlasInt *num_cols,
+                            KaldiBlasInt *num_rows, double *Mdata, KaldiBlasInt *stride,
+@@ -430,25 +430,25 @@ inline void clapack_Xgesvd(char *v, char *u, KaldiBlasInt *num_cols,
+   dgesvd_(v, u,
+           num_cols, num_rows, Mdata, stride,
+           sv, Vdata, vstride, Udata, ustride,
+-          p_work, l_work, result); 
++          p_work, l_work, result, 1, 1);
+ }
+ //
+ void inline clapack_Xsptri(KaldiBlasInt *num_rows, float *Mdata, 
+                            KaldiBlasInt *ipiv, float *work, KaldiBlasInt *result) {
+-  ssptri_(const_cast<char *>("U"), num_rows, Mdata, ipiv, work, result);
++  ssptri_(const_cast<char *>("U"), num_rows, Mdata, ipiv, work, result, 1);
+ }
+ void inline clapack_Xsptri(KaldiBlasInt *num_rows, double *Mdata, 
+                            KaldiBlasInt *ipiv, double *work, KaldiBlasInt *result) {
+-  dsptri_(const_cast<char *>("U"), num_rows, Mdata, ipiv, work, result);
++  dsptri_(const_cast<char *>("U"), num_rows, Mdata, ipiv, work, result, 1);
+ }
+ //
+ void inline clapack_Xsptrf(KaldiBlasInt *num_rows, float *Mdata,
+                            KaldiBlasInt *ipiv, KaldiBlasInt *result) {
+-  ssptrf_(const_cast<char *>("U"), num_rows, Mdata, ipiv, result);
++  ssptrf_(const_cast<char *>("U"), num_rows, Mdata, ipiv, result, 1);
+ }
+ void inline clapack_Xsptrf(KaldiBlasInt *num_rows, double *Mdata,
+                            KaldiBlasInt *ipiv, KaldiBlasInt *result) {
+-  dsptrf_(const_cast<char *>("U"), num_rows, Mdata, ipiv, result);
++  dsptrf_(const_cast<char *>("U"), num_rows, Mdata, ipiv, result, 1);
+ }
+ #else
+ inline void clapack_Xgetrf(MatrixIndexT num_rows, MatrixIndexT num_cols,
diff --git a/srcpkgs/vosk-api/template b/srcpkgs/vosk-api/template
new file mode 100644
index 000000000000..cf04e6052752
--- /dev/null
+++ b/srcpkgs/vosk-api/template
@@ -0,0 +1,79 @@
+# Template file for 'vosk-api'
+pkgname=vosk-api
+version=0.3.43
+revision=1
+_openblas_ver=0.3.20
+_clapack_ver=3.2.1
+_openfst_commit=7dfd808194105162f20084bb4d8e4ee4b65266d5
+_kaldi_commit=76cd51d44c0a61e3905c35cadb2ec5f54f3e42d1
+build_style="gnu-makefile"
+make_use_env=yes
+make_build_args="-C src KALDI_ROOT=../../kaldi-${_kaldi_commit}
+	OPENFST_ROOT=../../kaldi-${_kaldi_commit}/tools/openfst
+	OPENBLAS_ROOT=../../kaldi-${_kaldi_commit}/tools/OpenBLAS/install"
+hostmakedepends="autoconf automake cmake libtool"
+makedepends="openblas-devel"
+short_desc="Offline speech recognition toolkit"
+maintainer="John Gebbie <me@johngebbie.com>"
+license="Apache-2.0"
+homepage="https://alphacephei.com/vosk"
+distfiles="https://github.com/alphacep/vosk-api/archive/v$version/vosk-api-$version.tar.gz
+https://github.com/alphacep/clapack/archive/v${_clapack_ver}/clapack-${_clapack_ver}.tar.gz
+https://github.com/alphacep/kaldi/archive/$_kaldi_commit.tar.gz
+https://github.com/alphacep/openfst/archive/$_openfst_commit.tar.gz
+https://alphacephei.com/vosk/models/vosk-model-small-en-us-0.15.zip"
+checksum="50fa82bfbfe3fc5be868237c84ac180eb55da0b65b1803bf022899673afda024
+8d8ff8259454cae392bb58bc4971fef1db632c9fb5cdf61255cd495bd6d6ac4d
+4f50b51d0596970b0c1e1356c6a3e791810d1fbc75f2024cd30e818b7b299382
+a7bac90acb9a12fdfe50c240c9bb730a7bcb5c3b3ac32017c4d27177b059680a
+30f26242c4eb449f948e42cb302dd7a686cb29a3423a8367f99ff41780942498"
+patch_args="-Np1 ../kaldi-${_kaldi_commit}/src/matrix/cblas-wrappers.h"
+
+pre_build() {
+	cd "${XBPS_BUILDDIR}"
+
+	mkdir -p "kaldi-${_kaldi_commit}/tools/OpenBLAS/install/lib"
+	ln -sf /usr/include/openblas "kaldi-${_kaldi_commit}/tools/OpenBLAS/install/include"
+	ln -sf /usr/lib/libopenblas.a "kaldi-${_kaldi_commit}/tools/OpenBLAS/install/lib"
+	ln -sf /usr/lib/libopenblas.so "kaldi-${_kaldi_commit}/tools/OpenBLAS/install/lib"
+
+	ln -sf "../../clapack-${_clapack_ver}" "kaldi-${_kaldi_commit}/tools/clapack"
+	ln -sf "../../openfst-${_openfst_commit}" "kaldi-${_kaldi_commit}/tools/openfst"
+	autoreconf -fi "openfst-${_openfst_commit}"
+
+	cmake -S "clapack-${_clapack_ver}" -B "build-clapack-${_clapack_ver}"
+	make -C "build-clapack-${_clapack_ver}/F2CLIBS"
+	make -C "build-clapack-${_clapack_ver}/BLAS"
+	make -C "build-clapack-${_clapack_ver}/SRC"
+	find "build-clapack-${_clapack_ver}" -name "*.a" | xargs cp -t "${XBPS_BUILDDIR}/kaldi-${_kaldi_commit}/tools/OpenBLAS/install/lib"
+
+	cd "${XBPS_BUILDDIR}/openfst-${_openfst_commit}"
+	./configure \
+		--prefix="${XBPS_BUILDDIR}/kaldi-${_kaldi_commit}/tools/openfst" \
+		--enable-static \
+		--enable-shared \
+		--enable-far \
+		--enable-ngram-fsts \
+		--enable-lookahead-fsts \
+		--with-pic \
+		--disable-bin
+	make
+	make install
+
+	cd "${XBPS_BUILDDIR}/kaldi-${_kaldi_commit}/src"
+	./configure --mathlib=OPENBLAS_CLAPACK --shared --use-cuda=no
+	make online2 lm rnnlm
+}
+
+do_install() {
+	vinstall src/vosk_api.h 644 usr/include
+	vinstall src/libvosk.so 644 usr/lib
+}
+
+vosk-model-small-en-us_package() {
+	short_desc="Lightweight english language model"
+	pkg_install() {
+		vmkdir usr/share/vosk-models
+		mv "${XBPS_BUILDDIR}/vosk-model-small-en-us-0.15" "${PKGDESTDIR}/usr/share/vosk-models/small-en-us"
+	}
+}
diff --git a/srcpkgs/vosk-model-small-en-us b/srcpkgs/vosk-model-small-en-us
new file mode 120000
index 000000000000..db9953d33676
--- /dev/null
+++ b/srcpkgs/vosk-model-small-en-us
@@ -0,0 +1 @@
+vosk-api
\ No newline at end of file

^ permalink raw reply	[flat|nested] 35+ messages in thread

* Re: [PR PATCH] [Updated] New package: vosk-api-0.3.43
  2022-08-31 21:38 [PR PATCH] New package: libvosk-0.3.43 JohnGebbie
                   ` (14 preceding siblings ...)
  2022-09-18 11:00 ` [PR PATCH] [Updated] " JohnGebbie
@ 2022-09-21 15:53 ` JohnGebbie
  2022-09-22  8:53 ` JohnGebbie
                   ` (17 subsequent siblings)
  33 siblings, 0 replies; 35+ messages in thread
From: JohnGebbie @ 2022-09-21 15:53 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 745 bytes --]

There is an updated pull request by JohnGebbie against master on the void-packages repository

https://github.com/JohnGebbie/void-packages libvosk
https://github.com/void-linux/void-packages/pull/39015

New package: vosk-api-0.3.43
#### Testing the changes
- I tested the changes in this PR: **briefly**

#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**

#### Local build testing
- I built this PR locally for my native architecture, (x86_64-glibc)

Closes https://github.com/void-linux/void-packages/issues/39009


A patch file from https://github.com/void-linux/void-packages/pull/39015.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-libvosk-39015.patch --]
[-- Type: text/x-diff, Size: 7289 bytes --]

From 66e1722fe1a806c10c2a653b34766813427c742e Mon Sep 17 00:00:00 2001
From: John Gebbie <me@johngebbie.com>
Date: Sat, 3 Sep 2022 13:02:48 +0100
Subject: [PATCH] New package: vosk-api-0.3.43

---
 srcpkgs/vosk-api/patches/openblas.diff | 55 ++++++++++++++++++
 srcpkgs/vosk-api/template              | 79 ++++++++++++++++++++++++++
 srcpkgs/vosk-model-small-en-us         |  1 +
 3 files changed, 135 insertions(+)
 create mode 100644 srcpkgs/vosk-api/patches/openblas.diff
 create mode 100644 srcpkgs/vosk-api/template
 create mode 120000 srcpkgs/vosk-model-small-en-us

diff --git a/srcpkgs/vosk-api/patches/openblas.diff b/srcpkgs/vosk-api/patches/openblas.diff
new file mode 100644
index 000000000000..4ae3aac80393
--- /dev/null
+++ b/srcpkgs/vosk-api/patches/openblas.diff
@@ -0,0 +1,55 @@
+--- a/src/matrix/cblas-wrappers.h
++++ b/src/matrix/cblas-wrappers.h
+@@ -383,10 +383,10 @@ inline void mul_elements(
+ // add clapack here
+ #if !defined(HAVE_ATLAS)
+ inline void clapack_Xtptri(KaldiBlasInt *num_rows, float *Mdata, KaldiBlasInt *result) {
+-  stptri_(const_cast<char *>("U"), const_cast<char *>("N"), num_rows, Mdata, result);
++  stptri_(const_cast<char *>("U"), const_cast<char *>("N"), num_rows, Mdata, result, 1, 1);
+ }
+ inline void clapack_Xtptri(KaldiBlasInt *num_rows, double *Mdata, KaldiBlasInt *result) {
+-  dtptri_(const_cast<char *>("U"), const_cast<char *>("N"), num_rows, Mdata, result);
++  dtptri_(const_cast<char *>("U"), const_cast<char *>("N"), num_rows, Mdata, result, 1, 1);
+ }
+ // 
+ inline void clapack_Xgetrf2(KaldiBlasInt *num_rows, KaldiBlasInt *num_cols, 
+@@ -420,7 +420,7 @@ inline void clapack_Xgesvd(char *v, char *u, KaldiBlasInt *num_cols,
+   sgesvd_(v, u,
+           num_cols, num_rows, Mdata, stride,
+           sv, Vdata, vstride, Udata, ustride, 
+-          p_work, l_work, result); 
++          p_work, l_work, result, 1, 1);
+ }
+ inline void clapack_Xgesvd(char *v, char *u, KaldiBlasInt *num_cols,
+                            KaldiBlasInt *num_rows, double *Mdata, KaldiBlasInt *stride,
+@@ -430,25 +430,25 @@ inline void clapack_Xgesvd(char *v, char *u, KaldiBlasInt *num_cols,
+   dgesvd_(v, u,
+           num_cols, num_rows, Mdata, stride,
+           sv, Vdata, vstride, Udata, ustride,
+-          p_work, l_work, result); 
++          p_work, l_work, result, 1, 1);
+ }
+ //
+ void inline clapack_Xsptri(KaldiBlasInt *num_rows, float *Mdata, 
+                            KaldiBlasInt *ipiv, float *work, KaldiBlasInt *result) {
+-  ssptri_(const_cast<char *>("U"), num_rows, Mdata, ipiv, work, result);
++  ssptri_(const_cast<char *>("U"), num_rows, Mdata, ipiv, work, result, 1);
+ }
+ void inline clapack_Xsptri(KaldiBlasInt *num_rows, double *Mdata, 
+                            KaldiBlasInt *ipiv, double *work, KaldiBlasInt *result) {
+-  dsptri_(const_cast<char *>("U"), num_rows, Mdata, ipiv, work, result);
++  dsptri_(const_cast<char *>("U"), num_rows, Mdata, ipiv, work, result, 1);
+ }
+ //
+ void inline clapack_Xsptrf(KaldiBlasInt *num_rows, float *Mdata,
+                            KaldiBlasInt *ipiv, KaldiBlasInt *result) {
+-  ssptrf_(const_cast<char *>("U"), num_rows, Mdata, ipiv, result);
++  ssptrf_(const_cast<char *>("U"), num_rows, Mdata, ipiv, result, 1);
+ }
+ void inline clapack_Xsptrf(KaldiBlasInt *num_rows, double *Mdata,
+                            KaldiBlasInt *ipiv, KaldiBlasInt *result) {
+-  dsptrf_(const_cast<char *>("U"), num_rows, Mdata, ipiv, result);
++  dsptrf_(const_cast<char *>("U"), num_rows, Mdata, ipiv, result, 1);
+ }
+ #else
+ inline void clapack_Xgetrf(MatrixIndexT num_rows, MatrixIndexT num_cols,
diff --git a/srcpkgs/vosk-api/template b/srcpkgs/vosk-api/template
new file mode 100644
index 000000000000..cf04e6052752
--- /dev/null
+++ b/srcpkgs/vosk-api/template
@@ -0,0 +1,79 @@
+# Template file for 'vosk-api'
+pkgname=vosk-api
+version=0.3.43
+revision=1
+_openblas_ver=0.3.20
+_clapack_ver=3.2.1
+_openfst_commit=7dfd808194105162f20084bb4d8e4ee4b65266d5
+_kaldi_commit=76cd51d44c0a61e3905c35cadb2ec5f54f3e42d1
+build_style="gnu-makefile"
+make_use_env=yes
+make_build_args="-C src KALDI_ROOT=../../kaldi-${_kaldi_commit}
+	OPENFST_ROOT=../../kaldi-${_kaldi_commit}/tools/openfst
+	OPENBLAS_ROOT=../../kaldi-${_kaldi_commit}/tools/OpenBLAS/install"
+hostmakedepends="autoconf automake cmake libtool"
+makedepends="openblas-devel"
+short_desc="Offline speech recognition toolkit"
+maintainer="John Gebbie <me@johngebbie.com>"
+license="Apache-2.0"
+homepage="https://alphacephei.com/vosk"
+distfiles="https://github.com/alphacep/vosk-api/archive/v$version/vosk-api-$version.tar.gz
+https://github.com/alphacep/clapack/archive/v${_clapack_ver}/clapack-${_clapack_ver}.tar.gz
+https://github.com/alphacep/kaldi/archive/$_kaldi_commit.tar.gz
+https://github.com/alphacep/openfst/archive/$_openfst_commit.tar.gz
+https://alphacephei.com/vosk/models/vosk-model-small-en-us-0.15.zip"
+checksum="50fa82bfbfe3fc5be868237c84ac180eb55da0b65b1803bf022899673afda024
+8d8ff8259454cae392bb58bc4971fef1db632c9fb5cdf61255cd495bd6d6ac4d
+4f50b51d0596970b0c1e1356c6a3e791810d1fbc75f2024cd30e818b7b299382
+a7bac90acb9a12fdfe50c240c9bb730a7bcb5c3b3ac32017c4d27177b059680a
+30f26242c4eb449f948e42cb302dd7a686cb29a3423a8367f99ff41780942498"
+patch_args="-Np1 ../kaldi-${_kaldi_commit}/src/matrix/cblas-wrappers.h"
+
+pre_build() {
+	cd "${XBPS_BUILDDIR}"
+
+	mkdir -p "kaldi-${_kaldi_commit}/tools/OpenBLAS/install/lib"
+	ln -sf /usr/include/openblas "kaldi-${_kaldi_commit}/tools/OpenBLAS/install/include"
+	ln -sf /usr/lib/libopenblas.a "kaldi-${_kaldi_commit}/tools/OpenBLAS/install/lib"
+	ln -sf /usr/lib/libopenblas.so "kaldi-${_kaldi_commit}/tools/OpenBLAS/install/lib"
+
+	ln -sf "../../clapack-${_clapack_ver}" "kaldi-${_kaldi_commit}/tools/clapack"
+	ln -sf "../../openfst-${_openfst_commit}" "kaldi-${_kaldi_commit}/tools/openfst"
+	autoreconf -fi "openfst-${_openfst_commit}"
+
+	cmake -S "clapack-${_clapack_ver}" -B "build-clapack-${_clapack_ver}"
+	make -C "build-clapack-${_clapack_ver}/F2CLIBS"
+	make -C "build-clapack-${_clapack_ver}/BLAS"
+	make -C "build-clapack-${_clapack_ver}/SRC"
+	find "build-clapack-${_clapack_ver}" -name "*.a" | xargs cp -t "${XBPS_BUILDDIR}/kaldi-${_kaldi_commit}/tools/OpenBLAS/install/lib"
+
+	cd "${XBPS_BUILDDIR}/openfst-${_openfst_commit}"
+	./configure \
+		--prefix="${XBPS_BUILDDIR}/kaldi-${_kaldi_commit}/tools/openfst" \
+		--enable-static \
+		--enable-shared \
+		--enable-far \
+		--enable-ngram-fsts \
+		--enable-lookahead-fsts \
+		--with-pic \
+		--disable-bin
+	make
+	make install
+
+	cd "${XBPS_BUILDDIR}/kaldi-${_kaldi_commit}/src"
+	./configure --mathlib=OPENBLAS_CLAPACK --shared --use-cuda=no
+	make online2 lm rnnlm
+}
+
+do_install() {
+	vinstall src/vosk_api.h 644 usr/include
+	vinstall src/libvosk.so 644 usr/lib
+}
+
+vosk-model-small-en-us_package() {
+	short_desc="Lightweight english language model"
+	pkg_install() {
+		vmkdir usr/share/vosk-models
+		mv "${XBPS_BUILDDIR}/vosk-model-small-en-us-0.15" "${PKGDESTDIR}/usr/share/vosk-models/small-en-us"
+	}
+}
diff --git a/srcpkgs/vosk-model-small-en-us b/srcpkgs/vosk-model-small-en-us
new file mode 120000
index 000000000000..db9953d33676
--- /dev/null
+++ b/srcpkgs/vosk-model-small-en-us
@@ -0,0 +1 @@
+vosk-api
\ No newline at end of file

^ permalink raw reply	[flat|nested] 35+ messages in thread

* Re: [PR PATCH] [Updated] New package: vosk-api-0.3.43
  2022-08-31 21:38 [PR PATCH] New package: libvosk-0.3.43 JohnGebbie
                   ` (15 preceding siblings ...)
  2022-09-21 15:53 ` JohnGebbie
@ 2022-09-22  8:53 ` JohnGebbie
  2022-09-22  9:26 ` [PR REVIEW] " paper42
                   ` (16 subsequent siblings)
  33 siblings, 0 replies; 35+ messages in thread
From: JohnGebbie @ 2022-09-22  8:53 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 745 bytes --]

There is an updated pull request by JohnGebbie against master on the void-packages repository

https://github.com/JohnGebbie/void-packages libvosk
https://github.com/void-linux/void-packages/pull/39015

New package: vosk-api-0.3.43
#### Testing the changes
- I tested the changes in this PR: **briefly**

#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**

#### Local build testing
- I built this PR locally for my native architecture, (x86_64-glibc)

Closes https://github.com/void-linux/void-packages/issues/39009


A patch file from https://github.com/void-linux/void-packages/pull/39015.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-libvosk-39015.patch --]
[-- Type: text/x-diff, Size: 7086 bytes --]

From a799e90b8f30af4c1deb7047d7958716cbc36bd4 Mon Sep 17 00:00:00 2001
From: John Gebbie <me@johngebbie.com>
Date: Sat, 3 Sep 2022 13:02:48 +0100
Subject: [PATCH] New package: vosk-api-0.3.43

---
 srcpkgs/vosk-api/patches/openblas.diff | 55 ++++++++++++++++++
 srcpkgs/vosk-api/template              | 78 ++++++++++++++++++++++++++
 srcpkgs/vosk-model-small-en-us         |  1 +
 3 files changed, 134 insertions(+)
 create mode 100644 srcpkgs/vosk-api/patches/openblas.diff
 create mode 100644 srcpkgs/vosk-api/template
 create mode 120000 srcpkgs/vosk-model-small-en-us

diff --git a/srcpkgs/vosk-api/patches/openblas.diff b/srcpkgs/vosk-api/patches/openblas.diff
new file mode 100644
index 000000000000..4ae3aac80393
--- /dev/null
+++ b/srcpkgs/vosk-api/patches/openblas.diff
@@ -0,0 +1,55 @@
+--- a/src/matrix/cblas-wrappers.h
++++ b/src/matrix/cblas-wrappers.h
+@@ -383,10 +383,10 @@ inline void mul_elements(
+ // add clapack here
+ #if !defined(HAVE_ATLAS)
+ inline void clapack_Xtptri(KaldiBlasInt *num_rows, float *Mdata, KaldiBlasInt *result) {
+-  stptri_(const_cast<char *>("U"), const_cast<char *>("N"), num_rows, Mdata, result);
++  stptri_(const_cast<char *>("U"), const_cast<char *>("N"), num_rows, Mdata, result, 1, 1);
+ }
+ inline void clapack_Xtptri(KaldiBlasInt *num_rows, double *Mdata, KaldiBlasInt *result) {
+-  dtptri_(const_cast<char *>("U"), const_cast<char *>("N"), num_rows, Mdata, result);
++  dtptri_(const_cast<char *>("U"), const_cast<char *>("N"), num_rows, Mdata, result, 1, 1);
+ }
+ // 
+ inline void clapack_Xgetrf2(KaldiBlasInt *num_rows, KaldiBlasInt *num_cols, 
+@@ -420,7 +420,7 @@ inline void clapack_Xgesvd(char *v, char *u, KaldiBlasInt *num_cols,
+   sgesvd_(v, u,
+           num_cols, num_rows, Mdata, stride,
+           sv, Vdata, vstride, Udata, ustride, 
+-          p_work, l_work, result); 
++          p_work, l_work, result, 1, 1);
+ }
+ inline void clapack_Xgesvd(char *v, char *u, KaldiBlasInt *num_cols,
+                            KaldiBlasInt *num_rows, double *Mdata, KaldiBlasInt *stride,
+@@ -430,25 +430,25 @@ inline void clapack_Xgesvd(char *v, char *u, KaldiBlasInt *num_cols,
+   dgesvd_(v, u,
+           num_cols, num_rows, Mdata, stride,
+           sv, Vdata, vstride, Udata, ustride,
+-          p_work, l_work, result); 
++          p_work, l_work, result, 1, 1);
+ }
+ //
+ void inline clapack_Xsptri(KaldiBlasInt *num_rows, float *Mdata, 
+                            KaldiBlasInt *ipiv, float *work, KaldiBlasInt *result) {
+-  ssptri_(const_cast<char *>("U"), num_rows, Mdata, ipiv, work, result);
++  ssptri_(const_cast<char *>("U"), num_rows, Mdata, ipiv, work, result, 1);
+ }
+ void inline clapack_Xsptri(KaldiBlasInt *num_rows, double *Mdata, 
+                            KaldiBlasInt *ipiv, double *work, KaldiBlasInt *result) {
+-  dsptri_(const_cast<char *>("U"), num_rows, Mdata, ipiv, work, result);
++  dsptri_(const_cast<char *>("U"), num_rows, Mdata, ipiv, work, result, 1);
+ }
+ //
+ void inline clapack_Xsptrf(KaldiBlasInt *num_rows, float *Mdata,
+                            KaldiBlasInt *ipiv, KaldiBlasInt *result) {
+-  ssptrf_(const_cast<char *>("U"), num_rows, Mdata, ipiv, result);
++  ssptrf_(const_cast<char *>("U"), num_rows, Mdata, ipiv, result, 1);
+ }
+ void inline clapack_Xsptrf(KaldiBlasInt *num_rows, double *Mdata,
+                            KaldiBlasInt *ipiv, KaldiBlasInt *result) {
+-  dsptrf_(const_cast<char *>("U"), num_rows, Mdata, ipiv, result);
++  dsptrf_(const_cast<char *>("U"), num_rows, Mdata, ipiv, result, 1);
+ }
+ #else
+ inline void clapack_Xgetrf(MatrixIndexT num_rows, MatrixIndexT num_cols,
diff --git a/srcpkgs/vosk-api/template b/srcpkgs/vosk-api/template
new file mode 100644
index 000000000000..fb57c2c975f9
--- /dev/null
+++ b/srcpkgs/vosk-api/template
@@ -0,0 +1,78 @@
+# Template file for 'vosk-api'
+pkgname=vosk-api
+version=0.3.43
+revision=1
+_openblas_ver=0.3.20
+_clapack_ver=3.2.1
+_openfst_commit=7dfd808194105162f20084bb4d8e4ee4b65266d5
+_kaldi_commit=6417ac1dece94783e80dfbac0148604685d27579
+build_style=gnu-configure
+make_use_env=yes
+make_build_args="-C src KALDI_ROOT=../../kaldi-${_kaldi_commit}
+	OPENFST_ROOT=../../kaldi-${_kaldi_commit}/tools/openfst
+	OPENBLAS_ROOT=../../kaldi-${_kaldi_commit}/tools/OpenBLAS/install"
+hostmakedepends="autoconf automake cmake libtool"
+makedepends="blas-devel lapack-devel openblas-devel"
+short_desc="Offline speech recognition toolkit"
+maintainer="John Gebbie <me@johngebbie.com>"
+license="Apache-2.0"
+homepage="https://alphacephei.com/vosk"
+distfiles="https://github.com/alphacep/vosk-api/archive/v$version/vosk-api-$version.tar.gz
+https://github.com/alphacep/kaldi/archive/$_kaldi_commit.tar.gz
+https://github.com/alphacep/openfst/archive/$_openfst_commit.tar.gz
+https://alphacephei.com/vosk/models/vosk-model-small-en-us-0.15.zip"
+checksum="50fa82bfbfe3fc5be868237c84ac180eb55da0b65b1803bf022899673afda024
+4e5c08c9c61bbc995e0620321feb0973bb0321442f1bd8f08b47497f55efadda
+a7bac90acb9a12fdfe50c240c9bb730a7bcb5c3b3ac32017c4d27177b059680a
+30f26242c4eb449f948e42cb302dd7a686cb29a3423a8367f99ff41780942498"
+patch_args="-Np1 ../kaldi-${_kaldi_commit}/src/matrix/cblas-wrappers.h"
+
+post_extract() {
+	cd "${XBPS_BUILDDIR}/vosk-api-${version}/src"
+	vsed -i Makefile -e '/libblas\.a \\/ {N; s/ \\.*//}'
+	vsed -i Makefile -e 's/ -lf2c//'
+
+	cd "${XBPS_BUILDDIR}"
+	mkdir -p "kaldi-${_kaldi_commit}/tools/OpenBLAS/install/lib"
+	ln -sf /usr/include/openblas "kaldi-${_kaldi_commit}/tools/OpenBLAS/install/include"
+	ln -sf /usr/lib/libopenblas.a "kaldi-${_kaldi_commit}/tools/OpenBLAS/install/lib"
+	ln -sf /usr/lib/libopenblas.so "kaldi-${_kaldi_commit}/tools/OpenBLAS/install/lib"
+	ln -sf /usr/lib/liblapack.a "kaldi-${_kaldi_commit}/tools/OpenBLAS/install/lib"
+	ln -sf /usr/lib/libblas.a "kaldi-${_kaldi_commit}/tools/OpenBLAS/install/lib"
+	ln -sf "../../openfst-${_openfst_commit}" "kaldi-${_kaldi_commit}/tools/openfst"
+
+	autoreconf -fi "openfst-${_openfst_commit}"
+}
+
+pre_build() {
+	cd "${XBPS_BUILDDIR}/openfst-${_openfst_commit}"
+	./configure \
+		--prefix="${XBPS_BUILDDIR}/kaldi-${_kaldi_commit}/tools/openfst" \
+		--enable-static \
+		--enable-shared \
+		--enable-far \
+		--enable-ngram-fsts \
+		--enable-lookahead-fsts \
+		--with-pic \
+		--disable-bin
+	make
+	make install
+
+	cd "${XBPS_BUILDDIR}/kaldi-${_kaldi_commit}/src"
+	vsed -i configure -e 's/ -l:libf2c\.a//'
+	./configure --mathlib=OPENBLAS_CLAPACK --shared --use-cuda=no
+	make online2 lm rnnlm
+}
+
+do_install() {
+	vinstall src/vosk_api.h 644 usr/include
+	vinstall src/libvosk.so 644 usr/lib
+}
+
+vosk-model-small-en-us_package() {
+	short_desc="Lightweight english language model"
+	pkg_install() {
+		vmkdir usr/share/vosk-models
+		mv "${XBPS_BUILDDIR}/vosk-model-small-en-us-0.15" "${PKGDESTDIR}/usr/share/vosk-models/small-en-us"
+	}
+}
diff --git a/srcpkgs/vosk-model-small-en-us b/srcpkgs/vosk-model-small-en-us
new file mode 120000
index 000000000000..db9953d33676
--- /dev/null
+++ b/srcpkgs/vosk-model-small-en-us
@@ -0,0 +1 @@
+vosk-api
\ No newline at end of file

^ permalink raw reply	[flat|nested] 35+ messages in thread

* Re: [PR REVIEW] New package: vosk-api-0.3.43
  2022-08-31 21:38 [PR PATCH] New package: libvosk-0.3.43 JohnGebbie
                   ` (17 preceding siblings ...)
  2022-09-22  9:26 ` [PR REVIEW] " paper42
@ 2022-09-22  9:26 ` paper42
  2022-09-22 14:39 ` [PR PATCH] [Updated] " JohnGebbie
                   ` (14 subsequent siblings)
  33 siblings, 0 replies; 35+ messages in thread
From: paper42 @ 2022-09-22  9:26 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 182 bytes --]

New review comment by paper42 on void-packages repository

https://github.com/void-linux/void-packages/pull/39015#discussion_r977419127

Comment:
could it work with system packages?

^ permalink raw reply	[flat|nested] 35+ messages in thread

* Re: [PR REVIEW] New package: vosk-api-0.3.43
  2022-08-31 21:38 [PR PATCH] New package: libvosk-0.3.43 JohnGebbie
                   ` (16 preceding siblings ...)
  2022-09-22  8:53 ` JohnGebbie
@ 2022-09-22  9:26 ` paper42
  2022-09-22  9:26 ` paper42
                   ` (15 subsequent siblings)
  33 siblings, 0 replies; 35+ messages in thread
From: paper42 @ 2022-09-22  9:26 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 240 bytes --]

New review comment by paper42 on void-packages repository

https://github.com/void-linux/void-packages/pull/39015#discussion_r977420046

Comment:
use create_wrksrc to contain all of the extracted distfiles in one directory and fix cleaning

^ permalink raw reply	[flat|nested] 35+ messages in thread

* Re: [PR PATCH] [Updated] New package: vosk-api-0.3.43
  2022-08-31 21:38 [PR PATCH] New package: libvosk-0.3.43 JohnGebbie
                   ` (18 preceding siblings ...)
  2022-09-22  9:26 ` paper42
@ 2022-09-22 14:39 ` JohnGebbie
  2022-09-22 14:43 ` JohnGebbie
                   ` (13 subsequent siblings)
  33 siblings, 0 replies; 35+ messages in thread
From: JohnGebbie @ 2022-09-22 14:39 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 745 bytes --]

There is an updated pull request by JohnGebbie against master on the void-packages repository

https://github.com/JohnGebbie/void-packages libvosk
https://github.com/void-linux/void-packages/pull/39015

New package: vosk-api-0.3.43
#### Testing the changes
- I tested the changes in this PR: **briefly**

#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**

#### Local build testing
- I built this PR locally for my native architecture, (x86_64-glibc)

Closes https://github.com/void-linux/void-packages/issues/39009


A patch file from https://github.com/void-linux/void-packages/pull/39015.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-libvosk-39015.patch --]
[-- Type: text/x-diff, Size: 7086 bytes --]

From 027aa90d1a69d1eb571c4e42d87218f49c4c883b Mon Sep 17 00:00:00 2001
From: John Gebbie <me@johngebbie.com>
Date: Sat, 3 Sep 2022 13:02:48 +0100
Subject: [PATCH] New package: vosk-api-0.3.43

---
 srcpkgs/vosk-api/patches/openblas.diff | 55 ++++++++++++++++++
 srcpkgs/vosk-api/template              | 78 ++++++++++++++++++++++++++
 srcpkgs/vosk-model-small-en-us         |  1 +
 3 files changed, 134 insertions(+)
 create mode 100644 srcpkgs/vosk-api/patches/openblas.diff
 create mode 100644 srcpkgs/vosk-api/template
 create mode 120000 srcpkgs/vosk-model-small-en-us

diff --git a/srcpkgs/vosk-api/patches/openblas.diff b/srcpkgs/vosk-api/patches/openblas.diff
new file mode 100644
index 000000000000..4ae3aac80393
--- /dev/null
+++ b/srcpkgs/vosk-api/patches/openblas.diff
@@ -0,0 +1,55 @@
+--- a/src/matrix/cblas-wrappers.h
++++ b/src/matrix/cblas-wrappers.h
+@@ -383,10 +383,10 @@ inline void mul_elements(
+ // add clapack here
+ #if !defined(HAVE_ATLAS)
+ inline void clapack_Xtptri(KaldiBlasInt *num_rows, float *Mdata, KaldiBlasInt *result) {
+-  stptri_(const_cast<char *>("U"), const_cast<char *>("N"), num_rows, Mdata, result);
++  stptri_(const_cast<char *>("U"), const_cast<char *>("N"), num_rows, Mdata, result, 1, 1);
+ }
+ inline void clapack_Xtptri(KaldiBlasInt *num_rows, double *Mdata, KaldiBlasInt *result) {
+-  dtptri_(const_cast<char *>("U"), const_cast<char *>("N"), num_rows, Mdata, result);
++  dtptri_(const_cast<char *>("U"), const_cast<char *>("N"), num_rows, Mdata, result, 1, 1);
+ }
+ // 
+ inline void clapack_Xgetrf2(KaldiBlasInt *num_rows, KaldiBlasInt *num_cols, 
+@@ -420,7 +420,7 @@ inline void clapack_Xgesvd(char *v, char *u, KaldiBlasInt *num_cols,
+   sgesvd_(v, u,
+           num_cols, num_rows, Mdata, stride,
+           sv, Vdata, vstride, Udata, ustride, 
+-          p_work, l_work, result); 
++          p_work, l_work, result, 1, 1);
+ }
+ inline void clapack_Xgesvd(char *v, char *u, KaldiBlasInt *num_cols,
+                            KaldiBlasInt *num_rows, double *Mdata, KaldiBlasInt *stride,
+@@ -430,25 +430,25 @@ inline void clapack_Xgesvd(char *v, char *u, KaldiBlasInt *num_cols,
+   dgesvd_(v, u,
+           num_cols, num_rows, Mdata, stride,
+           sv, Vdata, vstride, Udata, ustride,
+-          p_work, l_work, result); 
++          p_work, l_work, result, 1, 1);
+ }
+ //
+ void inline clapack_Xsptri(KaldiBlasInt *num_rows, float *Mdata, 
+                            KaldiBlasInt *ipiv, float *work, KaldiBlasInt *result) {
+-  ssptri_(const_cast<char *>("U"), num_rows, Mdata, ipiv, work, result);
++  ssptri_(const_cast<char *>("U"), num_rows, Mdata, ipiv, work, result, 1);
+ }
+ void inline clapack_Xsptri(KaldiBlasInt *num_rows, double *Mdata, 
+                            KaldiBlasInt *ipiv, double *work, KaldiBlasInt *result) {
+-  dsptri_(const_cast<char *>("U"), num_rows, Mdata, ipiv, work, result);
++  dsptri_(const_cast<char *>("U"), num_rows, Mdata, ipiv, work, result, 1);
+ }
+ //
+ void inline clapack_Xsptrf(KaldiBlasInt *num_rows, float *Mdata,
+                            KaldiBlasInt *ipiv, KaldiBlasInt *result) {
+-  ssptrf_(const_cast<char *>("U"), num_rows, Mdata, ipiv, result);
++  ssptrf_(const_cast<char *>("U"), num_rows, Mdata, ipiv, result, 1);
+ }
+ void inline clapack_Xsptrf(KaldiBlasInt *num_rows, double *Mdata,
+                            KaldiBlasInt *ipiv, KaldiBlasInt *result) {
+-  dsptrf_(const_cast<char *>("U"), num_rows, Mdata, ipiv, result);
++  dsptrf_(const_cast<char *>("U"), num_rows, Mdata, ipiv, result, 1);
+ }
+ #else
+ inline void clapack_Xgetrf(MatrixIndexT num_rows, MatrixIndexT num_cols,
diff --git a/srcpkgs/vosk-api/template b/srcpkgs/vosk-api/template
new file mode 100644
index 000000000000..fb57c2c975f9
--- /dev/null
+++ b/srcpkgs/vosk-api/template
@@ -0,0 +1,78 @@
+# Template file for 'vosk-api'
+pkgname=vosk-api
+version=0.3.43
+revision=1
+_openblas_ver=0.3.20
+_clapack_ver=3.2.1
+_openfst_commit=7dfd808194105162f20084bb4d8e4ee4b65266d5
+_kaldi_commit=6417ac1dece94783e80dfbac0148604685d27579
+build_style=gnu-configure
+make_use_env=yes
+make_build_args="-C src KALDI_ROOT=../../kaldi-${_kaldi_commit}
+	OPENFST_ROOT=../../kaldi-${_kaldi_commit}/tools/openfst
+	OPENBLAS_ROOT=../../kaldi-${_kaldi_commit}/tools/OpenBLAS/install"
+hostmakedepends="autoconf automake cmake libtool"
+makedepends="blas-devel lapack-devel openblas-devel"
+short_desc="Offline speech recognition toolkit"
+maintainer="John Gebbie <me@johngebbie.com>"
+license="Apache-2.0"
+homepage="https://alphacephei.com/vosk"
+distfiles="https://github.com/alphacep/vosk-api/archive/v$version/vosk-api-$version.tar.gz
+https://github.com/alphacep/kaldi/archive/$_kaldi_commit.tar.gz
+https://github.com/alphacep/openfst/archive/$_openfst_commit.tar.gz
+https://alphacephei.com/vosk/models/vosk-model-small-en-us-0.15.zip"
+checksum="50fa82bfbfe3fc5be868237c84ac180eb55da0b65b1803bf022899673afda024
+4e5c08c9c61bbc995e0620321feb0973bb0321442f1bd8f08b47497f55efadda
+a7bac90acb9a12fdfe50c240c9bb730a7bcb5c3b3ac32017c4d27177b059680a
+30f26242c4eb449f948e42cb302dd7a686cb29a3423a8367f99ff41780942498"
+patch_args="-Np1 ../kaldi-${_kaldi_commit}/src/matrix/cblas-wrappers.h"
+
+post_extract() {
+	cd "${XBPS_BUILDDIR}/vosk-api-${version}/src"
+	vsed -i Makefile -e '/libblas\.a \\/ {N; s/ \\.*//}'
+	vsed -i Makefile -e 's/ -lf2c//'
+
+	cd "${XBPS_BUILDDIR}"
+	mkdir -p "kaldi-${_kaldi_commit}/tools/OpenBLAS/install/lib"
+	ln -sf /usr/include/openblas "kaldi-${_kaldi_commit}/tools/OpenBLAS/install/include"
+	ln -sf /usr/lib/libopenblas.a "kaldi-${_kaldi_commit}/tools/OpenBLAS/install/lib"
+	ln -sf /usr/lib/libopenblas.so "kaldi-${_kaldi_commit}/tools/OpenBLAS/install/lib"
+	ln -sf /usr/lib/liblapack.a "kaldi-${_kaldi_commit}/tools/OpenBLAS/install/lib"
+	ln -sf /usr/lib/libblas.a "kaldi-${_kaldi_commit}/tools/OpenBLAS/install/lib"
+	ln -sf "../../openfst-${_openfst_commit}" "kaldi-${_kaldi_commit}/tools/openfst"
+
+	autoreconf -fi "openfst-${_openfst_commit}"
+}
+
+pre_build() {
+	cd "${XBPS_BUILDDIR}/openfst-${_openfst_commit}"
+	./configure \
+		--prefix="${XBPS_BUILDDIR}/kaldi-${_kaldi_commit}/tools/openfst" \
+		--enable-static \
+		--enable-shared \
+		--enable-far \
+		--enable-ngram-fsts \
+		--enable-lookahead-fsts \
+		--with-pic \
+		--disable-bin
+	make
+	make install
+
+	cd "${XBPS_BUILDDIR}/kaldi-${_kaldi_commit}/src"
+	vsed -i configure -e 's/ -l:libf2c\.a//'
+	./configure --mathlib=OPENBLAS_CLAPACK --shared --use-cuda=no
+	make online2 lm rnnlm
+}
+
+do_install() {
+	vinstall src/vosk_api.h 644 usr/include
+	vinstall src/libvosk.so 644 usr/lib
+}
+
+vosk-model-small-en-us_package() {
+	short_desc="Lightweight english language model"
+	pkg_install() {
+		vmkdir usr/share/vosk-models
+		mv "${XBPS_BUILDDIR}/vosk-model-small-en-us-0.15" "${PKGDESTDIR}/usr/share/vosk-models/small-en-us"
+	}
+}
diff --git a/srcpkgs/vosk-model-small-en-us b/srcpkgs/vosk-model-small-en-us
new file mode 120000
index 000000000000..db9953d33676
--- /dev/null
+++ b/srcpkgs/vosk-model-small-en-us
@@ -0,0 +1 @@
+vosk-api
\ No newline at end of file

^ permalink raw reply	[flat|nested] 35+ messages in thread

* Re: [PR PATCH] [Updated] New package: vosk-api-0.3.43
  2022-08-31 21:38 [PR PATCH] New package: libvosk-0.3.43 JohnGebbie
                   ` (19 preceding siblings ...)
  2022-09-22 14:39 ` [PR PATCH] [Updated] " JohnGebbie
@ 2022-09-22 14:43 ` JohnGebbie
  2022-09-22 15:19 ` [PR REVIEW] " JohnGebbie
                   ` (12 subsequent siblings)
  33 siblings, 0 replies; 35+ messages in thread
From: JohnGebbie @ 2022-09-22 14:43 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 745 bytes --]

There is an updated pull request by JohnGebbie against master on the void-packages repository

https://github.com/JohnGebbie/void-packages libvosk
https://github.com/void-linux/void-packages/pull/39015

New package: vosk-api-0.3.43
#### Testing the changes
- I tested the changes in this PR: **briefly**

#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**

#### Local build testing
- I built this PR locally for my native architecture, (x86_64-glibc)

Closes https://github.com/void-linux/void-packages/issues/39009


A patch file from https://github.com/void-linux/void-packages/pull/39015.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-libvosk-39015.patch --]
[-- Type: text/x-diff, Size: 6929 bytes --]

From 5d31a66849149474921b4f801201fde932f7c8ba Mon Sep 17 00:00:00 2001
From: John Gebbie <me@johngebbie.com>
Date: Sat, 3 Sep 2022 13:02:48 +0100
Subject: [PATCH] New package: vosk-api-0.3.43

---
 srcpkgs/vosk-api/patches/openblas.diff | 55 ++++++++++++++++++
 srcpkgs/vosk-api/template              | 79 ++++++++++++++++++++++++++
 srcpkgs/vosk-model-small-en-us         |  1 +
 3 files changed, 135 insertions(+)
 create mode 100644 srcpkgs/vosk-api/patches/openblas.diff
 create mode 100644 srcpkgs/vosk-api/template
 create mode 120000 srcpkgs/vosk-model-small-en-us

diff --git a/srcpkgs/vosk-api/patches/openblas.diff b/srcpkgs/vosk-api/patches/openblas.diff
new file mode 100644
index 000000000000..4ae3aac80393
--- /dev/null
+++ b/srcpkgs/vosk-api/patches/openblas.diff
@@ -0,0 +1,55 @@
+--- a/src/matrix/cblas-wrappers.h
++++ b/src/matrix/cblas-wrappers.h
+@@ -383,10 +383,10 @@ inline void mul_elements(
+ // add clapack here
+ #if !defined(HAVE_ATLAS)
+ inline void clapack_Xtptri(KaldiBlasInt *num_rows, float *Mdata, KaldiBlasInt *result) {
+-  stptri_(const_cast<char *>("U"), const_cast<char *>("N"), num_rows, Mdata, result);
++  stptri_(const_cast<char *>("U"), const_cast<char *>("N"), num_rows, Mdata, result, 1, 1);
+ }
+ inline void clapack_Xtptri(KaldiBlasInt *num_rows, double *Mdata, KaldiBlasInt *result) {
+-  dtptri_(const_cast<char *>("U"), const_cast<char *>("N"), num_rows, Mdata, result);
++  dtptri_(const_cast<char *>("U"), const_cast<char *>("N"), num_rows, Mdata, result, 1, 1);
+ }
+ // 
+ inline void clapack_Xgetrf2(KaldiBlasInt *num_rows, KaldiBlasInt *num_cols, 
+@@ -420,7 +420,7 @@ inline void clapack_Xgesvd(char *v, char *u, KaldiBlasInt *num_cols,
+   sgesvd_(v, u,
+           num_cols, num_rows, Mdata, stride,
+           sv, Vdata, vstride, Udata, ustride, 
+-          p_work, l_work, result); 
++          p_work, l_work, result, 1, 1);
+ }
+ inline void clapack_Xgesvd(char *v, char *u, KaldiBlasInt *num_cols,
+                            KaldiBlasInt *num_rows, double *Mdata, KaldiBlasInt *stride,
+@@ -430,25 +430,25 @@ inline void clapack_Xgesvd(char *v, char *u, KaldiBlasInt *num_cols,
+   dgesvd_(v, u,
+           num_cols, num_rows, Mdata, stride,
+           sv, Vdata, vstride, Udata, ustride,
+-          p_work, l_work, result); 
++          p_work, l_work, result, 1, 1);
+ }
+ //
+ void inline clapack_Xsptri(KaldiBlasInt *num_rows, float *Mdata, 
+                            KaldiBlasInt *ipiv, float *work, KaldiBlasInt *result) {
+-  ssptri_(const_cast<char *>("U"), num_rows, Mdata, ipiv, work, result);
++  ssptri_(const_cast<char *>("U"), num_rows, Mdata, ipiv, work, result, 1);
+ }
+ void inline clapack_Xsptri(KaldiBlasInt *num_rows, double *Mdata, 
+                            KaldiBlasInt *ipiv, double *work, KaldiBlasInt *result) {
+-  dsptri_(const_cast<char *>("U"), num_rows, Mdata, ipiv, work, result);
++  dsptri_(const_cast<char *>("U"), num_rows, Mdata, ipiv, work, result, 1);
+ }
+ //
+ void inline clapack_Xsptrf(KaldiBlasInt *num_rows, float *Mdata,
+                            KaldiBlasInt *ipiv, KaldiBlasInt *result) {
+-  ssptrf_(const_cast<char *>("U"), num_rows, Mdata, ipiv, result);
++  ssptrf_(const_cast<char *>("U"), num_rows, Mdata, ipiv, result, 1);
+ }
+ void inline clapack_Xsptrf(KaldiBlasInt *num_rows, double *Mdata,
+                            KaldiBlasInt *ipiv, KaldiBlasInt *result) {
+-  dsptrf_(const_cast<char *>("U"), num_rows, Mdata, ipiv, result);
++  dsptrf_(const_cast<char *>("U"), num_rows, Mdata, ipiv, result, 1);
+ }
+ #else
+ inline void clapack_Xgetrf(MatrixIndexT num_rows, MatrixIndexT num_cols,
diff --git a/srcpkgs/vosk-api/template b/srcpkgs/vosk-api/template
new file mode 100644
index 000000000000..625dbcdc9854
--- /dev/null
+++ b/srcpkgs/vosk-api/template
@@ -0,0 +1,79 @@
+# Template file for 'vosk-api'
+pkgname=vosk-api
+version=0.3.43
+revision=1
+create_wrksrc=yes
+build_wrksrc="vosk-api-${version}/src"
+_openfst_commit=7dfd808194105162f20084bb4d8e4ee4b65266d5
+_kaldi_commit=6417ac1dece94783e80dfbac0148604685d27579
+build_style=gnu-makefile
+make_use_env=yes
+make_build_args="KALDI_ROOT=../../kaldi-${_kaldi_commit}
+	OPENFST_ROOT=../../kaldi-${_kaldi_commit}/tools/openfst
+	OPENBLAS_ROOT=../../kaldi-${_kaldi_commit}/tools/OpenBLAS/install"
+hostmakedepends="autoconf automake cmake libtool"
+makedepends="blas-devel lapack-devel openblas-devel"
+short_desc="Offline speech recognition toolkit"
+maintainer="John Gebbie <me@johngebbie.com>"
+license="Apache-2.0"
+homepage="https://alphacephei.com/vosk"
+distfiles="https://github.com/alphacep/vosk-api/archive/v$version/vosk-api-$version.tar.gz
+https://github.com/alphacep/kaldi/archive/$_kaldi_commit.tar.gz
+https://github.com/alphacep/openfst/archive/$_openfst_commit.tar.gz
+https://alphacephei.com/vosk/models/vosk-model-small-en-us-0.15.zip"
+checksum="50fa82bfbfe3fc5be868237c84ac180eb55da0b65b1803bf022899673afda024
+4e5c08c9c61bbc995e0620321feb0973bb0321442f1bd8f08b47497f55efadda
+a7bac90acb9a12fdfe50c240c9bb730a7bcb5c3b3ac32017c4d27177b059680a
+30f26242c4eb449f948e42cb302dd7a686cb29a3423a8367f99ff41780942498"
+patch_args="-Np1 kaldi-${_kaldi_commit}/src/matrix/cblas-wrappers.h"
+
+post_extract() {
+	cd "${wrksrc}/vosk-api-${version}/src"
+	vsed -i Makefile -e '/libblas\.a \\/ {N; s/ \\.*//}'
+	vsed -i Makefile -e 's/ -lf2c//'
+
+	cd "${wrksrc}/kaldi-${_kaldi_commit}"
+	mkdir -p "tools/OpenBLAS/install/lib"
+	ln -sf /usr/include/openblas "tools/OpenBLAS/install/include"
+	ln -sf /usr/lib/libopenblas.a "tools/OpenBLAS/install/lib"
+	ln -sf /usr/lib/libopenblas.so "tools/OpenBLAS/install/lib"
+	ln -sf /usr/lib/liblapack.a "tools/OpenBLAS/install/lib"
+	ln -sf /usr/lib/libblas.a "tools/OpenBLAS/install/lib"
+	ln -sf "../../openfst-${_openfst_commit}" "tools/openfst"
+
+	cd "${wrksrc}"
+	autoreconf -fi "openfst-${_openfst_commit}"
+}
+
+pre_build() {
+	cd "${wrksrc}/openfst-${_openfst_commit}"
+	./configure \
+		--prefix="${wrksrc}/kaldi-${_kaldi_commit}/tools/openfst" \
+		--enable-static \
+		--enable-shared \
+		--enable-far \
+		--enable-ngram-fsts \
+		--enable-lookahead-fsts \
+		--with-pic \
+		--disable-bin
+	make
+	make install
+
+	cd "${wrksrc}/kaldi-${_kaldi_commit}/src"
+	vsed -i configure -e 's/ -l:libf2c\.a//'
+	./configure --mathlib=OPENBLAS_CLAPACK --shared --use-cuda=no
+	make online2 lm rnnlm
+}
+
+do_install() {
+	vinstall src/vosk_api.h 644 usr/include
+	vinstall src/libvosk.so 644 usr/lib
+}
+
+vosk-model-small-en-us_package() {
+	short_desc="Lightweight english language model"
+	pkg_install() {
+		vmkdir usr/share/vosk-models
+		mv "${wrksrc}/vosk-model-small-en-us-0.15" "${PKGDESTDIR}/usr/share/vosk-models/small-en-us"
+	}
+}
diff --git a/srcpkgs/vosk-model-small-en-us b/srcpkgs/vosk-model-small-en-us
new file mode 120000
index 000000000000..db9953d33676
--- /dev/null
+++ b/srcpkgs/vosk-model-small-en-us
@@ -0,0 +1 @@
+vosk-api
\ No newline at end of file

^ permalink raw reply	[flat|nested] 35+ messages in thread

* Re: [PR REVIEW] New package: vosk-api-0.3.43
  2022-08-31 21:38 [PR PATCH] New package: libvosk-0.3.43 JohnGebbie
                   ` (20 preceding siblings ...)
  2022-09-22 14:43 ` JohnGebbie
@ 2022-09-22 15:19 ` JohnGebbie
  2022-09-22 18:16 ` [PR PATCH] [Updated] " JohnGebbie
                   ` (11 subsequent siblings)
  33 siblings, 0 replies; 35+ messages in thread
From: JohnGebbie @ 2022-09-22 15:19 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 486 bytes --]

New review comment by JohnGebbie on void-packages repository

https://github.com/void-linux/void-packages/pull/39015#discussion_r977789547

Comment:
Thanks paper42.
I'd forgotten to remove the openblas and clapack variables, which have been replaced with system packages.
The version of kaldi is vosk specific so I think it's best as it is.
I tried packaging openfst separately but the newer version wasn't compatible (and there's vosk specific changes but I didn't get that far).


^ permalink raw reply	[flat|nested] 35+ messages in thread

* Re: [PR PATCH] [Updated] New package: vosk-api-0.3.43
  2022-08-31 21:38 [PR PATCH] New package: libvosk-0.3.43 JohnGebbie
                   ` (21 preceding siblings ...)
  2022-09-22 15:19 ` [PR REVIEW] " JohnGebbie
@ 2022-09-22 18:16 ` JohnGebbie
  2022-09-22 19:32 ` JohnGebbie
                   ` (10 subsequent siblings)
  33 siblings, 0 replies; 35+ messages in thread
From: JohnGebbie @ 2022-09-22 18:16 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 745 bytes --]

There is an updated pull request by JohnGebbie against master on the void-packages repository

https://github.com/JohnGebbie/void-packages libvosk
https://github.com/void-linux/void-packages/pull/39015

New package: vosk-api-0.3.43
#### Testing the changes
- I tested the changes in this PR: **briefly**

#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**

#### Local build testing
- I built this PR locally for my native architecture, (x86_64-glibc)

Closes https://github.com/void-linux/void-packages/issues/39009


A patch file from https://github.com/void-linux/void-packages/pull/39015.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-libvosk-39015.patch --]
[-- Type: text/x-diff, Size: 7060 bytes --]

From fdc9a88fd8a78fddfbb20c4700fd0091afb9a824 Mon Sep 17 00:00:00 2001
From: John Gebbie <me@johngebbie.com>
Date: Sat, 3 Sep 2022 13:02:48 +0100
Subject: [PATCH] New package: vosk-api-0.3.43

---
 srcpkgs/vosk-api/patches/openblas.diff | 55 +++++++++++++++++
 srcpkgs/vosk-api/template              | 81 ++++++++++++++++++++++++++
 srcpkgs/vosk-model-small-en-us         |  1 +
 3 files changed, 137 insertions(+)
 create mode 100644 srcpkgs/vosk-api/patches/openblas.diff
 create mode 100644 srcpkgs/vosk-api/template
 create mode 120000 srcpkgs/vosk-model-small-en-us

diff --git a/srcpkgs/vosk-api/patches/openblas.diff b/srcpkgs/vosk-api/patches/openblas.diff
new file mode 100644
index 000000000000..4ae3aac80393
--- /dev/null
+++ b/srcpkgs/vosk-api/patches/openblas.diff
@@ -0,0 +1,55 @@
+--- a/src/matrix/cblas-wrappers.h
++++ b/src/matrix/cblas-wrappers.h
+@@ -383,10 +383,10 @@ inline void mul_elements(
+ // add clapack here
+ #if !defined(HAVE_ATLAS)
+ inline void clapack_Xtptri(KaldiBlasInt *num_rows, float *Mdata, KaldiBlasInt *result) {
+-  stptri_(const_cast<char *>("U"), const_cast<char *>("N"), num_rows, Mdata, result);
++  stptri_(const_cast<char *>("U"), const_cast<char *>("N"), num_rows, Mdata, result, 1, 1);
+ }
+ inline void clapack_Xtptri(KaldiBlasInt *num_rows, double *Mdata, KaldiBlasInt *result) {
+-  dtptri_(const_cast<char *>("U"), const_cast<char *>("N"), num_rows, Mdata, result);
++  dtptri_(const_cast<char *>("U"), const_cast<char *>("N"), num_rows, Mdata, result, 1, 1);
+ }
+ // 
+ inline void clapack_Xgetrf2(KaldiBlasInt *num_rows, KaldiBlasInt *num_cols, 
+@@ -420,7 +420,7 @@ inline void clapack_Xgesvd(char *v, char *u, KaldiBlasInt *num_cols,
+   sgesvd_(v, u,
+           num_cols, num_rows, Mdata, stride,
+           sv, Vdata, vstride, Udata, ustride, 
+-          p_work, l_work, result); 
++          p_work, l_work, result, 1, 1);
+ }
+ inline void clapack_Xgesvd(char *v, char *u, KaldiBlasInt *num_cols,
+                            KaldiBlasInt *num_rows, double *Mdata, KaldiBlasInt *stride,
+@@ -430,25 +430,25 @@ inline void clapack_Xgesvd(char *v, char *u, KaldiBlasInt *num_cols,
+   dgesvd_(v, u,
+           num_cols, num_rows, Mdata, stride,
+           sv, Vdata, vstride, Udata, ustride,
+-          p_work, l_work, result); 
++          p_work, l_work, result, 1, 1);
+ }
+ //
+ void inline clapack_Xsptri(KaldiBlasInt *num_rows, float *Mdata, 
+                            KaldiBlasInt *ipiv, float *work, KaldiBlasInt *result) {
+-  ssptri_(const_cast<char *>("U"), num_rows, Mdata, ipiv, work, result);
++  ssptri_(const_cast<char *>("U"), num_rows, Mdata, ipiv, work, result, 1);
+ }
+ void inline clapack_Xsptri(KaldiBlasInt *num_rows, double *Mdata, 
+                            KaldiBlasInt *ipiv, double *work, KaldiBlasInt *result) {
+-  dsptri_(const_cast<char *>("U"), num_rows, Mdata, ipiv, work, result);
++  dsptri_(const_cast<char *>("U"), num_rows, Mdata, ipiv, work, result, 1);
+ }
+ //
+ void inline clapack_Xsptrf(KaldiBlasInt *num_rows, float *Mdata,
+                            KaldiBlasInt *ipiv, KaldiBlasInt *result) {
+-  ssptrf_(const_cast<char *>("U"), num_rows, Mdata, ipiv, result);
++  ssptrf_(const_cast<char *>("U"), num_rows, Mdata, ipiv, result, 1);
+ }
+ void inline clapack_Xsptrf(KaldiBlasInt *num_rows, double *Mdata,
+                            KaldiBlasInt *ipiv, KaldiBlasInt *result) {
+-  dsptrf_(const_cast<char *>("U"), num_rows, Mdata, ipiv, result);
++  dsptrf_(const_cast<char *>("U"), num_rows, Mdata, ipiv, result, 1);
+ }
+ #else
+ inline void clapack_Xgetrf(MatrixIndexT num_rows, MatrixIndexT num_cols,
diff --git a/srcpkgs/vosk-api/template b/srcpkgs/vosk-api/template
new file mode 100644
index 000000000000..88d7c79bb8be
--- /dev/null
+++ b/srcpkgs/vosk-api/template
@@ -0,0 +1,81 @@
+# Template file for 'vosk-api'
+pkgname=vosk-api
+version=0.3.43
+revision=1
+create_wrksrc=yes
+build_wrksrc="vosk-api-${version}/src"
+_openfst_commit=7dfd808194105162f20084bb4d8e4ee4b65266d5
+_kaldi_commit=6417ac1dece94783e80dfbac0148604685d27579
+build_style=gnu-makefile
+make_use_env=yes
+make_build_args="KALDI_ROOT=../../kaldi-${_kaldi_commit}
+	OPENFST_ROOT=../../kaldi-${_kaldi_commit}/tools/openfst
+	OPENBLAS_ROOT=../../kaldi-${_kaldi_commit}/tools/OpenBLAS/install"
+hostmakedepends="autoconf automake cmake libtool"
+makedepends="blas-devel lapack-devel openblas-devel"
+short_desc="Offline speech recognition toolkit"
+maintainer="John Gebbie <me@johngebbie.com>"
+license="Apache-2.0"
+homepage="https://alphacephei.com/vosk"
+distfiles="https://github.com/alphacep/vosk-api/archive/v$version/vosk-api-$version.tar.gz
+https://github.com/alphacep/kaldi/archive/$_kaldi_commit.tar.gz
+https://github.com/alphacep/openfst/archive/$_openfst_commit.tar.gz
+https://alphacephei.com/vosk/models/vosk-model-small-en-us-0.15.zip"
+checksum="50fa82bfbfe3fc5be868237c84ac180eb55da0b65b1803bf022899673afda024
+4e5c08c9c61bbc995e0620321feb0973bb0321442f1bd8f08b47497f55efadda
+a7bac90acb9a12fdfe50c240c9bb730a7bcb5c3b3ac32017c4d27177b059680a
+30f26242c4eb449f948e42cb302dd7a686cb29a3423a8367f99ff41780942498"
+patch_args="-Np1 kaldi-${_kaldi_commit}/src/matrix/cblas-wrappers.h"
+
+post_extract() {
+	cd "${wrksrc}/vosk-api-${version}/src"
+	vsed -i Makefile -e '/libblas\.a \\/ {N; s/ \\.*//}'
+	vsed -i Makefile -e 's/ -lf2c//'
+
+	cd "${wrksrc}/kaldi-${_kaldi_commit}"
+	mkdir -p "tools/OpenBLAS/install/lib"
+	ln -sf /usr/include/openblas "tools/OpenBLAS/install/include"
+	ln -sf /usr/lib/libopenblas.a "tools/OpenBLAS/install/lib"
+	ln -sf /usr/lib/libopenblas.so "tools/OpenBLAS/install/lib"
+	ln -sf /usr/lib/liblapack.a "tools/OpenBLAS/install/lib"
+	ln -sf /usr/lib/libblas.a "tools/OpenBLAS/install/lib"
+	ln -sf "../../openfst-${_openfst_commit}" "tools/openfst"
+
+	cd "${wrksrc}"
+	autoreconf -fi "openfst-${_openfst_commit}"
+}
+
+pre_build() {
+	cd "${wrksrc}/openfst-${_openfst_commit}"
+	./configure \
+		${CROSS_BUILD:+--host="${XBPS_CROSS_TRIPLET}"} \
+		--prefix="${wrksrc}/kaldi-${_kaldi_commit}/tools/openfst" \
+		--enable-static \
+		--enable-shared \
+		--enable-far \
+		--enable-ngram-fsts \
+		--enable-lookahead-fsts \
+		--with-pic \
+		--disable-bin
+	make
+	make install
+
+	cd "${wrksrc}/kaldi-${_kaldi_commit}/src"
+	vsed -i configure -e 's/ -l:libf2c\.a//'
+	./configure ${CROSS_BUILD:+--host="${XBPS_CROSS_TRIPLET}"} --mathlib=OPENBLAS_CLAPACK --shared --use-cuda=no
+	make online2 lm rnnlm
+}
+
+do_install() {
+	cd "${wrksrc}/vosk-api-${version}/src"
+	vinstall vosk_api.h 644 usr/include
+	vinstall libvosk.so 644 usr/lib
+}
+
+vosk-model-small-en-us_package() {
+	short_desc="Lightweight english language model"
+	pkg_install() {
+		vmkdir usr/share/vosk-models
+		mv "${wrksrc}/vosk-model-small-en-us-0.15" "${PKGDESTDIR}/usr/share/vosk-models/small-en-us"
+	}
+}
diff --git a/srcpkgs/vosk-model-small-en-us b/srcpkgs/vosk-model-small-en-us
new file mode 120000
index 000000000000..db9953d33676
--- /dev/null
+++ b/srcpkgs/vosk-model-small-en-us
@@ -0,0 +1 @@
+vosk-api
\ No newline at end of file

^ permalink raw reply	[flat|nested] 35+ messages in thread

* Re: New package: vosk-api-0.3.43
  2022-08-31 21:38 [PR PATCH] New package: libvosk-0.3.43 JohnGebbie
                   ` (22 preceding siblings ...)
  2022-09-22 18:16 ` [PR PATCH] [Updated] " JohnGebbie
@ 2022-09-22 19:32 ` JohnGebbie
  2022-09-22 19:38 ` JohnGebbie
                   ` (9 subsequent siblings)
  33 siblings, 0 replies; 35+ messages in thread
From: JohnGebbie @ 2022-09-22 19:32 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 228 bytes --]

New comment by JohnGebbie on void-packages repository

https://github.com/void-linux/void-packages/pull/39015#issuecomment-1255462689

Comment:
It works for x86_64, but for aarch64 Kaldi errors saying there's no libopenblas.so.

^ permalink raw reply	[flat|nested] 35+ messages in thread

* Re: New package: vosk-api-0.3.43
  2022-08-31 21:38 [PR PATCH] New package: libvosk-0.3.43 JohnGebbie
                   ` (23 preceding siblings ...)
  2022-09-22 19:32 ` JohnGebbie
@ 2022-09-22 19:38 ` JohnGebbie
  2022-09-22 20:31 ` [PR PATCH] [Updated] " JohnGebbie
                   ` (8 subsequent siblings)
  33 siblings, 0 replies; 35+ messages in thread
From: JohnGebbie @ 2022-09-22 19:38 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 263 bytes --]

New comment by JohnGebbie on void-packages repository

https://github.com/void-linux/void-packages/pull/39015#issuecomment-1255462689

Comment:
It works for x86_64, but for aarch64 Kaldi errors saying there's no libopenblas.so. I think it needs $xbps_cross_base.

^ permalink raw reply	[flat|nested] 35+ messages in thread

* Re: [PR PATCH] [Updated] New package: vosk-api-0.3.43
  2022-08-31 21:38 [PR PATCH] New package: libvosk-0.3.43 JohnGebbie
                   ` (24 preceding siblings ...)
  2022-09-22 19:38 ` JohnGebbie
@ 2022-09-22 20:31 ` JohnGebbie
  2022-09-22 20:33 ` JohnGebbie
                   ` (7 subsequent siblings)
  33 siblings, 0 replies; 35+ messages in thread
From: JohnGebbie @ 2022-09-22 20:31 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 745 bytes --]

There is an updated pull request by JohnGebbie against master on the void-packages repository

https://github.com/JohnGebbie/void-packages libvosk
https://github.com/void-linux/void-packages/pull/39015

New package: vosk-api-0.3.43
#### Testing the changes
- I tested the changes in this PR: **briefly**

#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**

#### Local build testing
- I built this PR locally for my native architecture, (x86_64-glibc)

Closes https://github.com/void-linux/void-packages/issues/39009


A patch file from https://github.com/void-linux/void-packages/pull/39015.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-libvosk-39015.patch --]
[-- Type: text/x-diff, Size: 7190 bytes --]

From ee2aaf84f043eb6b80adee584b46ab5b27e19a93 Mon Sep 17 00:00:00 2001
From: John Gebbie <me@johngebbie.com>
Date: Sat, 3 Sep 2022 13:02:48 +0100
Subject: [PATCH] New package: vosk-api-0.3.43

---
 srcpkgs/vosk-api/patches/openblas.diff | 55 +++++++++++++++++
 srcpkgs/vosk-api/template              | 82 ++++++++++++++++++++++++++
 srcpkgs/vosk-model-small-en-us         |  1 +
 3 files changed, 138 insertions(+)
 create mode 100644 srcpkgs/vosk-api/patches/openblas.diff
 create mode 100644 srcpkgs/vosk-api/template
 create mode 120000 srcpkgs/vosk-model-small-en-us

diff --git a/srcpkgs/vosk-api/patches/openblas.diff b/srcpkgs/vosk-api/patches/openblas.diff
new file mode 100644
index 000000000000..4ae3aac80393
--- /dev/null
+++ b/srcpkgs/vosk-api/patches/openblas.diff
@@ -0,0 +1,55 @@
+--- a/src/matrix/cblas-wrappers.h
++++ b/src/matrix/cblas-wrappers.h
+@@ -383,10 +383,10 @@ inline void mul_elements(
+ // add clapack here
+ #if !defined(HAVE_ATLAS)
+ inline void clapack_Xtptri(KaldiBlasInt *num_rows, float *Mdata, KaldiBlasInt *result) {
+-  stptri_(const_cast<char *>("U"), const_cast<char *>("N"), num_rows, Mdata, result);
++  stptri_(const_cast<char *>("U"), const_cast<char *>("N"), num_rows, Mdata, result, 1, 1);
+ }
+ inline void clapack_Xtptri(KaldiBlasInt *num_rows, double *Mdata, KaldiBlasInt *result) {
+-  dtptri_(const_cast<char *>("U"), const_cast<char *>("N"), num_rows, Mdata, result);
++  dtptri_(const_cast<char *>("U"), const_cast<char *>("N"), num_rows, Mdata, result, 1, 1);
+ }
+ // 
+ inline void clapack_Xgetrf2(KaldiBlasInt *num_rows, KaldiBlasInt *num_cols, 
+@@ -420,7 +420,7 @@ inline void clapack_Xgesvd(char *v, char *u, KaldiBlasInt *num_cols,
+   sgesvd_(v, u,
+           num_cols, num_rows, Mdata, stride,
+           sv, Vdata, vstride, Udata, ustride, 
+-          p_work, l_work, result); 
++          p_work, l_work, result, 1, 1);
+ }
+ inline void clapack_Xgesvd(char *v, char *u, KaldiBlasInt *num_cols,
+                            KaldiBlasInt *num_rows, double *Mdata, KaldiBlasInt *stride,
+@@ -430,25 +430,25 @@ inline void clapack_Xgesvd(char *v, char *u, KaldiBlasInt *num_cols,
+   dgesvd_(v, u,
+           num_cols, num_rows, Mdata, stride,
+           sv, Vdata, vstride, Udata, ustride,
+-          p_work, l_work, result); 
++          p_work, l_work, result, 1, 1);
+ }
+ //
+ void inline clapack_Xsptri(KaldiBlasInt *num_rows, float *Mdata, 
+                            KaldiBlasInt *ipiv, float *work, KaldiBlasInt *result) {
+-  ssptri_(const_cast<char *>("U"), num_rows, Mdata, ipiv, work, result);
++  ssptri_(const_cast<char *>("U"), num_rows, Mdata, ipiv, work, result, 1);
+ }
+ void inline clapack_Xsptri(KaldiBlasInt *num_rows, double *Mdata, 
+                            KaldiBlasInt *ipiv, double *work, KaldiBlasInt *result) {
+-  dsptri_(const_cast<char *>("U"), num_rows, Mdata, ipiv, work, result);
++  dsptri_(const_cast<char *>("U"), num_rows, Mdata, ipiv, work, result, 1);
+ }
+ //
+ void inline clapack_Xsptrf(KaldiBlasInt *num_rows, float *Mdata,
+                            KaldiBlasInt *ipiv, KaldiBlasInt *result) {
+-  ssptrf_(const_cast<char *>("U"), num_rows, Mdata, ipiv, result);
++  ssptrf_(const_cast<char *>("U"), num_rows, Mdata, ipiv, result, 1);
+ }
+ void inline clapack_Xsptrf(KaldiBlasInt *num_rows, double *Mdata,
+                            KaldiBlasInt *ipiv, KaldiBlasInt *result) {
+-  dsptrf_(const_cast<char *>("U"), num_rows, Mdata, ipiv, result);
++  dsptrf_(const_cast<char *>("U"), num_rows, Mdata, ipiv, result, 1);
+ }
+ #else
+ inline void clapack_Xgetrf(MatrixIndexT num_rows, MatrixIndexT num_cols,
diff --git a/srcpkgs/vosk-api/template b/srcpkgs/vosk-api/template
new file mode 100644
index 000000000000..0245a98d3fdc
--- /dev/null
+++ b/srcpkgs/vosk-api/template
@@ -0,0 +1,82 @@
+# Template file for 'vosk-api'
+pkgname=vosk-api
+version=0.3.43
+revision=1
+create_wrksrc=yes
+build_wrksrc="vosk-api-${version}/src"
+_openfst_commit=7dfd808194105162f20084bb4d8e4ee4b65266d5
+_kaldi_commit=6417ac1dece94783e80dfbac0148604685d27579
+build_style=gnu-makefile
+make_use_env=yes
+make_build_args="KALDI_ROOT=../../kaldi-${_kaldi_commit}
+	OPENFST_ROOT=../../kaldi-${_kaldi_commit}/tools/openfst
+	OPENBLAS_ROOT=../../kaldi-${_kaldi_commit}/tools/OpenBLAS/install"
+hostmakedepends="autoconf automake cmake libtool"
+makedepends="blas-devel lapack-devel openblas-devel"
+short_desc="Offline speech recognition toolkit"
+maintainer="John Gebbie <me@johngebbie.com>"
+license="Apache-2.0"
+homepage="https://alphacephei.com/vosk"
+distfiles="https://github.com/alphacep/vosk-api/archive/v$version/vosk-api-$version.tar.gz
+https://github.com/alphacep/kaldi/archive/$_kaldi_commit.tar.gz
+https://github.com/alphacep/openfst/archive/$_openfst_commit.tar.gz
+https://alphacephei.com/vosk/models/vosk-model-small-en-us-0.15.zip"
+checksum="50fa82bfbfe3fc5be868237c84ac180eb55da0b65b1803bf022899673afda024
+4e5c08c9c61bbc995e0620321feb0973bb0321442f1bd8f08b47497f55efadda
+a7bac90acb9a12fdfe50c240c9bb730a7bcb5c3b3ac32017c4d27177b059680a
+30f26242c4eb449f948e42cb302dd7a686cb29a3423a8367f99ff41780942498"
+patch_args="-Np1 kaldi-${_kaldi_commit}/src/matrix/cblas-wrappers.h"
+
+post_extract() {
+	cd "${wrksrc}/kaldi-${_kaldi_commit}/src"
+	vsed -i configure -e 's/ -l:libf2c\.a//'
+	cd "${wrksrc}/vosk-api-${version}/src"
+	vsed -i Makefile -e '/libblas\.a \\/ {N; s/ \\.*//}'
+	vsed -i Makefile -e 's/ -lf2c//'
+
+	cd "${wrksrc}/kaldi-${_kaldi_commit}"
+	mkdir -p tools/OpenBLAS/install/lib
+	ln -sf "${XBPS_CROSS_BASE}/usr/include/openblas" tools/OpenBLAS/install/include
+	ln -sf "${XBPS_CROSS_BASE}/usr/lib/libopenblas.a" tools/OpenBLAS/install/lib
+	ln -sf "${XBPS_CROSS_BASE}/usr/lib/libopenblas.so" tools/OpenBLAS/install/lib
+	ln -sf "${XBPS_CROSS_BASE}/usr/lib/liblapack.a" tools/OpenBLAS/install/lib
+	ln -sf "${XBPS_CROSS_BASE}/usr/lib/libblas.a" tools/OpenBLAS/install/lib
+	ln -sf "../../openfst-${_openfst_commit}" tools/openfst
+
+	cd "${wrksrc}"
+	autoreconf -fi "openfst-${_openfst_commit}"
+}
+
+pre_build() {
+	cd "${wrksrc}/openfst-${_openfst_commit}"
+	./configure \
+		${CROSS_BUILD:+--host="${XBPS_CROSS_TRIPLET}"} \
+		--prefix="${wrksrc}/kaldi-${_kaldi_commit}/tools/openfst" \
+		--enable-static \
+		--enable-shared \
+		--enable-far \
+		--enable-ngram-fsts \
+		--enable-lookahead-fsts \
+		--with-pic \
+		--disable-bin
+	make
+	make install
+
+	cd "${wrksrc}/kaldi-${_kaldi_commit}/src"
+	./configure ${CROSS_BUILD:+--host="${XBPS_CROSS_TRIPLET}"} --mathlib=OPENBLAS_CLAPACK --shared --use-cuda=no
+	make online2 lm rnnlm
+}
+
+do_install() {
+	cd "${wrksrc}/vosk-api-${version}/src"
+	vinstall vosk_api.h 644 usr/include
+	vinstall libvosk.so 644 usr/lib
+}
+
+vosk-model-small-en-us_package() {
+	short_desc="Lightweight english language model"
+	pkg_install() {
+		vmkdir usr/share/vosk-models
+		mv "${wrksrc}/vosk-model-small-en-us-0.15" "${PKGDESTDIR}/usr/share/vosk-models/small-en-us"
+	}
+}
diff --git a/srcpkgs/vosk-model-small-en-us b/srcpkgs/vosk-model-small-en-us
new file mode 120000
index 000000000000..db9953d33676
--- /dev/null
+++ b/srcpkgs/vosk-model-small-en-us
@@ -0,0 +1 @@
+vosk-api
\ No newline at end of file

^ permalink raw reply	[flat|nested] 35+ messages in thread

* Re: New package: vosk-api-0.3.43
  2022-08-31 21:38 [PR PATCH] New package: libvosk-0.3.43 JohnGebbie
                   ` (25 preceding siblings ...)
  2022-09-22 20:31 ` [PR PATCH] [Updated] " JohnGebbie
@ 2022-09-22 20:33 ` JohnGebbie
  2022-09-22 20:50 ` [PR PATCH] [Updated] " JohnGebbie
                   ` (6 subsequent siblings)
  33 siblings, 0 replies; 35+ messages in thread
From: JohnGebbie @ 2022-09-22 20:33 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 165 bytes --]

New comment by JohnGebbie on void-packages repository

https://github.com/void-linux/void-packages/pull/39015#issuecomment-1255520427

Comment:
I think that's it :)

^ permalink raw reply	[flat|nested] 35+ messages in thread

* Re: [PR PATCH] [Updated] New package: vosk-api-0.3.43
  2022-08-31 21:38 [PR PATCH] New package: libvosk-0.3.43 JohnGebbie
                   ` (26 preceding siblings ...)
  2022-09-22 20:33 ` JohnGebbie
@ 2022-09-22 20:50 ` JohnGebbie
  2022-09-22 20:50 ` JohnGebbie
                   ` (5 subsequent siblings)
  33 siblings, 0 replies; 35+ messages in thread
From: JohnGebbie @ 2022-09-22 20:50 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 745 bytes --]

There is an updated pull request by JohnGebbie against master on the void-packages repository

https://github.com/JohnGebbie/void-packages libvosk
https://github.com/void-linux/void-packages/pull/39015

New package: vosk-api-0.3.43
#### Testing the changes
- I tested the changes in this PR: **briefly**

#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**

#### Local build testing
- I built this PR locally for my native architecture, (x86_64-glibc)

Closes https://github.com/void-linux/void-packages/issues/39009


A patch file from https://github.com/void-linux/void-packages/pull/39015.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-libvosk-39015.patch --]
[-- Type: text/x-diff, Size: 7420 bytes --]

From b3673cfa4b84ebd95f41bbaa2b40d02fb230a38e Mon Sep 17 00:00:00 2001
From: John Gebbie <me@johngebbie.com>
Date: Sat, 3 Sep 2022 13:02:48 +0100
Subject: [PATCH] New package: vosk-api-0.3.43

---
 srcpkgs/vosk-api/patches/openblas.diff | 55 ++++++++++++++++
 srcpkgs/vosk-api/template              | 90 ++++++++++++++++++++++++++
 srcpkgs/vosk-model-small-en-us         |  1 +
 3 files changed, 146 insertions(+)
 create mode 100644 srcpkgs/vosk-api/patches/openblas.diff
 create mode 100644 srcpkgs/vosk-api/template
 create mode 120000 srcpkgs/vosk-model-small-en-us

diff --git a/srcpkgs/vosk-api/patches/openblas.diff b/srcpkgs/vosk-api/patches/openblas.diff
new file mode 100644
index 000000000000..4ae3aac80393
--- /dev/null
+++ b/srcpkgs/vosk-api/patches/openblas.diff
@@ -0,0 +1,55 @@
+--- a/src/matrix/cblas-wrappers.h
++++ b/src/matrix/cblas-wrappers.h
+@@ -383,10 +383,10 @@ inline void mul_elements(
+ // add clapack here
+ #if !defined(HAVE_ATLAS)
+ inline void clapack_Xtptri(KaldiBlasInt *num_rows, float *Mdata, KaldiBlasInt *result) {
+-  stptri_(const_cast<char *>("U"), const_cast<char *>("N"), num_rows, Mdata, result);
++  stptri_(const_cast<char *>("U"), const_cast<char *>("N"), num_rows, Mdata, result, 1, 1);
+ }
+ inline void clapack_Xtptri(KaldiBlasInt *num_rows, double *Mdata, KaldiBlasInt *result) {
+-  dtptri_(const_cast<char *>("U"), const_cast<char *>("N"), num_rows, Mdata, result);
++  dtptri_(const_cast<char *>("U"), const_cast<char *>("N"), num_rows, Mdata, result, 1, 1);
+ }
+ // 
+ inline void clapack_Xgetrf2(KaldiBlasInt *num_rows, KaldiBlasInt *num_cols, 
+@@ -420,7 +420,7 @@ inline void clapack_Xgesvd(char *v, char *u, KaldiBlasInt *num_cols,
+   sgesvd_(v, u,
+           num_cols, num_rows, Mdata, stride,
+           sv, Vdata, vstride, Udata, ustride, 
+-          p_work, l_work, result); 
++          p_work, l_work, result, 1, 1);
+ }
+ inline void clapack_Xgesvd(char *v, char *u, KaldiBlasInt *num_cols,
+                            KaldiBlasInt *num_rows, double *Mdata, KaldiBlasInt *stride,
+@@ -430,25 +430,25 @@ inline void clapack_Xgesvd(char *v, char *u, KaldiBlasInt *num_cols,
+   dgesvd_(v, u,
+           num_cols, num_rows, Mdata, stride,
+           sv, Vdata, vstride, Udata, ustride,
+-          p_work, l_work, result); 
++          p_work, l_work, result, 1, 1);
+ }
+ //
+ void inline clapack_Xsptri(KaldiBlasInt *num_rows, float *Mdata, 
+                            KaldiBlasInt *ipiv, float *work, KaldiBlasInt *result) {
+-  ssptri_(const_cast<char *>("U"), num_rows, Mdata, ipiv, work, result);
++  ssptri_(const_cast<char *>("U"), num_rows, Mdata, ipiv, work, result, 1);
+ }
+ void inline clapack_Xsptri(KaldiBlasInt *num_rows, double *Mdata, 
+                            KaldiBlasInt *ipiv, double *work, KaldiBlasInt *result) {
+-  dsptri_(const_cast<char *>("U"), num_rows, Mdata, ipiv, work, result);
++  dsptri_(const_cast<char *>("U"), num_rows, Mdata, ipiv, work, result, 1);
+ }
+ //
+ void inline clapack_Xsptrf(KaldiBlasInt *num_rows, float *Mdata,
+                            KaldiBlasInt *ipiv, KaldiBlasInt *result) {
+-  ssptrf_(const_cast<char *>("U"), num_rows, Mdata, ipiv, result);
++  ssptrf_(const_cast<char *>("U"), num_rows, Mdata, ipiv, result, 1);
+ }
+ void inline clapack_Xsptrf(KaldiBlasInt *num_rows, double *Mdata,
+                            KaldiBlasInt *ipiv, KaldiBlasInt *result) {
+-  dsptrf_(const_cast<char *>("U"), num_rows, Mdata, ipiv, result);
++  dsptrf_(const_cast<char *>("U"), num_rows, Mdata, ipiv, result, 1);
+ }
+ #else
+ inline void clapack_Xgetrf(MatrixIndexT num_rows, MatrixIndexT num_cols,
diff --git a/srcpkgs/vosk-api/template b/srcpkgs/vosk-api/template
new file mode 100644
index 000000000000..37582c552de6
--- /dev/null
+++ b/srcpkgs/vosk-api/template
@@ -0,0 +1,90 @@
+# Template file for 'vosk-api'
+pkgname=vosk-api
+version=0.3.43
+revision=1
+create_wrksrc=yes
+build_wrksrc="vosk-api-${version}/src"
+_openfst_commit=7dfd808194105162f20084bb4d8e4ee4b65266d5
+_kaldi_commit=6417ac1dece94783e80dfbac0148604685d27579
+build_style=gnu-makefile
+make_use_env=yes
+make_build_args="KALDI_ROOT=../../kaldi-${_kaldi_commit}
+	OPENFST_ROOT=../../kaldi-${_kaldi_commit}/tools/openfst
+	OPENBLAS_ROOT=../../kaldi-${_kaldi_commit}/tools/OpenBLAS/install"
+hostmakedepends="autoconf automake cmake libtool"
+makedepends="blas-devel lapack-devel openblas-devel"
+short_desc="Offline speech recognition toolkit"
+maintainer="John Gebbie <me@johngebbie.com>"
+license="Apache-2.0"
+homepage="https://alphacephei.com/vosk"
+distfiles="https://github.com/alphacep/vosk-api/archive/v$version/vosk-api-$version.tar.gz
+https://github.com/alphacep/kaldi/archive/$_kaldi_commit.tar.gz
+https://github.com/alphacep/openfst/archive/$_openfst_commit.tar.gz
+https://alphacephei.com/vosk/models/vosk-model-small-en-us-0.15.zip"
+checksum="50fa82bfbfe3fc5be868237c84ac180eb55da0b65b1803bf022899673afda024
+4e5c08c9c61bbc995e0620321feb0973bb0321442f1bd8f08b47497f55efadda
+a7bac90acb9a12fdfe50c240c9bb730a7bcb5c3b3ac32017c4d27177b059680a
+30f26242c4eb449f948e42cb302dd7a686cb29a3423a8367f99ff41780942498"
+patch_args="-Np1 kaldi-${_kaldi_commit}/src/matrix/cblas-wrappers.h"
+
+post_extract() {
+	cd "${wrksrc}/kaldi-${_kaldi_commit}/src"
+	vsed -i configure -e 's/ -l:libf2c\.a//'
+	cd "${wrksrc}/vosk-api-${version}/src"
+	vsed -i Makefile -e '/libblas\.a \\/ {N; s/ \\.*//}'
+	vsed -i Makefile -e 's/ -lf2c//'
+
+	cd "${wrksrc}/kaldi-${_kaldi_commit}"
+	mkdir -p tools/OpenBLAS/install/lib
+	ln -sf "${XBPS_CROSS_BASE}/usr/include/openblas" tools/OpenBLAS/install/include
+	ln -sf "${XBPS_CROSS_BASE}/usr/lib/libopenblas.a" tools/OpenBLAS/install/lib
+	ln -sf "${XBPS_CROSS_BASE}/usr/lib/libopenblas.so" tools/OpenBLAS/install/lib
+	ln -sf "${XBPS_CROSS_BASE}/usr/lib/liblapack.a" tools/OpenBLAS/install/lib
+	ln -sf "${XBPS_CROSS_BASE}/usr/lib/libblas.a" tools/OpenBLAS/install/lib
+	ln -sf "../../openfst-${_openfst_commit}" tools/openfst
+
+	cd "${wrksrc}"
+	autoreconf -fi "openfst-${_openfst_commit}"
+}
+
+pre_build() {
+	cd "${wrksrc}/openfst-${_openfst_commit}"
+	./configure \
+		${CROSS_BUILD:+--host="${XBPS_CROSS_TRIPLET}"} \
+		--prefix="${wrksrc}/kaldi-${_kaldi_commit}/tools/openfst" \
+		--enable-static \
+		--enable-shared \
+		--enable-far \
+		--enable-ngram-fsts \
+		--enable-lookahead-fsts \
+		--with-pic \
+		--disable-bin
+	make
+	make install
+
+	cd "${wrksrc}/kaldi-${_kaldi_commit}/src"
+	./configure ${CROSS_BUILD:+--host="${XBPS_CROSS_TRIPLET}"} --mathlib=OPENBLAS_CLAPACK --shared --use-cuda=no
+	make online2 lm rnnlm
+}
+
+do_install() {
+	cd "${wrksrc}/vosk-api-${version}/src"
+	vinstall vosk_api.h 644 usr/include
+	vinstall libvosk.so 644 usr/lib
+}
+
+do_check() {
+	cd "${wrksrc}/vosk-api-${version}/c"
+	ln -sf "${PKGDESTDIR}/usr/share/vosk-models/small-en-us" model
+	ln -sf ../python/example/test.wav .
+	make
+	./test_vosk | grep -q '"text" : "zero one eight zero three"'
+}
+
+vosk-model-small-en-us_package() {
+	short_desc="Lightweight english language model"
+	pkg_install() {
+		vmkdir usr/share/vosk-models
+		mv "${wrksrc}/vosk-model-small-en-us-0.15" "${PKGDESTDIR}/usr/share/vosk-models/small-en-us"
+	}
+}
diff --git a/srcpkgs/vosk-model-small-en-us b/srcpkgs/vosk-model-small-en-us
new file mode 120000
index 000000000000..db9953d33676
--- /dev/null
+++ b/srcpkgs/vosk-model-small-en-us
@@ -0,0 +1 @@
+vosk-api
\ No newline at end of file

^ permalink raw reply	[flat|nested] 35+ messages in thread

* Re: New package: vosk-api-0.3.43
  2022-08-31 21:38 [PR PATCH] New package: libvosk-0.3.43 JohnGebbie
                   ` (27 preceding siblings ...)
  2022-09-22 20:50 ` [PR PATCH] [Updated] " JohnGebbie
@ 2022-09-22 20:50 ` JohnGebbie
  2022-09-23  8:55 ` [PR PATCH] [Updated] " JohnGebbie
                   ` (4 subsequent siblings)
  33 siblings, 0 replies; 35+ messages in thread
From: JohnGebbie @ 2022-09-22 20:50 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 162 bytes --]

New comment by JohnGebbie on void-packages repository

https://github.com/void-linux/void-packages/pull/39015#issuecomment-1255535690

Comment:
Added do_check().

^ permalink raw reply	[flat|nested] 35+ messages in thread

* Re: [PR PATCH] [Updated] New package: vosk-api-0.3.43
  2022-08-31 21:38 [PR PATCH] New package: libvosk-0.3.43 JohnGebbie
                   ` (28 preceding siblings ...)
  2022-09-22 20:50 ` JohnGebbie
@ 2022-09-23  8:55 ` JohnGebbie
  2022-09-23  9:14 ` JohnGebbie
                   ` (3 subsequent siblings)
  33 siblings, 0 replies; 35+ messages in thread
From: JohnGebbie @ 2022-09-23  8:55 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 745 bytes --]

There is an updated pull request by JohnGebbie against master on the void-packages repository

https://github.com/JohnGebbie/void-packages libvosk
https://github.com/void-linux/void-packages/pull/39015

New package: vosk-api-0.3.43
#### Testing the changes
- I tested the changes in this PR: **briefly**

#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**

#### Local build testing
- I built this PR locally for my native architecture, (x86_64-glibc)

Closes https://github.com/void-linux/void-packages/issues/39009


A patch file from https://github.com/void-linux/void-packages/pull/39015.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-libvosk-39015.patch --]
[-- Type: text/x-diff, Size: 7442 bytes --]

From cba751405788444782072bae34e3114310723b99 Mon Sep 17 00:00:00 2001
From: John Gebbie <me@johngebbie.com>
Date: Sat, 3 Sep 2022 13:02:48 +0100
Subject: [PATCH] New package: vosk-api-0.3.43

---
 srcpkgs/vosk-api/patches/openblas.diff | 55 ++++++++++++++++
 srcpkgs/vosk-api/template              | 90 ++++++++++++++++++++++++++
 srcpkgs/vosk-model-small-en-us         |  1 +
 3 files changed, 146 insertions(+)
 create mode 100644 srcpkgs/vosk-api/patches/openblas.diff
 create mode 100644 srcpkgs/vosk-api/template
 create mode 120000 srcpkgs/vosk-model-small-en-us

diff --git a/srcpkgs/vosk-api/patches/openblas.diff b/srcpkgs/vosk-api/patches/openblas.diff
new file mode 100644
index 000000000000..4ae3aac80393
--- /dev/null
+++ b/srcpkgs/vosk-api/patches/openblas.diff
@@ -0,0 +1,55 @@
+--- a/src/matrix/cblas-wrappers.h
++++ b/src/matrix/cblas-wrappers.h
+@@ -383,10 +383,10 @@ inline void mul_elements(
+ // add clapack here
+ #if !defined(HAVE_ATLAS)
+ inline void clapack_Xtptri(KaldiBlasInt *num_rows, float *Mdata, KaldiBlasInt *result) {
+-  stptri_(const_cast<char *>("U"), const_cast<char *>("N"), num_rows, Mdata, result);
++  stptri_(const_cast<char *>("U"), const_cast<char *>("N"), num_rows, Mdata, result, 1, 1);
+ }
+ inline void clapack_Xtptri(KaldiBlasInt *num_rows, double *Mdata, KaldiBlasInt *result) {
+-  dtptri_(const_cast<char *>("U"), const_cast<char *>("N"), num_rows, Mdata, result);
++  dtptri_(const_cast<char *>("U"), const_cast<char *>("N"), num_rows, Mdata, result, 1, 1);
+ }
+ // 
+ inline void clapack_Xgetrf2(KaldiBlasInt *num_rows, KaldiBlasInt *num_cols, 
+@@ -420,7 +420,7 @@ inline void clapack_Xgesvd(char *v, char *u, KaldiBlasInt *num_cols,
+   sgesvd_(v, u,
+           num_cols, num_rows, Mdata, stride,
+           sv, Vdata, vstride, Udata, ustride, 
+-          p_work, l_work, result); 
++          p_work, l_work, result, 1, 1);
+ }
+ inline void clapack_Xgesvd(char *v, char *u, KaldiBlasInt *num_cols,
+                            KaldiBlasInt *num_rows, double *Mdata, KaldiBlasInt *stride,
+@@ -430,25 +430,25 @@ inline void clapack_Xgesvd(char *v, char *u, KaldiBlasInt *num_cols,
+   dgesvd_(v, u,
+           num_cols, num_rows, Mdata, stride,
+           sv, Vdata, vstride, Udata, ustride,
+-          p_work, l_work, result); 
++          p_work, l_work, result, 1, 1);
+ }
+ //
+ void inline clapack_Xsptri(KaldiBlasInt *num_rows, float *Mdata, 
+                            KaldiBlasInt *ipiv, float *work, KaldiBlasInt *result) {
+-  ssptri_(const_cast<char *>("U"), num_rows, Mdata, ipiv, work, result);
++  ssptri_(const_cast<char *>("U"), num_rows, Mdata, ipiv, work, result, 1);
+ }
+ void inline clapack_Xsptri(KaldiBlasInt *num_rows, double *Mdata, 
+                            KaldiBlasInt *ipiv, double *work, KaldiBlasInt *result) {
+-  dsptri_(const_cast<char *>("U"), num_rows, Mdata, ipiv, work, result);
++  dsptri_(const_cast<char *>("U"), num_rows, Mdata, ipiv, work, result, 1);
+ }
+ //
+ void inline clapack_Xsptrf(KaldiBlasInt *num_rows, float *Mdata,
+                            KaldiBlasInt *ipiv, KaldiBlasInt *result) {
+-  ssptrf_(const_cast<char *>("U"), num_rows, Mdata, ipiv, result);
++  ssptrf_(const_cast<char *>("U"), num_rows, Mdata, ipiv, result, 1);
+ }
+ void inline clapack_Xsptrf(KaldiBlasInt *num_rows, double *Mdata,
+                            KaldiBlasInt *ipiv, KaldiBlasInt *result) {
+-  dsptrf_(const_cast<char *>("U"), num_rows, Mdata, ipiv, result);
++  dsptrf_(const_cast<char *>("U"), num_rows, Mdata, ipiv, result, 1);
+ }
+ #else
+ inline void clapack_Xgetrf(MatrixIndexT num_rows, MatrixIndexT num_cols,
diff --git a/srcpkgs/vosk-api/template b/srcpkgs/vosk-api/template
new file mode 100644
index 000000000000..2a99ada6c54e
--- /dev/null
+++ b/srcpkgs/vosk-api/template
@@ -0,0 +1,90 @@
+# Template file for 'vosk-api'
+pkgname=vosk-api
+version=0.3.43
+revision=1
+create_wrksrc=yes
+build_wrksrc="vosk-api-${version}/src"
+_openfst_commit=7dfd808194105162f20084bb4d8e4ee4b65266d5
+_kaldi_commit=6417ac1dece94783e80dfbac0148604685d27579
+build_style=gnu-makefile
+make_use_env=yes
+make_build_args="KALDI_ROOT=../../kaldi-${_kaldi_commit}
+	OPENFST_ROOT=../../kaldi-${_kaldi_commit}/tools/openfst
+	OPENBLAS_ROOT=../../kaldi-${_kaldi_commit}/tools/OpenBLAS/install"
+hostmakedepends="autoconf automake cmake libtool"
+makedepends="blas-devel lapack-devel openblas-devel libgomp-devel"
+short_desc="Offline speech recognition toolkit"
+maintainer="John Gebbie <me@johngebbie.com>"
+license="Apache-2.0"
+homepage="https://alphacephei.com/vosk"
+distfiles="https://github.com/alphacep/vosk-api/archive/v${version}/vosk-api-${version}.tar.gz
+https://github.com/alphacep/kaldi/archive/${_kaldi_commit}.tar.gz
+https://github.com/alphacep/openfst/archive/${_openfst_commit}.tar.gz
+https://alphacephei.com/vosk/models/vosk-model-small-en-us-0.15.zip"
+checksum="50fa82bfbfe3fc5be868237c84ac180eb55da0b65b1803bf022899673afda024
+4e5c08c9c61bbc995e0620321feb0973bb0321442f1bd8f08b47497f55efadda
+a7bac90acb9a12fdfe50c240c9bb730a7bcb5c3b3ac32017c4d27177b059680a
+30f26242c4eb449f948e42cb302dd7a686cb29a3423a8367f99ff41780942498"
+patch_args="-Np1 kaldi-${_kaldi_commit}/src/matrix/cblas-wrappers.h"
+
+post_extract() {
+	cd "${wrksrc}/kaldi-${_kaldi_commit}/src"
+	vsed -i configure -e 's/ -l:libf2c\.a//'
+	cd "${wrksrc}/vosk-api-${version}/src"
+	vsed -i Makefile -e '/libblas\.a \\/ {N; s/ \\.*//}'
+	vsed -i Makefile -e 's/ -lf2c//'
+
+	cd "${wrksrc}/kaldi-${_kaldi_commit}"
+	mkdir -p tools/OpenBLAS/install/lib
+	ln -sf "${XBPS_CROSS_BASE}/usr/include/openblas" tools/OpenBLAS/install/include
+	ln -sf "${XBPS_CROSS_BASE}/usr/lib/libopenblas.a" tools/OpenBLAS/install/lib
+	ln -sf "${XBPS_CROSS_BASE}/usr/lib/libopenblas.so" tools/OpenBLAS/install/lib
+	ln -sf "${XBPS_CROSS_BASE}/usr/lib/liblapack.a" tools/OpenBLAS/install/lib
+	ln -sf "${XBPS_CROSS_BASE}/usr/lib/libblas.a" tools/OpenBLAS/install/lib
+	ln -sf "../../openfst-${_openfst_commit}" tools/openfst
+
+	cd "${wrksrc}"
+	autoreconf -fi "openfst-${_openfst_commit}"
+}
+
+pre_build() {
+	cd "${wrksrc}/openfst-${_openfst_commit}"
+	./configure \
+		${CROSS_BUILD:+--host="${XBPS_CROSS_TRIPLET}"} \
+		--prefix="${wrksrc}/kaldi-${_kaldi_commit}/tools/openfst" \
+		--enable-static \
+		--enable-shared \
+		--enable-far \
+		--enable-ngram-fsts \
+		--enable-lookahead-fsts \
+		--with-pic \
+		--disable-bin
+	make
+	make install
+
+	cd "${wrksrc}/kaldi-${_kaldi_commit}/src"
+	./configure ${CROSS_BUILD:+--host="${XBPS_CROSS_TRIPLET}"} --mathlib=OPENBLAS_CLAPACK --shared --use-cuda=no
+	make online2 lm rnnlm
+}
+
+do_install() {
+	cd "${wrksrc}/vosk-api-${version}/src"
+	vinstall vosk_api.h 644 usr/include
+	vinstall libvosk.so 644 usr/lib
+}
+
+do_check() {
+	cd "${wrksrc}/vosk-api-${version}/c"
+	ln -sf "${PKGDESTDIR}/usr/share/vosk-models/small-en-us" model
+	ln -sf ../python/example/test.wav .
+	make
+	./test_vosk | grep -q '"text" : "zero one eight zero three"'
+}
+
+vosk-model-small-en-us_package() {
+	short_desc="Lightweight english language model"
+	pkg_install() {
+		vmkdir usr/share/vosk-models
+		mv "${wrksrc}/vosk-model-small-en-us-0.15" "${PKGDESTDIR}/usr/share/vosk-models/small-en-us"
+	}
+}
diff --git a/srcpkgs/vosk-model-small-en-us b/srcpkgs/vosk-model-small-en-us
new file mode 120000
index 000000000000..db9953d33676
--- /dev/null
+++ b/srcpkgs/vosk-model-small-en-us
@@ -0,0 +1 @@
+vosk-api
\ No newline at end of file

^ permalink raw reply	[flat|nested] 35+ messages in thread

* Re: [PR PATCH] [Updated] New package: vosk-api-0.3.43
  2022-08-31 21:38 [PR PATCH] New package: libvosk-0.3.43 JohnGebbie
                   ` (29 preceding siblings ...)
  2022-09-23  8:55 ` [PR PATCH] [Updated] " JohnGebbie
@ 2022-09-23  9:14 ` JohnGebbie
  2022-09-23 11:30 ` JohnGebbie
                   ` (2 subsequent siblings)
  33 siblings, 0 replies; 35+ messages in thread
From: JohnGebbie @ 2022-09-23  9:14 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 745 bytes --]

There is an updated pull request by JohnGebbie against master on the void-packages repository

https://github.com/JohnGebbie/void-packages libvosk
https://github.com/void-linux/void-packages/pull/39015

New package: vosk-api-0.3.43
#### Testing the changes
- I tested the changes in this PR: **briefly**

#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**

#### Local build testing
- I built this PR locally for my native architecture, (x86_64-glibc)

Closes https://github.com/void-linux/void-packages/issues/39009


A patch file from https://github.com/void-linux/void-packages/pull/39015.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-libvosk-39015.patch --]
[-- Type: text/x-diff, Size: 7524 bytes --]

From 44e2fd907ad5ba47bcacac5652f693e149533196 Mon Sep 17 00:00:00 2001
From: John Gebbie <me@johngebbie.com>
Date: Sat, 3 Sep 2022 13:02:48 +0100
Subject: [PATCH] New package: vosk-api-0.3.43

---
 srcpkgs/vosk-api/patches/openblas.diff | 55 +++++++++++++++
 srcpkgs/vosk-api/template              | 94 ++++++++++++++++++++++++++
 srcpkgs/vosk-model-small-en-us         |  1 +
 3 files changed, 150 insertions(+)
 create mode 100644 srcpkgs/vosk-api/patches/openblas.diff
 create mode 100644 srcpkgs/vosk-api/template
 create mode 120000 srcpkgs/vosk-model-small-en-us

diff --git a/srcpkgs/vosk-api/patches/openblas.diff b/srcpkgs/vosk-api/patches/openblas.diff
new file mode 100644
index 000000000000..4ae3aac80393
--- /dev/null
+++ b/srcpkgs/vosk-api/patches/openblas.diff
@@ -0,0 +1,55 @@
+--- a/src/matrix/cblas-wrappers.h
++++ b/src/matrix/cblas-wrappers.h
+@@ -383,10 +383,10 @@ inline void mul_elements(
+ // add clapack here
+ #if !defined(HAVE_ATLAS)
+ inline void clapack_Xtptri(KaldiBlasInt *num_rows, float *Mdata, KaldiBlasInt *result) {
+-  stptri_(const_cast<char *>("U"), const_cast<char *>("N"), num_rows, Mdata, result);
++  stptri_(const_cast<char *>("U"), const_cast<char *>("N"), num_rows, Mdata, result, 1, 1);
+ }
+ inline void clapack_Xtptri(KaldiBlasInt *num_rows, double *Mdata, KaldiBlasInt *result) {
+-  dtptri_(const_cast<char *>("U"), const_cast<char *>("N"), num_rows, Mdata, result);
++  dtptri_(const_cast<char *>("U"), const_cast<char *>("N"), num_rows, Mdata, result, 1, 1);
+ }
+ // 
+ inline void clapack_Xgetrf2(KaldiBlasInt *num_rows, KaldiBlasInt *num_cols, 
+@@ -420,7 +420,7 @@ inline void clapack_Xgesvd(char *v, char *u, KaldiBlasInt *num_cols,
+   sgesvd_(v, u,
+           num_cols, num_rows, Mdata, stride,
+           sv, Vdata, vstride, Udata, ustride, 
+-          p_work, l_work, result); 
++          p_work, l_work, result, 1, 1);
+ }
+ inline void clapack_Xgesvd(char *v, char *u, KaldiBlasInt *num_cols,
+                            KaldiBlasInt *num_rows, double *Mdata, KaldiBlasInt *stride,
+@@ -430,25 +430,25 @@ inline void clapack_Xgesvd(char *v, char *u, KaldiBlasInt *num_cols,
+   dgesvd_(v, u,
+           num_cols, num_rows, Mdata, stride,
+           sv, Vdata, vstride, Udata, ustride,
+-          p_work, l_work, result); 
++          p_work, l_work, result, 1, 1);
+ }
+ //
+ void inline clapack_Xsptri(KaldiBlasInt *num_rows, float *Mdata, 
+                            KaldiBlasInt *ipiv, float *work, KaldiBlasInt *result) {
+-  ssptri_(const_cast<char *>("U"), num_rows, Mdata, ipiv, work, result);
++  ssptri_(const_cast<char *>("U"), num_rows, Mdata, ipiv, work, result, 1);
+ }
+ void inline clapack_Xsptri(KaldiBlasInt *num_rows, double *Mdata, 
+                            KaldiBlasInt *ipiv, double *work, KaldiBlasInt *result) {
+-  dsptri_(const_cast<char *>("U"), num_rows, Mdata, ipiv, work, result);
++  dsptri_(const_cast<char *>("U"), num_rows, Mdata, ipiv, work, result, 1);
+ }
+ //
+ void inline clapack_Xsptrf(KaldiBlasInt *num_rows, float *Mdata,
+                            KaldiBlasInt *ipiv, KaldiBlasInt *result) {
+-  ssptrf_(const_cast<char *>("U"), num_rows, Mdata, ipiv, result);
++  ssptrf_(const_cast<char *>("U"), num_rows, Mdata, ipiv, result, 1);
+ }
+ void inline clapack_Xsptrf(KaldiBlasInt *num_rows, double *Mdata,
+                            KaldiBlasInt *ipiv, KaldiBlasInt *result) {
+-  dsptrf_(const_cast<char *>("U"), num_rows, Mdata, ipiv, result);
++  dsptrf_(const_cast<char *>("U"), num_rows, Mdata, ipiv, result, 1);
+ }
+ #else
+ inline void clapack_Xgetrf(MatrixIndexT num_rows, MatrixIndexT num_cols,
diff --git a/srcpkgs/vosk-api/template b/srcpkgs/vosk-api/template
new file mode 100644
index 000000000000..f253309faf28
--- /dev/null
+++ b/srcpkgs/vosk-api/template
@@ -0,0 +1,94 @@
+# Template file for 'vosk-api'
+pkgname=vosk-api
+version=0.3.43
+revision=1
+create_wrksrc=yes
+build_wrksrc="vosk-api-${version}/src"
+_openfst_commit=7dfd808194105162f20084bb4d8e4ee4b65266d5
+_kaldi_commit=6417ac1dece94783e80dfbac0148604685d27579
+build_style=gnu-makefile
+make_use_env=yes
+make_build_args="KALDI_ROOT=../../kaldi-${_kaldi_commit}
+	OPENFST_ROOT=../../kaldi-${_kaldi_commit}/tools/openfst
+	OPENBLAS_ROOT=../../kaldi-${_kaldi_commit}/tools/OpenBLAS/install"
+hostmakedepends="autoconf automake cmake libtool"
+makedepends="blas-devel lapack-devel openblas-devel libgomp-devel"
+short_desc="Offline speech recognition toolkit"
+maintainer="John Gebbie <me@johngebbie.com>"
+license="Apache-2.0"
+homepage="https://alphacephei.com/vosk"
+distfiles="https://github.com/alphacep/vosk-api/archive/v${version}/vosk-api-${version}.tar.gz
+https://github.com/alphacep/kaldi/archive/${_kaldi_commit}.tar.gz
+https://github.com/alphacep/openfst/archive/${_openfst_commit}.tar.gz
+https://alphacephei.com/vosk/models/vosk-model-small-en-us-0.15.zip"
+checksum="50fa82bfbfe3fc5be868237c84ac180eb55da0b65b1803bf022899673afda024
+4e5c08c9c61bbc995e0620321feb0973bb0321442f1bd8f08b47497f55efadda
+a7bac90acb9a12fdfe50c240c9bb730a7bcb5c3b3ac32017c4d27177b059680a
+30f26242c4eb449f948e42cb302dd7a686cb29a3423a8367f99ff41780942498"
+patch_args="-Np1 kaldi-${_kaldi_commit}/src/matrix/cblas-wrappers.h"
+
+if [ "$XBPS_TARGET_LIBC" = musl ]; then
+	makedepends+=" libexecinfo-devel"
+fi
+
+post_extract() {
+	cd "${wrksrc}/kaldi-${_kaldi_commit}/src"
+	vsed -i configure -e 's/ -l:libf2c\.a//'
+	cd "${wrksrc}/vosk-api-${version}/src"
+	vsed -i Makefile -e '/libblas\.a \\/ {N; s/ \\.*//}'
+	vsed -i Makefile -e 's/ -lf2c//'
+
+	cd "${wrksrc}/kaldi-${_kaldi_commit}"
+	mkdir -p tools/OpenBLAS/install/lib
+	ln -sf "${XBPS_CROSS_BASE}/usr/include/openblas" tools/OpenBLAS/install/include
+	ln -sf "${XBPS_CROSS_BASE}/usr/lib/libopenblas.a" tools/OpenBLAS/install/lib
+	ln -sf "${XBPS_CROSS_BASE}/usr/lib/libopenblas.so" tools/OpenBLAS/install/lib
+	ln -sf "${XBPS_CROSS_BASE}/usr/lib/liblapack.a" tools/OpenBLAS/install/lib
+	ln -sf "${XBPS_CROSS_BASE}/usr/lib/libblas.a" tools/OpenBLAS/install/lib
+	ln -sf "../../openfst-${_openfst_commit}" tools/openfst
+
+	cd "${wrksrc}"
+	autoreconf -fi "openfst-${_openfst_commit}"
+}
+
+pre_build() {
+	cd "${wrksrc}/openfst-${_openfst_commit}"
+	./configure \
+		${CROSS_BUILD:+--host="${XBPS_CROSS_TRIPLET}"} \
+		--prefix="${wrksrc}/kaldi-${_kaldi_commit}/tools/openfst" \
+		--enable-static \
+		--enable-shared \
+		--enable-far \
+		--enable-ngram-fsts \
+		--enable-lookahead-fsts \
+		--with-pic \
+		--disable-bin
+	make
+	make install
+
+	cd "${wrksrc}/kaldi-${_kaldi_commit}/src"
+	./configure ${CROSS_BUILD:+--host="${XBPS_CROSS_TRIPLET}"} --mathlib=OPENBLAS_CLAPACK --shared --use-cuda=no
+	make online2 lm rnnlm
+}
+
+do_install() {
+	cd "${wrksrc}/vosk-api-${version}/src"
+	vinstall vosk_api.h 644 usr/include
+	vinstall libvosk.so 644 usr/lib
+}
+
+do_check() {
+	cd "${wrksrc}/vosk-api-${version}/c"
+	ln -sf "${PKGDESTDIR}/usr/share/vosk-models/small-en-us" model
+	ln -sf ../python/example/test.wav .
+	make
+	./test_vosk | grep -q '"text" : "zero one eight zero three"'
+}
+
+vosk-model-small-en-us_package() {
+	short_desc="Lightweight english language model"
+	pkg_install() {
+		vmkdir usr/share/vosk-models
+		mv "${wrksrc}/vosk-model-small-en-us-0.15" "${PKGDESTDIR}/usr/share/vosk-models/small-en-us"
+	}
+}
diff --git a/srcpkgs/vosk-model-small-en-us b/srcpkgs/vosk-model-small-en-us
new file mode 120000
index 000000000000..db9953d33676
--- /dev/null
+++ b/srcpkgs/vosk-model-small-en-us
@@ -0,0 +1 @@
+vosk-api
\ No newline at end of file

^ permalink raw reply	[flat|nested] 35+ messages in thread

* Re: New package: vosk-api-0.3.43
  2022-08-31 21:38 [PR PATCH] New package: libvosk-0.3.43 JohnGebbie
                   ` (30 preceding siblings ...)
  2022-09-23  9:14 ` JohnGebbie
@ 2022-09-23 11:30 ` JohnGebbie
  2022-09-23 17:21 ` JohnGebbie
  2022-09-23 18:23 ` JohnGebbie
  33 siblings, 0 replies; 35+ messages in thread
From: JohnGebbie @ 2022-09-23 11:30 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 162 bytes --]

New comment by JohnGebbie on void-packages repository

https://github.com/void-linux/void-packages/pull/39015#issuecomment-1256096727

Comment:
That should work.

^ permalink raw reply	[flat|nested] 35+ messages in thread

* Re: New package: vosk-api-0.3.43
  2022-08-31 21:38 [PR PATCH] New package: libvosk-0.3.43 JohnGebbie
                   ` (31 preceding siblings ...)
  2022-09-23 11:30 ` JohnGebbie
@ 2022-09-23 17:21 ` JohnGebbie
  2022-09-23 18:23 ` JohnGebbie
  33 siblings, 0 replies; 35+ messages in thread
From: JohnGebbie @ 2022-09-23 17:21 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 162 bytes --]

New comment by JohnGebbie on void-packages repository

https://github.com/void-linux/void-packages/pull/39015#issuecomment-1256096727

Comment:
That should work.

^ permalink raw reply	[flat|nested] 35+ messages in thread

* Re: New package: vosk-api-0.3.43
  2022-08-31 21:38 [PR PATCH] New package: libvosk-0.3.43 JohnGebbie
                   ` (32 preceding siblings ...)
  2022-09-23 17:21 ` JohnGebbie
@ 2022-09-23 18:23 ` JohnGebbie
  33 siblings, 0 replies; 35+ messages in thread
From: JohnGebbie @ 2022-09-23 18:23 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 207 bytes --]

New comment by JohnGebbie on void-packages repository

https://github.com/void-linux/void-packages/pull/39015#issuecomment-1256533493

Comment:
I think it's ready. I've tested x86_64, i686 and aarch64-musl.

^ permalink raw reply	[flat|nested] 35+ messages in thread

end of thread, other threads:[~2022-09-23 18:23 UTC | newest]

Thread overview: 35+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-31 21:38 [PR PATCH] New package: libvosk-0.3.43 JohnGebbie
2022-09-02  7:33 ` JohnGebbie
2022-09-02  9:01 ` JohnGebbie
2022-09-02 18:59 ` JohnGebbie
2022-09-03 12:04 ` [PR PATCH] [Updated] " JohnGebbie
2022-09-03 12:11 ` New package: vosk-api-0.3.43 JohnGebbie
2022-09-03 14:11 ` [PR PATCH] [Updated] " JohnGebbie
2022-09-03 14:12 ` JohnGebbie
2022-09-03 14:13 ` [PR PATCH] [Updated] " JohnGebbie
2022-09-03 14:14 ` JohnGebbie
2022-09-03 14:14 ` JohnGebbie
2022-09-03 20:52 ` [PR PATCH] [Updated] " JohnGebbie
2022-09-04  8:26 ` JohnGebbie
2022-09-17 13:05 ` [PR PATCH] [Updated] " JohnGebbie
2022-09-17 13:09 ` JohnGebbie
2022-09-18 11:00 ` [PR PATCH] [Updated] " JohnGebbie
2022-09-21 15:53 ` JohnGebbie
2022-09-22  8:53 ` JohnGebbie
2022-09-22  9:26 ` [PR REVIEW] " paper42
2022-09-22  9:26 ` paper42
2022-09-22 14:39 ` [PR PATCH] [Updated] " JohnGebbie
2022-09-22 14:43 ` JohnGebbie
2022-09-22 15:19 ` [PR REVIEW] " JohnGebbie
2022-09-22 18:16 ` [PR PATCH] [Updated] " JohnGebbie
2022-09-22 19:32 ` JohnGebbie
2022-09-22 19:38 ` JohnGebbie
2022-09-22 20:31 ` [PR PATCH] [Updated] " JohnGebbie
2022-09-22 20:33 ` JohnGebbie
2022-09-22 20:50 ` [PR PATCH] [Updated] " JohnGebbie
2022-09-22 20:50 ` JohnGebbie
2022-09-23  8:55 ` [PR PATCH] [Updated] " JohnGebbie
2022-09-23  9:14 ` JohnGebbie
2022-09-23 11:30 ` JohnGebbie
2022-09-23 17:21 ` JohnGebbie
2022-09-23 18:23 ` JohnGebbie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).