Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] New package: numen-0.1
@ 2022-10-04 16:56 JohnGebbie
  2022-10-09  9:49 ` [PR PATCH] [Updated] " JohnGebbie
                   ` (85 more replies)
  0 siblings, 86 replies; 87+ messages in thread
From: JohnGebbie @ 2022-10-04 16:56 UTC (permalink / raw)
  To: ml

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

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

https://github.com/JohnGebbie/void-packages numen3
https://github.com/void-linux/void-packages/pull/39716

New package: numen-0.1
#### Testing the changes
- I tested the changes in this PR: **NO**

#### 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)


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

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

From 8404c4f75adf36e8bd513a177908232f58411403 Mon Sep 17 00:00:00 2001
From: John Gebbie <me@johngebbie.com>
Date: Tue, 4 Oct 2022 17:50:42 +0100
Subject: [PATCH] New package: numen-0.1

---
 srcpkgs/numen/files/numen/conf      |  6 +++++
 srcpkgs/numen/files/numen/control/t |  2 ++
 srcpkgs/numen/files/numen/log/run   |  2 ++
 srcpkgs/numen/files/numen/run       |  7 ++++++
 srcpkgs/numen/files/run             | 10 +++++++++
 srcpkgs/numen/template              | 35 +++++++++++++++++++++++++++++
 6 files changed, 62 insertions(+)
 create mode 100644 srcpkgs/numen/files/numen/conf
 create mode 100755 srcpkgs/numen/files/numen/control/t
 create mode 100755 srcpkgs/numen/files/numen/log/run
 create mode 100755 srcpkgs/numen/files/numen/run
 create mode 100644 srcpkgs/numen/files/run
 create mode 100644 srcpkgs/numen/template

diff --git a/srcpkgs/numen/files/numen/conf b/srcpkgs/numen/files/numen/conf
new file mode 100644
index 000000000000..f4ec56bcfb54
--- /dev/null
+++ b/srcpkgs/numen/files/numen/conf
@@ -0,0 +1,6 @@
+# Example to run numen as a specific user:
+
+# NUMENUSER=john
+# export XAUTHORITY="/run/user/$(id -u $NUMENUSER)/Xauthority"
+# export XDG_DATA_HOME="/home/$NUMENUSER/.local/share"
+# OPTS=$(find "/home/$NUMENUSER/.config/numen/phrases/" -maxdepth 1 \! -type d)
diff --git a/srcpkgs/numen/files/numen/control/t b/srcpkgs/numen/files/numen/control/t
new file mode 100755
index 000000000000..eeeb1555652a
--- /dev/null
+++ b/srcpkgs/numen/files/numen/control/t
@@ -0,0 +1,2 @@
+#!/bin/sh
+pkill -P $(cat supervise/pid)
diff --git a/srcpkgs/numen/files/numen/log/run b/srcpkgs/numen/files/numen/log/run
new file mode 100755
index 000000000000..01131544c6d3
--- /dev/null
+++ b/srcpkgs/numen/files/numen/log/run
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec logger -p daemon.info -t numen
diff --git a/srcpkgs/numen/files/numen/run b/srcpkgs/numen/files/numen/run
new file mode 100755
index 000000000000..efd9c8b9477a
--- /dev/null
+++ b/srcpkgs/numen/files/numen/run
@@ -0,0 +1,7 @@
+#!/bin/sh
+exec 2>&1
+[ -r ./conf ] && . ./conf
+: ${NUMENUSER:=_numen}
+mkdir -p /usr/share/numen
+chown $NUMENUSER:$NUMENUSER /usr/share/numen || exit
+XDG_DATA_HOME="${XDG_DATA_HOME:-/usr/share}" exec chpst -u $NUMENUSER:input:audio /usr/local/bin/numen ${OPTS}
diff --git a/srcpkgs/numen/files/run b/srcpkgs/numen/files/run
new file mode 100644
index 000000000000..a21a244dad58
--- /dev/null
+++ b/srcpkgs/numen/files/run
@@ -0,0 +1,10 @@
+#!/bin/sh
+cd /usr/libexec/numen || exit
+if [ -z "$NUMEN_MODEL" ]; then
+	if [ -e /usr/share/vosk-models/small-en-us ]; then
+		export NUMEN_MODEL=/usr/share/vosk-models/small-en-us
+	else
+		echo 'numen: You need to install the vosk-model-small-en-us package or set $NUMEN_MODEL.' > /dev/stderr
+	fi
+fi
+exec ./numen "$@"
diff --git a/srcpkgs/numen/template b/srcpkgs/numen/template
new file mode 100644
index 000000000000..87620d0351d6
--- /dev/null
+++ b/srcpkgs/numen/template
@@ -0,0 +1,35 @@
+# Template file for 'numen'
+pkgname=numen
+version=0.1
+revision=1
+build_style=go
+go_import_path="git.sr.ht/~geb/numen"
+hostmakedepends="scdoc"
+makedepends="vosk-api libgomp-devel"
+depends="alsa-utils xdotool xset ydotool"
+short_desc="Voice control for handsfree computing"
+maintainer="John Gebbie <me@johngebbie.com>"
+license="GPL-3.0-only"
+homepage="https://sr.ht/~geb/numen"
+distfiles="https://git.sr.ht/~geb/numen/archive/${version}.tar.gz"
+checksum=f5d69ca098d3714c132adda29d3fb527da12e4c4ec92fa29cf87cb8acaf38c98
+
+system_accounts="_numen"
+_numen_groups="input audio"
+
+pre_build() {
+	export CGO_LDFLAGS="-fopenmp"
+}
+
+post_install() {
+	vmkdir usr/libexec/numen
+	mv "${DESTDIR}/usr/bin/numen" "${DESTDIR}/usr/libexec/numen/speech"
+	mv handlers "${DESTDIR}/usr/libexec/speech"
+	vbin "${FILESDIR}/run" numen
+
+	vmkdir etc/numen
+	mv phrases "${DESTDIR}/etc/numen/phrases"
+	vbin displaying
+	scdoc < numen.1.scd > numen.1
+	vman numen.1
+}

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

* Re: [PR PATCH] [Updated] New package: numen-0.1
  2022-10-04 16:56 [PR PATCH] New package: numen-0.1 JohnGebbie
@ 2022-10-09  9:49 ` JohnGebbie
  2022-10-09 14:30 ` JohnGebbie
                   ` (84 subsequent siblings)
  85 siblings, 0 replies; 87+ messages in thread
From: JohnGebbie @ 2022-10-09  9:49 UTC (permalink / raw)
  To: ml

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

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

https://github.com/JohnGebbie/void-packages numen3
https://github.com/void-linux/void-packages/pull/39716

New package: numen-0.1
#### Testing the changes
- I tested the changes in this PR: **NO**

#### 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'm still working on this. I put it here so I could link to it in a question.

This depends on https://github.com/void-linux/void-packages/pull/38268 and https://github.com/void-linux/void-packages/pull/39015.

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

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

From cba1ce5b537bd0c4458807062c8c6642c1085b95 Mon Sep 17 00:00:00 2001
From: John Gebbie <me@johngebbie.com>
Date: Tue, 4 Oct 2022 17:50:42 +0100
Subject: [PATCH] New package: numen-0.1

---
 srcpkgs/numen/files/numen/conf      |  6 +++++
 srcpkgs/numen/files/numen/control/t |  2 ++
 srcpkgs/numen/files/numen/log/run   |  2 ++
 srcpkgs/numen/files/numen/run       |  7 ++++++
 srcpkgs/numen/files/run             | 10 +++++++++
 srcpkgs/numen/template              | 35 +++++++++++++++++++++++++++++
 6 files changed, 62 insertions(+)
 create mode 100644 srcpkgs/numen/files/numen/conf
 create mode 100755 srcpkgs/numen/files/numen/control/t
 create mode 100755 srcpkgs/numen/files/numen/log/run
 create mode 100755 srcpkgs/numen/files/numen/run
 create mode 100644 srcpkgs/numen/files/run
 create mode 100644 srcpkgs/numen/template

diff --git a/srcpkgs/numen/files/numen/conf b/srcpkgs/numen/files/numen/conf
new file mode 100644
index 000000000000..f4ec56bcfb54
--- /dev/null
+++ b/srcpkgs/numen/files/numen/conf
@@ -0,0 +1,6 @@
+# Example to run numen as a specific user:
+
+# NUMENUSER=john
+# export XAUTHORITY="/run/user/$(id -u $NUMENUSER)/Xauthority"
+# export XDG_DATA_HOME="/home/$NUMENUSER/.local/share"
+# OPTS=$(find "/home/$NUMENUSER/.config/numen/phrases/" -maxdepth 1 \! -type d)
diff --git a/srcpkgs/numen/files/numen/control/t b/srcpkgs/numen/files/numen/control/t
new file mode 100755
index 000000000000..eeeb1555652a
--- /dev/null
+++ b/srcpkgs/numen/files/numen/control/t
@@ -0,0 +1,2 @@
+#!/bin/sh
+pkill -P $(cat supervise/pid)
diff --git a/srcpkgs/numen/files/numen/log/run b/srcpkgs/numen/files/numen/log/run
new file mode 100755
index 000000000000..01131544c6d3
--- /dev/null
+++ b/srcpkgs/numen/files/numen/log/run
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec logger -p daemon.info -t numen
diff --git a/srcpkgs/numen/files/numen/run b/srcpkgs/numen/files/numen/run
new file mode 100755
index 000000000000..0f8f870dc1a2
--- /dev/null
+++ b/srcpkgs/numen/files/numen/run
@@ -0,0 +1,7 @@
+#!/bin/sh
+exec 2>&1
+[ -r ./conf ] && . ./conf
+: ${NUMENUSER:=_numen}
+mkdir -p /usr/share/numen
+chown $NUMENUSER:$NUMENUSER /usr/share/numen || exit
+XDG_DATA_HOME="${XDG_DATA_HOME:-/usr/share}" exec chpst -u $NUMENUSER:input:audio /usr/bin/numen ${OPTS}
diff --git a/srcpkgs/numen/files/run b/srcpkgs/numen/files/run
new file mode 100644
index 000000000000..a21a244dad58
--- /dev/null
+++ b/srcpkgs/numen/files/run
@@ -0,0 +1,10 @@
+#!/bin/sh
+cd /usr/libexec/numen || exit
+if [ -z "$NUMEN_MODEL" ]; then
+	if [ -e /usr/share/vosk-models/small-en-us ]; then
+		export NUMEN_MODEL=/usr/share/vosk-models/small-en-us
+	else
+		echo 'numen: You need to install the vosk-model-small-en-us package or set $NUMEN_MODEL.' > /dev/stderr
+	fi
+fi
+exec ./numen "$@"
diff --git a/srcpkgs/numen/template b/srcpkgs/numen/template
new file mode 100644
index 000000000000..87620d0351d6
--- /dev/null
+++ b/srcpkgs/numen/template
@@ -0,0 +1,35 @@
+# Template file for 'numen'
+pkgname=numen
+version=0.1
+revision=1
+build_style=go
+go_import_path="git.sr.ht/~geb/numen"
+hostmakedepends="scdoc"
+makedepends="vosk-api libgomp-devel"
+depends="alsa-utils xdotool xset ydotool"
+short_desc="Voice control for handsfree computing"
+maintainer="John Gebbie <me@johngebbie.com>"
+license="GPL-3.0-only"
+homepage="https://sr.ht/~geb/numen"
+distfiles="https://git.sr.ht/~geb/numen/archive/${version}.tar.gz"
+checksum=f5d69ca098d3714c132adda29d3fb527da12e4c4ec92fa29cf87cb8acaf38c98
+
+system_accounts="_numen"
+_numen_groups="input audio"
+
+pre_build() {
+	export CGO_LDFLAGS="-fopenmp"
+}
+
+post_install() {
+	vmkdir usr/libexec/numen
+	mv "${DESTDIR}/usr/bin/numen" "${DESTDIR}/usr/libexec/numen/speech"
+	mv handlers "${DESTDIR}/usr/libexec/speech"
+	vbin "${FILESDIR}/run" numen
+
+	vmkdir etc/numen
+	mv phrases "${DESTDIR}/etc/numen/phrases"
+	vbin displaying
+	scdoc < numen.1.scd > numen.1
+	vman numen.1
+}

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

* Re: [PR PATCH] [Updated] New package: numen-0.1
  2022-10-04 16:56 [PR PATCH] New package: numen-0.1 JohnGebbie
  2022-10-09  9:49 ` [PR PATCH] [Updated] " JohnGebbie
@ 2022-10-09 14:30 ` JohnGebbie
  2022-10-09 16:38 ` JohnGebbie
                   ` (83 subsequent siblings)
  85 siblings, 0 replies; 87+ messages in thread
From: JohnGebbie @ 2022-10-09 14:30 UTC (permalink / raw)
  To: ml

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

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

https://github.com/JohnGebbie/void-packages numen3
https://github.com/void-linux/void-packages/pull/39716

New package: numen-0.1
#### Testing the changes
- I tested the changes in this PR: **NO**

#### 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'm still working on this. I put it here so I could link to it in a question.

This depends on https://github.com/void-linux/void-packages/pull/38268 and https://github.com/void-linux/void-packages/pull/39015.

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

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

From 156fb7a6c4ecab1eadbaa56fa8eef6d2fbc11185 Mon Sep 17 00:00:00 2001
From: John Gebbie <me@johngebbie.com>
Date: Tue, 4 Oct 2022 17:50:42 +0100
Subject: [PATCH] New package: numen-0.1

---
 srcpkgs/numen/files/numen/conf      |  6 +++++
 srcpkgs/numen/files/numen/control/t |  2 ++
 srcpkgs/numen/files/numen/log/run   |  2 ++
 srcpkgs/numen/files/numen/run       |  7 ++++++
 srcpkgs/numen/files/run             | 10 ++++++++
 srcpkgs/numen/template              | 36 +++++++++++++++++++++++++++++
 6 files changed, 63 insertions(+)
 create mode 100644 srcpkgs/numen/files/numen/conf
 create mode 100755 srcpkgs/numen/files/numen/control/t
 create mode 100755 srcpkgs/numen/files/numen/log/run
 create mode 100755 srcpkgs/numen/files/numen/run
 create mode 100644 srcpkgs/numen/files/run
 create mode 100644 srcpkgs/numen/template

diff --git a/srcpkgs/numen/files/numen/conf b/srcpkgs/numen/files/numen/conf
new file mode 100644
index 000000000000..f4ec56bcfb54
--- /dev/null
+++ b/srcpkgs/numen/files/numen/conf
@@ -0,0 +1,6 @@
+# Example to run numen as a specific user:
+
+# NUMENUSER=john
+# export XAUTHORITY="/run/user/$(id -u $NUMENUSER)/Xauthority"
+# export XDG_DATA_HOME="/home/$NUMENUSER/.local/share"
+# OPTS=$(find "/home/$NUMENUSER/.config/numen/phrases/" -maxdepth 1 \! -type d)
diff --git a/srcpkgs/numen/files/numen/control/t b/srcpkgs/numen/files/numen/control/t
new file mode 100755
index 000000000000..eeeb1555652a
--- /dev/null
+++ b/srcpkgs/numen/files/numen/control/t
@@ -0,0 +1,2 @@
+#!/bin/sh
+pkill -P $(cat supervise/pid)
diff --git a/srcpkgs/numen/files/numen/log/run b/srcpkgs/numen/files/numen/log/run
new file mode 100755
index 000000000000..01131544c6d3
--- /dev/null
+++ b/srcpkgs/numen/files/numen/log/run
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec logger -p daemon.info -t numen
diff --git a/srcpkgs/numen/files/numen/run b/srcpkgs/numen/files/numen/run
new file mode 100755
index 000000000000..0f8f870dc1a2
--- /dev/null
+++ b/srcpkgs/numen/files/numen/run
@@ -0,0 +1,7 @@
+#!/bin/sh
+exec 2>&1
+[ -r ./conf ] && . ./conf
+: ${NUMENUSER:=_numen}
+mkdir -p /usr/share/numen
+chown $NUMENUSER:$NUMENUSER /usr/share/numen || exit
+XDG_DATA_HOME="${XDG_DATA_HOME:-/usr/share}" exec chpst -u $NUMENUSER:input:audio /usr/bin/numen ${OPTS}
diff --git a/srcpkgs/numen/files/run b/srcpkgs/numen/files/run
new file mode 100644
index 000000000000..a21a244dad58
--- /dev/null
+++ b/srcpkgs/numen/files/run
@@ -0,0 +1,10 @@
+#!/bin/sh
+cd /usr/libexec/numen || exit
+if [ -z "$NUMEN_MODEL" ]; then
+	if [ -e /usr/share/vosk-models/small-en-us ]; then
+		export NUMEN_MODEL=/usr/share/vosk-models/small-en-us
+	else
+		echo 'numen: You need to install the vosk-model-small-en-us package or set $NUMEN_MODEL.' > /dev/stderr
+	fi
+fi
+exec ./numen "$@"
diff --git a/srcpkgs/numen/template b/srcpkgs/numen/template
new file mode 100644
index 000000000000..1c06345ba34a
--- /dev/null
+++ b/srcpkgs/numen/template
@@ -0,0 +1,36 @@
+# Template file for 'numen'
+pkgname=numen
+version=0.1
+revision=1
+build_style=go
+go_import_path="git.sr.ht/~geb/numen"
+hostmakedepends="scdoc"
+makedepends="vosk-api libgomp-devel"
+depends="alsa-utils xdotool xset ydotool"
+short_desc="Voice control for handsfree computing"
+maintainer="John Gebbie <me@johngebbie.com>"
+license="GPL-3.0-only"
+homepage="https://sr.ht/~geb/numen"
+distfiles="https://git.sr.ht/~geb/numen/archive/${version}.tar.gz"
+checksum=8829139beec06c1c661fb0edeae83bc43db84ae9be73463f203fd8e762f13e56
+
+system_accounts="_numen"
+_numen_groups="input audio"
+
+pre_build() {
+	# For the vosk-api package (openblas).
+	export CGO_LDFLAGS="-fopenmp"
+}
+
+post_install() {
+	vmkdir usr/libexec/numen
+	mv "${DESTDIR}/usr/bin/numen" "${DESTDIR}/usr/libexec/numen/speech"
+	mv handlers "${DESTDIR}/usr/libexec/speech"
+	vbin "${FILESDIR}/run" numen
+
+	vmkdir etc/numen
+	mv phrases "${DESTDIR}/etc/numen/phrases"
+	vbin displaying
+	scdoc < numen.1.scd > numen.1
+	vman numen.1
+}

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

* Re: [PR PATCH] [Updated] New package: numen-0.1
  2022-10-04 16:56 [PR PATCH] New package: numen-0.1 JohnGebbie
  2022-10-09  9:49 ` [PR PATCH] [Updated] " JohnGebbie
  2022-10-09 14:30 ` JohnGebbie
@ 2022-10-09 16:38 ` JohnGebbie
  2022-10-14  9:27 ` JohnGebbie
                   ` (82 subsequent siblings)
  85 siblings, 0 replies; 87+ messages in thread
From: JohnGebbie @ 2022-10-09 16:38 UTC (permalink / raw)
  To: ml

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

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

https://github.com/JohnGebbie/void-packages numen3
https://github.com/void-linux/void-packages/pull/39716

New package: numen-0.1
#### Testing the changes
- I tested the changes in this PR: **NO**

#### 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'm still working on this. I put it here so I could link to it in a question.

This depends on https://github.com/void-linux/void-packages/pull/38268 and https://github.com/void-linux/void-packages/pull/39015.

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

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

From 48671bfb6d8b39d9a0cd2c3811923730460af698 Mon Sep 17 00:00:00 2001
From: John Gebbie <me@johngebbie.com>
Date: Tue, 4 Oct 2022 17:50:42 +0100
Subject: [PATCH] New package: numen-0.1

---
 srcpkgs/numen/files/numen/conf      |  6 +++++
 srcpkgs/numen/files/numen/control/t |  2 ++
 srcpkgs/numen/files/numen/log/run   |  2 ++
 srcpkgs/numen/files/numen/run       |  7 +++++
 srcpkgs/numen/files/run             | 10 +++++++
 srcpkgs/numen/template              | 41 +++++++++++++++++++++++++++++
 6 files changed, 68 insertions(+)
 create mode 100644 srcpkgs/numen/files/numen/conf
 create mode 100755 srcpkgs/numen/files/numen/control/t
 create mode 100755 srcpkgs/numen/files/numen/log/run
 create mode 100755 srcpkgs/numen/files/numen/run
 create mode 100644 srcpkgs/numen/files/run
 create mode 100644 srcpkgs/numen/template

diff --git a/srcpkgs/numen/files/numen/conf b/srcpkgs/numen/files/numen/conf
new file mode 100644
index 000000000000..f4ec56bcfb54
--- /dev/null
+++ b/srcpkgs/numen/files/numen/conf
@@ -0,0 +1,6 @@
+# Example to run numen as a specific user:
+
+# NUMENUSER=john
+# export XAUTHORITY="/run/user/$(id -u $NUMENUSER)/Xauthority"
+# export XDG_DATA_HOME="/home/$NUMENUSER/.local/share"
+# OPTS=$(find "/home/$NUMENUSER/.config/numen/phrases/" -maxdepth 1 \! -type d)
diff --git a/srcpkgs/numen/files/numen/control/t b/srcpkgs/numen/files/numen/control/t
new file mode 100755
index 000000000000..eeeb1555652a
--- /dev/null
+++ b/srcpkgs/numen/files/numen/control/t
@@ -0,0 +1,2 @@
+#!/bin/sh
+pkill -P $(cat supervise/pid)
diff --git a/srcpkgs/numen/files/numen/log/run b/srcpkgs/numen/files/numen/log/run
new file mode 100755
index 000000000000..01131544c6d3
--- /dev/null
+++ b/srcpkgs/numen/files/numen/log/run
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec logger -p daemon.info -t numen
diff --git a/srcpkgs/numen/files/numen/run b/srcpkgs/numen/files/numen/run
new file mode 100755
index 000000000000..0f8f870dc1a2
--- /dev/null
+++ b/srcpkgs/numen/files/numen/run
@@ -0,0 +1,7 @@
+#!/bin/sh
+exec 2>&1
+[ -r ./conf ] && . ./conf
+: ${NUMENUSER:=_numen}
+mkdir -p /usr/share/numen
+chown $NUMENUSER:$NUMENUSER /usr/share/numen || exit
+XDG_DATA_HOME="${XDG_DATA_HOME:-/usr/share}" exec chpst -u $NUMENUSER:input:audio /usr/bin/numen ${OPTS}
diff --git a/srcpkgs/numen/files/run b/srcpkgs/numen/files/run
new file mode 100644
index 000000000000..a21a244dad58
--- /dev/null
+++ b/srcpkgs/numen/files/run
@@ -0,0 +1,10 @@
+#!/bin/sh
+cd /usr/libexec/numen || exit
+if [ -z "$NUMEN_MODEL" ]; then
+	if [ -e /usr/share/vosk-models/small-en-us ]; then
+		export NUMEN_MODEL=/usr/share/vosk-models/small-en-us
+	else
+		echo 'numen: You need to install the vosk-model-small-en-us package or set $NUMEN_MODEL.' > /dev/stderr
+	fi
+fi
+exec ./numen "$@"
diff --git a/srcpkgs/numen/template b/srcpkgs/numen/template
new file mode 100644
index 000000000000..238461a70046
--- /dev/null
+++ b/srcpkgs/numen/template
@@ -0,0 +1,41 @@
+# Template file for 'numen'
+pkgname=numen
+version=0.1
+revision=1
+build_style=go
+go_import_path="git.sr.ht/~geb/numen"
+hostmakedepends="scdoc"
+makedepends="vosk-api libgomp-devel"
+depends="alsa-utils xdotool xset ydotool"
+short_desc="Voice control for handsfree computing"
+maintainer="John Gebbie <me@johngebbie.com>"
+license="GPL-3.0-only"
+homepage="https://sr.ht/~geb/numen"
+distfiles="https://git.sr.ht/~geb/numen/archive/${version}.tar.gz"
+checksum=8829139beec06c1c661fb0edeae83bc43db84ae9be73463f203fd8e762f13e56
+
+system_accounts="_numen"
+_numen_groups="input audio"
+
+pre_build() {
+	# For the vosk-api package (openblas).
+	export CGO_LDFLAGS="-fopenmp"
+}
+
+post_install() {
+	vmkdir etc/numen
+	mv phrases "${DESTDIR}/etc/numen/phrases"
+	mv displaying "${DESTDIR}/usr/bin"
+	scdoc < numen.1.scd > numen.1
+	vman numen.1
+
+	vmkdir usr/libexec/numen
+	mv "${DESTDIR}/usr/bin/numen" "${DESTDIR}/usr/libexec/numen/speech"
+	mv handlers "${DESTDIR}/usr/libexec/numen"
+	for f in *; do
+		if [ -f "$f" ] && [ -x "$f" ]; then
+			mv "$f" "${DESTDIR}/usr/libexec/numen/$f"
+		fi
+	done
+	vbin "${FILESDIR}/run" numen
+}

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

* Re: [PR PATCH] [Updated] New package: numen-0.1
  2022-10-04 16:56 [PR PATCH] New package: numen-0.1 JohnGebbie
                   ` (2 preceding siblings ...)
  2022-10-09 16:38 ` JohnGebbie
@ 2022-10-14  9:27 ` JohnGebbie
  2022-10-14  9:53 ` JohnGebbie
                   ` (81 subsequent siblings)
  85 siblings, 0 replies; 87+ messages in thread
From: JohnGebbie @ 2022-10-14  9:27 UTC (permalink / raw)
  To: ml

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

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

https://github.com/JohnGebbie/void-packages numen3
https://github.com/void-linux/void-packages/pull/39716

New package: numen-0.1
#### Testing the changes
- I tested the changes in this PR: **NO**

#### 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'm still working on this. I put it here so I could link to it in a question.

This depends on https://github.com/void-linux/void-packages/pull/38268 and https://github.com/void-linux/void-packages/pull/39015.

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

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

From e016c366990c4258e10ec580947e2a702e409847 Mon Sep 17 00:00:00 2001
From: John Gebbie <me@johngebbie.com>
Date: Tue, 4 Oct 2022 17:50:42 +0100
Subject: [PATCH] New package: numen-0.1

---
 srcpkgs/numen/files/numen/conf      |  6 ++++
 srcpkgs/numen/files/numen/control/t |  2 ++
 srcpkgs/numen/files/numen/log/run   |  2 ++
 srcpkgs/numen/files/numen/run       |  7 ++++
 srcpkgs/numen/files/run             | 10 ++++++
 srcpkgs/numen/template              | 50 +++++++++++++++++++++++++++++
 6 files changed, 77 insertions(+)
 create mode 100644 srcpkgs/numen/files/numen/conf
 create mode 100755 srcpkgs/numen/files/numen/control/t
 create mode 100755 srcpkgs/numen/files/numen/log/run
 create mode 100755 srcpkgs/numen/files/numen/run
 create mode 100644 srcpkgs/numen/files/run
 create mode 100644 srcpkgs/numen/template

diff --git a/srcpkgs/numen/files/numen/conf b/srcpkgs/numen/files/numen/conf
new file mode 100644
index 000000000000..f4ec56bcfb54
--- /dev/null
+++ b/srcpkgs/numen/files/numen/conf
@@ -0,0 +1,6 @@
+# Example to run numen as a specific user:
+
+# NUMENUSER=john
+# export XAUTHORITY="/run/user/$(id -u $NUMENUSER)/Xauthority"
+# export XDG_DATA_HOME="/home/$NUMENUSER/.local/share"
+# OPTS=$(find "/home/$NUMENUSER/.config/numen/phrases/" -maxdepth 1 \! -type d)
diff --git a/srcpkgs/numen/files/numen/control/t b/srcpkgs/numen/files/numen/control/t
new file mode 100755
index 000000000000..eeeb1555652a
--- /dev/null
+++ b/srcpkgs/numen/files/numen/control/t
@@ -0,0 +1,2 @@
+#!/bin/sh
+pkill -P $(cat supervise/pid)
diff --git a/srcpkgs/numen/files/numen/log/run b/srcpkgs/numen/files/numen/log/run
new file mode 100755
index 000000000000..01131544c6d3
--- /dev/null
+++ b/srcpkgs/numen/files/numen/log/run
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec logger -p daemon.info -t numen
diff --git a/srcpkgs/numen/files/numen/run b/srcpkgs/numen/files/numen/run
new file mode 100755
index 000000000000..0f8f870dc1a2
--- /dev/null
+++ b/srcpkgs/numen/files/numen/run
@@ -0,0 +1,7 @@
+#!/bin/sh
+exec 2>&1
+[ -r ./conf ] && . ./conf
+: ${NUMENUSER:=_numen}
+mkdir -p /usr/share/numen
+chown $NUMENUSER:$NUMENUSER /usr/share/numen || exit
+XDG_DATA_HOME="${XDG_DATA_HOME:-/usr/share}" exec chpst -u $NUMENUSER:input:audio /usr/bin/numen ${OPTS}
diff --git a/srcpkgs/numen/files/run b/srcpkgs/numen/files/run
new file mode 100644
index 000000000000..a21a244dad58
--- /dev/null
+++ b/srcpkgs/numen/files/run
@@ -0,0 +1,10 @@
+#!/bin/sh
+cd /usr/libexec/numen || exit
+if [ -z "$NUMEN_MODEL" ]; then
+	if [ -e /usr/share/vosk-models/small-en-us ]; then
+		export NUMEN_MODEL=/usr/share/vosk-models/small-en-us
+	else
+		echo 'numen: You need to install the vosk-model-small-en-us package or set $NUMEN_MODEL.' > /dev/stderr
+	fi
+fi
+exec ./numen "$@"
diff --git a/srcpkgs/numen/template b/srcpkgs/numen/template
new file mode 100644
index 000000000000..7f4719707d4e
--- /dev/null
+++ b/srcpkgs/numen/template
@@ -0,0 +1,50 @@
+# Template file for 'numen'
+pkgname=numen
+version=0.1
+revision=1
+build_style=go
+go_import_path="git.sr.ht/~geb/numen"
+hostmakedepends="scdoc"
+makedepends="vosk-api libgomp-devel"
+depends="alsa-utils xdotool xset ydotool"
+short_desc="Voice control for handsfree computing"
+maintainer="John Gebbie <me@johngebbie.com>"
+license="GPL-3.0-only"
+homepage="https://sr.ht/~geb/numen"
+distfiles="https://git.sr.ht/~geb/numen/archive/${version}.tar.gz"
+checksum=8829139beec06c1c661fb0edeae83bc43db84ae9be73463f203fd8e762f13e56
+
+if [ "$XBPS_TARGET_LIBC" = musl ]; then
+	makedepends+=" libexecinfo-devel"
+fi
+
+system_accounts="_numen"
+_numen_groups="input audio"
+
+pre_build() {
+	# for the vosk-api package (openblas)
+	export CGO_LDFLAGS="$CGO_LDFLAGS -fopenmp"
+
+	if [ "$XBPS_TARGET_LIBC" = musl ]; then
+		# for the vosk-api package (openfst)
+		export CGO_LDFLAGS="$CGO_LDFLAGS -lexecinfo"
+	fi
+}
+
+post_install() {
+	vmkdir etc/numen
+	mv phrases "${DESTDIR}/etc/numen/phrases"
+	mv displaying "${DESTDIR}/usr/bin"
+	scdoc < numen.1.scd > numen.1
+	vman numen.1
+
+	vmkdir usr/libexec/numen
+	mv "${DESTDIR}/usr/bin/numen" "${DESTDIR}/usr/libexec/numen/speech"
+	mv handlers "${DESTDIR}/usr/libexec/numen"
+	for f in *; do
+		if [ -f "$f" ] && [ -x "$f" ]; then
+			mv "$f" "${DESTDIR}/usr/libexec/numen/$f"
+		fi
+	done
+	vbin "${FILESDIR}/run" numen
+}

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

* Re: [PR PATCH] [Updated] New package: numen-0.1
  2022-10-04 16:56 [PR PATCH] New package: numen-0.1 JohnGebbie
                   ` (3 preceding siblings ...)
  2022-10-14  9:27 ` JohnGebbie
@ 2022-10-14  9:53 ` JohnGebbie
  2022-10-30 11:20 ` JohnGebbie
                   ` (80 subsequent siblings)
  85 siblings, 0 replies; 87+ messages in thread
From: JohnGebbie @ 2022-10-14  9:53 UTC (permalink / raw)
  To: ml

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

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

https://github.com/JohnGebbie/void-packages numen3
https://github.com/void-linux/void-packages/pull/39716

New package: numen-0.1
#### Testing the changes
- I tested the changes in this PR: **NO**

#### 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'm still working on this. I put it here so I could link to it in a question.

This depends on https://github.com/void-linux/void-packages/pull/38268 and https://github.com/void-linux/void-packages/pull/39015.

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

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

From 9cf58664c025925430ae1892fd82a6ee5ff95c26 Mon Sep 17 00:00:00 2001
From: John Gebbie <me@johngebbie.com>
Date: Tue, 4 Oct 2022 17:50:42 +0100
Subject: [PATCH] New package: numen-0.1

---
 srcpkgs/numen/files/numen/conf      |  6 ++++
 srcpkgs/numen/files/numen/control/t |  2 ++
 srcpkgs/numen/files/numen/log/run   |  2 ++
 srcpkgs/numen/files/numen/run       |  7 ++++
 srcpkgs/numen/files/run             | 10 ++++++
 srcpkgs/numen/template              | 52 +++++++++++++++++++++++++++++
 6 files changed, 79 insertions(+)
 create mode 100644 srcpkgs/numen/files/numen/conf
 create mode 100755 srcpkgs/numen/files/numen/control/t
 create mode 100755 srcpkgs/numen/files/numen/log/run
 create mode 100755 srcpkgs/numen/files/numen/run
 create mode 100644 srcpkgs/numen/files/run
 create mode 100644 srcpkgs/numen/template

diff --git a/srcpkgs/numen/files/numen/conf b/srcpkgs/numen/files/numen/conf
new file mode 100644
index 000000000000..f4ec56bcfb54
--- /dev/null
+++ b/srcpkgs/numen/files/numen/conf
@@ -0,0 +1,6 @@
+# Example to run numen as a specific user:
+
+# NUMENUSER=john
+# export XAUTHORITY="/run/user/$(id -u $NUMENUSER)/Xauthority"
+# export XDG_DATA_HOME="/home/$NUMENUSER/.local/share"
+# OPTS=$(find "/home/$NUMENUSER/.config/numen/phrases/" -maxdepth 1 \! -type d)
diff --git a/srcpkgs/numen/files/numen/control/t b/srcpkgs/numen/files/numen/control/t
new file mode 100755
index 000000000000..eeeb1555652a
--- /dev/null
+++ b/srcpkgs/numen/files/numen/control/t
@@ -0,0 +1,2 @@
+#!/bin/sh
+pkill -P $(cat supervise/pid)
diff --git a/srcpkgs/numen/files/numen/log/run b/srcpkgs/numen/files/numen/log/run
new file mode 100755
index 000000000000..01131544c6d3
--- /dev/null
+++ b/srcpkgs/numen/files/numen/log/run
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec logger -p daemon.info -t numen
diff --git a/srcpkgs/numen/files/numen/run b/srcpkgs/numen/files/numen/run
new file mode 100755
index 000000000000..0f8f870dc1a2
--- /dev/null
+++ b/srcpkgs/numen/files/numen/run
@@ -0,0 +1,7 @@
+#!/bin/sh
+exec 2>&1
+[ -r ./conf ] && . ./conf
+: ${NUMENUSER:=_numen}
+mkdir -p /usr/share/numen
+chown $NUMENUSER:$NUMENUSER /usr/share/numen || exit
+XDG_DATA_HOME="${XDG_DATA_HOME:-/usr/share}" exec chpst -u $NUMENUSER:input:audio /usr/bin/numen ${OPTS}
diff --git a/srcpkgs/numen/files/run b/srcpkgs/numen/files/run
new file mode 100644
index 000000000000..a21a244dad58
--- /dev/null
+++ b/srcpkgs/numen/files/run
@@ -0,0 +1,10 @@
+#!/bin/sh
+cd /usr/libexec/numen || exit
+if [ -z "$NUMEN_MODEL" ]; then
+	if [ -e /usr/share/vosk-models/small-en-us ]; then
+		export NUMEN_MODEL=/usr/share/vosk-models/small-en-us
+	else
+		echo 'numen: You need to install the vosk-model-small-en-us package or set $NUMEN_MODEL.' > /dev/stderr
+	fi
+fi
+exec ./numen "$@"
diff --git a/srcpkgs/numen/template b/srcpkgs/numen/template
new file mode 100644
index 000000000000..808956e97052
--- /dev/null
+++ b/srcpkgs/numen/template
@@ -0,0 +1,52 @@
+# Template file for 'numen'
+pkgname=numen
+version=0.1
+revision=1
+build_style=go
+go_import_path="git.sr.ht/~geb/numen"
+hostmakedepends="scdoc"
+makedepends="vosk-api libgomp-devel"
+depends="alsa-utils xdotool xset ydotool"
+short_desc="Voice control for handsfree computing"
+maintainer="John Gebbie <me@johngebbie.com>"
+license="GPL-3.0-only"
+homepage="https://sr.ht/~geb/numen"
+distfiles="https://git.sr.ht/~geb/numen/archive/${version}.tar.gz"
+checksum=8829139beec06c1c661fb0edeae83bc43db84ae9be73463f203fd8e762f13e56
+
+if [ "$XBPS_TARGET_LIBC" = musl ]; then
+	makedepends+=" libexecinfo-devel"
+fi
+
+system_accounts="_numen"
+_numen_groups="input audio"
+
+pre_build() {
+	# for the vosk-api package (openblas)
+	export CGO_LDFLAGS="$CGO_LDFLAGS -fopenmp"
+
+	if [ "$XBPS_TARGET_LIBC" = musl ]; then
+		# for the vosk-api package (openfst)
+		export CGO_LDFLAGS="$CGO_LDFLAGS -lexecinfo"
+	fi
+}
+
+post_install() {
+	vmkdir etc/numen
+	mv phrases "${DESTDIR}/etc/numen/phrases"
+	mv displaying "${DESTDIR}/usr/bin"
+	scdoc < numen.1.scd > numen.1
+	vman numen.1
+
+	vmkdir usr/libexec/numen
+	mv "${DESTDIR}/usr/bin/numen" "${DESTDIR}/usr/libexec/numen/speech"
+	mv handlers "${DESTDIR}/usr/libexec/numen"
+	for f in *; do
+		if [ -f "$f" ] && [ -x "$f" ]; then
+			mv "$f" "${DESTDIR}/usr/libexec/numen/$f"
+		fi
+	done
+	vbin "${FILESDIR}/run" numen
+
+	vsv numen
+}

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

* Re: [PR PATCH] [Updated] New package: numen-0.1
  2022-10-04 16:56 [PR PATCH] New package: numen-0.1 JohnGebbie
                   ` (4 preceding siblings ...)
  2022-10-14  9:53 ` JohnGebbie
@ 2022-10-30 11:20 ` JohnGebbie
  2022-10-31 12:08 ` JohnGebbie
                   ` (79 subsequent siblings)
  85 siblings, 0 replies; 87+ messages in thread
From: JohnGebbie @ 2022-10-30 11:20 UTC (permalink / raw)
  To: ml

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

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

https://github.com/JohnGebbie/void-packages numen3
https://github.com/void-linux/void-packages/pull/39716

New package: numen-0.1
#### Testing the changes
- I tested the changes in this PR: **NO**

#### 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'm still working on this. I put it here so I could link to it in a question.

This depends on https://github.com/void-linux/void-packages/pull/40115 and https://github.com/void-linux/void-packages/pull/39015.

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

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

From 39f75c824c8b3c1bd34529543a86a4143bddf4e2 Mon Sep 17 00:00:00 2001
From: John Gebbie <me@johngebbie.com>
Date: Tue, 4 Oct 2022 17:50:42 +0100
Subject: [PATCH] New package: numen-0.1

---
 srcpkgs/numen/files/numen/conf    | 13 +++++++++++
 srcpkgs/numen/files/numen/log/run |  2 ++
 srcpkgs/numen/files/numen/run     | 11 +++++++++
 srcpkgs/numen/files/run           | 10 +++++++++
 srcpkgs/numen/template            | 37 +++++++++++++++++++++++++++++++
 5 files changed, 73 insertions(+)
 create mode 100644 srcpkgs/numen/files/numen/conf
 create mode 100755 srcpkgs/numen/files/numen/log/run
 create mode 100755 srcpkgs/numen/files/numen/run
 create mode 100644 srcpkgs/numen/files/run
 create mode 100644 srcpkgs/numen/template

diff --git a/srcpkgs/numen/files/numen/conf b/srcpkgs/numen/files/numen/conf
new file mode 100644
index 000000000000..69bb15189699
--- /dev/null
+++ b/srcpkgs/numen/files/numen/conf
@@ -0,0 +1,13 @@
+# Example to run numen as a specific user:
+
+# NUMENUSER=john
+# NUMENGROUP="$NUMENUSER"
+# DATA_HOME="/home/$NUMENUSER/.local/share"
+# export XAUTHORITY="/run/user/$(id -u $NUMENUSER)/Xauthority"
+# OPTS=$(
+# 	if [ -d "/home/$NUMENUSER/.config/numen/phrases" ]; then
+# 		printf %s\\n "/home/$NUMENUSER/.config/numen/phrases/"*.phrases
+# 	else
+# 		printf %s\\n /etc/numen/phrases/*.phrases
+# 	fi
+# )
diff --git a/srcpkgs/numen/files/numen/log/run b/srcpkgs/numen/files/numen/log/run
new file mode 100755
index 000000000000..f77a7f813f11
--- /dev/null
+++ b/srcpkgs/numen/files/numen/log/run
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec vlogger -p daemon.info -t numen
diff --git a/srcpkgs/numen/files/numen/run b/srcpkgs/numen/files/numen/run
new file mode 100755
index 000000000000..84d8165ad3fb
--- /dev/null
+++ b/srcpkgs/numen/files/numen/run
@@ -0,0 +1,11 @@
+#!/bin/sh
+exec 2>&1
+[ -r ./conf ] && . ./conf
+: ${NUMENUSER:=_numen}
+: ${NUMENGROUP:=_numen}
+if [ -z "$DATA_HOME" ]; then
+	DATA_HOME=/usr/share
+	rm -rf "$DATA_HOME/numen" && mkdir -p "$DATA_HOME/numen"
+	chown "$NUMENUSER:$NUMENGROUP" "$DATA_HOME/numen"
+fi
+XDG_DATA_HOME="$DATA_HOME" exec chpst -u "$NUMENUSER:$NUMENGROUP:input:audio" numen ${OPTS}
diff --git a/srcpkgs/numen/files/run b/srcpkgs/numen/files/run
new file mode 100644
index 000000000000..a21a244dad58
--- /dev/null
+++ b/srcpkgs/numen/files/run
@@ -0,0 +1,10 @@
+#!/bin/sh
+cd /usr/libexec/numen || exit
+if [ -z "$NUMEN_MODEL" ]; then
+	if [ -e /usr/share/vosk-models/small-en-us ]; then
+		export NUMEN_MODEL=/usr/share/vosk-models/small-en-us
+	else
+		echo 'numen: You need to install the vosk-model-small-en-us package or set $NUMEN_MODEL.' > /dev/stderr
+	fi
+fi
+exec ./numen "$@"
diff --git a/srcpkgs/numen/template b/srcpkgs/numen/template
new file mode 100644
index 000000000000..c9aa0918853d
--- /dev/null
+++ b/srcpkgs/numen/template
@@ -0,0 +1,37 @@
+# Template file for 'numen'
+pkgname=numen
+version=tmp2
+revision=1
+build_style=go
+go_import_path="git.sr.ht/~geb/numen"
+hostmakedepends="scdoc"
+makedepends="vosk-api libgomp-devel"
+depends="alsa-utils dmenu dotool xdotool xset"
+short_desc="Voice control for handsfree computing"
+maintainer="John Gebbie <me@johngebbie.com>"
+license="GPL-3.0-only"
+homepage="https://sr.ht/~geb/numen"
+distfiles="https://git.sr.ht/~geb/numen/archive/${version}.tar.gz"
+checksum=1bade9c25261b6199cca4cf73c87ba5ad1c6a4018c7fc6ca33f7e48c29400399
+
+if [ "$XBPS_TARGET_LIBC" = musl ]; then
+	makedepends+=" libexecinfo-devel"
+fi
+
+system_accounts="_numen"
+
+pre_build() {
+	# for the vosk-api package (openblas)
+	export CGO_LDFLAGS="$CGO_LDFLAGS -fopenmp"
+
+	if [ "$XBPS_TARGET_LIBC" = musl ]; then
+		# for the vosk-api package (openfst)
+		export CGO_LDFLAGS="$CGO_LDFLAGS -lexecinfo"
+	fi
+}
+
+post_install() {
+	mv "${DESTDIR}/usr/bin/numen" speech
+	PACKAGING=true ./install-numen.sh "${DESTDIR}" /usr/bin
+	vsv numen
+}

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

* Re: [PR PATCH] [Updated] New package: numen-0.1
  2022-10-04 16:56 [PR PATCH] New package: numen-0.1 JohnGebbie
                   ` (5 preceding siblings ...)
  2022-10-30 11:20 ` JohnGebbie
@ 2022-10-31 12:08 ` JohnGebbie
  2022-10-31 12:22 ` New package: numen-0.2 JohnGebbie
                   ` (78 subsequent siblings)
  85 siblings, 0 replies; 87+ messages in thread
From: JohnGebbie @ 2022-10-31 12:08 UTC (permalink / raw)
  To: ml

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

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

https://github.com/JohnGebbie/void-packages numen3
https://github.com/void-linux/void-packages/pull/39716

New package: numen-0.1
#### Testing the changes
- I tested the changes in this PR: **NO**

#### 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'm still working on this. I put it here so I could link to it in a question.

This depends on https://github.com/void-linux/void-packages/pull/40115 and https://github.com/void-linux/void-packages/pull/39015.

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

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

From a4991c304db05a8b03307dfafd92937b47e9f2a7 Mon Sep 17 00:00:00 2001
From: John Gebbie <me@johngebbie.com>
Date: Tue, 4 Oct 2022 17:50:42 +0100
Subject: [PATCH] New package: numen-0.2

---
 srcpkgs/numen/files/numen/conf    | 13 +++++++++++
 srcpkgs/numen/files/numen/log/run |  2 ++
 srcpkgs/numen/files/numen/run     | 11 +++++++++
 srcpkgs/numen/template            | 37 +++++++++++++++++++++++++++++++
 4 files changed, 63 insertions(+)
 create mode 100644 srcpkgs/numen/files/numen/conf
 create mode 100755 srcpkgs/numen/files/numen/log/run
 create mode 100755 srcpkgs/numen/files/numen/run
 create mode 100644 srcpkgs/numen/template

diff --git a/srcpkgs/numen/files/numen/conf b/srcpkgs/numen/files/numen/conf
new file mode 100644
index 000000000000..635f5b0aa313
--- /dev/null
+++ b/srcpkgs/numen/files/numen/conf
@@ -0,0 +1,13 @@
+# Example to run the service as a specific user:
+
+# NUMENUSER=john
+# NUMENGROUP="$NUMENUSER"
+# DATA_HOME="/home/$NUMENUSER/.local/share"
+# export XAUTHORITY="/run/user/$(id -u $NUMENUSER)/Xauthority"
+# OPTS=$(
+# 	if [ -d "/home/$NUMENUSER/.config/numen/phrases" ]; then
+# 		printf %s\\n "/home/$NUMENUSER/.config/numen/phrases/"*.phrases
+# 	else
+# 		printf %s\\n /etc/numen/phrases/*.phrases
+# 	fi
+# )
diff --git a/srcpkgs/numen/files/numen/log/run b/srcpkgs/numen/files/numen/log/run
new file mode 100755
index 000000000000..f77a7f813f11
--- /dev/null
+++ b/srcpkgs/numen/files/numen/log/run
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec vlogger -p daemon.info -t numen
diff --git a/srcpkgs/numen/files/numen/run b/srcpkgs/numen/files/numen/run
new file mode 100755
index 000000000000..84d8165ad3fb
--- /dev/null
+++ b/srcpkgs/numen/files/numen/run
@@ -0,0 +1,11 @@
+#!/bin/sh
+exec 2>&1
+[ -r ./conf ] && . ./conf
+: ${NUMENUSER:=_numen}
+: ${NUMENGROUP:=_numen}
+if [ -z "$DATA_HOME" ]; then
+	DATA_HOME=/usr/share
+	rm -rf "$DATA_HOME/numen" && mkdir -p "$DATA_HOME/numen"
+	chown "$NUMENUSER:$NUMENGROUP" "$DATA_HOME/numen"
+fi
+XDG_DATA_HOME="$DATA_HOME" exec chpst -u "$NUMENUSER:$NUMENGROUP:input:audio" numen ${OPTS}
diff --git a/srcpkgs/numen/template b/srcpkgs/numen/template
new file mode 100644
index 000000000000..442a541bdf4f
--- /dev/null
+++ b/srcpkgs/numen/template
@@ -0,0 +1,37 @@
+# Template file for 'numen'
+pkgname=numen
+version=0.2
+revision=1
+build_style=go
+go_import_path="git.sr.ht/~geb/numen"
+hostmakedepends="scdoc"
+makedepends="vosk-api libgomp-devel"
+depends="alsa-utils dmenu dotool xdotool xset"
+short_desc="Voice control for handsfree computing"
+maintainer="John Gebbie <me@johngebbie.com>"
+license="GPL-3.0-only"
+homepage="https://numen.johngebbie.com"
+distfiles="https://git.sr.ht/~geb/numen/archive/${version}.tar.gz"
+checksum=05d814725767395af9b0ef6e5d9cf944a3cc4cf9245dce87b311aa1fb40efdef
+
+if [ "$XBPS_TARGET_LIBC" = musl ]; then
+	makedepends+=" libexecinfo-devel"
+fi
+
+system_accounts="_numen"
+
+pre_build() {
+	# for the vosk-api package (openblas)
+	export CGO_LDFLAGS="$CGO_LDFLAGS -fopenmp"
+
+	if [ "$XBPS_TARGET_LIBC" = musl ]; then
+		# for the vosk-api package (openfst)
+		export CGO_LDFLAGS="$CGO_LDFLAGS -lexecinfo"
+	fi
+}
+
+post_install() {
+	mv "${DESTDIR}/usr/bin/numen" speech
+	PACKAGING=true ./install-numen.sh "${DESTDIR}" /usr/bin
+	vsv numen
+}

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

* Re: New package: numen-0.2
  2022-10-04 16:56 [PR PATCH] New package: numen-0.1 JohnGebbie
                   ` (6 preceding siblings ...)
  2022-10-31 12:08 ` JohnGebbie
@ 2022-10-31 12:22 ` JohnGebbie
  2022-11-09 17:25 ` [PR PATCH] [Updated] " JohnGebbie
                   ` (77 subsequent siblings)
  85 siblings, 0 replies; 87+ messages in thread
From: JohnGebbie @ 2022-10-31 12:22 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/39716#issuecomment-1297007293

Comment:
this is ready to merge when vosk-api has been: https://github.com/void-linux/void-packages/pull/39015

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

* Re: [PR PATCH] [Updated] New package: numen-0.2
  2022-10-04 16:56 [PR PATCH] New package: numen-0.1 JohnGebbie
                   ` (7 preceding siblings ...)
  2022-10-31 12:22 ` New package: numen-0.2 JohnGebbie
@ 2022-11-09 17:25 ` JohnGebbie
  2022-11-09 17:29 ` New package: numen-0.3 JohnGebbie
                   ` (76 subsequent siblings)
  85 siblings, 0 replies; 87+ messages in thread
From: JohnGebbie @ 2022-11-09 17:25 UTC (permalink / raw)
  To: ml

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

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

https://github.com/JohnGebbie/void-packages numen3
https://github.com/void-linux/void-packages/pull/39716

New package: numen-0.2
#### Testing the changes
- I tested the changes in this PR: **YES**

#### 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)

This is my voice control for desktop computing without a keyboard or mouse.
This template is ready except it depends on the vosk-api which is to be merged: https://github.com/void-linux/void-packages/pull/39015

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

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

From a97952093f8b421ea2a0e37273c50566f9c82bf4 Mon Sep 17 00:00:00 2001
From: John Gebbie <me@johngebbie.com>
Date: Tue, 4 Oct 2022 17:50:42 +0100
Subject: [PATCH] New package: numen-0.3

---
 srcpkgs/numen/files/numen/conf    |  7 ++++++
 srcpkgs/numen/files/numen/log/run |  2 ++
 srcpkgs/numen/files/numen/run     | 11 +++++++++
 srcpkgs/numen/template            | 37 +++++++++++++++++++++++++++++++
 4 files changed, 57 insertions(+)
 create mode 100644 srcpkgs/numen/files/numen/conf
 create mode 100755 srcpkgs/numen/files/numen/log/run
 create mode 100755 srcpkgs/numen/files/numen/run
 create mode 100644 srcpkgs/numen/template

diff --git a/srcpkgs/numen/files/numen/conf b/srcpkgs/numen/files/numen/conf
new file mode 100644
index 000000000000..2d814396e2d9
--- /dev/null
+++ b/srcpkgs/numen/files/numen/conf
@@ -0,0 +1,7 @@
+# Example to run the service as a specific user:
+
+# NUMENUSER=john
+# NUMENGROUP="$NUMENUSER"
+# NUMENHOME="/home/$NUMENUSER"
+# export HOME="$NUMENHOME"
+# export XAUTHORITY="/run/user/$(id -u "$NUMENUSER")/Xauthority"
diff --git a/srcpkgs/numen/files/numen/log/run b/srcpkgs/numen/files/numen/log/run
new file mode 100755
index 000000000000..f77a7f813f11
--- /dev/null
+++ b/srcpkgs/numen/files/numen/log/run
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec vlogger -p daemon.info -t numen
diff --git a/srcpkgs/numen/files/numen/run b/srcpkgs/numen/files/numen/run
new file mode 100755
index 000000000000..da29f62904da
--- /dev/null
+++ b/srcpkgs/numen/files/numen/run
@@ -0,0 +1,11 @@
+#!/bin/sh
+exec 2>&1
+[ -r ./conf ] && . ./conf
+: ${NUMENUSER:=_numen}
+: ${NUMENGROUP:=_numen}
+if [ -z "$NUMENHOME" ]; then
+	mkdir -p /usr/share/numen
+	chown "$NUMENUSER:$NUMENGROUP" /usr/share/numen
+	export XDG_DATA_HOME=/usr/share
+fi
+exec chpst -u "$NUMENUSER:$NUMENGROUP:input:audio" numen ${OPTS}
diff --git a/srcpkgs/numen/template b/srcpkgs/numen/template
new file mode 100644
index 000000000000..21292741199a
--- /dev/null
+++ b/srcpkgs/numen/template
@@ -0,0 +1,37 @@
+# Template file for 'numen'
+pkgname=numen
+version=0.3
+revision=1
+build_style=go
+go_import_path="git.sr.ht/~geb/numen"
+hostmakedepends="scdoc"
+makedepends="vosk-api libgomp-devel"
+depends="alsa-utils dmenu dotool xdotool xset"
+short_desc="Voice control for handsfree computing"
+maintainer="John Gebbie <me@johngebbie.com>"
+license="GPL-3.0-only"
+homepage="https://numen.johngebbie.com"
+distfiles="https://git.sr.ht/~geb/numen/archive/${version}.tar.gz"
+checksum=b34a0164e015fb5df23cd7820a0ffb36c901f6e58830b897d41c89757bfa133f
+
+if [ "$XBPS_TARGET_LIBC" = musl ]; then
+	makedepends+=" libexecinfo-devel"
+fi
+
+system_accounts="_numen"
+
+pre_build() {
+	# for the vosk-api package (openblas)
+	export CGO_LDFLAGS="$CGO_LDFLAGS -fopenmp"
+
+	if [ "$XBPS_TARGET_LIBC" = musl ]; then
+		# for the vosk-api package (openfst)
+		export CGO_LDFLAGS="$CGO_LDFLAGS -lexecinfo"
+	fi
+}
+
+post_install() {
+	mv "${DESTDIR}/usr/bin/numen" speech
+	PACKAGING=true ./install-numen.sh "${DESTDIR}" /usr/bin
+	vsv numen
+}

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

* Re: New package: numen-0.3
  2022-10-04 16:56 [PR PATCH] New package: numen-0.1 JohnGebbie
                   ` (8 preceding siblings ...)
  2022-11-09 17:25 ` [PR PATCH] [Updated] " JohnGebbie
@ 2022-11-09 17:29 ` JohnGebbie
  2022-11-15 15:20 ` [PR PATCH] [Updated] " JohnGebbie
                   ` (75 subsequent siblings)
  85 siblings, 0 replies; 87+ messages in thread
From: JohnGebbie @ 2022-11-09 17:29 UTC (permalink / raw)
  To: ml

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

New comment by JohnGebbie on void-packages repository

https://github.com/void-linux/void-packages/pull/39716#issuecomment-1309097560

Comment:
updated the template to version 0.3.
this is ready to merge when vosk-api has been: https://github.com/void-linux/void-packages/pull/39015

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

* Re: [PR PATCH] [Updated] New package: numen-0.3
  2022-10-04 16:56 [PR PATCH] New package: numen-0.1 JohnGebbie
                   ` (9 preceding siblings ...)
  2022-11-09 17:29 ` New package: numen-0.3 JohnGebbie
@ 2022-11-15 15:20 ` JohnGebbie
  2022-12-04 16:06 ` JohnGebbie
                   ` (74 subsequent siblings)
  85 siblings, 0 replies; 87+ messages in thread
From: JohnGebbie @ 2022-11-15 15:20 UTC (permalink / raw)
  To: ml

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

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

https://github.com/JohnGebbie/void-packages numen3
https://github.com/void-linux/void-packages/pull/39716

New package: numen-0.3
#### Testing the changes
- I tested the changes in this PR: **YES**

#### 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)

This is my voice control for desktop computing without a keyboard or mouse.
This template is ready except it depends on the vosk-api which is to be merged: https://github.com/void-linux/void-packages/pull/39015

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

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

From 3852231f3fd5c5a6937d9106a3e41c1754824210 Mon Sep 17 00:00:00 2001
From: John Gebbie <me@johngebbie.com>
Date: Tue, 4 Oct 2022 17:50:42 +0100
Subject: [PATCH] New package: numen-0.3

---
 srcpkgs/numen/files/numen/conf    |  7 ++++++
 srcpkgs/numen/files/numen/log/run |  2 ++
 srcpkgs/numen/files/numen/run     | 11 +++++++++
 srcpkgs/numen/template            | 38 +++++++++++++++++++++++++++++++
 4 files changed, 58 insertions(+)
 create mode 100644 srcpkgs/numen/files/numen/conf
 create mode 100755 srcpkgs/numen/files/numen/log/run
 create mode 100755 srcpkgs/numen/files/numen/run
 create mode 100644 srcpkgs/numen/template

diff --git a/srcpkgs/numen/files/numen/conf b/srcpkgs/numen/files/numen/conf
new file mode 100644
index 000000000000..2d814396e2d9
--- /dev/null
+++ b/srcpkgs/numen/files/numen/conf
@@ -0,0 +1,7 @@
+# Example to run the service as a specific user:
+
+# NUMENUSER=john
+# NUMENGROUP="$NUMENUSER"
+# NUMENHOME="/home/$NUMENUSER"
+# export HOME="$NUMENHOME"
+# export XAUTHORITY="/run/user/$(id -u "$NUMENUSER")/Xauthority"
diff --git a/srcpkgs/numen/files/numen/log/run b/srcpkgs/numen/files/numen/log/run
new file mode 100755
index 000000000000..f77a7f813f11
--- /dev/null
+++ b/srcpkgs/numen/files/numen/log/run
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec vlogger -p daemon.info -t numen
diff --git a/srcpkgs/numen/files/numen/run b/srcpkgs/numen/files/numen/run
new file mode 100755
index 000000000000..da29f62904da
--- /dev/null
+++ b/srcpkgs/numen/files/numen/run
@@ -0,0 +1,11 @@
+#!/bin/sh
+exec 2>&1
+[ -r ./conf ] && . ./conf
+: ${NUMENUSER:=_numen}
+: ${NUMENGROUP:=_numen}
+if [ -z "$NUMENHOME" ]; then
+	mkdir -p /usr/share/numen
+	chown "$NUMENUSER:$NUMENGROUP" /usr/share/numen
+	export XDG_DATA_HOME=/usr/share
+fi
+exec chpst -u "$NUMENUSER:$NUMENGROUP:input:audio" numen ${OPTS}
diff --git a/srcpkgs/numen/template b/srcpkgs/numen/template
new file mode 100644
index 000000000000..6583c8d22432
--- /dev/null
+++ b/srcpkgs/numen/template
@@ -0,0 +1,38 @@
+# Template file for 'numen'
+pkgname=numen
+version=0.3
+revision=1
+build_style=go
+go_import_path="git.sr.ht/~geb/numen"
+hostmakedepends="scdoc"
+makedepends="vosk-api libgomp-devel"
+depends="alsa-utils dmenu dotool xdotool xset"
+short_desc="Voice control for handsfree computing"
+maintainer="John Gebbie <me@johngebbie.com>"
+license="GPL-3.0-only"
+homepage="https://numenvoice.com"
+changelog="https://git.sr.ht/~geb/numen/blob/master/CHANGELOG.md"
+distfiles="https://git.sr.ht/~geb/numen/archive/${version}.tar.gz"
+checksum=b34a0164e015fb5df23cd7820a0ffb36c901f6e58830b897d41c89757bfa133f
+
+if [ "$XBPS_TARGET_LIBC" = musl ]; then
+	makedepends+=" libexecinfo-devel"
+fi
+
+system_accounts="_numen"
+
+pre_build() {
+	# for the vosk-api package (openblas)
+	export CGO_LDFLAGS="$CGO_LDFLAGS -fopenmp"
+
+	if [ "$XBPS_TARGET_LIBC" = musl ]; then
+		# for the vosk-api package (openfst)
+		export CGO_LDFLAGS="$CGO_LDFLAGS -lexecinfo"
+	fi
+}
+
+post_install() {
+	mv "${DESTDIR}/usr/bin/numen" speech
+	PACKAGING=true ./install-numen.sh "${DESTDIR}" /usr/bin
+	vsv numen
+}

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

* Re: [PR PATCH] [Updated] New package: numen-0.3
  2022-10-04 16:56 [PR PATCH] New package: numen-0.1 JohnGebbie
                   ` (10 preceding siblings ...)
  2022-11-15 15:20 ` [PR PATCH] [Updated] " JohnGebbie
@ 2022-12-04 16:06 ` JohnGebbie
  2022-12-04 16:12 ` JohnGebbie
                   ` (73 subsequent siblings)
  85 siblings, 0 replies; 87+ messages in thread
From: JohnGebbie @ 2022-12-04 16:06 UTC (permalink / raw)
  To: ml

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

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

https://github.com/JohnGebbie/void-packages numen3
https://github.com/void-linux/void-packages/pull/39716

New package: numen-0.3
#### Testing the changes
- I tested the changes in this PR: **YES**

#### 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)

This is [my voice control](https://numenvoice.com) for handsfree computing, mainly for accessibility needs.
This template is ready except it depends on the vosk-api which is to be merged: https://github.com/void-linux/void-packages/pull/39015

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

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

From 53875c33a0e08ac64fb88e3a37ff2ea2808e6b62 Mon Sep 17 00:00:00 2001
From: John Gebbie <me@johngebbie.com>
Date: Tue, 4 Oct 2022 17:50:42 +0100
Subject: [PATCH] New package: numen-0.3

---
 srcpkgs/numen/files/numen/conf    |  7 ++++++
 srcpkgs/numen/files/numen/log/run |  2 ++
 srcpkgs/numen/files/numen/run     | 11 +++++++++
 srcpkgs/numen/template            | 38 +++++++++++++++++++++++++++++++
 4 files changed, 58 insertions(+)
 create mode 100644 srcpkgs/numen/files/numen/conf
 create mode 100755 srcpkgs/numen/files/numen/log/run
 create mode 100755 srcpkgs/numen/files/numen/run
 create mode 100644 srcpkgs/numen/template

diff --git a/srcpkgs/numen/files/numen/conf b/srcpkgs/numen/files/numen/conf
new file mode 100644
index 000000000000..2d814396e2d9
--- /dev/null
+++ b/srcpkgs/numen/files/numen/conf
@@ -0,0 +1,7 @@
+# Example to run the service as a specific user:
+
+# NUMENUSER=john
+# NUMENGROUP="$NUMENUSER"
+# NUMENHOME="/home/$NUMENUSER"
+# export HOME="$NUMENHOME"
+# export XAUTHORITY="/run/user/$(id -u "$NUMENUSER")/Xauthority"
diff --git a/srcpkgs/numen/files/numen/log/run b/srcpkgs/numen/files/numen/log/run
new file mode 100755
index 000000000000..f77a7f813f11
--- /dev/null
+++ b/srcpkgs/numen/files/numen/log/run
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec vlogger -p daemon.info -t numen
diff --git a/srcpkgs/numen/files/numen/run b/srcpkgs/numen/files/numen/run
new file mode 100755
index 000000000000..da29f62904da
--- /dev/null
+++ b/srcpkgs/numen/files/numen/run
@@ -0,0 +1,11 @@
+#!/bin/sh
+exec 2>&1
+[ -r ./conf ] && . ./conf
+: ${NUMENUSER:=_numen}
+: ${NUMENGROUP:=_numen}
+if [ -z "$NUMENHOME" ]; then
+	mkdir -p /usr/share/numen
+	chown "$NUMENUSER:$NUMENGROUP" /usr/share/numen
+	export XDG_DATA_HOME=/usr/share
+fi
+exec chpst -u "$NUMENUSER:$NUMENGROUP:input:audio" numen ${OPTS}
diff --git a/srcpkgs/numen/template b/srcpkgs/numen/template
new file mode 100644
index 000000000000..6583c8d22432
--- /dev/null
+++ b/srcpkgs/numen/template
@@ -0,0 +1,38 @@
+# Template file for 'numen'
+pkgname=numen
+version=0.3
+revision=1
+build_style=go
+go_import_path="git.sr.ht/~geb/numen"
+hostmakedepends="scdoc"
+makedepends="vosk-api libgomp-devel"
+depends="alsa-utils dmenu dotool xdotool xset"
+short_desc="Voice control for handsfree computing"
+maintainer="John Gebbie <me@johngebbie.com>"
+license="GPL-3.0-only"
+homepage="https://numenvoice.com"
+changelog="https://git.sr.ht/~geb/numen/blob/master/CHANGELOG.md"
+distfiles="https://git.sr.ht/~geb/numen/archive/${version}.tar.gz"
+checksum=b34a0164e015fb5df23cd7820a0ffb36c901f6e58830b897d41c89757bfa133f
+
+if [ "$XBPS_TARGET_LIBC" = musl ]; then
+	makedepends+=" libexecinfo-devel"
+fi
+
+system_accounts="_numen"
+
+pre_build() {
+	# for the vosk-api package (openblas)
+	export CGO_LDFLAGS="$CGO_LDFLAGS -fopenmp"
+
+	if [ "$XBPS_TARGET_LIBC" = musl ]; then
+		# for the vosk-api package (openfst)
+		export CGO_LDFLAGS="$CGO_LDFLAGS -lexecinfo"
+	fi
+}
+
+post_install() {
+	mv "${DESTDIR}/usr/bin/numen" speech
+	PACKAGING=true ./install-numen.sh "${DESTDIR}" /usr/bin
+	vsv numen
+}

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

* Re: [PR PATCH] [Updated] New package: numen-0.3
  2022-10-04 16:56 [PR PATCH] New package: numen-0.1 JohnGebbie
                   ` (11 preceding siblings ...)
  2022-12-04 16:06 ` JohnGebbie
@ 2022-12-04 16:12 ` JohnGebbie
  2022-12-05 10:04 ` JohnGebbie
                   ` (72 subsequent siblings)
  85 siblings, 0 replies; 87+ messages in thread
From: JohnGebbie @ 2022-12-04 16:12 UTC (permalink / raw)
  To: ml

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

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

https://github.com/JohnGebbie/void-packages numen3
https://github.com/void-linux/void-packages/pull/39716

New package: numen-0.3
#### Testing the changes
- I tested the changes in this PR: **YES**

#### 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)

This is [my voice control](https://numenvoice.com) for handsfree computing, mainly for accessibility needs.
This template is ready except it depends on the vosk-api which is to be merged: https://github.com/void-linux/void-packages/pull/39015

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

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

From 599e6db9ad58d0977cbd7d0158e4f66c9b11d4bf Mon Sep 17 00:00:00 2001
From: John Gebbie <me@johngebbie.com>
Date: Tue, 4 Oct 2022 17:50:42 +0100
Subject: [PATCH] New package: numen-0.3

---
 srcpkgs/numen/files/numen/conf    |  7 ++++++
 srcpkgs/numen/files/numen/log/run |  2 ++
 srcpkgs/numen/files/numen/run     | 11 +++++++++
 srcpkgs/numen/template            | 38 +++++++++++++++++++++++++++++++
 4 files changed, 58 insertions(+)
 create mode 100644 srcpkgs/numen/files/numen/conf
 create mode 100755 srcpkgs/numen/files/numen/log/run
 create mode 100755 srcpkgs/numen/files/numen/run
 create mode 100644 srcpkgs/numen/template

diff --git a/srcpkgs/numen/files/numen/conf b/srcpkgs/numen/files/numen/conf
new file mode 100644
index 000000000000..2d814396e2d9
--- /dev/null
+++ b/srcpkgs/numen/files/numen/conf
@@ -0,0 +1,7 @@
+# Example to run the service as a specific user:
+
+# NUMENUSER=john
+# NUMENGROUP="$NUMENUSER"
+# NUMENHOME="/home/$NUMENUSER"
+# export HOME="$NUMENHOME"
+# export XAUTHORITY="/run/user/$(id -u "$NUMENUSER")/Xauthority"
diff --git a/srcpkgs/numen/files/numen/log/run b/srcpkgs/numen/files/numen/log/run
new file mode 100755
index 000000000000..f77a7f813f11
--- /dev/null
+++ b/srcpkgs/numen/files/numen/log/run
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec vlogger -p daemon.info -t numen
diff --git a/srcpkgs/numen/files/numen/run b/srcpkgs/numen/files/numen/run
new file mode 100755
index 000000000000..da29f62904da
--- /dev/null
+++ b/srcpkgs/numen/files/numen/run
@@ -0,0 +1,11 @@
+#!/bin/sh
+exec 2>&1
+[ -r ./conf ] && . ./conf
+: ${NUMENUSER:=_numen}
+: ${NUMENGROUP:=_numen}
+if [ -z "$NUMENHOME" ]; then
+	mkdir -p /usr/share/numen
+	chown "$NUMENUSER:$NUMENGROUP" /usr/share/numen
+	export XDG_DATA_HOME=/usr/share
+fi
+exec chpst -u "$NUMENUSER:$NUMENGROUP:input:audio" numen ${OPTS}
diff --git a/srcpkgs/numen/template b/srcpkgs/numen/template
new file mode 100644
index 000000000000..6583c8d22432
--- /dev/null
+++ b/srcpkgs/numen/template
@@ -0,0 +1,38 @@
+# Template file for 'numen'
+pkgname=numen
+version=0.3
+revision=1
+build_style=go
+go_import_path="git.sr.ht/~geb/numen"
+hostmakedepends="scdoc"
+makedepends="vosk-api libgomp-devel"
+depends="alsa-utils dmenu dotool xdotool xset"
+short_desc="Voice control for handsfree computing"
+maintainer="John Gebbie <me@johngebbie.com>"
+license="GPL-3.0-only"
+homepage="https://numenvoice.com"
+changelog="https://git.sr.ht/~geb/numen/blob/master/CHANGELOG.md"
+distfiles="https://git.sr.ht/~geb/numen/archive/${version}.tar.gz"
+checksum=b34a0164e015fb5df23cd7820a0ffb36c901f6e58830b897d41c89757bfa133f
+
+if [ "$XBPS_TARGET_LIBC" = musl ]; then
+	makedepends+=" libexecinfo-devel"
+fi
+
+system_accounts="_numen"
+
+pre_build() {
+	# for the vosk-api package (openblas)
+	export CGO_LDFLAGS="$CGO_LDFLAGS -fopenmp"
+
+	if [ "$XBPS_TARGET_LIBC" = musl ]; then
+		# for the vosk-api package (openfst)
+		export CGO_LDFLAGS="$CGO_LDFLAGS -lexecinfo"
+	fi
+}
+
+post_install() {
+	mv "${DESTDIR}/usr/bin/numen" speech
+	PACKAGING=true ./install-numen.sh "${DESTDIR}" /usr/bin
+	vsv numen
+}

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

* Re: [PR PATCH] [Updated] New package: numen-0.3
  2022-10-04 16:56 [PR PATCH] New package: numen-0.1 JohnGebbie
                   ` (12 preceding siblings ...)
  2022-12-04 16:12 ` JohnGebbie
@ 2022-12-05 10:04 ` JohnGebbie
  2022-12-05 10:10 ` JohnGebbie
                   ` (71 subsequent siblings)
  85 siblings, 0 replies; 87+ messages in thread
From: JohnGebbie @ 2022-12-05 10:04 UTC (permalink / raw)
  To: ml

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

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

https://github.com/JohnGebbie/void-packages numen3
https://github.com/void-linux/void-packages/pull/39716

New package: numen-0.3
#### Testing the changes
- I tested the changes in this PR: **YES**

#### 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)

This is [my voice control](https://numenvoice.com) for handsfree computing, mainly for accessibility needs.
This template is ready except it depends on the vosk-api which is to be merged: https://github.com/void-linux/void-packages/pull/39015

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

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

From f5e49396d4f7b69e90a001c8e0715acfd3391d5e Mon Sep 17 00:00:00 2001
From: John Gebbie <me@johngebbie.com>
Date: Tue, 4 Oct 2022 17:50:42 +0100
Subject: [PATCH] New package: numen-0.3

---
 srcpkgs/numen/files/numen/conf    |  7 ++++++
 srcpkgs/numen/files/numen/log/run |  2 ++
 srcpkgs/numen/files/numen/run     | 11 +++++++++
 srcpkgs/numen/template            | 38 +++++++++++++++++++++++++++++++
 4 files changed, 58 insertions(+)
 create mode 100644 srcpkgs/numen/files/numen/conf
 create mode 100755 srcpkgs/numen/files/numen/log/run
 create mode 100755 srcpkgs/numen/files/numen/run
 create mode 100644 srcpkgs/numen/template

diff --git a/srcpkgs/numen/files/numen/conf b/srcpkgs/numen/files/numen/conf
new file mode 100644
index 000000000000..2d814396e2d9
--- /dev/null
+++ b/srcpkgs/numen/files/numen/conf
@@ -0,0 +1,7 @@
+# Example to run the service as a specific user:
+
+# NUMENUSER=john
+# NUMENGROUP="$NUMENUSER"
+# NUMENHOME="/home/$NUMENUSER"
+# export HOME="$NUMENHOME"
+# export XAUTHORITY="/run/user/$(id -u "$NUMENUSER")/Xauthority"
diff --git a/srcpkgs/numen/files/numen/log/run b/srcpkgs/numen/files/numen/log/run
new file mode 100755
index 000000000000..f77a7f813f11
--- /dev/null
+++ b/srcpkgs/numen/files/numen/log/run
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec vlogger -p daemon.info -t numen
diff --git a/srcpkgs/numen/files/numen/run b/srcpkgs/numen/files/numen/run
new file mode 100755
index 000000000000..da29f62904da
--- /dev/null
+++ b/srcpkgs/numen/files/numen/run
@@ -0,0 +1,11 @@
+#!/bin/sh
+exec 2>&1
+[ -r ./conf ] && . ./conf
+: ${NUMENUSER:=_numen}
+: ${NUMENGROUP:=_numen}
+if [ -z "$NUMENHOME" ]; then
+	mkdir -p /usr/share/numen
+	chown "$NUMENUSER:$NUMENGROUP" /usr/share/numen
+	export XDG_DATA_HOME=/usr/share
+fi
+exec chpst -u "$NUMENUSER:$NUMENGROUP:input:audio" numen ${OPTS}
diff --git a/srcpkgs/numen/template b/srcpkgs/numen/template
new file mode 100644
index 000000000000..6583c8d22432
--- /dev/null
+++ b/srcpkgs/numen/template
@@ -0,0 +1,38 @@
+# Template file for 'numen'
+pkgname=numen
+version=0.3
+revision=1
+build_style=go
+go_import_path="git.sr.ht/~geb/numen"
+hostmakedepends="scdoc"
+makedepends="vosk-api libgomp-devel"
+depends="alsa-utils dmenu dotool xdotool xset"
+short_desc="Voice control for handsfree computing"
+maintainer="John Gebbie <me@johngebbie.com>"
+license="GPL-3.0-only"
+homepage="https://numenvoice.com"
+changelog="https://git.sr.ht/~geb/numen/blob/master/CHANGELOG.md"
+distfiles="https://git.sr.ht/~geb/numen/archive/${version}.tar.gz"
+checksum=b34a0164e015fb5df23cd7820a0ffb36c901f6e58830b897d41c89757bfa133f
+
+if [ "$XBPS_TARGET_LIBC" = musl ]; then
+	makedepends+=" libexecinfo-devel"
+fi
+
+system_accounts="_numen"
+
+pre_build() {
+	# for the vosk-api package (openblas)
+	export CGO_LDFLAGS="$CGO_LDFLAGS -fopenmp"
+
+	if [ "$XBPS_TARGET_LIBC" = musl ]; then
+		# for the vosk-api package (openfst)
+		export CGO_LDFLAGS="$CGO_LDFLAGS -lexecinfo"
+	fi
+}
+
+post_install() {
+	mv "${DESTDIR}/usr/bin/numen" speech
+	PACKAGING=true ./install-numen.sh "${DESTDIR}" /usr/bin
+	vsv numen
+}

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

* Re: [PR PATCH] [Updated] New package: numen-0.3
  2022-10-04 16:56 [PR PATCH] New package: numen-0.1 JohnGebbie
                   ` (13 preceding siblings ...)
  2022-12-05 10:04 ` JohnGebbie
@ 2022-12-05 10:10 ` JohnGebbie
  2022-12-05 10:11 ` JohnGebbie
                   ` (70 subsequent siblings)
  85 siblings, 0 replies; 87+ messages in thread
From: JohnGebbie @ 2022-12-05 10:10 UTC (permalink / raw)
  To: ml

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

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

https://github.com/JohnGebbie/void-packages numen3
https://github.com/void-linux/void-packages/pull/39716

New package: numen-0.3
#### Testing the changes
- I tested the changes in this PR: **YES**

#### 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)

This is [my voice control](https://numenvoice.com) for handsfree computing, mainly for accessibility needs.
This template is ready except it depends on the vosk-api which is to be merged: https://github.com/void-linux/void-packages/pull/39015

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

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

From 1b3012c95bd3315e0899e115248cb39845838973 Mon Sep 17 00:00:00 2001
From: John Gebbie <me@johngebbie.com>
Date: Tue, 4 Oct 2022 17:50:42 +0100
Subject: [PATCH] New package: numen-0.3

---
 srcpkgs/numen/files/numen/conf    |  7 ++++++
 srcpkgs/numen/files/numen/log/run |  2 ++
 srcpkgs/numen/files/numen/run     | 11 +++++++++
 srcpkgs/numen/template            | 38 +++++++++++++++++++++++++++++++
 4 files changed, 58 insertions(+)
 create mode 100644 srcpkgs/numen/files/numen/conf
 create mode 100755 srcpkgs/numen/files/numen/log/run
 create mode 100755 srcpkgs/numen/files/numen/run
 create mode 100644 srcpkgs/numen/template

diff --git a/srcpkgs/numen/files/numen/conf b/srcpkgs/numen/files/numen/conf
new file mode 100644
index 000000000000..2d814396e2d9
--- /dev/null
+++ b/srcpkgs/numen/files/numen/conf
@@ -0,0 +1,7 @@
+# Example to run the service as a specific user:
+
+# NUMENUSER=john
+# NUMENGROUP="$NUMENUSER"
+# NUMENHOME="/home/$NUMENUSER"
+# export HOME="$NUMENHOME"
+# export XAUTHORITY="/run/user/$(id -u "$NUMENUSER")/Xauthority"
diff --git a/srcpkgs/numen/files/numen/log/run b/srcpkgs/numen/files/numen/log/run
new file mode 100755
index 000000000000..f77a7f813f11
--- /dev/null
+++ b/srcpkgs/numen/files/numen/log/run
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec vlogger -p daemon.info -t numen
diff --git a/srcpkgs/numen/files/numen/run b/srcpkgs/numen/files/numen/run
new file mode 100755
index 000000000000..da29f62904da
--- /dev/null
+++ b/srcpkgs/numen/files/numen/run
@@ -0,0 +1,11 @@
+#!/bin/sh
+exec 2>&1
+[ -r ./conf ] && . ./conf
+: ${NUMENUSER:=_numen}
+: ${NUMENGROUP:=_numen}
+if [ -z "$NUMENHOME" ]; then
+	mkdir -p /usr/share/numen
+	chown "$NUMENUSER:$NUMENGROUP" /usr/share/numen
+	export XDG_DATA_HOME=/usr/share
+fi
+exec chpst -u "$NUMENUSER:$NUMENGROUP:input:audio" numen ${OPTS}
diff --git a/srcpkgs/numen/template b/srcpkgs/numen/template
new file mode 100644
index 000000000000..d73e9151fe88
--- /dev/null
+++ b/srcpkgs/numen/template
@@ -0,0 +1,38 @@
+# Template file for 'numen'
+pkgname=numen
+version=0.4
+revision=1
+build_style=go
+go_import_path="git.sr.ht/~geb/numen"
+hostmakedepends="scdoc"
+makedepends="vosk-api libgomp-devel"
+depends="alsa-utils dmenu dotool xdotool xset"
+short_desc="Voice control for handsfree computing"
+maintainer="John Gebbie <me@johngebbie.com>"
+license="GPL-3.0-only"
+homepage="https://numenvoice.com"
+changelog="https://git.sr.ht/~geb/numen/blob/master/CHANGELOG.md"
+distfiles="https://git.sr.ht/~geb/numen/archive/${version}.tar.gz"
+checksum=4255b2e5b454e2b633ce409d6753a36f8d8e88269ae1c0ed0bb3e23b7a038f60
+
+if [ "$XBPS_TARGET_LIBC" = musl ]; then
+	makedepends+=" libexecinfo-devel"
+fi
+
+system_accounts="_numen"
+
+pre_build() {
+	# for the vosk-api package (openblas)
+	export CGO_LDFLAGS="$CGO_LDFLAGS -fopenmp"
+
+	if [ "$XBPS_TARGET_LIBC" = musl ]; then
+		# for the vosk-api package (openfst)
+		export CGO_LDFLAGS="$CGO_LDFLAGS -lexecinfo"
+	fi
+}
+
+post_install() {
+	mv "${DESTDIR}/usr/bin/numen" speech
+	PACKAGING=true ./install-numen.sh "${DESTDIR}" /usr/bin
+	vsv numen
+}

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

* Re: [PR PATCH] [Updated] New package: numen-0.3
  2022-10-04 16:56 [PR PATCH] New package: numen-0.1 JohnGebbie
                   ` (14 preceding siblings ...)
  2022-12-05 10:10 ` JohnGebbie
@ 2022-12-05 10:11 ` JohnGebbie
  2022-12-08 11:17 ` [PR PATCH] [Updated] New package: numen-0.4 JohnGebbie
                   ` (69 subsequent siblings)
  85 siblings, 0 replies; 87+ messages in thread
From: JohnGebbie @ 2022-12-05 10:11 UTC (permalink / raw)
  To: ml

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

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

https://github.com/JohnGebbie/void-packages numen3
https://github.com/void-linux/void-packages/pull/39716

New package: numen-0.3
#### Testing the changes
- I tested the changes in this PR: **YES**

#### 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)

This is [my voice control](https://numenvoice.com) for handsfree computing, mainly for accessibility needs.
This template is ready except it depends on the vosk-api which is to be merged: https://github.com/void-linux/void-packages/pull/39015

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

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

From 503eaea23aa43b7904456af8cd5e00cd3a6a3229 Mon Sep 17 00:00:00 2001
From: John Gebbie <me@johngebbie.com>
Date: Tue, 4 Oct 2022 17:50:42 +0100
Subject: [PATCH] New package: numen-0.4

---
 srcpkgs/numen/files/numen/conf    |  7 ++++++
 srcpkgs/numen/files/numen/log/run |  2 ++
 srcpkgs/numen/files/numen/run     | 11 +++++++++
 srcpkgs/numen/template            | 38 +++++++++++++++++++++++++++++++
 4 files changed, 58 insertions(+)
 create mode 100644 srcpkgs/numen/files/numen/conf
 create mode 100755 srcpkgs/numen/files/numen/log/run
 create mode 100755 srcpkgs/numen/files/numen/run
 create mode 100644 srcpkgs/numen/template

diff --git a/srcpkgs/numen/files/numen/conf b/srcpkgs/numen/files/numen/conf
new file mode 100644
index 000000000000..2d814396e2d9
--- /dev/null
+++ b/srcpkgs/numen/files/numen/conf
@@ -0,0 +1,7 @@
+# Example to run the service as a specific user:
+
+# NUMENUSER=john
+# NUMENGROUP="$NUMENUSER"
+# NUMENHOME="/home/$NUMENUSER"
+# export HOME="$NUMENHOME"
+# export XAUTHORITY="/run/user/$(id -u "$NUMENUSER")/Xauthority"
diff --git a/srcpkgs/numen/files/numen/log/run b/srcpkgs/numen/files/numen/log/run
new file mode 100755
index 000000000000..f77a7f813f11
--- /dev/null
+++ b/srcpkgs/numen/files/numen/log/run
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec vlogger -p daemon.info -t numen
diff --git a/srcpkgs/numen/files/numen/run b/srcpkgs/numen/files/numen/run
new file mode 100755
index 000000000000..da29f62904da
--- /dev/null
+++ b/srcpkgs/numen/files/numen/run
@@ -0,0 +1,11 @@
+#!/bin/sh
+exec 2>&1
+[ -r ./conf ] && . ./conf
+: ${NUMENUSER:=_numen}
+: ${NUMENGROUP:=_numen}
+if [ -z "$NUMENHOME" ]; then
+	mkdir -p /usr/share/numen
+	chown "$NUMENUSER:$NUMENGROUP" /usr/share/numen
+	export XDG_DATA_HOME=/usr/share
+fi
+exec chpst -u "$NUMENUSER:$NUMENGROUP:input:audio" numen ${OPTS}
diff --git a/srcpkgs/numen/template b/srcpkgs/numen/template
new file mode 100644
index 000000000000..d73e9151fe88
--- /dev/null
+++ b/srcpkgs/numen/template
@@ -0,0 +1,38 @@
+# Template file for 'numen'
+pkgname=numen
+version=0.4
+revision=1
+build_style=go
+go_import_path="git.sr.ht/~geb/numen"
+hostmakedepends="scdoc"
+makedepends="vosk-api libgomp-devel"
+depends="alsa-utils dmenu dotool xdotool xset"
+short_desc="Voice control for handsfree computing"
+maintainer="John Gebbie <me@johngebbie.com>"
+license="GPL-3.0-only"
+homepage="https://numenvoice.com"
+changelog="https://git.sr.ht/~geb/numen/blob/master/CHANGELOG.md"
+distfiles="https://git.sr.ht/~geb/numen/archive/${version}.tar.gz"
+checksum=4255b2e5b454e2b633ce409d6753a36f8d8e88269ae1c0ed0bb3e23b7a038f60
+
+if [ "$XBPS_TARGET_LIBC" = musl ]; then
+	makedepends+=" libexecinfo-devel"
+fi
+
+system_accounts="_numen"
+
+pre_build() {
+	# for the vosk-api package (openblas)
+	export CGO_LDFLAGS="$CGO_LDFLAGS -fopenmp"
+
+	if [ "$XBPS_TARGET_LIBC" = musl ]; then
+		# for the vosk-api package (openfst)
+		export CGO_LDFLAGS="$CGO_LDFLAGS -lexecinfo"
+	fi
+}
+
+post_install() {
+	mv "${DESTDIR}/usr/bin/numen" speech
+	PACKAGING=true ./install-numen.sh "${DESTDIR}" /usr/bin
+	vsv numen
+}

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

* Re: [PR PATCH] [Updated] New package: numen-0.4
  2022-10-04 16:56 [PR PATCH] New package: numen-0.1 JohnGebbie
                   ` (15 preceding siblings ...)
  2022-12-05 10:11 ` JohnGebbie
@ 2022-12-08 11:17 ` JohnGebbie
  2022-12-08 11:34 ` JohnGebbie
                   ` (68 subsequent siblings)
  85 siblings, 0 replies; 87+ messages in thread
From: JohnGebbie @ 2022-12-08 11:17 UTC (permalink / raw)
  To: ml

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

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

https://github.com/JohnGebbie/void-packages numen3
https://github.com/void-linux/void-packages/pull/39716

New package: numen-0.4
#### Testing the changes
- I tested the changes in this PR: **YES**

#### 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)

This is [my voice control](https://numenvoice.com) for handsfree computing, mainly for accessibility needs.

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

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

From 40e1c26942e7db0c245c775470a418a36c41743f Mon Sep 17 00:00:00 2001
From: John Gebbie <me@johngebbie.com>
Date: Tue, 4 Oct 2022 17:50:42 +0100
Subject: [PATCH] New package: numen-0.4

---
 srcpkgs/numen/files/numen/conf    |  7 ++++++
 srcpkgs/numen/files/numen/log/run |  2 ++
 srcpkgs/numen/files/numen/run     | 11 +++++++++
 srcpkgs/numen/template            | 38 +++++++++++++++++++++++++++++++
 4 files changed, 58 insertions(+)
 create mode 100644 srcpkgs/numen/files/numen/conf
 create mode 100755 srcpkgs/numen/files/numen/log/run
 create mode 100755 srcpkgs/numen/files/numen/run
 create mode 100644 srcpkgs/numen/template

diff --git a/srcpkgs/numen/files/numen/conf b/srcpkgs/numen/files/numen/conf
new file mode 100644
index 000000000000..2d814396e2d9
--- /dev/null
+++ b/srcpkgs/numen/files/numen/conf
@@ -0,0 +1,7 @@
+# Example to run the service as a specific user:
+
+# NUMENUSER=john
+# NUMENGROUP="$NUMENUSER"
+# NUMENHOME="/home/$NUMENUSER"
+# export HOME="$NUMENHOME"
+# export XAUTHORITY="/run/user/$(id -u "$NUMENUSER")/Xauthority"
diff --git a/srcpkgs/numen/files/numen/log/run b/srcpkgs/numen/files/numen/log/run
new file mode 100755
index 000000000000..f77a7f813f11
--- /dev/null
+++ b/srcpkgs/numen/files/numen/log/run
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec vlogger -p daemon.info -t numen
diff --git a/srcpkgs/numen/files/numen/run b/srcpkgs/numen/files/numen/run
new file mode 100755
index 000000000000..da29f62904da
--- /dev/null
+++ b/srcpkgs/numen/files/numen/run
@@ -0,0 +1,11 @@
+#!/bin/sh
+exec 2>&1
+[ -r ./conf ] && . ./conf
+: ${NUMENUSER:=_numen}
+: ${NUMENGROUP:=_numen}
+if [ -z "$NUMENHOME" ]; then
+	mkdir -p /usr/share/numen
+	chown "$NUMENUSER:$NUMENGROUP" /usr/share/numen
+	export XDG_DATA_HOME=/usr/share
+fi
+exec chpst -u "$NUMENUSER:$NUMENGROUP:input:audio" numen ${OPTS}
diff --git a/srcpkgs/numen/template b/srcpkgs/numen/template
new file mode 100644
index 000000000000..d73e9151fe88
--- /dev/null
+++ b/srcpkgs/numen/template
@@ -0,0 +1,38 @@
+# Template file for 'numen'
+pkgname=numen
+version=0.4
+revision=1
+build_style=go
+go_import_path="git.sr.ht/~geb/numen"
+hostmakedepends="scdoc"
+makedepends="vosk-api libgomp-devel"
+depends="alsa-utils dmenu dotool xdotool xset"
+short_desc="Voice control for handsfree computing"
+maintainer="John Gebbie <me@johngebbie.com>"
+license="GPL-3.0-only"
+homepage="https://numenvoice.com"
+changelog="https://git.sr.ht/~geb/numen/blob/master/CHANGELOG.md"
+distfiles="https://git.sr.ht/~geb/numen/archive/${version}.tar.gz"
+checksum=4255b2e5b454e2b633ce409d6753a36f8d8e88269ae1c0ed0bb3e23b7a038f60
+
+if [ "$XBPS_TARGET_LIBC" = musl ]; then
+	makedepends+=" libexecinfo-devel"
+fi
+
+system_accounts="_numen"
+
+pre_build() {
+	# for the vosk-api package (openblas)
+	export CGO_LDFLAGS="$CGO_LDFLAGS -fopenmp"
+
+	if [ "$XBPS_TARGET_LIBC" = musl ]; then
+		# for the vosk-api package (openfst)
+		export CGO_LDFLAGS="$CGO_LDFLAGS -lexecinfo"
+	fi
+}
+
+post_install() {
+	mv "${DESTDIR}/usr/bin/numen" speech
+	PACKAGING=true ./install-numen.sh "${DESTDIR}" /usr/bin
+	vsv numen
+}

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

* Re: New package: numen-0.4
  2022-10-04 16:56 [PR PATCH] New package: numen-0.1 JohnGebbie
                   ` (16 preceding siblings ...)
  2022-12-08 11:17 ` [PR PATCH] [Updated] New package: numen-0.4 JohnGebbie
@ 2022-12-08 11:34 ` JohnGebbie
  2022-12-08 22:17 ` JohnGebbie
                   ` (67 subsequent siblings)
  85 siblings, 0 replies; 87+ messages in thread
From: JohnGebbie @ 2022-12-08 11:34 UTC (permalink / raw)
  To: ml

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

New comment by JohnGebbie on void-packages repository

https://github.com/void-linux/void-packages/pull/39716#issuecomment-1342579416

Comment:
just updated the branch

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

* Re: New package: numen-0.4
  2022-10-04 16:56 [PR PATCH] New package: numen-0.1 JohnGebbie
                   ` (17 preceding siblings ...)
  2022-12-08 11:34 ` JohnGebbie
@ 2022-12-08 22:17 ` JohnGebbie
  2022-12-08 23:01 ` [PR PATCH] [Updated] " JohnGebbie
                   ` (66 subsequent siblings)
  85 siblings, 0 replies; 87+ messages in thread
From: JohnGebbie @ 2022-12-08 22:17 UTC (permalink / raw)
  To: ml

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

New comment by JohnGebbie on void-packages repository

https://github.com/void-linux/void-packages/pull/39716#issuecomment-1343447475

Comment:
I'm going to release a new version soon, so let's hold off

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

* Re: [PR PATCH] [Updated] New package: numen-0.4
  2022-10-04 16:56 [PR PATCH] New package: numen-0.1 JohnGebbie
                   ` (18 preceding siblings ...)
  2022-12-08 22:17 ` JohnGebbie
@ 2022-12-08 23:01 ` JohnGebbie
  2022-12-08 23:01 ` JohnGebbie
                   ` (65 subsequent siblings)
  85 siblings, 0 replies; 87+ messages in thread
From: JohnGebbie @ 2022-12-08 23:01 UTC (permalink / raw)
  To: ml

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

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

https://github.com/JohnGebbie/void-packages numen3
https://github.com/void-linux/void-packages/pull/39716

New package: numen-0.4
#### Testing the changes
- I tested the changes in this PR: **YES**

#### 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)

This is [my voice control](https://numenvoice.com) for handsfree computing, mainly for accessibility needs.

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

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

From 504181638718f26ea0854530b597cb77269388bb Mon Sep 17 00:00:00 2001
From: John Gebbie <me@johngebbie.com>
Date: Tue, 4 Oct 2022 17:50:42 +0100
Subject: [PATCH] New package: numen-0.4

---
 srcpkgs/numen/files/numen/conf    |  7 ++++++
 srcpkgs/numen/files/numen/log/run |  2 ++
 srcpkgs/numen/files/numen/run     | 11 +++++++++
 srcpkgs/numen/template            | 40 +++++++++++++++++++++++++++++++
 4 files changed, 60 insertions(+)
 create mode 100644 srcpkgs/numen/files/numen/conf
 create mode 100755 srcpkgs/numen/files/numen/log/run
 create mode 100755 srcpkgs/numen/files/numen/run
 create mode 100644 srcpkgs/numen/template

diff --git a/srcpkgs/numen/files/numen/conf b/srcpkgs/numen/files/numen/conf
new file mode 100644
index 000000000000..2d814396e2d9
--- /dev/null
+++ b/srcpkgs/numen/files/numen/conf
@@ -0,0 +1,7 @@
+# Example to run the service as a specific user:
+
+# NUMENUSER=john
+# NUMENGROUP="$NUMENUSER"
+# NUMENHOME="/home/$NUMENUSER"
+# export HOME="$NUMENHOME"
+# export XAUTHORITY="/run/user/$(id -u "$NUMENUSER")/Xauthority"
diff --git a/srcpkgs/numen/files/numen/log/run b/srcpkgs/numen/files/numen/log/run
new file mode 100755
index 000000000000..f77a7f813f11
--- /dev/null
+++ b/srcpkgs/numen/files/numen/log/run
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec vlogger -p daemon.info -t numen
diff --git a/srcpkgs/numen/files/numen/run b/srcpkgs/numen/files/numen/run
new file mode 100755
index 000000000000..da29f62904da
--- /dev/null
+++ b/srcpkgs/numen/files/numen/run
@@ -0,0 +1,11 @@
+#!/bin/sh
+exec 2>&1
+[ -r ./conf ] && . ./conf
+: ${NUMENUSER:=_numen}
+: ${NUMENGROUP:=_numen}
+if [ -z "$NUMENHOME" ]; then
+	mkdir -p /usr/share/numen
+	chown "$NUMENUSER:$NUMENGROUP" /usr/share/numen
+	export XDG_DATA_HOME=/usr/share
+fi
+exec chpst -u "$NUMENUSER:$NUMENGROUP:input:audio" numen ${OPTS}
diff --git a/srcpkgs/numen/template b/srcpkgs/numen/template
new file mode 100644
index 000000000000..7acec9f6662f
--- /dev/null
+++ b/srcpkgs/numen/template
@@ -0,0 +1,40 @@
+# Template file for 'numen'
+pkgname=numen
+# TODO This tag is on the develop branch just in case you suggest changes
+# when reviewing that I should include in the release.
+version=0.5
+revision=1
+build_style=go
+go_import_path="git.sr.ht/~geb/numen"
+hostmakedepends="scdoc"
+makedepends="vosk-api libgomp-devel"
+depends="alsa-utils dmenu dotool xdotool xset"
+short_desc="Voice control for handsfree computing"
+maintainer="John Gebbie <me@johngebbie.com>"
+license="GPL-3.0-only"
+homepage="https://numenvoice.com"
+changelog="https://git.sr.ht/~geb/numen/blob/master/CHANGELOG.md"
+distfiles="https://git.sr.ht/~geb/numen/archive/${version}.tar.gz"
+checksum=f0df01baba28b3a8b30c3b3beb6af3cbcd03d0de6068d26d77ca38ad0a6a9e02
+
+if [ "$XBPS_TARGET_LIBC" = musl ]; then
+	makedepends+=" libexecinfo-devel"
+fi
+
+system_accounts="_numen"
+
+pre_build() {
+	# for the vosk-api package (openblas)
+	export CGO_LDFLAGS="$CGO_LDFLAGS -fopenmp"
+
+	if [ "$XBPS_TARGET_LIBC" = musl ]; then
+		# for the vosk-api package (openfst)
+		export CGO_LDFLAGS="$CGO_LDFLAGS -lexecinfo"
+	fi
+}
+
+post_install() {
+	mv "${DESTDIR}/usr/bin/numen" speech
+	PACKAGING=true ./install-numen.sh "${DESTDIR}" /usr/bin
+	vsv numen
+}

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

* Re: [PR PATCH] [Updated] New package: numen-0.4
  2022-10-04 16:56 [PR PATCH] New package: numen-0.1 JohnGebbie
                   ` (19 preceding siblings ...)
  2022-12-08 23:01 ` [PR PATCH] [Updated] " JohnGebbie
@ 2022-12-08 23:01 ` JohnGebbie
  2022-12-08 23:02 ` JohnGebbie
                   ` (64 subsequent siblings)
  85 siblings, 0 replies; 87+ messages in thread
From: JohnGebbie @ 2022-12-08 23:01 UTC (permalink / raw)
  To: ml

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

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

https://github.com/JohnGebbie/void-packages numen3
https://github.com/void-linux/void-packages/pull/39716

New package: numen-0.4
#### Testing the changes
- I tested the changes in this PR: **YES**

#### 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)

This is [my voice control](https://numenvoice.com) for handsfree computing, mainly for accessibility needs.

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

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

From 80b4057bf82502bf771efc2b912caf8f8ab20030 Mon Sep 17 00:00:00 2001
From: John Gebbie <me@johngebbie.com>
Date: Tue, 4 Oct 2022 17:50:42 +0100
Subject: [PATCH] New package: numen-0.5

---
 srcpkgs/numen/files/numen/conf    |  7 ++++++
 srcpkgs/numen/files/numen/log/run |  2 ++
 srcpkgs/numen/files/numen/run     | 11 +++++++++
 srcpkgs/numen/template            | 40 +++++++++++++++++++++++++++++++
 4 files changed, 60 insertions(+)
 create mode 100644 srcpkgs/numen/files/numen/conf
 create mode 100755 srcpkgs/numen/files/numen/log/run
 create mode 100755 srcpkgs/numen/files/numen/run
 create mode 100644 srcpkgs/numen/template

diff --git a/srcpkgs/numen/files/numen/conf b/srcpkgs/numen/files/numen/conf
new file mode 100644
index 000000000000..2d814396e2d9
--- /dev/null
+++ b/srcpkgs/numen/files/numen/conf
@@ -0,0 +1,7 @@
+# Example to run the service as a specific user:
+
+# NUMENUSER=john
+# NUMENGROUP="$NUMENUSER"
+# NUMENHOME="/home/$NUMENUSER"
+# export HOME="$NUMENHOME"
+# export XAUTHORITY="/run/user/$(id -u "$NUMENUSER")/Xauthority"
diff --git a/srcpkgs/numen/files/numen/log/run b/srcpkgs/numen/files/numen/log/run
new file mode 100755
index 000000000000..f77a7f813f11
--- /dev/null
+++ b/srcpkgs/numen/files/numen/log/run
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec vlogger -p daemon.info -t numen
diff --git a/srcpkgs/numen/files/numen/run b/srcpkgs/numen/files/numen/run
new file mode 100755
index 000000000000..da29f62904da
--- /dev/null
+++ b/srcpkgs/numen/files/numen/run
@@ -0,0 +1,11 @@
+#!/bin/sh
+exec 2>&1
+[ -r ./conf ] && . ./conf
+: ${NUMENUSER:=_numen}
+: ${NUMENGROUP:=_numen}
+if [ -z "$NUMENHOME" ]; then
+	mkdir -p /usr/share/numen
+	chown "$NUMENUSER:$NUMENGROUP" /usr/share/numen
+	export XDG_DATA_HOME=/usr/share
+fi
+exec chpst -u "$NUMENUSER:$NUMENGROUP:input:audio" numen ${OPTS}
diff --git a/srcpkgs/numen/template b/srcpkgs/numen/template
new file mode 100644
index 000000000000..7acec9f6662f
--- /dev/null
+++ b/srcpkgs/numen/template
@@ -0,0 +1,40 @@
+# Template file for 'numen'
+pkgname=numen
+# TODO This tag is on the develop branch just in case you suggest changes
+# when reviewing that I should include in the release.
+version=0.5
+revision=1
+build_style=go
+go_import_path="git.sr.ht/~geb/numen"
+hostmakedepends="scdoc"
+makedepends="vosk-api libgomp-devel"
+depends="alsa-utils dmenu dotool xdotool xset"
+short_desc="Voice control for handsfree computing"
+maintainer="John Gebbie <me@johngebbie.com>"
+license="GPL-3.0-only"
+homepage="https://numenvoice.com"
+changelog="https://git.sr.ht/~geb/numen/blob/master/CHANGELOG.md"
+distfiles="https://git.sr.ht/~geb/numen/archive/${version}.tar.gz"
+checksum=f0df01baba28b3a8b30c3b3beb6af3cbcd03d0de6068d26d77ca38ad0a6a9e02
+
+if [ "$XBPS_TARGET_LIBC" = musl ]; then
+	makedepends+=" libexecinfo-devel"
+fi
+
+system_accounts="_numen"
+
+pre_build() {
+	# for the vosk-api package (openblas)
+	export CGO_LDFLAGS="$CGO_LDFLAGS -fopenmp"
+
+	if [ "$XBPS_TARGET_LIBC" = musl ]; then
+		# for the vosk-api package (openfst)
+		export CGO_LDFLAGS="$CGO_LDFLAGS -lexecinfo"
+	fi
+}
+
+post_install() {
+	mv "${DESTDIR}/usr/bin/numen" speech
+	PACKAGING=true ./install-numen.sh "${DESTDIR}" /usr/bin
+	vsv numen
+}

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

* Re: New package: numen-0.4
  2022-10-04 16:56 [PR PATCH] New package: numen-0.1 JohnGebbie
                   ` (20 preceding siblings ...)
  2022-12-08 23:01 ` JohnGebbie
@ 2022-12-08 23:02 ` JohnGebbie
  2022-12-17 17:30 ` [PR PATCH] [Updated] " JohnGebbie
                   ` (63 subsequent siblings)
  85 siblings, 0 replies; 87+ messages in thread
From: JohnGebbie @ 2022-12-08 23:02 UTC (permalink / raw)
  To: ml

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

New comment by JohnGebbie on void-packages repository

https://github.com/void-linux/void-packages/pull/39716#issuecomment-1343447475

Comment:
I'm going to release a new version soon, so let's hold off

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

* Re: [PR PATCH] [Updated] New package: numen-0.4
  2022-10-04 16:56 [PR PATCH] New package: numen-0.1 JohnGebbie
                   ` (21 preceding siblings ...)
  2022-12-08 23:02 ` JohnGebbie
@ 2022-12-17 17:30 ` JohnGebbie
  2022-12-17 17:33 ` JohnGebbie
                   ` (62 subsequent siblings)
  85 siblings, 0 replies; 87+ messages in thread
From: JohnGebbie @ 2022-12-17 17:30 UTC (permalink / raw)
  To: ml

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

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

https://github.com/JohnGebbie/void-packages numen3
https://github.com/void-linux/void-packages/pull/39716

New package: numen-0.4
#### Testing the changes
- I tested the changes in this PR: **YES**

#### 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)

This is [my voice control](https://numenvoice.com) for handsfree computing, mainly for accessibility needs.

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

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

From f20ef4cb92b0350615a4bbcf80788b408f256f1b Mon Sep 17 00:00:00 2001
From: John Gebbie <me@johngebbie.com>
Date: Tue, 4 Oct 2022 17:50:42 +0100
Subject: [PATCH] New package: numen-0.5

---
 srcpkgs/numen/files/numen/conf    |  7 ++++++
 srcpkgs/numen/files/numen/log/run |  2 ++
 srcpkgs/numen/files/numen/run     | 11 +++++++++
 srcpkgs/numen/template            | 40 +++++++++++++++++++++++++++++++
 4 files changed, 60 insertions(+)
 create mode 100644 srcpkgs/numen/files/numen/conf
 create mode 100755 srcpkgs/numen/files/numen/log/run
 create mode 100755 srcpkgs/numen/files/numen/run
 create mode 100644 srcpkgs/numen/template

diff --git a/srcpkgs/numen/files/numen/conf b/srcpkgs/numen/files/numen/conf
new file mode 100644
index 000000000000..2d814396e2d9
--- /dev/null
+++ b/srcpkgs/numen/files/numen/conf
@@ -0,0 +1,7 @@
+# Example to run the service as a specific user:
+
+# NUMENUSER=john
+# NUMENGROUP="$NUMENUSER"
+# NUMENHOME="/home/$NUMENUSER"
+# export HOME="$NUMENHOME"
+# export XAUTHORITY="/run/user/$(id -u "$NUMENUSER")/Xauthority"
diff --git a/srcpkgs/numen/files/numen/log/run b/srcpkgs/numen/files/numen/log/run
new file mode 100755
index 000000000000..f77a7f813f11
--- /dev/null
+++ b/srcpkgs/numen/files/numen/log/run
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec vlogger -p daemon.info -t numen
diff --git a/srcpkgs/numen/files/numen/run b/srcpkgs/numen/files/numen/run
new file mode 100755
index 000000000000..da29f62904da
--- /dev/null
+++ b/srcpkgs/numen/files/numen/run
@@ -0,0 +1,11 @@
+#!/bin/sh
+exec 2>&1
+[ -r ./conf ] && . ./conf
+: ${NUMENUSER:=_numen}
+: ${NUMENGROUP:=_numen}
+if [ -z "$NUMENHOME" ]; then
+	mkdir -p /usr/share/numen
+	chown "$NUMENUSER:$NUMENGROUP" /usr/share/numen
+	export XDG_DATA_HOME=/usr/share
+fi
+exec chpst -u "$NUMENUSER:$NUMENGROUP:input:audio" numen ${OPTS}
diff --git a/srcpkgs/numen/template b/srcpkgs/numen/template
new file mode 100644
index 000000000000..7acec9f6662f
--- /dev/null
+++ b/srcpkgs/numen/template
@@ -0,0 +1,40 @@
+# Template file for 'numen'
+pkgname=numen
+# TODO This tag is on the develop branch just in case you suggest changes
+# when reviewing that I should include in the release.
+version=0.5
+revision=1
+build_style=go
+go_import_path="git.sr.ht/~geb/numen"
+hostmakedepends="scdoc"
+makedepends="vosk-api libgomp-devel"
+depends="alsa-utils dmenu dotool xdotool xset"
+short_desc="Voice control for handsfree computing"
+maintainer="John Gebbie <me@johngebbie.com>"
+license="GPL-3.0-only"
+homepage="https://numenvoice.com"
+changelog="https://git.sr.ht/~geb/numen/blob/master/CHANGELOG.md"
+distfiles="https://git.sr.ht/~geb/numen/archive/${version}.tar.gz"
+checksum=f0df01baba28b3a8b30c3b3beb6af3cbcd03d0de6068d26d77ca38ad0a6a9e02
+
+if [ "$XBPS_TARGET_LIBC" = musl ]; then
+	makedepends+=" libexecinfo-devel"
+fi
+
+system_accounts="_numen"
+
+pre_build() {
+	# for the vosk-api package (openblas)
+	export CGO_LDFLAGS="$CGO_LDFLAGS -fopenmp"
+
+	if [ "$XBPS_TARGET_LIBC" = musl ]; then
+		# for the vosk-api package (openfst)
+		export CGO_LDFLAGS="$CGO_LDFLAGS -lexecinfo"
+	fi
+}
+
+post_install() {
+	mv "${DESTDIR}/usr/bin/numen" speech
+	PACKAGING=true ./install-numen.sh "${DESTDIR}" /usr/bin
+	vsv numen
+}

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

* Re: New package: numen-0.4
  2022-10-04 16:56 [PR PATCH] New package: numen-0.1 JohnGebbie
                   ` (22 preceding siblings ...)
  2022-12-17 17:30 ` [PR PATCH] [Updated] " JohnGebbie
@ 2022-12-17 17:33 ` JohnGebbie
  2022-12-28 10:12 ` [PR PATCH] [Updated] " JohnGebbie
                   ` (61 subsequent siblings)
  85 siblings, 0 replies; 87+ messages in thread
From: JohnGebbie @ 2022-12-17 17:33 UTC (permalink / raw)
  To: ml

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

New comment by JohnGebbie on void-packages repository

https://github.com/void-linux/void-packages/pull/39716#issuecomment-1356349045

Comment:
just updated the branch. still ready for review

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

* Re: [PR PATCH] [Updated] New package: numen-0.4
  2022-10-04 16:56 [PR PATCH] New package: numen-0.1 JohnGebbie
                   ` (23 preceding siblings ...)
  2022-12-17 17:33 ` JohnGebbie
@ 2022-12-28 10:12 ` JohnGebbie
  2022-12-29 20:36 ` [PR PATCH] [Updated] New package: numen-0.5 JohnGebbie
                   ` (60 subsequent siblings)
  85 siblings, 0 replies; 87+ messages in thread
From: JohnGebbie @ 2022-12-28 10:12 UTC (permalink / raw)
  To: ml

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

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

https://github.com/JohnGebbie/void-packages numen3
https://github.com/void-linux/void-packages/pull/39716

New package: numen-0.4
#### Testing the changes
- I tested the changes in this PR: **YES**

#### 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)

This is [my voice control](https://numenvoice.com) for handsfree computing, mainly for accessibility needs.

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

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

From 13e521ce271fe1c84da0563c2df9d26af8e6fb11 Mon Sep 17 00:00:00 2001
From: John Gebbie <me@johngebbie.com>
Date: Tue, 4 Oct 2022 17:50:42 +0100
Subject: [PATCH] New package: numen-0.5

---
 srcpkgs/numen/files/numen/conf    |  7 ++++++
 srcpkgs/numen/files/numen/log/run |  2 ++
 srcpkgs/numen/files/numen/run     | 11 +++++++++
 srcpkgs/numen/template            | 40 +++++++++++++++++++++++++++++++
 4 files changed, 60 insertions(+)
 create mode 100644 srcpkgs/numen/files/numen/conf
 create mode 100755 srcpkgs/numen/files/numen/log/run
 create mode 100755 srcpkgs/numen/files/numen/run
 create mode 100644 srcpkgs/numen/template

diff --git a/srcpkgs/numen/files/numen/conf b/srcpkgs/numen/files/numen/conf
new file mode 100644
index 000000000000..2d814396e2d9
--- /dev/null
+++ b/srcpkgs/numen/files/numen/conf
@@ -0,0 +1,7 @@
+# Example to run the service as a specific user:
+
+# NUMENUSER=john
+# NUMENGROUP="$NUMENUSER"
+# NUMENHOME="/home/$NUMENUSER"
+# export HOME="$NUMENHOME"
+# export XAUTHORITY="/run/user/$(id -u "$NUMENUSER")/Xauthority"
diff --git a/srcpkgs/numen/files/numen/log/run b/srcpkgs/numen/files/numen/log/run
new file mode 100755
index 000000000000..f77a7f813f11
--- /dev/null
+++ b/srcpkgs/numen/files/numen/log/run
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec vlogger -p daemon.info -t numen
diff --git a/srcpkgs/numen/files/numen/run b/srcpkgs/numen/files/numen/run
new file mode 100755
index 000000000000..da29f62904da
--- /dev/null
+++ b/srcpkgs/numen/files/numen/run
@@ -0,0 +1,11 @@
+#!/bin/sh
+exec 2>&1
+[ -r ./conf ] && . ./conf
+: ${NUMENUSER:=_numen}
+: ${NUMENGROUP:=_numen}
+if [ -z "$NUMENHOME" ]; then
+	mkdir -p /usr/share/numen
+	chown "$NUMENUSER:$NUMENGROUP" /usr/share/numen
+	export XDG_DATA_HOME=/usr/share
+fi
+exec chpst -u "$NUMENUSER:$NUMENGROUP:input:audio" numen ${OPTS}
diff --git a/srcpkgs/numen/template b/srcpkgs/numen/template
new file mode 100644
index 000000000000..7acec9f6662f
--- /dev/null
+++ b/srcpkgs/numen/template
@@ -0,0 +1,40 @@
+# Template file for 'numen'
+pkgname=numen
+# TODO This tag is on the develop branch just in case you suggest changes
+# when reviewing that I should include in the release.
+version=0.5
+revision=1
+build_style=go
+go_import_path="git.sr.ht/~geb/numen"
+hostmakedepends="scdoc"
+makedepends="vosk-api libgomp-devel"
+depends="alsa-utils dmenu dotool xdotool xset"
+short_desc="Voice control for handsfree computing"
+maintainer="John Gebbie <me@johngebbie.com>"
+license="GPL-3.0-only"
+homepage="https://numenvoice.com"
+changelog="https://git.sr.ht/~geb/numen/blob/master/CHANGELOG.md"
+distfiles="https://git.sr.ht/~geb/numen/archive/${version}.tar.gz"
+checksum=f0df01baba28b3a8b30c3b3beb6af3cbcd03d0de6068d26d77ca38ad0a6a9e02
+
+if [ "$XBPS_TARGET_LIBC" = musl ]; then
+	makedepends+=" libexecinfo-devel"
+fi
+
+system_accounts="_numen"
+
+pre_build() {
+	# for the vosk-api package (openblas)
+	export CGO_LDFLAGS="$CGO_LDFLAGS -fopenmp"
+
+	if [ "$XBPS_TARGET_LIBC" = musl ]; then
+		# for the vosk-api package (openfst)
+		export CGO_LDFLAGS="$CGO_LDFLAGS -lexecinfo"
+	fi
+}
+
+post_install() {
+	mv "${DESTDIR}/usr/bin/numen" speech
+	PACKAGING=true ./install-numen.sh "${DESTDIR}" /usr/bin
+	vsv numen
+}

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

* Re: [PR PATCH] [Updated] New package: numen-0.5
  2022-10-04 16:56 [PR PATCH] New package: numen-0.1 JohnGebbie
                   ` (24 preceding siblings ...)
  2022-12-28 10:12 ` [PR PATCH] [Updated] " JohnGebbie
@ 2022-12-29 20:36 ` JohnGebbie
  2022-12-29 21:56 ` [PR REVIEW] " paper42
                   ` (59 subsequent siblings)
  85 siblings, 0 replies; 87+ messages in thread
From: JohnGebbie @ 2022-12-29 20:36 UTC (permalink / raw)
  To: ml

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

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

https://github.com/JohnGebbie/void-packages numen3
https://github.com/void-linux/void-packages/pull/39716

New package: numen-0.5
#### Testing the changes
- I tested the changes in this PR: **YES**

#### 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)

This is [my voice control](https://numenvoice.com) for handsfree computing, mainly for accessibility needs.

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

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

From 1f72bc172ceb0ffe38a54ec909ed503f50cc7a5c Mon Sep 17 00:00:00 2001
From: John Gebbie <me@johngebbie.com>
Date: Tue, 4 Oct 2022 17:50:42 +0100
Subject: [PATCH] New package: numen-0.5

---
 srcpkgs/numen/files/numen/conf    |  7 ++++++
 srcpkgs/numen/files/numen/log/run |  2 ++
 srcpkgs/numen/files/numen/run     | 11 +++++++++
 srcpkgs/numen/template            | 40 +++++++++++++++++++++++++++++++
 4 files changed, 60 insertions(+)
 create mode 100644 srcpkgs/numen/files/numen/conf
 create mode 100755 srcpkgs/numen/files/numen/log/run
 create mode 100755 srcpkgs/numen/files/numen/run
 create mode 100644 srcpkgs/numen/template

diff --git a/srcpkgs/numen/files/numen/conf b/srcpkgs/numen/files/numen/conf
new file mode 100644
index 000000000000..2d814396e2d9
--- /dev/null
+++ b/srcpkgs/numen/files/numen/conf
@@ -0,0 +1,7 @@
+# Example to run the service as a specific user:
+
+# NUMENUSER=john
+# NUMENGROUP="$NUMENUSER"
+# NUMENHOME="/home/$NUMENUSER"
+# export HOME="$NUMENHOME"
+# export XAUTHORITY="/run/user/$(id -u "$NUMENUSER")/Xauthority"
diff --git a/srcpkgs/numen/files/numen/log/run b/srcpkgs/numen/files/numen/log/run
new file mode 100755
index 000000000000..f77a7f813f11
--- /dev/null
+++ b/srcpkgs/numen/files/numen/log/run
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec vlogger -p daemon.info -t numen
diff --git a/srcpkgs/numen/files/numen/run b/srcpkgs/numen/files/numen/run
new file mode 100755
index 000000000000..da29f62904da
--- /dev/null
+++ b/srcpkgs/numen/files/numen/run
@@ -0,0 +1,11 @@
+#!/bin/sh
+exec 2>&1
+[ -r ./conf ] && . ./conf
+: ${NUMENUSER:=_numen}
+: ${NUMENGROUP:=_numen}
+if [ -z "$NUMENHOME" ]; then
+	mkdir -p /usr/share/numen
+	chown "$NUMENUSER:$NUMENGROUP" /usr/share/numen
+	export XDG_DATA_HOME=/usr/share
+fi
+exec chpst -u "$NUMENUSER:$NUMENGROUP:input:audio" numen ${OPTS}
diff --git a/srcpkgs/numen/template b/srcpkgs/numen/template
new file mode 100644
index 000000000000..54d346c0ee87
--- /dev/null
+++ b/srcpkgs/numen/template
@@ -0,0 +1,40 @@
+# Template file for 'numen'
+pkgname=numen
+# TODO I will release version 0.5 after this has been reviewed, in case you
+# suggest changes
+version=1607b16953280ad01fad23d673e589102e344397
+revision=1
+build_style=go
+go_import_path="git.sr.ht/~geb/numen"
+hostmakedepends="scdoc"
+makedepends="vosk-api libgomp-devel"
+depends="alsa-utils dmenu dotool xdotool xset"
+short_desc="Voice control for handsfree computing"
+maintainer="John Gebbie <me@johngebbie.com>"
+license="GPL-3.0-only"
+homepage="https://numenvoice.com"
+changelog="https://git.sr.ht/~geb/numen/blob/master/CHANGELOG.md"
+distfiles="https://git.sr.ht/~geb/numen/archive/${version}.tar.gz"
+checksum=c9c5a5cfe723196d3e62e0d786e76f2387e941ae6f62e38fb5b001963662f61a
+
+if [ "$XBPS_TARGET_LIBC" = musl ]; then
+	makedepends+=" libexecinfo-devel"
+fi
+
+system_accounts="_numen"
+
+pre_build() {
+	# for the vosk-api package (openblas)
+	export CGO_LDFLAGS="$CGO_LDFLAGS -fopenmp"
+
+	if [ "$XBPS_TARGET_LIBC" = musl ]; then
+		# for the vosk-api package (openfst)
+		export CGO_LDFLAGS="$CGO_LDFLAGS -lexecinfo"
+	fi
+}
+
+post_install() {
+	mv "${DESTDIR}/usr/bin/numen" speech
+	PACKAGING=true ./install-numen.sh "${DESTDIR}" /usr/bin
+	vsv numen
+}

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

* Re: [PR REVIEW] New package: numen-0.5
  2022-10-04 16:56 [PR PATCH] New package: numen-0.1 JohnGebbie
                   ` (25 preceding siblings ...)
  2022-12-29 20:36 ` [PR PATCH] [Updated] New package: numen-0.5 JohnGebbie
@ 2022-12-29 21:56 ` paper42
  2022-12-29 22:10 ` [PR PATCH] [Updated] " JohnGebbie
                   ` (58 subsequent siblings)
  85 siblings, 0 replies; 87+ messages in thread
From: paper42 @ 2022-12-29 21:56 UTC (permalink / raw)
  To: ml

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

New review comment by paper42 on void-packages repository

https://github.com/void-linux/void-packages/pull/39716#discussion_r1059162327

Comment:
this file has to be marked as a conf_file, otherwise it would be overwritten on the next update

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

* Re: [PR PATCH] [Updated] New package: numen-0.5
  2022-10-04 16:56 [PR PATCH] New package: numen-0.1 JohnGebbie
                   ` (26 preceding siblings ...)
  2022-12-29 21:56 ` [PR REVIEW] " paper42
@ 2022-12-29 22:10 ` JohnGebbie
  2022-12-29 22:11 ` [PR REVIEW] " JohnGebbie
                   ` (57 subsequent siblings)
  85 siblings, 0 replies; 87+ messages in thread
From: JohnGebbie @ 2022-12-29 22:10 UTC (permalink / raw)
  To: ml

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

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

https://github.com/JohnGebbie/void-packages numen3
https://github.com/void-linux/void-packages/pull/39716

New package: numen-0.5
#### Testing the changes
- I tested the changes in this PR: **YES**

#### 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)

This is [my voice control](https://numenvoice.com) for handsfree computing, mainly for accessibility needs.

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

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

From ec12d63496f828863a0eeb108de757d43b6b8466 Mon Sep 17 00:00:00 2001
From: John Gebbie <me@johngebbie.com>
Date: Tue, 4 Oct 2022 17:50:42 +0100
Subject: [PATCH] New package: numen-0.5

---
 srcpkgs/numen/files/numen/conf    |  7 ++++++
 srcpkgs/numen/files/numen/log/run |  2 ++
 srcpkgs/numen/files/numen/run     | 11 +++++++++
 srcpkgs/numen/template            | 41 +++++++++++++++++++++++++++++++
 4 files changed, 61 insertions(+)
 create mode 100644 srcpkgs/numen/files/numen/conf
 create mode 100755 srcpkgs/numen/files/numen/log/run
 create mode 100755 srcpkgs/numen/files/numen/run
 create mode 100644 srcpkgs/numen/template

diff --git a/srcpkgs/numen/files/numen/conf b/srcpkgs/numen/files/numen/conf
new file mode 100644
index 000000000000..2d814396e2d9
--- /dev/null
+++ b/srcpkgs/numen/files/numen/conf
@@ -0,0 +1,7 @@
+# Example to run the service as a specific user:
+
+# NUMENUSER=john
+# NUMENGROUP="$NUMENUSER"
+# NUMENHOME="/home/$NUMENUSER"
+# export HOME="$NUMENHOME"
+# export XAUTHORITY="/run/user/$(id -u "$NUMENUSER")/Xauthority"
diff --git a/srcpkgs/numen/files/numen/log/run b/srcpkgs/numen/files/numen/log/run
new file mode 100755
index 000000000000..f77a7f813f11
--- /dev/null
+++ b/srcpkgs/numen/files/numen/log/run
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec vlogger -p daemon.info -t numen
diff --git a/srcpkgs/numen/files/numen/run b/srcpkgs/numen/files/numen/run
new file mode 100755
index 000000000000..da29f62904da
--- /dev/null
+++ b/srcpkgs/numen/files/numen/run
@@ -0,0 +1,11 @@
+#!/bin/sh
+exec 2>&1
+[ -r ./conf ] && . ./conf
+: ${NUMENUSER:=_numen}
+: ${NUMENGROUP:=_numen}
+if [ -z "$NUMENHOME" ]; then
+	mkdir -p /usr/share/numen
+	chown "$NUMENUSER:$NUMENGROUP" /usr/share/numen
+	export XDG_DATA_HOME=/usr/share
+fi
+exec chpst -u "$NUMENUSER:$NUMENGROUP:input:audio" numen ${OPTS}
diff --git a/srcpkgs/numen/template b/srcpkgs/numen/template
new file mode 100644
index 000000000000..7b5c5eaf8cb1
--- /dev/null
+++ b/srcpkgs/numen/template
@@ -0,0 +1,41 @@
+# Template file for 'numen'
+pkgname=numen
+# TODO I will release version 0.5 after this has been reviewed, in case you
+# suggest changes
+version=1607b16953280ad01fad23d673e589102e344397
+revision=1
+build_style=go
+go_import_path="git.sr.ht/~geb/numen"
+hostmakedepends="scdoc"
+makedepends="vosk-api libgomp-devel"
+depends="alsa-utils dmenu dotool xdotool xset"
+short_desc="Voice control for handsfree computing"
+maintainer="John Gebbie <me@johngebbie.com>"
+license="GPL-3.0-only"
+homepage="https://numenvoice.com"
+changelog="https://git.sr.ht/~geb/numen/blob/master/CHANGELOG.md"
+distfiles="https://git.sr.ht/~geb/numen/archive/${version}.tar.gz"
+checksum=c9c5a5cfe723196d3e62e0d786e76f2387e941ae6f62e38fb5b001963662f61a
+conf_files="/etc/sv/numen/conf"
+
+if [ "$XBPS_TARGET_LIBC" = musl ]; then
+	makedepends+=" libexecinfo-devel"
+fi
+
+system_accounts="_numen"
+
+pre_build() {
+	# for the vosk-api package (openblas)
+	export CGO_LDFLAGS="$CGO_LDFLAGS -fopenmp"
+
+	if [ "$XBPS_TARGET_LIBC" = musl ]; then
+		# for the vosk-api package (openfst)
+		export CGO_LDFLAGS="$CGO_LDFLAGS -lexecinfo"
+	fi
+}
+
+post_install() {
+	mv "${DESTDIR}/usr/bin/numen" speech
+	PACKAGING=true ./install-numen.sh "${DESTDIR}" /usr/bin
+	vsv numen
+}

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

* Re: [PR REVIEW] New package: numen-0.5
  2022-10-04 16:56 [PR PATCH] New package: numen-0.1 JohnGebbie
                   ` (27 preceding siblings ...)
  2022-12-29 22:10 ` [PR PATCH] [Updated] " JohnGebbie
@ 2022-12-29 22:11 ` JohnGebbie
  2022-12-30 11:19 ` [PR PATCH] [Updated] " JohnGebbie
                   ` (56 subsequent siblings)
  85 siblings, 0 replies; 87+ messages in thread
From: JohnGebbie @ 2022-12-29 22:11 UTC (permalink / raw)
  To: ml

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

New review comment by JohnGebbie on void-packages repository

https://github.com/void-linux/void-packages/pull/39716#discussion_r1059167740

Comment:
Thank you :)!

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

* Re: [PR PATCH] [Updated] New package: numen-0.5
  2022-10-04 16:56 [PR PATCH] New package: numen-0.1 JohnGebbie
                   ` (28 preceding siblings ...)
  2022-12-29 22:11 ` [PR REVIEW] " JohnGebbie
@ 2022-12-30 11:19 ` JohnGebbie
  2022-12-30 11:21 ` JohnGebbie
                   ` (55 subsequent siblings)
  85 siblings, 0 replies; 87+ messages in thread
From: JohnGebbie @ 2022-12-30 11:19 UTC (permalink / raw)
  To: ml

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

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

https://github.com/JohnGebbie/void-packages numen3
https://github.com/void-linux/void-packages/pull/39716

New package: numen-0.5
#### Testing the changes
- I tested the changes in this PR: **YES**

#### 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)

This is [my voice control](https://numenvoice.com) for handsfree computing, mainly for accessibility needs.

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

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

From 16056d554d5c421b87360594b533cc899e1df18b Mon Sep 17 00:00:00 2001
From: John Gebbie <me@johngebbie.com>
Date: Tue, 4 Oct 2022 17:50:42 +0100
Subject: [PATCH] New package: numen-0.5

---
 srcpkgs/numen/files/numen/conf    |  7 ++++++
 srcpkgs/numen/files/numen/log/run |  2 ++
 srcpkgs/numen/files/numen/run     | 11 +++++++++
 srcpkgs/numen/template            | 39 +++++++++++++++++++++++++++++++
 4 files changed, 59 insertions(+)
 create mode 100644 srcpkgs/numen/files/numen/conf
 create mode 100755 srcpkgs/numen/files/numen/log/run
 create mode 100755 srcpkgs/numen/files/numen/run
 create mode 100644 srcpkgs/numen/template

diff --git a/srcpkgs/numen/files/numen/conf b/srcpkgs/numen/files/numen/conf
new file mode 100644
index 000000000000..2d814396e2d9
--- /dev/null
+++ b/srcpkgs/numen/files/numen/conf
@@ -0,0 +1,7 @@
+# Example to run the service as a specific user:
+
+# NUMENUSER=john
+# NUMENGROUP="$NUMENUSER"
+# NUMENHOME="/home/$NUMENUSER"
+# export HOME="$NUMENHOME"
+# export XAUTHORITY="/run/user/$(id -u "$NUMENUSER")/Xauthority"
diff --git a/srcpkgs/numen/files/numen/log/run b/srcpkgs/numen/files/numen/log/run
new file mode 100755
index 000000000000..f77a7f813f11
--- /dev/null
+++ b/srcpkgs/numen/files/numen/log/run
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec vlogger -p daemon.info -t numen
diff --git a/srcpkgs/numen/files/numen/run b/srcpkgs/numen/files/numen/run
new file mode 100755
index 000000000000..da29f62904da
--- /dev/null
+++ b/srcpkgs/numen/files/numen/run
@@ -0,0 +1,11 @@
+#!/bin/sh
+exec 2>&1
+[ -r ./conf ] && . ./conf
+: ${NUMENUSER:=_numen}
+: ${NUMENGROUP:=_numen}
+if [ -z "$NUMENHOME" ]; then
+	mkdir -p /usr/share/numen
+	chown "$NUMENUSER:$NUMENGROUP" /usr/share/numen
+	export XDG_DATA_HOME=/usr/share
+fi
+exec chpst -u "$NUMENUSER:$NUMENGROUP:input:audio" numen ${OPTS}
diff --git a/srcpkgs/numen/template b/srcpkgs/numen/template
new file mode 100644
index 000000000000..c3cf5b117484
--- /dev/null
+++ b/srcpkgs/numen/template
@@ -0,0 +1,39 @@
+# Template file for 'numen'
+pkgname=numen
+version=0.5
+revision=1
+build_style=go
+go_import_path="git.sr.ht/~geb/numen"
+hostmakedepends="scdoc"
+makedepends="vosk-api libgomp-devel"
+depends="alsa-utils dmenu dotool xdotool xset"
+short_desc="Voice control for handsfree computing"
+maintainer="John Gebbie <me@johngebbie.com>"
+license="GPL-3.0-only"
+homepage="https://numenvoice.com"
+changelog="https://git.sr.ht/~geb/numen/blob/master/CHANGELOG.md"
+distfiles="https://git.sr.ht/~geb/numen/archive/${version}.tar.gz"
+checksum=c9c5a5cfe723196d3e62e0d786e76f2387e941ae6f62e38fb5b001963662f61a
+conf_files="/etc/sv/numen/conf"
+
+if [ "$XBPS_TARGET_LIBC" = musl ]; then
+	makedepends+=" libexecinfo-devel"
+fi
+
+system_accounts="_numen"
+
+pre_build() {
+	# for the vosk-api package (openblas)
+	export CGO_LDFLAGS="$CGO_LDFLAGS -fopenmp"
+
+	if [ "$XBPS_TARGET_LIBC" = musl ]; then
+		# for the vosk-api package (openfst)
+		export CGO_LDFLAGS="$CGO_LDFLAGS -lexecinfo"
+	fi
+}
+
+post_install() {
+	mv "${DESTDIR}/usr/bin/numen" speech
+	PACKAGING=true ./install-numen.sh "${DESTDIR}" /usr/bin
+	vsv numen
+}

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

* Re: [PR PATCH] [Updated] New package: numen-0.5
  2022-10-04 16:56 [PR PATCH] New package: numen-0.1 JohnGebbie
                   ` (29 preceding siblings ...)
  2022-12-30 11:19 ` [PR PATCH] [Updated] " JohnGebbie
@ 2022-12-30 11:21 ` JohnGebbie
  2022-12-30 11:48 ` JohnGebbie
                   ` (54 subsequent siblings)
  85 siblings, 0 replies; 87+ messages in thread
From: JohnGebbie @ 2022-12-30 11:21 UTC (permalink / raw)
  To: ml

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

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

https://github.com/JohnGebbie/void-packages numen3
https://github.com/void-linux/void-packages/pull/39716

New package: numen-0.5
#### Testing the changes
- I tested the changes in this PR: **YES**

#### 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)

This is [my voice control](https://numenvoice.com) for handsfree computing, mainly for accessibility needs.

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

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

From e4ebab1f2c0a0ec0678d0ef0185a2ac38d599442 Mon Sep 17 00:00:00 2001
From: John Gebbie <me@johngebbie.com>
Date: Tue, 4 Oct 2022 17:50:42 +0100
Subject: [PATCH] New package: numen-0.5

---
 srcpkgs/numen/files/numen/conf    |  7 ++++++
 srcpkgs/numen/files/numen/log/run |  2 ++
 srcpkgs/numen/files/numen/run     | 11 +++++++++
 srcpkgs/numen/template            | 39 +++++++++++++++++++++++++++++++
 4 files changed, 59 insertions(+)
 create mode 100644 srcpkgs/numen/files/numen/conf
 create mode 100755 srcpkgs/numen/files/numen/log/run
 create mode 100755 srcpkgs/numen/files/numen/run
 create mode 100644 srcpkgs/numen/template

diff --git a/srcpkgs/numen/files/numen/conf b/srcpkgs/numen/files/numen/conf
new file mode 100644
index 000000000000..2d814396e2d9
--- /dev/null
+++ b/srcpkgs/numen/files/numen/conf
@@ -0,0 +1,7 @@
+# Example to run the service as a specific user:
+
+# NUMENUSER=john
+# NUMENGROUP="$NUMENUSER"
+# NUMENHOME="/home/$NUMENUSER"
+# export HOME="$NUMENHOME"
+# export XAUTHORITY="/run/user/$(id -u "$NUMENUSER")/Xauthority"
diff --git a/srcpkgs/numen/files/numen/log/run b/srcpkgs/numen/files/numen/log/run
new file mode 100755
index 000000000000..f77a7f813f11
--- /dev/null
+++ b/srcpkgs/numen/files/numen/log/run
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec vlogger -p daemon.info -t numen
diff --git a/srcpkgs/numen/files/numen/run b/srcpkgs/numen/files/numen/run
new file mode 100755
index 000000000000..da29f62904da
--- /dev/null
+++ b/srcpkgs/numen/files/numen/run
@@ -0,0 +1,11 @@
+#!/bin/sh
+exec 2>&1
+[ -r ./conf ] && . ./conf
+: ${NUMENUSER:=_numen}
+: ${NUMENGROUP:=_numen}
+if [ -z "$NUMENHOME" ]; then
+	mkdir -p /usr/share/numen
+	chown "$NUMENUSER:$NUMENGROUP" /usr/share/numen
+	export XDG_DATA_HOME=/usr/share
+fi
+exec chpst -u "$NUMENUSER:$NUMENGROUP:input:audio" numen ${OPTS}
diff --git a/srcpkgs/numen/template b/srcpkgs/numen/template
new file mode 100644
index 000000000000..9a090b124a42
--- /dev/null
+++ b/srcpkgs/numen/template
@@ -0,0 +1,39 @@
+# Template file for 'numen'
+pkgname=numen
+version=0.5
+revision=1
+build_style=go
+go_import_path="git.sr.ht/~geb/numen"
+hostmakedepends="scdoc"
+makedepends="vosk-api libgomp-devel"
+depends="alsa-utils dmenu dotool xdotool xset"
+short_desc="Voice control for handsfree computing"
+maintainer="John Gebbie <me@johngebbie.com>"
+license="GPL-3.0-only"
+homepage="https://numenvoice.com"
+changelog="https://git.sr.ht/~geb/numen/blob/master/CHANGELOG.md"
+distfiles="https://git.sr.ht/~geb/numen/archive/${version}.tar.gz"
+checksum=6b1ca7b5b9b2134d43ce4f684b3833d75be2de66354e302d43ec2d03b071a520
+conf_files="/etc/sv/numen/conf"
+
+if [ "$XBPS_TARGET_LIBC" = musl ]; then
+	makedepends+=" libexecinfo-devel"
+fi
+
+system_accounts="_numen"
+
+pre_build() {
+	# for the vosk-api package (openblas)
+	export CGO_LDFLAGS="$CGO_LDFLAGS -fopenmp"
+
+	if [ "$XBPS_TARGET_LIBC" = musl ]; then
+		# for the vosk-api package (openfst)
+		export CGO_LDFLAGS="$CGO_LDFLAGS -lexecinfo"
+	fi
+}
+
+post_install() {
+	mv "${DESTDIR}/usr/bin/numen" speech
+	PACKAGING=true ./install-numen.sh "${DESTDIR}" /usr/bin
+	vsv numen
+}

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

* Re: New package: numen-0.5
  2022-10-04 16:56 [PR PATCH] New package: numen-0.1 JohnGebbie
                   ` (30 preceding siblings ...)
  2022-12-30 11:21 ` JohnGebbie
@ 2022-12-30 11:48 ` JohnGebbie
  2022-12-31 11:56 ` JohnGebbie
                   ` (53 subsequent siblings)
  85 siblings, 0 replies; 87+ messages in thread
From: JohnGebbie @ 2022-12-30 11:48 UTC (permalink / raw)
  To: ml

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

New comment by JohnGebbie on void-packages repository

https://github.com/void-linux/void-packages/pull/39716#issuecomment-1367877092

Comment:
That's me released version 0.5 and updated the template.
I deleted and uninstalled numen and most the dependencies and reinstalled numen and all seems well.
I also edited the service conf and reinstalled numen to check my modifications would be preserved and they were.


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

* Re: New package: numen-0.5
  2022-10-04 16:56 [PR PATCH] New package: numen-0.1 JohnGebbie
                   ` (31 preceding siblings ...)
  2022-12-30 11:48 ` JohnGebbie
@ 2022-12-31 11:56 ` JohnGebbie
  2022-12-31 11:58 ` JohnGebbie
                   ` (52 subsequent siblings)
  85 siblings, 0 replies; 87+ messages in thread
From: JohnGebbie @ 2022-12-31 11:56 UTC (permalink / raw)
  To: ml

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

New comment by JohnGebbie on void-packages repository

https://github.com/void-linux/void-packages/pull/39716#issuecomment-1337079725

Comment:
ready to merge

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

* Re: New package: numen-0.5
  2022-10-04 16:56 [PR PATCH] New package: numen-0.1 JohnGebbie
                   ` (32 preceding siblings ...)
  2022-12-31 11:56 ` JohnGebbie
@ 2022-12-31 11:58 ` JohnGebbie
  2022-12-31 13:30 ` JohnGebbie
                   ` (51 subsequent siblings)
  85 siblings, 0 replies; 87+ messages in thread
From: JohnGebbie @ 2022-12-31 11:58 UTC (permalink / raw)
  To: ml

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

New comment by JohnGebbie on void-packages repository

https://github.com/void-linux/void-packages/pull/39716#issuecomment-1368206108

Comment:
All seems well and ready to merge.

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

* Re: New package: numen-0.5
  2022-10-04 16:56 [PR PATCH] New package: numen-0.1 JohnGebbie
                   ` (33 preceding siblings ...)
  2022-12-31 11:58 ` JohnGebbie
@ 2022-12-31 13:30 ` JohnGebbie
  2022-12-31 14:43 ` [PR REVIEW] " paper42
                   ` (50 subsequent siblings)
  85 siblings, 0 replies; 87+ messages in thread
From: JohnGebbie @ 2022-12-31 13:30 UTC (permalink / raw)
  To: ml

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

New comment by JohnGebbie on void-packages repository

https://github.com/void-linux/void-packages/pull/39716#issuecomment-1368216146

Comment:
Hold off there seems to be a bug in a recent commit

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

* Re: [PR REVIEW] New package: numen-0.5
  2022-10-04 16:56 [PR PATCH] New package: numen-0.1 JohnGebbie
                   ` (34 preceding siblings ...)
  2022-12-31 13:30 ` JohnGebbie
@ 2022-12-31 14:43 ` paper42
  2022-12-31 16:36 ` [PR PATCH] [Updated] " JohnGebbie
                   ` (49 subsequent siblings)
  85 siblings, 0 replies; 87+ messages in thread
From: paper42 @ 2022-12-31 14:43 UTC (permalink / raw)
  To: ml

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

New review comment by paper42 on void-packages repository

https://github.com/void-linux/void-packages/pull/39716#discussion_r1059653035

Comment:
what's the purpose of this line?

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

* Re: [PR PATCH] [Updated] New package: numen-0.5
  2022-10-04 16:56 [PR PATCH] New package: numen-0.1 JohnGebbie
                   ` (35 preceding siblings ...)
  2022-12-31 14:43 ` [PR REVIEW] " paper42
@ 2022-12-31 16:36 ` JohnGebbie
  2022-12-31 16:52 ` [PR REVIEW] " JohnGebbie
                   ` (48 subsequent siblings)
  85 siblings, 0 replies; 87+ messages in thread
From: JohnGebbie @ 2022-12-31 16:36 UTC (permalink / raw)
  To: ml

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

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

https://github.com/JohnGebbie/void-packages numen3
https://github.com/void-linux/void-packages/pull/39716

New package: numen-0.5
#### Testing the changes
- I tested the changes in this PR: **YES**

#### 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)

This is [my voice control](https://numenvoice.com) for handsfree computing, mainly for accessibility needs.

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

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

From c797236be02a93233a16b4c0540b618942c77b86 Mon Sep 17 00:00:00 2001
From: John Gebbie <me@johngebbie.com>
Date: Tue, 4 Oct 2022 17:50:42 +0100
Subject: [PATCH] New package: numen-0.5

---
 srcpkgs/numen/files/numen/conf    |  7 ++++++
 srcpkgs/numen/files/numen/log/run |  2 ++
 srcpkgs/numen/files/numen/run     | 11 +++++++++
 srcpkgs/numen/template            | 40 +++++++++++++++++++++++++++++++
 4 files changed, 60 insertions(+)
 create mode 100644 srcpkgs/numen/files/numen/conf
 create mode 100755 srcpkgs/numen/files/numen/log/run
 create mode 100755 srcpkgs/numen/files/numen/run
 create mode 100644 srcpkgs/numen/template

diff --git a/srcpkgs/numen/files/numen/conf b/srcpkgs/numen/files/numen/conf
new file mode 100644
index 000000000000..2d814396e2d9
--- /dev/null
+++ b/srcpkgs/numen/files/numen/conf
@@ -0,0 +1,7 @@
+# Example to run the service as a specific user:
+
+# NUMENUSER=john
+# NUMENGROUP="$NUMENUSER"
+# NUMENHOME="/home/$NUMENUSER"
+# export HOME="$NUMENHOME"
+# export XAUTHORITY="/run/user/$(id -u "$NUMENUSER")/Xauthority"
diff --git a/srcpkgs/numen/files/numen/log/run b/srcpkgs/numen/files/numen/log/run
new file mode 100755
index 000000000000..f77a7f813f11
--- /dev/null
+++ b/srcpkgs/numen/files/numen/log/run
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec vlogger -p daemon.info -t numen
diff --git a/srcpkgs/numen/files/numen/run b/srcpkgs/numen/files/numen/run
new file mode 100755
index 000000000000..da29f62904da
--- /dev/null
+++ b/srcpkgs/numen/files/numen/run
@@ -0,0 +1,11 @@
+#!/bin/sh
+exec 2>&1
+[ -r ./conf ] && . ./conf
+: ${NUMENUSER:=_numen}
+: ${NUMENGROUP:=_numen}
+if [ -z "$NUMENHOME" ]; then
+	mkdir -p /usr/share/numen
+	chown "$NUMENUSER:$NUMENGROUP" /usr/share/numen
+	export XDG_DATA_HOME=/usr/share
+fi
+exec chpst -u "$NUMENUSER:$NUMENGROUP:input:audio" numen ${OPTS}
diff --git a/srcpkgs/numen/template b/srcpkgs/numen/template
new file mode 100644
index 000000000000..89d16ce1ff65
--- /dev/null
+++ b/srcpkgs/numen/template
@@ -0,0 +1,40 @@
+# Template file for 'numen'
+pkgname=numen
+version=0.5
+revision=1
+build_style=go
+go_import_path="git.sr.ht/~geb/numen"
+go_package="speech.go"
+hostmakedepends="scdoc"
+makedepends="vosk-api libgomp-devel"
+depends="alsa-utils dmenu dotool xdotool xset"
+short_desc="Voice control for handsfree computing"
+maintainer="John Gebbie <me@johngebbie.com>"
+license="GPL-3.0-only"
+homepage="https://numenvoice.com"
+changelog="https://git.sr.ht/~geb/numen/blob/master/CHANGELOG.md"
+distfiles="https://git.sr.ht/~geb/numen/archive/${version}.tar.gz"
+checksum=c1df50b67c725c885450853a959de10b46ac4af01fca2c120fa14ba89a6920e0
+conf_files="/etc/sv/numen/conf"
+
+if [ "$XBPS_TARGET_LIBC" = musl ]; then
+	makedepends+=" libexecinfo-devel"
+fi
+
+system_accounts="_numen"
+
+pre_build() {
+	# for the vosk-api package (openblas)
+	export CGO_LDFLAGS="$CGO_LDFLAGS -fopenmp"
+
+	if [ "$XBPS_TARGET_LIBC" = musl ]; then
+		# for the vosk-api package (openfst)
+		export CGO_LDFLAGS="$CGO_LDFLAGS -lexecinfo"
+	fi
+}
+
+post_install() {
+	mv "${DESTDIR}/usr/bin/speech" .
+	PACKAGING=true ./install-numen.sh "${DESTDIR}" /usr/bin
+	vsv numen
+}

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

* Re: [PR REVIEW] New package: numen-0.5
  2022-10-04 16:56 [PR PATCH] New package: numen-0.1 JohnGebbie
                   ` (36 preceding siblings ...)
  2022-12-31 16:36 ` [PR PATCH] [Updated] " JohnGebbie
@ 2022-12-31 16:52 ` JohnGebbie
  2022-12-31 21:46 ` JohnGebbie
                   ` (47 subsequent siblings)
  85 siblings, 0 replies; 87+ messages in thread
From: JohnGebbie @ 2022-12-31 16:52 UTC (permalink / raw)
  To: ml

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

New review comment by JohnGebbie on void-packages repository

https://github.com/void-linux/void-packages/pull/39716#discussion_r1059662884

Comment:
numen is not just a go executable, it's a pipline with shell scripts too.
The go module name has to be `git.sr.ht/~geb/numen` but the go file is speech.go.
I have added `go_package="speech.go"` so it is compiled as `speech` which is a slight improvement I think.

(I also thought I could compile it to $wrksrc by with `do_install` instead of `post_install` but then it ends up in a directory in $GOPATH.)


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

* Re: New package: numen-0.5
  2022-10-04 16:56 [PR PATCH] New package: numen-0.1 JohnGebbie
                   ` (37 preceding siblings ...)
  2022-12-31 16:52 ` [PR REVIEW] " JohnGebbie
@ 2022-12-31 21:46 ` JohnGebbie
  2022-12-31 21:46 ` JohnGebbie
                   ` (46 subsequent siblings)
  85 siblings, 0 replies; 87+ messages in thread
From: JohnGebbie @ 2022-12-31 21:46 UTC (permalink / raw)
  To: ml

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

New comment by JohnGebbie on void-packages repository

https://github.com/void-linux/void-packages/pull/39716#issuecomment-1368216146

Comment:
Hold off there seems to be a bug in a recent commit

EDIT: Has been resolved and was due to an old dependency on another distro anyway
(Happy new year!)

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

* Re: New package: numen-0.5
  2022-10-04 16:56 [PR PATCH] New package: numen-0.1 JohnGebbie
                   ` (38 preceding siblings ...)
  2022-12-31 21:46 ` JohnGebbie
@ 2022-12-31 21:46 ` JohnGebbie
  2023-01-02 21:35 ` [PR PATCH] [Updated] " JohnGebbie
                   ` (45 subsequent siblings)
  85 siblings, 0 replies; 87+ messages in thread
From: JohnGebbie @ 2022-12-31 21:46 UTC (permalink / raw)
  To: ml

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

New comment by JohnGebbie on void-packages repository

https://github.com/void-linux/void-packages/pull/39716#issuecomment-1368216146

Comment:
Hold off there seems to be a bug in a recent commit

EDIT: Has been resolved and was due to an old dependency on another distro anyway
(Happy new yearish!)

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

* Re: [PR PATCH] [Updated] New package: numen-0.5
  2022-10-04 16:56 [PR PATCH] New package: numen-0.1 JohnGebbie
                   ` (39 preceding siblings ...)
  2022-12-31 21:46 ` JohnGebbie
@ 2023-01-02 21:35 ` JohnGebbie
  2023-01-02 21:38 ` JohnGebbie
                   ` (44 subsequent siblings)
  85 siblings, 0 replies; 87+ messages in thread
From: JohnGebbie @ 2023-01-02 21:35 UTC (permalink / raw)
  To: ml

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

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

https://github.com/JohnGebbie/void-packages numen3
https://github.com/void-linux/void-packages/pull/39716

New package: numen-0.5
#### Testing the changes
- I tested the changes in this PR: **YES**

#### 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)

This is [my voice control](https://numenvoice.com) for handsfree computing, mainly for accessibility needs.

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

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

From b0ea7df9cafe4233dc269aca6cc8b1945472caaf Mon Sep 17 00:00:00 2001
From: John Gebbie <me@johngebbie.com>
Date: Tue, 4 Oct 2022 17:50:42 +0100
Subject: [PATCH] New package: numen-0.5

---
 srcpkgs/numen/files/numen/conf    |  7 ++++++
 srcpkgs/numen/files/numen/log/run |  2 ++
 srcpkgs/numen/files/numen/run     | 11 +++++++++
 srcpkgs/numen/template            | 40 +++++++++++++++++++++++++++++++
 4 files changed, 60 insertions(+)
 create mode 100644 srcpkgs/numen/files/numen/conf
 create mode 100755 srcpkgs/numen/files/numen/log/run
 create mode 100755 srcpkgs/numen/files/numen/run
 create mode 100644 srcpkgs/numen/template

diff --git a/srcpkgs/numen/files/numen/conf b/srcpkgs/numen/files/numen/conf
new file mode 100644
index 000000000000..2d814396e2d9
--- /dev/null
+++ b/srcpkgs/numen/files/numen/conf
@@ -0,0 +1,7 @@
+# Example to run the service as a specific user:
+
+# NUMENUSER=john
+# NUMENGROUP="$NUMENUSER"
+# NUMENHOME="/home/$NUMENUSER"
+# export HOME="$NUMENHOME"
+# export XAUTHORITY="/run/user/$(id -u "$NUMENUSER")/Xauthority"
diff --git a/srcpkgs/numen/files/numen/log/run b/srcpkgs/numen/files/numen/log/run
new file mode 100755
index 000000000000..f77a7f813f11
--- /dev/null
+++ b/srcpkgs/numen/files/numen/log/run
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec vlogger -p daemon.info -t numen
diff --git a/srcpkgs/numen/files/numen/run b/srcpkgs/numen/files/numen/run
new file mode 100755
index 000000000000..da29f62904da
--- /dev/null
+++ b/srcpkgs/numen/files/numen/run
@@ -0,0 +1,11 @@
+#!/bin/sh
+exec 2>&1
+[ -r ./conf ] && . ./conf
+: ${NUMENUSER:=_numen}
+: ${NUMENGROUP:=_numen}
+if [ -z "$NUMENHOME" ]; then
+	mkdir -p /usr/share/numen
+	chown "$NUMENUSER:$NUMENGROUP" /usr/share/numen
+	export XDG_DATA_HOME=/usr/share
+fi
+exec chpst -u "$NUMENUSER:$NUMENGROUP:input:audio" numen ${OPTS}
diff --git a/srcpkgs/numen/template b/srcpkgs/numen/template
new file mode 100644
index 000000000000..89d16ce1ff65
--- /dev/null
+++ b/srcpkgs/numen/template
@@ -0,0 +1,40 @@
+# Template file for 'numen'
+pkgname=numen
+version=0.5
+revision=1
+build_style=go
+go_import_path="git.sr.ht/~geb/numen"
+go_package="speech.go"
+hostmakedepends="scdoc"
+makedepends="vosk-api libgomp-devel"
+depends="alsa-utils dmenu dotool xdotool xset"
+short_desc="Voice control for handsfree computing"
+maintainer="John Gebbie <me@johngebbie.com>"
+license="GPL-3.0-only"
+homepage="https://numenvoice.com"
+changelog="https://git.sr.ht/~geb/numen/blob/master/CHANGELOG.md"
+distfiles="https://git.sr.ht/~geb/numen/archive/${version}.tar.gz"
+checksum=c1df50b67c725c885450853a959de10b46ac4af01fca2c120fa14ba89a6920e0
+conf_files="/etc/sv/numen/conf"
+
+if [ "$XBPS_TARGET_LIBC" = musl ]; then
+	makedepends+=" libexecinfo-devel"
+fi
+
+system_accounts="_numen"
+
+pre_build() {
+	# for the vosk-api package (openblas)
+	export CGO_LDFLAGS="$CGO_LDFLAGS -fopenmp"
+
+	if [ "$XBPS_TARGET_LIBC" = musl ]; then
+		# for the vosk-api package (openfst)
+		export CGO_LDFLAGS="$CGO_LDFLAGS -lexecinfo"
+	fi
+}
+
+post_install() {
+	mv "${DESTDIR}/usr/bin/speech" .
+	PACKAGING=true ./install-numen.sh "${DESTDIR}" /usr/bin
+	vsv numen
+}

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

* Re: New package: numen-0.5
  2022-10-04 16:56 [PR PATCH] New package: numen-0.1 JohnGebbie
                   ` (40 preceding siblings ...)
  2023-01-02 21:35 ` [PR PATCH] [Updated] " JohnGebbie
@ 2023-01-02 21:38 ` JohnGebbie
  2023-01-06 14:22 ` Eloitor
                   ` (43 subsequent siblings)
  85 siblings, 0 replies; 87+ messages in thread
From: JohnGebbie @ 2023-01-02 21:38 UTC (permalink / raw)
  To: ml

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

New comment by JohnGebbie on void-packages repository

https://github.com/void-linux/void-packages/pull/39716#issuecomment-1369227342

Comment:
Just updated the branch. This is ready to merge if you think so.

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

* Re: New package: numen-0.5
  2022-10-04 16:56 [PR PATCH] New package: numen-0.1 JohnGebbie
                   ` (41 preceding siblings ...)
  2023-01-02 21:38 ` JohnGebbie
@ 2023-01-06 14:22 ` Eloitor
  2023-01-06 14:23 ` Eloitor
                   ` (42 subsequent siblings)
  85 siblings, 0 replies; 87+ messages in thread
From: Eloitor @ 2023-01-06 14:22 UTC (permalink / raw)
  To: ml

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

New comment by Eloitor on void-packages repository

https://github.com/void-linux/void-packages/pull/39716#issuecomment-1373705569

Comment:
I tested it and `it works well for me! Thank you

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

* Re: New package: numen-0.5
  2022-10-04 16:56 [PR PATCH] New package: numen-0.1 JohnGebbie
                   ` (42 preceding siblings ...)
  2023-01-06 14:22 ` Eloitor
@ 2023-01-06 14:23 ` Eloitor
  2023-01-06 14:23 ` Eloitor
                   ` (41 subsequent siblings)
  85 siblings, 0 replies; 87+ messages in thread
From: Eloitor @ 2023-01-06 14:23 UTC (permalink / raw)
  To: ml

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

New comment by Eloitor on void-packages repository

https://github.com/void-linux/void-packages/pull/39716#issuecomment-1373705569

Comment:
I tested it and ^hit works well for me! Thank you

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

* Re: New package: numen-0.5
  2022-10-04 16:56 [PR PATCH] New package: numen-0.1 JohnGebbie
                   ` (43 preceding siblings ...)
  2023-01-06 14:23 ` Eloitor
@ 2023-01-06 14:23 ` Eloitor
  2023-01-06 15:05 ` JohnGebbie
                   ` (40 subsequent siblings)
  85 siblings, 0 replies; 87+ messages in thread
From: Eloitor @ 2023-01-06 14:23 UTC (permalink / raw)
  To: ml

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

New comment by Eloitor on void-packages repository

https://github.com/void-linux/void-packages/pull/39716#issuecomment-1373705569

Comment:
I tested it and it works well for me! Thank you

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

* Re: New package: numen-0.5
  2022-10-04 16:56 [PR PATCH] New package: numen-0.1 JohnGebbie
                   ` (44 preceding siblings ...)
  2023-01-06 14:23 ` Eloitor
@ 2023-01-06 15:05 ` JohnGebbie
  2023-01-06 15:06 ` JohnGebbie
                   ` (39 subsequent siblings)
  85 siblings, 0 replies; 87+ messages in thread
From: JohnGebbie @ 2023-01-06 15:05 UTC (permalink / raw)
  To: ml

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

New comment by JohnGebbie on void-packages repository

https://github.com/void-linux/void-packages/pull/39716#issuecomment-1373746967

Comment:
Thanks @Eloitor, that's great :) You'd be very welcome on the [matrix chat](https://matrix.to/#/#numen:matrix.org) if that's something use.

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

* Re: New package: numen-0.5
  2022-10-04 16:56 [PR PATCH] New package: numen-0.1 JohnGebbie
                   ` (45 preceding siblings ...)
  2023-01-06 15:05 ` JohnGebbie
@ 2023-01-06 15:06 ` JohnGebbie
  2023-01-06 15:08 ` [PR PATCH] [Updated] " JohnGebbie
                   ` (38 subsequent siblings)
  85 siblings, 0 replies; 87+ messages in thread
From: JohnGebbie @ 2023-01-06 15:06 UTC (permalink / raw)
  To: ml

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

New comment by JohnGebbie on void-packages repository

https://github.com/void-linux/void-packages/pull/39716#issuecomment-1373746967

Comment:
Thanks @Eloitor, that's great :) You'd be very welcome on the [matrix chat](https://matrix.to/#/#numen:matrix.org) if that's something you use.

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

* Re: [PR PATCH] [Updated] New package: numen-0.5
  2022-10-04 16:56 [PR PATCH] New package: numen-0.1 JohnGebbie
                   ` (46 preceding siblings ...)
  2023-01-06 15:06 ` JohnGebbie
@ 2023-01-06 15:08 ` JohnGebbie
  2023-01-06 15:09 ` JohnGebbie
                   ` (37 subsequent siblings)
  85 siblings, 0 replies; 87+ messages in thread
From: JohnGebbie @ 2023-01-06 15:08 UTC (permalink / raw)
  To: ml

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

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

https://github.com/JohnGebbie/void-packages numen3
https://github.com/void-linux/void-packages/pull/39716

New package: numen-0.5
#### Testing the changes
- I tested the changes in this PR: **YES**

#### 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)

This is [my voice control](https://numenvoice.com) for handsfree computing, mainly for accessibility needs.

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

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

From 9af2165309466d10fbab128e12b7b011a1a5c18b Mon Sep 17 00:00:00 2001
From: John Gebbie <me@johngebbie.com>
Date: Tue, 4 Oct 2022 17:50:42 +0100
Subject: [PATCH] New package: numen-0.5

---
 srcpkgs/numen/files/numen/conf    |  7 ++++++
 srcpkgs/numen/files/numen/log/run |  2 ++
 srcpkgs/numen/files/numen/run     | 11 +++++++++
 srcpkgs/numen/template            | 40 +++++++++++++++++++++++++++++++
 4 files changed, 60 insertions(+)
 create mode 100644 srcpkgs/numen/files/numen/conf
 create mode 100755 srcpkgs/numen/files/numen/log/run
 create mode 100755 srcpkgs/numen/files/numen/run
 create mode 100644 srcpkgs/numen/template

diff --git a/srcpkgs/numen/files/numen/conf b/srcpkgs/numen/files/numen/conf
new file mode 100644
index 000000000000..2d814396e2d9
--- /dev/null
+++ b/srcpkgs/numen/files/numen/conf
@@ -0,0 +1,7 @@
+# Example to run the service as a specific user:
+
+# NUMENUSER=john
+# NUMENGROUP="$NUMENUSER"
+# NUMENHOME="/home/$NUMENUSER"
+# export HOME="$NUMENHOME"
+# export XAUTHORITY="/run/user/$(id -u "$NUMENUSER")/Xauthority"
diff --git a/srcpkgs/numen/files/numen/log/run b/srcpkgs/numen/files/numen/log/run
new file mode 100755
index 000000000000..f77a7f813f11
--- /dev/null
+++ b/srcpkgs/numen/files/numen/log/run
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec vlogger -p daemon.info -t numen
diff --git a/srcpkgs/numen/files/numen/run b/srcpkgs/numen/files/numen/run
new file mode 100755
index 000000000000..da29f62904da
--- /dev/null
+++ b/srcpkgs/numen/files/numen/run
@@ -0,0 +1,11 @@
+#!/bin/sh
+exec 2>&1
+[ -r ./conf ] && . ./conf
+: ${NUMENUSER:=_numen}
+: ${NUMENGROUP:=_numen}
+if [ -z "$NUMENHOME" ]; then
+	mkdir -p /usr/share/numen
+	chown "$NUMENUSER:$NUMENGROUP" /usr/share/numen
+	export XDG_DATA_HOME=/usr/share
+fi
+exec chpst -u "$NUMENUSER:$NUMENGROUP:input:audio" numen ${OPTS}
diff --git a/srcpkgs/numen/template b/srcpkgs/numen/template
new file mode 100644
index 000000000000..89d16ce1ff65
--- /dev/null
+++ b/srcpkgs/numen/template
@@ -0,0 +1,40 @@
+# Template file for 'numen'
+pkgname=numen
+version=0.5
+revision=1
+build_style=go
+go_import_path="git.sr.ht/~geb/numen"
+go_package="speech.go"
+hostmakedepends="scdoc"
+makedepends="vosk-api libgomp-devel"
+depends="alsa-utils dmenu dotool xdotool xset"
+short_desc="Voice control for handsfree computing"
+maintainer="John Gebbie <me@johngebbie.com>"
+license="GPL-3.0-only"
+homepage="https://numenvoice.com"
+changelog="https://git.sr.ht/~geb/numen/blob/master/CHANGELOG.md"
+distfiles="https://git.sr.ht/~geb/numen/archive/${version}.tar.gz"
+checksum=c1df50b67c725c885450853a959de10b46ac4af01fca2c120fa14ba89a6920e0
+conf_files="/etc/sv/numen/conf"
+
+if [ "$XBPS_TARGET_LIBC" = musl ]; then
+	makedepends+=" libexecinfo-devel"
+fi
+
+system_accounts="_numen"
+
+pre_build() {
+	# for the vosk-api package (openblas)
+	export CGO_LDFLAGS="$CGO_LDFLAGS -fopenmp"
+
+	if [ "$XBPS_TARGET_LIBC" = musl ]; then
+		# for the vosk-api package (openfst)
+		export CGO_LDFLAGS="$CGO_LDFLAGS -lexecinfo"
+	fi
+}
+
+post_install() {
+	mv "${DESTDIR}/usr/bin/speech" .
+	PACKAGING=true ./install-numen.sh "${DESTDIR}" /usr/bin
+	vsv numen
+}

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

* Re: New package: numen-0.5
  2022-10-04 16:56 [PR PATCH] New package: numen-0.1 JohnGebbie
                   ` (47 preceding siblings ...)
  2023-01-06 15:08 ` [PR PATCH] [Updated] " JohnGebbie
@ 2023-01-06 15:09 ` JohnGebbie
  2023-01-10 14:39 ` [PR PATCH] [Updated] " JohnGebbie
                   ` (36 subsequent siblings)
  85 siblings, 0 replies; 87+ messages in thread
From: JohnGebbie @ 2023-01-06 15:09 UTC (permalink / raw)
  To: ml

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

New comment by JohnGebbie on void-packages repository

https://github.com/void-linux/void-packages/pull/39716#issuecomment-1373750703

Comment:
just git pulled, still ready

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

* Re: [PR PATCH] [Updated] New package: numen-0.5
  2022-10-04 16:56 [PR PATCH] New package: numen-0.1 JohnGebbie
                   ` (48 preceding siblings ...)
  2023-01-06 15:09 ` JohnGebbie
@ 2023-01-10 14:39 ` JohnGebbie
  2023-01-12 14:06 ` JohnGebbie
                   ` (35 subsequent siblings)
  85 siblings, 0 replies; 87+ messages in thread
From: JohnGebbie @ 2023-01-10 14:39 UTC (permalink / raw)
  To: ml

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

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

https://github.com/JohnGebbie/void-packages numen3
https://github.com/void-linux/void-packages/pull/39716

New package: numen-0.5
#### Testing the changes
- I tested the changes in this PR: **YES**

#### 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)

This is [my voice control](https://numenvoice.com) for handsfree computing, mainly for accessibility needs.

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

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

From d6fcf93d23f59fc54bd8f8ae1b0c964258a0009c Mon Sep 17 00:00:00 2001
From: John Gebbie <me@johngebbie.com>
Date: Tue, 4 Oct 2022 17:50:42 +0100
Subject: [PATCH] New package: numen-0.5

---
 srcpkgs/numen/files/numen/conf    |  7 ++++++
 srcpkgs/numen/files/numen/log/run |  2 ++
 srcpkgs/numen/files/numen/run     | 11 +++++++++
 srcpkgs/numen/template            | 40 +++++++++++++++++++++++++++++++
 4 files changed, 60 insertions(+)
 create mode 100644 srcpkgs/numen/files/numen/conf
 create mode 100755 srcpkgs/numen/files/numen/log/run
 create mode 100755 srcpkgs/numen/files/numen/run
 create mode 100644 srcpkgs/numen/template

diff --git a/srcpkgs/numen/files/numen/conf b/srcpkgs/numen/files/numen/conf
new file mode 100644
index 000000000000..2d814396e2d9
--- /dev/null
+++ b/srcpkgs/numen/files/numen/conf
@@ -0,0 +1,7 @@
+# Example to run the service as a specific user:
+
+# NUMENUSER=john
+# NUMENGROUP="$NUMENUSER"
+# NUMENHOME="/home/$NUMENUSER"
+# export HOME="$NUMENHOME"
+# export XAUTHORITY="/run/user/$(id -u "$NUMENUSER")/Xauthority"
diff --git a/srcpkgs/numen/files/numen/log/run b/srcpkgs/numen/files/numen/log/run
new file mode 100755
index 000000000000..f77a7f813f11
--- /dev/null
+++ b/srcpkgs/numen/files/numen/log/run
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec vlogger -p daemon.info -t numen
diff --git a/srcpkgs/numen/files/numen/run b/srcpkgs/numen/files/numen/run
new file mode 100755
index 000000000000..da29f62904da
--- /dev/null
+++ b/srcpkgs/numen/files/numen/run
@@ -0,0 +1,11 @@
+#!/bin/sh
+exec 2>&1
+[ -r ./conf ] && . ./conf
+: ${NUMENUSER:=_numen}
+: ${NUMENGROUP:=_numen}
+if [ -z "$NUMENHOME" ]; then
+	mkdir -p /usr/share/numen
+	chown "$NUMENUSER:$NUMENGROUP" /usr/share/numen
+	export XDG_DATA_HOME=/usr/share
+fi
+exec chpst -u "$NUMENUSER:$NUMENGROUP:input:audio" numen ${OPTS}
diff --git a/srcpkgs/numen/template b/srcpkgs/numen/template
new file mode 100644
index 000000000000..89d16ce1ff65
--- /dev/null
+++ b/srcpkgs/numen/template
@@ -0,0 +1,40 @@
+# Template file for 'numen'
+pkgname=numen
+version=0.5
+revision=1
+build_style=go
+go_import_path="git.sr.ht/~geb/numen"
+go_package="speech.go"
+hostmakedepends="scdoc"
+makedepends="vosk-api libgomp-devel"
+depends="alsa-utils dmenu dotool xdotool xset"
+short_desc="Voice control for handsfree computing"
+maintainer="John Gebbie <me@johngebbie.com>"
+license="GPL-3.0-only"
+homepage="https://numenvoice.com"
+changelog="https://git.sr.ht/~geb/numen/blob/master/CHANGELOG.md"
+distfiles="https://git.sr.ht/~geb/numen/archive/${version}.tar.gz"
+checksum=c1df50b67c725c885450853a959de10b46ac4af01fca2c120fa14ba89a6920e0
+conf_files="/etc/sv/numen/conf"
+
+if [ "$XBPS_TARGET_LIBC" = musl ]; then
+	makedepends+=" libexecinfo-devel"
+fi
+
+system_accounts="_numen"
+
+pre_build() {
+	# for the vosk-api package (openblas)
+	export CGO_LDFLAGS="$CGO_LDFLAGS -fopenmp"
+
+	if [ "$XBPS_TARGET_LIBC" = musl ]; then
+		# for the vosk-api package (openfst)
+		export CGO_LDFLAGS="$CGO_LDFLAGS -lexecinfo"
+	fi
+}
+
+post_install() {
+	mv "${DESTDIR}/usr/bin/speech" .
+	PACKAGING=true ./install-numen.sh "${DESTDIR}" /usr/bin
+	vsv numen
+}

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

* Re: [PR PATCH] [Updated] New package: numen-0.5
  2022-10-04 16:56 [PR PATCH] New package: numen-0.1 JohnGebbie
                   ` (49 preceding siblings ...)
  2023-01-10 14:39 ` [PR PATCH] [Updated] " JohnGebbie
@ 2023-01-12 14:06 ` JohnGebbie
  2023-01-15 14:12 ` JohnGebbie
                   ` (34 subsequent siblings)
  85 siblings, 0 replies; 87+ messages in thread
From: JohnGebbie @ 2023-01-12 14:06 UTC (permalink / raw)
  To: ml

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

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

https://github.com/JohnGebbie/void-packages numen3
https://github.com/void-linux/void-packages/pull/39716

New package: numen-0.5
#### Testing the changes
- I tested the changes in this PR: **YES**

#### 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)

This is [my voice control](https://numenvoice.com) for handsfree computing, mainly for accessibility needs.

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

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

From cb4f6627209a2f8416b7a9e890cb5e50820da15d Mon Sep 17 00:00:00 2001
From: John Gebbie <me@johngebbie.com>
Date: Tue, 4 Oct 2022 17:50:42 +0100
Subject: [PATCH] New package: numen-0.5

---
 srcpkgs/numen/files/numen/conf    |  7 ++++++
 srcpkgs/numen/files/numen/log/run |  2 ++
 srcpkgs/numen/files/numen/run     | 11 +++++++++
 srcpkgs/numen/template            | 40 +++++++++++++++++++++++++++++++
 4 files changed, 60 insertions(+)
 create mode 100644 srcpkgs/numen/files/numen/conf
 create mode 100755 srcpkgs/numen/files/numen/log/run
 create mode 100755 srcpkgs/numen/files/numen/run
 create mode 100644 srcpkgs/numen/template

diff --git a/srcpkgs/numen/files/numen/conf b/srcpkgs/numen/files/numen/conf
new file mode 100644
index 000000000000..2d814396e2d9
--- /dev/null
+++ b/srcpkgs/numen/files/numen/conf
@@ -0,0 +1,7 @@
+# Example to run the service as a specific user:
+
+# NUMENUSER=john
+# NUMENGROUP="$NUMENUSER"
+# NUMENHOME="/home/$NUMENUSER"
+# export HOME="$NUMENHOME"
+# export XAUTHORITY="/run/user/$(id -u "$NUMENUSER")/Xauthority"
diff --git a/srcpkgs/numen/files/numen/log/run b/srcpkgs/numen/files/numen/log/run
new file mode 100755
index 000000000000..f77a7f813f11
--- /dev/null
+++ b/srcpkgs/numen/files/numen/log/run
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec vlogger -p daemon.info -t numen
diff --git a/srcpkgs/numen/files/numen/run b/srcpkgs/numen/files/numen/run
new file mode 100755
index 000000000000..da29f62904da
--- /dev/null
+++ b/srcpkgs/numen/files/numen/run
@@ -0,0 +1,11 @@
+#!/bin/sh
+exec 2>&1
+[ -r ./conf ] && . ./conf
+: ${NUMENUSER:=_numen}
+: ${NUMENGROUP:=_numen}
+if [ -z "$NUMENHOME" ]; then
+	mkdir -p /usr/share/numen
+	chown "$NUMENUSER:$NUMENGROUP" /usr/share/numen
+	export XDG_DATA_HOME=/usr/share
+fi
+exec chpst -u "$NUMENUSER:$NUMENGROUP:input:audio" numen ${OPTS}
diff --git a/srcpkgs/numen/template b/srcpkgs/numen/template
new file mode 100644
index 000000000000..89d16ce1ff65
--- /dev/null
+++ b/srcpkgs/numen/template
@@ -0,0 +1,40 @@
+# Template file for 'numen'
+pkgname=numen
+version=0.5
+revision=1
+build_style=go
+go_import_path="git.sr.ht/~geb/numen"
+go_package="speech.go"
+hostmakedepends="scdoc"
+makedepends="vosk-api libgomp-devel"
+depends="alsa-utils dmenu dotool xdotool xset"
+short_desc="Voice control for handsfree computing"
+maintainer="John Gebbie <me@johngebbie.com>"
+license="GPL-3.0-only"
+homepage="https://numenvoice.com"
+changelog="https://git.sr.ht/~geb/numen/blob/master/CHANGELOG.md"
+distfiles="https://git.sr.ht/~geb/numen/archive/${version}.tar.gz"
+checksum=c1df50b67c725c885450853a959de10b46ac4af01fca2c120fa14ba89a6920e0
+conf_files="/etc/sv/numen/conf"
+
+if [ "$XBPS_TARGET_LIBC" = musl ]; then
+	makedepends+=" libexecinfo-devel"
+fi
+
+system_accounts="_numen"
+
+pre_build() {
+	# for the vosk-api package (openblas)
+	export CGO_LDFLAGS="$CGO_LDFLAGS -fopenmp"
+
+	if [ "$XBPS_TARGET_LIBC" = musl ]; then
+		# for the vosk-api package (openfst)
+		export CGO_LDFLAGS="$CGO_LDFLAGS -lexecinfo"
+	fi
+}
+
+post_install() {
+	mv "${DESTDIR}/usr/bin/speech" .
+	PACKAGING=true ./install-numen.sh "${DESTDIR}" /usr/bin
+	vsv numen
+}

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

* Re: [PR PATCH] [Updated] New package: numen-0.5
  2022-10-04 16:56 [PR PATCH] New package: numen-0.1 JohnGebbie
                   ` (50 preceding siblings ...)
  2023-01-12 14:06 ` JohnGebbie
@ 2023-01-15 14:12 ` JohnGebbie
  2023-01-20 11:33 ` JohnGebbie
                   ` (33 subsequent siblings)
  85 siblings, 0 replies; 87+ messages in thread
From: JohnGebbie @ 2023-01-15 14:12 UTC (permalink / raw)
  To: ml

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

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

https://github.com/JohnGebbie/void-packages numen3
https://github.com/void-linux/void-packages/pull/39716

New package: numen-0.5
#### Testing the changes
- I tested the changes in this PR: **YES**

#### 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)

This is [my voice control](https://numenvoice.com) for handsfree computing, mainly for accessibility needs.

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

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

From 58f86840c9326a10115aff22b82125321334f948 Mon Sep 17 00:00:00 2001
From: John Gebbie <me@johngebbie.com>
Date: Tue, 4 Oct 2022 17:50:42 +0100
Subject: [PATCH] New package: numen-0.5

---
 srcpkgs/numen/files/numen/conf    |  7 ++++++
 srcpkgs/numen/files/numen/log/run |  2 ++
 srcpkgs/numen/files/numen/run     | 11 +++++++++
 srcpkgs/numen/template            | 40 +++++++++++++++++++++++++++++++
 4 files changed, 60 insertions(+)
 create mode 100644 srcpkgs/numen/files/numen/conf
 create mode 100755 srcpkgs/numen/files/numen/log/run
 create mode 100755 srcpkgs/numen/files/numen/run
 create mode 100644 srcpkgs/numen/template

diff --git a/srcpkgs/numen/files/numen/conf b/srcpkgs/numen/files/numen/conf
new file mode 100644
index 000000000000..2d814396e2d9
--- /dev/null
+++ b/srcpkgs/numen/files/numen/conf
@@ -0,0 +1,7 @@
+# Example to run the service as a specific user:
+
+# NUMENUSER=john
+# NUMENGROUP="$NUMENUSER"
+# NUMENHOME="/home/$NUMENUSER"
+# export HOME="$NUMENHOME"
+# export XAUTHORITY="/run/user/$(id -u "$NUMENUSER")/Xauthority"
diff --git a/srcpkgs/numen/files/numen/log/run b/srcpkgs/numen/files/numen/log/run
new file mode 100755
index 000000000000..f77a7f813f11
--- /dev/null
+++ b/srcpkgs/numen/files/numen/log/run
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec vlogger -p daemon.info -t numen
diff --git a/srcpkgs/numen/files/numen/run b/srcpkgs/numen/files/numen/run
new file mode 100755
index 000000000000..da29f62904da
--- /dev/null
+++ b/srcpkgs/numen/files/numen/run
@@ -0,0 +1,11 @@
+#!/bin/sh
+exec 2>&1
+[ -r ./conf ] && . ./conf
+: ${NUMENUSER:=_numen}
+: ${NUMENGROUP:=_numen}
+if [ -z "$NUMENHOME" ]; then
+	mkdir -p /usr/share/numen
+	chown "$NUMENUSER:$NUMENGROUP" /usr/share/numen
+	export XDG_DATA_HOME=/usr/share
+fi
+exec chpst -u "$NUMENUSER:$NUMENGROUP:input:audio" numen ${OPTS}
diff --git a/srcpkgs/numen/template b/srcpkgs/numen/template
new file mode 100644
index 000000000000..89d16ce1ff65
--- /dev/null
+++ b/srcpkgs/numen/template
@@ -0,0 +1,40 @@
+# Template file for 'numen'
+pkgname=numen
+version=0.5
+revision=1
+build_style=go
+go_import_path="git.sr.ht/~geb/numen"
+go_package="speech.go"
+hostmakedepends="scdoc"
+makedepends="vosk-api libgomp-devel"
+depends="alsa-utils dmenu dotool xdotool xset"
+short_desc="Voice control for handsfree computing"
+maintainer="John Gebbie <me@johngebbie.com>"
+license="GPL-3.0-only"
+homepage="https://numenvoice.com"
+changelog="https://git.sr.ht/~geb/numen/blob/master/CHANGELOG.md"
+distfiles="https://git.sr.ht/~geb/numen/archive/${version}.tar.gz"
+checksum=c1df50b67c725c885450853a959de10b46ac4af01fca2c120fa14ba89a6920e0
+conf_files="/etc/sv/numen/conf"
+
+if [ "$XBPS_TARGET_LIBC" = musl ]; then
+	makedepends+=" libexecinfo-devel"
+fi
+
+system_accounts="_numen"
+
+pre_build() {
+	# for the vosk-api package (openblas)
+	export CGO_LDFLAGS="$CGO_LDFLAGS -fopenmp"
+
+	if [ "$XBPS_TARGET_LIBC" = musl ]; then
+		# for the vosk-api package (openfst)
+		export CGO_LDFLAGS="$CGO_LDFLAGS -lexecinfo"
+	fi
+}
+
+post_install() {
+	mv "${DESTDIR}/usr/bin/speech" .
+	PACKAGING=true ./install-numen.sh "${DESTDIR}" /usr/bin
+	vsv numen
+}

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

* Re: [PR PATCH] [Updated] New package: numen-0.5
  2022-10-04 16:56 [PR PATCH] New package: numen-0.1 JohnGebbie
                   ` (51 preceding siblings ...)
  2023-01-15 14:12 ` JohnGebbie
@ 2023-01-20 11:33 ` JohnGebbie
  2023-01-25 15:36 ` JohnGebbie
                   ` (32 subsequent siblings)
  85 siblings, 0 replies; 87+ messages in thread
From: JohnGebbie @ 2023-01-20 11:33 UTC (permalink / raw)
  To: ml

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

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

https://github.com/JohnGebbie/void-packages numen3
https://github.com/void-linux/void-packages/pull/39716

New package: numen-0.5
#### Testing the changes
- I tested the changes in this PR: **YES**

#### 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)

This is [my voice control](https://numenvoice.com) for handsfree computing, mainly for accessibility needs.

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

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

From 7fcd88e2d3a21bfa9bd65f8e0d7f4276677b9c62 Mon Sep 17 00:00:00 2001
From: John Gebbie <me@johngebbie.com>
Date: Tue, 4 Oct 2022 17:50:42 +0100
Subject: [PATCH] New package: numen-0.5

---
 srcpkgs/numen/files/numen/conf    |  7 ++++++
 srcpkgs/numen/files/numen/log/run |  2 ++
 srcpkgs/numen/files/numen/run     | 11 +++++++++
 srcpkgs/numen/template            | 40 +++++++++++++++++++++++++++++++
 4 files changed, 60 insertions(+)
 create mode 100644 srcpkgs/numen/files/numen/conf
 create mode 100755 srcpkgs/numen/files/numen/log/run
 create mode 100755 srcpkgs/numen/files/numen/run
 create mode 100644 srcpkgs/numen/template

diff --git a/srcpkgs/numen/files/numen/conf b/srcpkgs/numen/files/numen/conf
new file mode 100644
index 000000000000..2d814396e2d9
--- /dev/null
+++ b/srcpkgs/numen/files/numen/conf
@@ -0,0 +1,7 @@
+# Example to run the service as a specific user:
+
+# NUMENUSER=john
+# NUMENGROUP="$NUMENUSER"
+# NUMENHOME="/home/$NUMENUSER"
+# export HOME="$NUMENHOME"
+# export XAUTHORITY="/run/user/$(id -u "$NUMENUSER")/Xauthority"
diff --git a/srcpkgs/numen/files/numen/log/run b/srcpkgs/numen/files/numen/log/run
new file mode 100755
index 000000000000..f77a7f813f11
--- /dev/null
+++ b/srcpkgs/numen/files/numen/log/run
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec vlogger -p daemon.info -t numen
diff --git a/srcpkgs/numen/files/numen/run b/srcpkgs/numen/files/numen/run
new file mode 100755
index 000000000000..da29f62904da
--- /dev/null
+++ b/srcpkgs/numen/files/numen/run
@@ -0,0 +1,11 @@
+#!/bin/sh
+exec 2>&1
+[ -r ./conf ] && . ./conf
+: ${NUMENUSER:=_numen}
+: ${NUMENGROUP:=_numen}
+if [ -z "$NUMENHOME" ]; then
+	mkdir -p /usr/share/numen
+	chown "$NUMENUSER:$NUMENGROUP" /usr/share/numen
+	export XDG_DATA_HOME=/usr/share
+fi
+exec chpst -u "$NUMENUSER:$NUMENGROUP:input:audio" numen ${OPTS}
diff --git a/srcpkgs/numen/template b/srcpkgs/numen/template
new file mode 100644
index 000000000000..89d16ce1ff65
--- /dev/null
+++ b/srcpkgs/numen/template
@@ -0,0 +1,40 @@
+# Template file for 'numen'
+pkgname=numen
+version=0.5
+revision=1
+build_style=go
+go_import_path="git.sr.ht/~geb/numen"
+go_package="speech.go"
+hostmakedepends="scdoc"
+makedepends="vosk-api libgomp-devel"
+depends="alsa-utils dmenu dotool xdotool xset"
+short_desc="Voice control for handsfree computing"
+maintainer="John Gebbie <me@johngebbie.com>"
+license="GPL-3.0-only"
+homepage="https://numenvoice.com"
+changelog="https://git.sr.ht/~geb/numen/blob/master/CHANGELOG.md"
+distfiles="https://git.sr.ht/~geb/numen/archive/${version}.tar.gz"
+checksum=c1df50b67c725c885450853a959de10b46ac4af01fca2c120fa14ba89a6920e0
+conf_files="/etc/sv/numen/conf"
+
+if [ "$XBPS_TARGET_LIBC" = musl ]; then
+	makedepends+=" libexecinfo-devel"
+fi
+
+system_accounts="_numen"
+
+pre_build() {
+	# for the vosk-api package (openblas)
+	export CGO_LDFLAGS="$CGO_LDFLAGS -fopenmp"
+
+	if [ "$XBPS_TARGET_LIBC" = musl ]; then
+		# for the vosk-api package (openfst)
+		export CGO_LDFLAGS="$CGO_LDFLAGS -lexecinfo"
+	fi
+}
+
+post_install() {
+	mv "${DESTDIR}/usr/bin/speech" .
+	PACKAGING=true ./install-numen.sh "${DESTDIR}" /usr/bin
+	vsv numen
+}

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

* Re: [PR PATCH] [Updated] New package: numen-0.5
  2022-10-04 16:56 [PR PATCH] New package: numen-0.1 JohnGebbie
                   ` (52 preceding siblings ...)
  2023-01-20 11:33 ` JohnGebbie
@ 2023-01-25 15:36 ` JohnGebbie
  2023-01-25 15:41 ` JohnGebbie
                   ` (31 subsequent siblings)
  85 siblings, 0 replies; 87+ messages in thread
From: JohnGebbie @ 2023-01-25 15:36 UTC (permalink / raw)
  To: ml

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

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

https://github.com/JohnGebbie/void-packages numen3
https://github.com/void-linux/void-packages/pull/39716

New package: numen-0.5
#### Testing the changes
- I tested the changes in this PR: **YES**

#### 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)

This is [my voice control](https://numenvoice.com) for handsfree computing, mainly for accessibility needs.

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

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

From 8d726a01a18b55a992955e4546e5b39b84369e75 Mon Sep 17 00:00:00 2001
From: John Gebbie <me@johngebbie.com>
Date: Tue, 4 Oct 2022 17:50:42 +0100
Subject: [PATCH] New package: numen-0.5

---
 srcpkgs/numen/files/numen/conf    |  7 ++++++
 srcpkgs/numen/files/numen/log/run |  2 ++
 srcpkgs/numen/files/numen/run     | 11 +++++++++
 srcpkgs/numen/template            | 40 +++++++++++++++++++++++++++++++
 4 files changed, 60 insertions(+)
 create mode 100644 srcpkgs/numen/files/numen/conf
 create mode 100755 srcpkgs/numen/files/numen/log/run
 create mode 100755 srcpkgs/numen/files/numen/run
 create mode 100644 srcpkgs/numen/template

diff --git a/srcpkgs/numen/files/numen/conf b/srcpkgs/numen/files/numen/conf
new file mode 100644
index 000000000000..2d814396e2d9
--- /dev/null
+++ b/srcpkgs/numen/files/numen/conf
@@ -0,0 +1,7 @@
+# Example to run the service as a specific user:
+
+# NUMENUSER=john
+# NUMENGROUP="$NUMENUSER"
+# NUMENHOME="/home/$NUMENUSER"
+# export HOME="$NUMENHOME"
+# export XAUTHORITY="/run/user/$(id -u "$NUMENUSER")/Xauthority"
diff --git a/srcpkgs/numen/files/numen/log/run b/srcpkgs/numen/files/numen/log/run
new file mode 100755
index 000000000000..f77a7f813f11
--- /dev/null
+++ b/srcpkgs/numen/files/numen/log/run
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec vlogger -p daemon.info -t numen
diff --git a/srcpkgs/numen/files/numen/run b/srcpkgs/numen/files/numen/run
new file mode 100755
index 000000000000..da29f62904da
--- /dev/null
+++ b/srcpkgs/numen/files/numen/run
@@ -0,0 +1,11 @@
+#!/bin/sh
+exec 2>&1
+[ -r ./conf ] && . ./conf
+: ${NUMENUSER:=_numen}
+: ${NUMENGROUP:=_numen}
+if [ -z "$NUMENHOME" ]; then
+	mkdir -p /usr/share/numen
+	chown "$NUMENUSER:$NUMENGROUP" /usr/share/numen
+	export XDG_DATA_HOME=/usr/share
+fi
+exec chpst -u "$NUMENUSER:$NUMENGROUP:input:audio" numen ${OPTS}
diff --git a/srcpkgs/numen/template b/srcpkgs/numen/template
new file mode 100644
index 000000000000..89d16ce1ff65
--- /dev/null
+++ b/srcpkgs/numen/template
@@ -0,0 +1,40 @@
+# Template file for 'numen'
+pkgname=numen
+version=0.5
+revision=1
+build_style=go
+go_import_path="git.sr.ht/~geb/numen"
+go_package="speech.go"
+hostmakedepends="scdoc"
+makedepends="vosk-api libgomp-devel"
+depends="alsa-utils dmenu dotool xdotool xset"
+short_desc="Voice control for handsfree computing"
+maintainer="John Gebbie <me@johngebbie.com>"
+license="GPL-3.0-only"
+homepage="https://numenvoice.com"
+changelog="https://git.sr.ht/~geb/numen/blob/master/CHANGELOG.md"
+distfiles="https://git.sr.ht/~geb/numen/archive/${version}.tar.gz"
+checksum=c1df50b67c725c885450853a959de10b46ac4af01fca2c120fa14ba89a6920e0
+conf_files="/etc/sv/numen/conf"
+
+if [ "$XBPS_TARGET_LIBC" = musl ]; then
+	makedepends+=" libexecinfo-devel"
+fi
+
+system_accounts="_numen"
+
+pre_build() {
+	# for the vosk-api package (openblas)
+	export CGO_LDFLAGS="$CGO_LDFLAGS -fopenmp"
+
+	if [ "$XBPS_TARGET_LIBC" = musl ]; then
+		# for the vosk-api package (openfst)
+		export CGO_LDFLAGS="$CGO_LDFLAGS -lexecinfo"
+	fi
+}
+
+post_install() {
+	mv "${DESTDIR}/usr/bin/speech" .
+	PACKAGING=true ./install-numen.sh "${DESTDIR}" /usr/bin
+	vsv numen
+}

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

* Re: New package: numen-0.5
  2022-10-04 16:56 [PR PATCH] New package: numen-0.1 JohnGebbie
                   ` (53 preceding siblings ...)
  2023-01-25 15:36 ` JohnGebbie
@ 2023-01-25 15:41 ` JohnGebbie
  2023-01-31 11:06 ` [PR PATCH] [Updated] " JohnGebbie
                   ` (30 subsequent siblings)
  85 siblings, 0 replies; 87+ messages in thread
From: JohnGebbie @ 2023-01-25 15:41 UTC (permalink / raw)
  To: ml

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

New comment by JohnGebbie on void-packages repository

https://github.com/void-linux/void-packages/pull/39716#issuecomment-1403818657

Comment:
@paper42 There should be the next release in a month or two and I'll bump the vosk-api and dotool templates at the same time, but I'd still love have this merged as it is.

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

* Re: [PR PATCH] [Updated] New package: numen-0.5
  2022-10-04 16:56 [PR PATCH] New package: numen-0.1 JohnGebbie
                   ` (54 preceding siblings ...)
  2023-01-25 15:41 ` JohnGebbie
@ 2023-01-31 11:06 ` JohnGebbie
  2023-02-04 18:47 ` JohnGebbie
                   ` (29 subsequent siblings)
  85 siblings, 0 replies; 87+ messages in thread
From: JohnGebbie @ 2023-01-31 11:06 UTC (permalink / raw)
  To: ml

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

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

https://github.com/JohnGebbie/void-packages numen3
https://github.com/void-linux/void-packages/pull/39716

New package: numen-0.5
#### Testing the changes
- I tested the changes in this PR: **YES**

#### 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)

This is [my voice control](https://numenvoice.com) for handsfree computing, mainly for accessibility needs.

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

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

From 23f1fc90375b09f1c0e9a3c12ddceac3cee10777 Mon Sep 17 00:00:00 2001
From: John Gebbie <me@johngebbie.com>
Date: Tue, 4 Oct 2022 17:50:42 +0100
Subject: [PATCH] New package: numen-0.5

---
 srcpkgs/numen/files/numen/conf    |  7 ++++++
 srcpkgs/numen/files/numen/log/run |  2 ++
 srcpkgs/numen/files/numen/run     | 11 +++++++++
 srcpkgs/numen/template            | 40 +++++++++++++++++++++++++++++++
 4 files changed, 60 insertions(+)
 create mode 100644 srcpkgs/numen/files/numen/conf
 create mode 100755 srcpkgs/numen/files/numen/log/run
 create mode 100755 srcpkgs/numen/files/numen/run
 create mode 100644 srcpkgs/numen/template

diff --git a/srcpkgs/numen/files/numen/conf b/srcpkgs/numen/files/numen/conf
new file mode 100644
index 000000000000..2d814396e2d9
--- /dev/null
+++ b/srcpkgs/numen/files/numen/conf
@@ -0,0 +1,7 @@
+# Example to run the service as a specific user:
+
+# NUMENUSER=john
+# NUMENGROUP="$NUMENUSER"
+# NUMENHOME="/home/$NUMENUSER"
+# export HOME="$NUMENHOME"
+# export XAUTHORITY="/run/user/$(id -u "$NUMENUSER")/Xauthority"
diff --git a/srcpkgs/numen/files/numen/log/run b/srcpkgs/numen/files/numen/log/run
new file mode 100755
index 000000000000..f77a7f813f11
--- /dev/null
+++ b/srcpkgs/numen/files/numen/log/run
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec vlogger -p daemon.info -t numen
diff --git a/srcpkgs/numen/files/numen/run b/srcpkgs/numen/files/numen/run
new file mode 100755
index 000000000000..da29f62904da
--- /dev/null
+++ b/srcpkgs/numen/files/numen/run
@@ -0,0 +1,11 @@
+#!/bin/sh
+exec 2>&1
+[ -r ./conf ] && . ./conf
+: ${NUMENUSER:=_numen}
+: ${NUMENGROUP:=_numen}
+if [ -z "$NUMENHOME" ]; then
+	mkdir -p /usr/share/numen
+	chown "$NUMENUSER:$NUMENGROUP" /usr/share/numen
+	export XDG_DATA_HOME=/usr/share
+fi
+exec chpst -u "$NUMENUSER:$NUMENGROUP:input:audio" numen ${OPTS}
diff --git a/srcpkgs/numen/template b/srcpkgs/numen/template
new file mode 100644
index 000000000000..89d16ce1ff65
--- /dev/null
+++ b/srcpkgs/numen/template
@@ -0,0 +1,40 @@
+# Template file for 'numen'
+pkgname=numen
+version=0.5
+revision=1
+build_style=go
+go_import_path="git.sr.ht/~geb/numen"
+go_package="speech.go"
+hostmakedepends="scdoc"
+makedepends="vosk-api libgomp-devel"
+depends="alsa-utils dmenu dotool xdotool xset"
+short_desc="Voice control for handsfree computing"
+maintainer="John Gebbie <me@johngebbie.com>"
+license="GPL-3.0-only"
+homepage="https://numenvoice.com"
+changelog="https://git.sr.ht/~geb/numen/blob/master/CHANGELOG.md"
+distfiles="https://git.sr.ht/~geb/numen/archive/${version}.tar.gz"
+checksum=c1df50b67c725c885450853a959de10b46ac4af01fca2c120fa14ba89a6920e0
+conf_files="/etc/sv/numen/conf"
+
+if [ "$XBPS_TARGET_LIBC" = musl ]; then
+	makedepends+=" libexecinfo-devel"
+fi
+
+system_accounts="_numen"
+
+pre_build() {
+	# for the vosk-api package (openblas)
+	export CGO_LDFLAGS="$CGO_LDFLAGS -fopenmp"
+
+	if [ "$XBPS_TARGET_LIBC" = musl ]; then
+		# for the vosk-api package (openfst)
+		export CGO_LDFLAGS="$CGO_LDFLAGS -lexecinfo"
+	fi
+}
+
+post_install() {
+	mv "${DESTDIR}/usr/bin/speech" .
+	PACKAGING=true ./install-numen.sh "${DESTDIR}" /usr/bin
+	vsv numen
+}

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

* Re: [PR PATCH] [Updated] New package: numen-0.5
  2022-10-04 16:56 [PR PATCH] New package: numen-0.1 JohnGebbie
                   ` (55 preceding siblings ...)
  2023-01-31 11:06 ` [PR PATCH] [Updated] " JohnGebbie
@ 2023-02-04 18:47 ` JohnGebbie
  2023-02-06 12:23 ` JohnGebbie
                   ` (28 subsequent siblings)
  85 siblings, 0 replies; 87+ messages in thread
From: JohnGebbie @ 2023-02-04 18:47 UTC (permalink / raw)
  To: ml

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

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

https://github.com/JohnGebbie/void-packages numen3
https://github.com/void-linux/void-packages/pull/39716

New package: numen-0.5
#### Testing the changes
- I tested the changes in this PR: **YES**

#### 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)

This is [my voice control](https://numenvoice.com) for handsfree computing, mainly for accessibility needs.

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

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

From 71e8203e35a94229d0876a1bc7a39a0d6353b7bc Mon Sep 17 00:00:00 2001
From: John Gebbie <me@johngebbie.com>
Date: Tue, 4 Oct 2022 17:50:42 +0100
Subject: [PATCH] New package: numen-0.5

---
 srcpkgs/numen/files/numen/conf    |  7 ++++++
 srcpkgs/numen/files/numen/log/run |  2 ++
 srcpkgs/numen/files/numen/run     | 11 +++++++++
 srcpkgs/numen/template            | 40 +++++++++++++++++++++++++++++++
 4 files changed, 60 insertions(+)
 create mode 100644 srcpkgs/numen/files/numen/conf
 create mode 100755 srcpkgs/numen/files/numen/log/run
 create mode 100755 srcpkgs/numen/files/numen/run
 create mode 100644 srcpkgs/numen/template

diff --git a/srcpkgs/numen/files/numen/conf b/srcpkgs/numen/files/numen/conf
new file mode 100644
index 000000000000..2d814396e2d9
--- /dev/null
+++ b/srcpkgs/numen/files/numen/conf
@@ -0,0 +1,7 @@
+# Example to run the service as a specific user:
+
+# NUMENUSER=john
+# NUMENGROUP="$NUMENUSER"
+# NUMENHOME="/home/$NUMENUSER"
+# export HOME="$NUMENHOME"
+# export XAUTHORITY="/run/user/$(id -u "$NUMENUSER")/Xauthority"
diff --git a/srcpkgs/numen/files/numen/log/run b/srcpkgs/numen/files/numen/log/run
new file mode 100755
index 000000000000..f77a7f813f11
--- /dev/null
+++ b/srcpkgs/numen/files/numen/log/run
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec vlogger -p daemon.info -t numen
diff --git a/srcpkgs/numen/files/numen/run b/srcpkgs/numen/files/numen/run
new file mode 100755
index 000000000000..da29f62904da
--- /dev/null
+++ b/srcpkgs/numen/files/numen/run
@@ -0,0 +1,11 @@
+#!/bin/sh
+exec 2>&1
+[ -r ./conf ] && . ./conf
+: ${NUMENUSER:=_numen}
+: ${NUMENGROUP:=_numen}
+if [ -z "$NUMENHOME" ]; then
+	mkdir -p /usr/share/numen
+	chown "$NUMENUSER:$NUMENGROUP" /usr/share/numen
+	export XDG_DATA_HOME=/usr/share
+fi
+exec chpst -u "$NUMENUSER:$NUMENGROUP:input:audio" numen ${OPTS}
diff --git a/srcpkgs/numen/template b/srcpkgs/numen/template
new file mode 100644
index 000000000000..89d16ce1ff65
--- /dev/null
+++ b/srcpkgs/numen/template
@@ -0,0 +1,40 @@
+# Template file for 'numen'
+pkgname=numen
+version=0.5
+revision=1
+build_style=go
+go_import_path="git.sr.ht/~geb/numen"
+go_package="speech.go"
+hostmakedepends="scdoc"
+makedepends="vosk-api libgomp-devel"
+depends="alsa-utils dmenu dotool xdotool xset"
+short_desc="Voice control for handsfree computing"
+maintainer="John Gebbie <me@johngebbie.com>"
+license="GPL-3.0-only"
+homepage="https://numenvoice.com"
+changelog="https://git.sr.ht/~geb/numen/blob/master/CHANGELOG.md"
+distfiles="https://git.sr.ht/~geb/numen/archive/${version}.tar.gz"
+checksum=c1df50b67c725c885450853a959de10b46ac4af01fca2c120fa14ba89a6920e0
+conf_files="/etc/sv/numen/conf"
+
+if [ "$XBPS_TARGET_LIBC" = musl ]; then
+	makedepends+=" libexecinfo-devel"
+fi
+
+system_accounts="_numen"
+
+pre_build() {
+	# for the vosk-api package (openblas)
+	export CGO_LDFLAGS="$CGO_LDFLAGS -fopenmp"
+
+	if [ "$XBPS_TARGET_LIBC" = musl ]; then
+		# for the vosk-api package (openfst)
+		export CGO_LDFLAGS="$CGO_LDFLAGS -lexecinfo"
+	fi
+}
+
+post_install() {
+	mv "${DESTDIR}/usr/bin/speech" .
+	PACKAGING=true ./install-numen.sh "${DESTDIR}" /usr/bin
+	vsv numen
+}

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

* Re: [PR PATCH] [Updated] New package: numen-0.5
  2022-10-04 16:56 [PR PATCH] New package: numen-0.1 JohnGebbie
                   ` (56 preceding siblings ...)
  2023-02-04 18:47 ` JohnGebbie
@ 2023-02-06 12:23 ` JohnGebbie
  2023-02-06 12:29 ` [PR PATCH] [Updated] New package: numen-0.6 JohnGebbie
                   ` (27 subsequent siblings)
  85 siblings, 0 replies; 87+ messages in thread
From: JohnGebbie @ 2023-02-06 12:23 UTC (permalink / raw)
  To: ml

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

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

https://github.com/JohnGebbie/void-packages numen3
https://github.com/void-linux/void-packages/pull/39716

New package: numen-0.5
#### Testing the changes
- I tested the changes in this PR: **YES**

#### 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)

This is [my voice control](https://numenvoice.com) for handsfree computing, mainly for accessibility needs.

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

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

From 3afe8d381cd0641e3293b227877ede31312dd11b Mon Sep 17 00:00:00 2001
From: John Gebbie <me@johngebbie.com>
Date: Mon, 6 Feb 2023 12:05:47 +0000
Subject: [PATCH] New package: numen-0.6

---
 srcpkgs/numen/files/numen/conf    |  7 ++++++
 srcpkgs/numen/files/numen/log/run |  2 ++
 srcpkgs/numen/files/numen/run     | 11 +++++++++
 srcpkgs/numen/template            | 41 +++++++++++++++++++++++++++++++
 4 files changed, 61 insertions(+)
 create mode 100644 srcpkgs/numen/files/numen/conf
 create mode 100755 srcpkgs/numen/files/numen/log/run
 create mode 100755 srcpkgs/numen/files/numen/run
 create mode 100644 srcpkgs/numen/template

diff --git a/srcpkgs/numen/files/numen/conf b/srcpkgs/numen/files/numen/conf
new file mode 100644
index 000000000000..2d814396e2d9
--- /dev/null
+++ b/srcpkgs/numen/files/numen/conf
@@ -0,0 +1,7 @@
+# Example to run the service as a specific user:
+
+# NUMENUSER=john
+# NUMENGROUP="$NUMENUSER"
+# NUMENHOME="/home/$NUMENUSER"
+# export HOME="$NUMENHOME"
+# export XAUTHORITY="/run/user/$(id -u "$NUMENUSER")/Xauthority"
diff --git a/srcpkgs/numen/files/numen/log/run b/srcpkgs/numen/files/numen/log/run
new file mode 100755
index 000000000000..f77a7f813f11
--- /dev/null
+++ b/srcpkgs/numen/files/numen/log/run
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec vlogger -p daemon.info -t numen
diff --git a/srcpkgs/numen/files/numen/run b/srcpkgs/numen/files/numen/run
new file mode 100755
index 000000000000..da29f62904da
--- /dev/null
+++ b/srcpkgs/numen/files/numen/run
@@ -0,0 +1,11 @@
+#!/bin/sh
+exec 2>&1
+[ -r ./conf ] && . ./conf
+: ${NUMENUSER:=_numen}
+: ${NUMENGROUP:=_numen}
+if [ -z "$NUMENHOME" ]; then
+	mkdir -p /usr/share/numen
+	chown "$NUMENUSER:$NUMENGROUP" /usr/share/numen
+	export XDG_DATA_HOME=/usr/share
+fi
+exec chpst -u "$NUMENUSER:$NUMENGROUP:input:audio" numen ${OPTS}
diff --git a/srcpkgs/numen/template b/srcpkgs/numen/template
new file mode 100644
index 000000000000..dda35bda2000
--- /dev/null
+++ b/srcpkgs/numen/template
@@ -0,0 +1,41 @@
+# Template file for 'numen'
+pkgname=numen
+# TODO will release after review
+version=03234333fecebed0bcf1741104d73549c1fbcec5
+revision=1
+build_style=go
+go_import_path="git.sr.ht/~geb/numen"
+go_package="speech.go"
+hostmakedepends="scdoc"
+makedepends="vosk-api libgomp-devel"
+depends="alsa-utils dotool>=1.1"
+short_desc="Voice control for handsfree computing"
+maintainer="John Gebbie <me@johngebbie.com>"
+license="GPL-3.0-only"
+homepage="https://numenvoice.com"
+changelog="https://git.sr.ht/~geb/numen/blob/master/CHANGELOG.md"
+distfiles="https://git.sr.ht/~geb/numen/archive/${version}.tar.gz"
+checksum=a01f2a976f8290a4ee87d7cabd55d3617c2b9010521359d93c8c318ade5224d8
+conf_files="/etc/sv/numen/conf"
+
+if [ "$XBPS_TARGET_LIBC" = musl ]; then
+	makedepends+=" libexecinfo-devel"
+fi
+
+system_accounts="_numen"
+
+pre_build() {
+	# for the vosk-api package (openblas)
+	export CGO_LDFLAGS="$CGO_LDFLAGS -fopenmp"
+
+	if [ "$XBPS_TARGET_LIBC" = musl ]; then
+		# for the vosk-api package (openfst)
+		export CGO_LDFLAGS="$CGO_LDFLAGS -lexecinfo"
+	fi
+}
+
+post_install() {
+	mv "${DESTDIR}/usr/bin/speech" .
+	PACKAGING=true ./install-numen.sh "${DESTDIR}" /usr/bin
+	vsv numen
+}

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

* Re: [PR PATCH] [Updated] New package: numen-0.6
  2022-10-04 16:56 [PR PATCH] New package: numen-0.1 JohnGebbie
                   ` (57 preceding siblings ...)
  2023-02-06 12:23 ` JohnGebbie
@ 2023-02-06 12:29 ` JohnGebbie
  2023-02-06 12:32 ` JohnGebbie
                   ` (26 subsequent siblings)
  85 siblings, 0 replies; 87+ messages in thread
From: JohnGebbie @ 2023-02-06 12:29 UTC (permalink / raw)
  To: ml

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

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

https://github.com/JohnGebbie/void-packages numen3
https://github.com/void-linux/void-packages/pull/39716

New package: numen-0.6
#### Testing the changes
- I tested the changes in this PR: **YES**

#### 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)

This is [my voice control](https://numenvoice.com) for handsfree computing, mainly for accessibility needs.

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

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

From e55b8d4a395f585d71a300c071a5ac10a1bd1d4d Mon Sep 17 00:00:00 2001
From: John Gebbie <me@johngebbie.com>
Date: Mon, 6 Feb 2023 12:29:07 +0000
Subject: [PATCH] New package: numen-0.6

---
 srcpkgs/numen/files/numen/conf    |  7 ++++++
 srcpkgs/numen/files/numen/log/run |  2 ++
 srcpkgs/numen/files/numen/run     | 11 +++++++++
 srcpkgs/numen/template            | 40 +++++++++++++++++++++++++++++++
 4 files changed, 60 insertions(+)
 create mode 100644 srcpkgs/numen/files/numen/conf
 create mode 100755 srcpkgs/numen/files/numen/log/run
 create mode 100755 srcpkgs/numen/files/numen/run
 create mode 100644 srcpkgs/numen/template

diff --git a/srcpkgs/numen/files/numen/conf b/srcpkgs/numen/files/numen/conf
new file mode 100644
index 000000000000..2d814396e2d9
--- /dev/null
+++ b/srcpkgs/numen/files/numen/conf
@@ -0,0 +1,7 @@
+# Example to run the service as a specific user:
+
+# NUMENUSER=john
+# NUMENGROUP="$NUMENUSER"
+# NUMENHOME="/home/$NUMENUSER"
+# export HOME="$NUMENHOME"
+# export XAUTHORITY="/run/user/$(id -u "$NUMENUSER")/Xauthority"
diff --git a/srcpkgs/numen/files/numen/log/run b/srcpkgs/numen/files/numen/log/run
new file mode 100755
index 000000000000..f77a7f813f11
--- /dev/null
+++ b/srcpkgs/numen/files/numen/log/run
@@ -0,0 +1,2 @@
+#!/bin/sh
+exec vlogger -p daemon.info -t numen
diff --git a/srcpkgs/numen/files/numen/run b/srcpkgs/numen/files/numen/run
new file mode 100755
index 000000000000..da29f62904da
--- /dev/null
+++ b/srcpkgs/numen/files/numen/run
@@ -0,0 +1,11 @@
+#!/bin/sh
+exec 2>&1
+[ -r ./conf ] && . ./conf
+: ${NUMENUSER:=_numen}
+: ${NUMENGROUP:=_numen}
+if [ -z "$NUMENHOME" ]; then
+	mkdir -p /usr/share/numen
+	chown "$NUMENUSER:$NUMENGROUP" /usr/share/numen
+	export XDG_DATA_HOME=/usr/share
+fi
+exec chpst -u "$NUMENUSER:$NUMENGROUP:input:audio" numen ${OPTS}
diff --git a/srcpkgs/numen/template b/srcpkgs/numen/template
new file mode 100644
index 000000000000..c6509bf98cac
--- /dev/null
+++ b/srcpkgs/numen/template
@@ -0,0 +1,40 @@
+# Template file for 'numen'
+pkgname=numen
+version=0.6
+revision=1
+build_style=go
+go_import_path="git.sr.ht/~geb/numen"
+go_package="speech.go"
+hostmakedepends="scdoc"
+makedepends="vosk-api libgomp-devel"
+depends="alsa-utils dotool>=1.1"
+short_desc="Voice control for handsfree computing"
+maintainer="John Gebbie <me@johngebbie.com>"
+license="GPL-3.0-only"
+homepage="https://numenvoice.com"
+changelog="https://git.sr.ht/~geb/numen/blob/master/CHANGELOG.md"
+distfiles="https://git.sr.ht/~geb/numen/archive/${version}.tar.gz"
+checksum=c3483d993c944f49ddbb885aec367056d148c1c1411200c4e7462d9df30bfde6
+conf_files="/etc/sv/numen/conf"
+
+if [ "$XBPS_TARGET_LIBC" = musl ]; then
+	makedepends+=" libexecinfo-devel"
+fi
+
+system_accounts="_numen"
+
+pre_build() {
+	# for the vosk-api package (openblas)
+	export CGO_LDFLAGS="$CGO_LDFLAGS -fopenmp"
+
+	if [ "$XBPS_TARGET_LIBC" = musl ]; then
+		# for the vosk-api package (openfst)
+		export CGO_LDFLAGS="$CGO_LDFLAGS -lexecinfo"
+	fi
+}
+
+post_install() {
+	mv "${DESTDIR}/usr/bin/speech" .
+	PACKAGING=true ./install-numen.sh "${DESTDIR}" /usr/bin
+	vsv numen
+}

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

* Re: New package: numen-0.6
  2022-10-04 16:56 [PR PATCH] New package: numen-0.1 JohnGebbie
                   ` (58 preceding siblings ...)
  2023-02-06 12:29 ` [PR PATCH] [Updated] New package: numen-0.6 JohnGebbie
@ 2023-02-06 12:32 ` JohnGebbie
  2023-02-16 18:38 ` [PR PATCH] [Updated] " JohnGebbie
                   ` (25 subsequent siblings)
  85 siblings, 0 replies; 87+ messages in thread
From: JohnGebbie @ 2023-02-06 12:32 UTC (permalink / raw)
  To: ml

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

New comment by JohnGebbie on void-packages repository

https://github.com/void-linux/void-packages/pull/39716#issuecomment-1419009448

Comment:
This is ready but these should be merged first: https://github.com/void-linux/void-packages/pull/42091 https://github.com/void-linux/void-packages/pull/41536


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

* Re: [PR PATCH] [Updated] New package: numen-0.6
  2022-10-04 16:56 [PR PATCH] New package: numen-0.1 JohnGebbie
                   ` (59 preceding siblings ...)
  2023-02-06 12:32 ` JohnGebbie
@ 2023-02-16 18:38 ` JohnGebbie
  2023-02-16 18:45 ` JohnGebbie
                   ` (24 subsequent siblings)
  85 siblings, 0 replies; 87+ messages in thread
From: JohnGebbie @ 2023-02-16 18:38 UTC (permalink / raw)
  To: ml

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

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

https://github.com/JohnGebbie/void-packages numen3
https://github.com/void-linux/void-packages/pull/39716

New package: numen-0.6
#### Testing the changes
- I tested the changes in this PR: **YES**

#### 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)

This is [my voice control](https://numenvoice.com) for handsfree computing, mainly for accessibility needs.

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

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

From a28bc980a024fe8282f59d75a56f503c1700b3a2 Mon Sep 17 00:00:00 2001
From: John Gebbie <me@johngebbie.com>
Date: Mon, 6 Feb 2023 12:29:07 +0000
Subject: [PATCH] New package: numen-0.6

---
 srcpkgs/numen/files/numen/conf |  7 ++++++
 srcpkgs/numen/files/numen/run  | 11 ++++++++++
 srcpkgs/numen/template         | 40 ++++++++++++++++++++++++++++++++++
 3 files changed, 58 insertions(+)
 create mode 100644 srcpkgs/numen/files/numen/conf
 create mode 100755 srcpkgs/numen/files/numen/run
 create mode 100644 srcpkgs/numen/template

diff --git a/srcpkgs/numen/files/numen/conf b/srcpkgs/numen/files/numen/conf
new file mode 100644
index 000000000000..2d814396e2d9
--- /dev/null
+++ b/srcpkgs/numen/files/numen/conf
@@ -0,0 +1,7 @@
+# Example to run the service as a specific user:
+
+# NUMENUSER=john
+# NUMENGROUP="$NUMENUSER"
+# NUMENHOME="/home/$NUMENUSER"
+# export HOME="$NUMENHOME"
+# export XAUTHORITY="/run/user/$(id -u "$NUMENUSER")/Xauthority"
diff --git a/srcpkgs/numen/files/numen/run b/srcpkgs/numen/files/numen/run
new file mode 100755
index 000000000000..da29f62904da
--- /dev/null
+++ b/srcpkgs/numen/files/numen/run
@@ -0,0 +1,11 @@
+#!/bin/sh
+exec 2>&1
+[ -r ./conf ] && . ./conf
+: ${NUMENUSER:=_numen}
+: ${NUMENGROUP:=_numen}
+if [ -z "$NUMENHOME" ]; then
+	mkdir -p /usr/share/numen
+	chown "$NUMENUSER:$NUMENGROUP" /usr/share/numen
+	export XDG_DATA_HOME=/usr/share
+fi
+exec chpst -u "$NUMENUSER:$NUMENGROUP:input:audio" numen ${OPTS}
diff --git a/srcpkgs/numen/template b/srcpkgs/numen/template
new file mode 100644
index 000000000000..c6509bf98cac
--- /dev/null
+++ b/srcpkgs/numen/template
@@ -0,0 +1,40 @@
+# Template file for 'numen'
+pkgname=numen
+version=0.6
+revision=1
+build_style=go
+go_import_path="git.sr.ht/~geb/numen"
+go_package="speech.go"
+hostmakedepends="scdoc"
+makedepends="vosk-api libgomp-devel"
+depends="alsa-utils dotool>=1.1"
+short_desc="Voice control for handsfree computing"
+maintainer="John Gebbie <me@johngebbie.com>"
+license="GPL-3.0-only"
+homepage="https://numenvoice.com"
+changelog="https://git.sr.ht/~geb/numen/blob/master/CHANGELOG.md"
+distfiles="https://git.sr.ht/~geb/numen/archive/${version}.tar.gz"
+checksum=c3483d993c944f49ddbb885aec367056d148c1c1411200c4e7462d9df30bfde6
+conf_files="/etc/sv/numen/conf"
+
+if [ "$XBPS_TARGET_LIBC" = musl ]; then
+	makedepends+=" libexecinfo-devel"
+fi
+
+system_accounts="_numen"
+
+pre_build() {
+	# for the vosk-api package (openblas)
+	export CGO_LDFLAGS="$CGO_LDFLAGS -fopenmp"
+
+	if [ "$XBPS_TARGET_LIBC" = musl ]; then
+		# for the vosk-api package (openfst)
+		export CGO_LDFLAGS="$CGO_LDFLAGS -lexecinfo"
+	fi
+}
+
+post_install() {
+	mv "${DESTDIR}/usr/bin/speech" .
+	PACKAGING=true ./install-numen.sh "${DESTDIR}" /usr/bin
+	vsv numen
+}

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

* Re: New package: numen-0.6
  2022-10-04 16:56 [PR PATCH] New package: numen-0.1 JohnGebbie
                   ` (60 preceding siblings ...)
  2023-02-16 18:38 ` [PR PATCH] [Updated] " JohnGebbie
@ 2023-02-16 18:45 ` JohnGebbie
  2023-02-21 17:56 ` JohnGebbie
                   ` (23 subsequent siblings)
  85 siblings, 0 replies; 87+ messages in thread
From: JohnGebbie @ 2023-02-16 18:45 UTC (permalink / raw)
  To: ml

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

New comment by JohnGebbie on void-packages repository

https://github.com/void-linux/void-packages/pull/39716#issuecomment-1433558221

Comment:
Tested again with the bumped dependencies and all good.

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

* Re: New package: numen-0.6
  2022-10-04 16:56 [PR PATCH] New package: numen-0.1 JohnGebbie
                   ` (61 preceding siblings ...)
  2023-02-16 18:45 ` JohnGebbie
@ 2023-02-21 17:56 ` JohnGebbie
  2023-02-25  9:46 ` [PR PATCH] [Updated] " JohnGebbie
                   ` (22 subsequent siblings)
  85 siblings, 0 replies; 87+ messages in thread
From: JohnGebbie @ 2023-02-21 17:56 UTC (permalink / raw)
  To: ml

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

New comment by JohnGebbie on void-packages repository

https://github.com/void-linux/void-packages/pull/39716#issuecomment-1419009448

Comment:
This is ready but these should be merged first: https://github.com/void-linux/void-packages/pull/42091 https://github.com/void-linux/void-packages/pull/41536
EDIT: both merged now

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

* Re: [PR PATCH] [Updated] New package: numen-0.6
  2022-10-04 16:56 [PR PATCH] New package: numen-0.1 JohnGebbie
                   ` (62 preceding siblings ...)
  2023-02-21 17:56 ` JohnGebbie
@ 2023-02-25  9:46 ` JohnGebbie
  2023-02-25  9:49 ` JohnGebbie
                   ` (21 subsequent siblings)
  85 siblings, 0 replies; 87+ messages in thread
From: JohnGebbie @ 2023-02-25  9:46 UTC (permalink / raw)
  To: ml

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

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

https://github.com/JohnGebbie/void-packages numen3
https://github.com/void-linux/void-packages/pull/39716

New package: numen-0.6
#### Testing the changes
- I tested the changes in this PR: **YES**

#### 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)

This is [my voice control](https://numenvoice.com) for handsfree computing, mainly for accessibility needs.

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

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

From c770c4494e90e4107857fe97311b125c1c42e39c Mon Sep 17 00:00:00 2001
From: John Gebbie <me@johngebbie.com>
Date: Mon, 6 Feb 2023 12:29:07 +0000
Subject: [PATCH] New package: numen-0.6

---
 srcpkgs/numen/files/numen/conf |  7 ++++++
 srcpkgs/numen/files/numen/run  | 11 ++++++++++
 srcpkgs/numen/template         | 40 ++++++++++++++++++++++++++++++++++
 3 files changed, 58 insertions(+)
 create mode 100644 srcpkgs/numen/files/numen/conf
 create mode 100755 srcpkgs/numen/files/numen/run
 create mode 100644 srcpkgs/numen/template

diff --git a/srcpkgs/numen/files/numen/conf b/srcpkgs/numen/files/numen/conf
new file mode 100644
index 000000000000..2d814396e2d9
--- /dev/null
+++ b/srcpkgs/numen/files/numen/conf
@@ -0,0 +1,7 @@
+# Example to run the service as a specific user:
+
+# NUMENUSER=john
+# NUMENGROUP="$NUMENUSER"
+# NUMENHOME="/home/$NUMENUSER"
+# export HOME="$NUMENHOME"
+# export XAUTHORITY="/run/user/$(id -u "$NUMENUSER")/Xauthority"
diff --git a/srcpkgs/numen/files/numen/run b/srcpkgs/numen/files/numen/run
new file mode 100755
index 000000000000..da29f62904da
--- /dev/null
+++ b/srcpkgs/numen/files/numen/run
@@ -0,0 +1,11 @@
+#!/bin/sh
+exec 2>&1
+[ -r ./conf ] && . ./conf
+: ${NUMENUSER:=_numen}
+: ${NUMENGROUP:=_numen}
+if [ -z "$NUMENHOME" ]; then
+	mkdir -p /usr/share/numen
+	chown "$NUMENUSER:$NUMENGROUP" /usr/share/numen
+	export XDG_DATA_HOME=/usr/share
+fi
+exec chpst -u "$NUMENUSER:$NUMENGROUP:input:audio" numen ${OPTS}
diff --git a/srcpkgs/numen/template b/srcpkgs/numen/template
new file mode 100644
index 000000000000..c6509bf98cac
--- /dev/null
+++ b/srcpkgs/numen/template
@@ -0,0 +1,40 @@
+# Template file for 'numen'
+pkgname=numen
+version=0.6
+revision=1
+build_style=go
+go_import_path="git.sr.ht/~geb/numen"
+go_package="speech.go"
+hostmakedepends="scdoc"
+makedepends="vosk-api libgomp-devel"
+depends="alsa-utils dotool>=1.1"
+short_desc="Voice control for handsfree computing"
+maintainer="John Gebbie <me@johngebbie.com>"
+license="GPL-3.0-only"
+homepage="https://numenvoice.com"
+changelog="https://git.sr.ht/~geb/numen/blob/master/CHANGELOG.md"
+distfiles="https://git.sr.ht/~geb/numen/archive/${version}.tar.gz"
+checksum=c3483d993c944f49ddbb885aec367056d148c1c1411200c4e7462d9df30bfde6
+conf_files="/etc/sv/numen/conf"
+
+if [ "$XBPS_TARGET_LIBC" = musl ]; then
+	makedepends+=" libexecinfo-devel"
+fi
+
+system_accounts="_numen"
+
+pre_build() {
+	# for the vosk-api package (openblas)
+	export CGO_LDFLAGS="$CGO_LDFLAGS -fopenmp"
+
+	if [ "$XBPS_TARGET_LIBC" = musl ]; then
+		# for the vosk-api package (openfst)
+		export CGO_LDFLAGS="$CGO_LDFLAGS -lexecinfo"
+	fi
+}
+
+post_install() {
+	mv "${DESTDIR}/usr/bin/speech" .
+	PACKAGING=true ./install-numen.sh "${DESTDIR}" /usr/bin
+	vsv numen
+}

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

* Re: New package: numen-0.6
  2022-10-04 16:56 [PR PATCH] New package: numen-0.1 JohnGebbie
                   ` (63 preceding siblings ...)
  2023-02-25  9:46 ` [PR PATCH] [Updated] " JohnGebbie
@ 2023-02-25  9:49 ` JohnGebbie
  2023-03-29 10:39 ` [PR PATCH] [Updated] " JohnGebbie
                   ` (20 subsequent siblings)
  85 siblings, 0 replies; 87+ messages in thread
From: JohnGebbie @ 2023-02-25  9:49 UTC (permalink / raw)
  To: ml

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

New comment by JohnGebbie on void-packages repository

https://github.com/void-linux/void-packages/pull/39716#issuecomment-1445043474

Comment:
what do you think @paper42?

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

* Re: [PR PATCH] [Updated] New package: numen-0.6
  2022-10-04 16:56 [PR PATCH] New package: numen-0.1 JohnGebbie
                   ` (64 preceding siblings ...)
  2023-02-25  9:49 ` JohnGebbie
@ 2023-03-29 10:39 ` JohnGebbie
  2023-03-29 10:46 ` JohnGebbie
                   ` (19 subsequent siblings)
  85 siblings, 0 replies; 87+ messages in thread
From: JohnGebbie @ 2023-03-29 10:39 UTC (permalink / raw)
  To: ml

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

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

https://github.com/JohnGebbie/void-packages numen3
https://github.com/void-linux/void-packages/pull/39716

New package: numen-0.6
#### Testing the changes
- I tested the changes in this PR: **YES**

#### 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)

This is [my voice control](https://numenvoice.com) for handsfree computing, mainly for accessibility needs.

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

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

From 85208083cfa6e08a0ea75e259ac8d5206bbe287b Mon Sep 17 00:00:00 2001
From: John Gebbie <me@johngebbie.com>
Date: Mon, 6 Feb 2023 12:29:07 +0000
Subject: [PATCH] New package: numen-0.6

---
 srcpkgs/numen/files/numen/conf |  7 ++++++
 srcpkgs/numen/files/numen/run  | 11 ++++++++++
 srcpkgs/numen/template         | 40 ++++++++++++++++++++++++++++++++++
 3 files changed, 58 insertions(+)
 create mode 100644 srcpkgs/numen/files/numen/conf
 create mode 100755 srcpkgs/numen/files/numen/run
 create mode 100644 srcpkgs/numen/template

diff --git a/srcpkgs/numen/files/numen/conf b/srcpkgs/numen/files/numen/conf
new file mode 100644
index 000000000000..2d814396e2d9
--- /dev/null
+++ b/srcpkgs/numen/files/numen/conf
@@ -0,0 +1,7 @@
+# Example to run the service as a specific user:
+
+# NUMENUSER=john
+# NUMENGROUP="$NUMENUSER"
+# NUMENHOME="/home/$NUMENUSER"
+# export HOME="$NUMENHOME"
+# export XAUTHORITY="/run/user/$(id -u "$NUMENUSER")/Xauthority"
diff --git a/srcpkgs/numen/files/numen/run b/srcpkgs/numen/files/numen/run
new file mode 100755
index 000000000000..da29f62904da
--- /dev/null
+++ b/srcpkgs/numen/files/numen/run
@@ -0,0 +1,11 @@
+#!/bin/sh
+exec 2>&1
+[ -r ./conf ] && . ./conf
+: ${NUMENUSER:=_numen}
+: ${NUMENGROUP:=_numen}
+if [ -z "$NUMENHOME" ]; then
+	mkdir -p /usr/share/numen
+	chown "$NUMENUSER:$NUMENGROUP" /usr/share/numen
+	export XDG_DATA_HOME=/usr/share
+fi
+exec chpst -u "$NUMENUSER:$NUMENGROUP:input:audio" numen ${OPTS}
diff --git a/srcpkgs/numen/template b/srcpkgs/numen/template
new file mode 100644
index 000000000000..c6509bf98cac
--- /dev/null
+++ b/srcpkgs/numen/template
@@ -0,0 +1,40 @@
+# Template file for 'numen'
+pkgname=numen
+version=0.6
+revision=1
+build_style=go
+go_import_path="git.sr.ht/~geb/numen"
+go_package="speech.go"
+hostmakedepends="scdoc"
+makedepends="vosk-api libgomp-devel"
+depends="alsa-utils dotool>=1.1"
+short_desc="Voice control for handsfree computing"
+maintainer="John Gebbie <me@johngebbie.com>"
+license="GPL-3.0-only"
+homepage="https://numenvoice.com"
+changelog="https://git.sr.ht/~geb/numen/blob/master/CHANGELOG.md"
+distfiles="https://git.sr.ht/~geb/numen/archive/${version}.tar.gz"
+checksum=c3483d993c944f49ddbb885aec367056d148c1c1411200c4e7462d9df30bfde6
+conf_files="/etc/sv/numen/conf"
+
+if [ "$XBPS_TARGET_LIBC" = musl ]; then
+	makedepends+=" libexecinfo-devel"
+fi
+
+system_accounts="_numen"
+
+pre_build() {
+	# for the vosk-api package (openblas)
+	export CGO_LDFLAGS="$CGO_LDFLAGS -fopenmp"
+
+	if [ "$XBPS_TARGET_LIBC" = musl ]; then
+		# for the vosk-api package (openfst)
+		export CGO_LDFLAGS="$CGO_LDFLAGS -lexecinfo"
+	fi
+}
+
+post_install() {
+	mv "${DESTDIR}/usr/bin/speech" .
+	PACKAGING=true ./install-numen.sh "${DESTDIR}" /usr/bin
+	vsv numen
+}

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

* Re: [PR PATCH] [Updated] New package: numen-0.6
  2022-10-04 16:56 [PR PATCH] New package: numen-0.1 JohnGebbie
                   ` (65 preceding siblings ...)
  2023-03-29 10:39 ` [PR PATCH] [Updated] " JohnGebbie
@ 2023-03-29 10:46 ` JohnGebbie
  2023-03-31 17:16 ` JohnGebbie
                   ` (18 subsequent siblings)
  85 siblings, 0 replies; 87+ messages in thread
From: JohnGebbie @ 2023-03-29 10:46 UTC (permalink / raw)
  To: ml

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

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

https://github.com/JohnGebbie/void-packages numen3
https://github.com/void-linux/void-packages/pull/39716

New package: numen-0.6
#### Testing the changes
- I tested the changes in this PR: **YES**

#### 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)

This is [my voice control](https://numenvoice.com) for handsfree computing, mainly for accessibility needs.

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

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

From b92d2c95418a820649b36ac93e5b12c9992b3689 Mon Sep 17 00:00:00 2001
From: John Gebbie <me@johngebbie.com>
Date: Mon, 6 Feb 2023 12:29:07 +0000
Subject: [PATCH] New package: numen-0.6

---
 srcpkgs/numen/files/numen/conf |  7 ++++++
 srcpkgs/numen/files/numen/run  | 11 ++++++++++
 srcpkgs/numen/template         | 40 ++++++++++++++++++++++++++++++++++
 3 files changed, 58 insertions(+)
 create mode 100644 srcpkgs/numen/files/numen/conf
 create mode 100755 srcpkgs/numen/files/numen/run
 create mode 100644 srcpkgs/numen/template

diff --git a/srcpkgs/numen/files/numen/conf b/srcpkgs/numen/files/numen/conf
new file mode 100644
index 000000000000..2d814396e2d9
--- /dev/null
+++ b/srcpkgs/numen/files/numen/conf
@@ -0,0 +1,7 @@
+# Example to run the service as a specific user:
+
+# NUMENUSER=john
+# NUMENGROUP="$NUMENUSER"
+# NUMENHOME="/home/$NUMENUSER"
+# export HOME="$NUMENHOME"
+# export XAUTHORITY="/run/user/$(id -u "$NUMENUSER")/Xauthority"
diff --git a/srcpkgs/numen/files/numen/run b/srcpkgs/numen/files/numen/run
new file mode 100755
index 000000000000..da29f62904da
--- /dev/null
+++ b/srcpkgs/numen/files/numen/run
@@ -0,0 +1,11 @@
+#!/bin/sh
+exec 2>&1
+[ -r ./conf ] && . ./conf
+: ${NUMENUSER:=_numen}
+: ${NUMENGROUP:=_numen}
+if [ -z "$NUMENHOME" ]; then
+	mkdir -p /usr/share/numen
+	chown "$NUMENUSER:$NUMENGROUP" /usr/share/numen
+	export XDG_DATA_HOME=/usr/share
+fi
+exec chpst -u "$NUMENUSER:$NUMENGROUP:input:audio" numen ${OPTS}
diff --git a/srcpkgs/numen/template b/srcpkgs/numen/template
new file mode 100644
index 000000000000..79eb6bc49760
--- /dev/null
+++ b/srcpkgs/numen/template
@@ -0,0 +1,40 @@
+# Template file for 'numen'
+pkgname=numen
+version=0.6
+revision=1
+build_style=go
+go_import_path="git.sr.ht/~geb/numen"
+go_package="speech.go"
+hostmakedepends="scdoc"
+makedepends="vosk-api libgomp-devel"
+depends="alsa-utils dotool>=1.1"
+short_desc="Voice control for handsfree computing"
+maintainer="John Gebbie <me@johngebbie.com>"
+license="GPL-3.0-only"
+homepage="https://numenvoice.com"
+changelog="https://git.sr.ht/~geb/numen/blob/master/CHANGELOG.md"
+distfiles="https://git.sr.ht/~geb/numen/archive/${version}.tar.gz"
+checksum=c124c582f3a7ac6f45268da0ae53efc0a1884bb0174c304bf8fb68d9a8111a4d
+conf_files="/etc/sv/numen/conf"
+
+if [ "$XBPS_TARGET_LIBC" = musl ]; then
+	makedepends+=" libexecinfo-devel"
+fi
+
+system_accounts="_numen"
+
+pre_build() {
+	# for the vosk-api package (openblas)
+	export CGO_LDFLAGS="$CGO_LDFLAGS -fopenmp"
+
+	if [ "$XBPS_TARGET_LIBC" = musl ]; then
+		# for the vosk-api package (openfst)
+		export CGO_LDFLAGS="$CGO_LDFLAGS -lexecinfo"
+	fi
+}
+
+post_install() {
+	mv "${DESTDIR}/usr/bin/speech" .
+	PACKAGING=true ./install-numen.sh "${DESTDIR}" /usr/bin
+	vsv numen
+}

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

* Re: New package: numen-0.6
  2022-10-04 16:56 [PR PATCH] New package: numen-0.1 JohnGebbie
                   ` (66 preceding siblings ...)
  2023-03-29 10:46 ` JohnGebbie
@ 2023-03-31 17:16 ` JohnGebbie
  2023-04-03 20:02 ` [PR PATCH] [Updated] " JohnGebbie
                   ` (17 subsequent siblings)
  85 siblings, 0 replies; 87+ messages in thread
From: JohnGebbie @ 2023-03-31 17:16 UTC (permalink / raw)
  To: ml

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

New comment by JohnGebbie on void-packages repository

https://github.com/void-linux/void-packages/pull/39716#issuecomment-1492298070

Comment:
I'd still love to get this merged if possible.

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

* Re: [PR PATCH] [Updated] New package: numen-0.6
  2022-10-04 16:56 [PR PATCH] New package: numen-0.1 JohnGebbie
                   ` (67 preceding siblings ...)
  2023-03-31 17:16 ` JohnGebbie
@ 2023-04-03 20:02 ` JohnGebbie
  2023-04-03 20:14 ` JohnGebbie
                   ` (16 subsequent siblings)
  85 siblings, 0 replies; 87+ messages in thread
From: JohnGebbie @ 2023-04-03 20:02 UTC (permalink / raw)
  To: ml

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

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

https://github.com/JohnGebbie/void-packages numen3
https://github.com/void-linux/void-packages/pull/39716

New package: numen-0.6
#### Testing the changes
- I tested the changes in this PR: **YES**

#### 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)

This is [my voice control](https://numenvoice.com) for handsfree computing, mainly for accessibility needs.

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

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

From 48772d5768d14c6495ecc89ba0d9414d37d81d95 Mon Sep 17 00:00:00 2001
From: John Gebbie <me@johngebbie.com>
Date: Mon, 6 Feb 2023 12:29:07 +0000
Subject: [PATCH] New package: numen-0.6

---
 srcpkgs/numen/files/numen/conf |  7 ++++++
 srcpkgs/numen/files/numen/run  | 11 ++++++++++
 srcpkgs/numen/template         | 40 ++++++++++++++++++++++++++++++++++
 3 files changed, 58 insertions(+)
 create mode 100644 srcpkgs/numen/files/numen/conf
 create mode 100755 srcpkgs/numen/files/numen/run
 create mode 100644 srcpkgs/numen/template

diff --git a/srcpkgs/numen/files/numen/conf b/srcpkgs/numen/files/numen/conf
new file mode 100644
index 000000000000..2d814396e2d9
--- /dev/null
+++ b/srcpkgs/numen/files/numen/conf
@@ -0,0 +1,7 @@
+# Example to run the service as a specific user:
+
+# NUMENUSER=john
+# NUMENGROUP="$NUMENUSER"
+# NUMENHOME="/home/$NUMENUSER"
+# export HOME="$NUMENHOME"
+# export XAUTHORITY="/run/user/$(id -u "$NUMENUSER")/Xauthority"
diff --git a/srcpkgs/numen/files/numen/run b/srcpkgs/numen/files/numen/run
new file mode 100755
index 000000000000..da29f62904da
--- /dev/null
+++ b/srcpkgs/numen/files/numen/run
@@ -0,0 +1,11 @@
+#!/bin/sh
+exec 2>&1
+[ -r ./conf ] && . ./conf
+: ${NUMENUSER:=_numen}
+: ${NUMENGROUP:=_numen}
+if [ -z "$NUMENHOME" ]; then
+	mkdir -p /usr/share/numen
+	chown "$NUMENUSER:$NUMENGROUP" /usr/share/numen
+	export XDG_DATA_HOME=/usr/share
+fi
+exec chpst -u "$NUMENUSER:$NUMENGROUP:input:audio" numen ${OPTS}
diff --git a/srcpkgs/numen/template b/srcpkgs/numen/template
new file mode 100644
index 000000000000..79eb6bc49760
--- /dev/null
+++ b/srcpkgs/numen/template
@@ -0,0 +1,40 @@
+# Template file for 'numen'
+pkgname=numen
+version=0.6
+revision=1
+build_style=go
+go_import_path="git.sr.ht/~geb/numen"
+go_package="speech.go"
+hostmakedepends="scdoc"
+makedepends="vosk-api libgomp-devel"
+depends="alsa-utils dotool>=1.1"
+short_desc="Voice control for handsfree computing"
+maintainer="John Gebbie <me@johngebbie.com>"
+license="GPL-3.0-only"
+homepage="https://numenvoice.com"
+changelog="https://git.sr.ht/~geb/numen/blob/master/CHANGELOG.md"
+distfiles="https://git.sr.ht/~geb/numen/archive/${version}.tar.gz"
+checksum=c124c582f3a7ac6f45268da0ae53efc0a1884bb0174c304bf8fb68d9a8111a4d
+conf_files="/etc/sv/numen/conf"
+
+if [ "$XBPS_TARGET_LIBC" = musl ]; then
+	makedepends+=" libexecinfo-devel"
+fi
+
+system_accounts="_numen"
+
+pre_build() {
+	# for the vosk-api package (openblas)
+	export CGO_LDFLAGS="$CGO_LDFLAGS -fopenmp"
+
+	if [ "$XBPS_TARGET_LIBC" = musl ]; then
+		# for the vosk-api package (openfst)
+		export CGO_LDFLAGS="$CGO_LDFLAGS -lexecinfo"
+	fi
+}
+
+post_install() {
+	mv "${DESTDIR}/usr/bin/speech" .
+	PACKAGING=true ./install-numen.sh "${DESTDIR}" /usr/bin
+	vsv numen
+}

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

* Re: [PR PATCH] [Updated] New package: numen-0.6
  2022-10-04 16:56 [PR PATCH] New package: numen-0.1 JohnGebbie
                   ` (68 preceding siblings ...)
  2023-04-03 20:02 ` [PR PATCH] [Updated] " JohnGebbie
@ 2023-04-03 20:14 ` JohnGebbie
  2023-06-01 17:44 ` johngebbie
                   ` (15 subsequent siblings)
  85 siblings, 0 replies; 87+ messages in thread
From: JohnGebbie @ 2023-04-03 20:14 UTC (permalink / raw)
  To: ml

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

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

https://github.com/JohnGebbie/void-packages numen3
https://github.com/void-linux/void-packages/pull/39716

New package: numen-0.6
#### Testing the changes
- I tested the changes in this PR: **YES**

#### 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)

This is [my voice control](https://numenvoice.com) for handsfree computing, mainly for accessibility needs.

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

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

From 604064f216c58d031ffa016f36c1e17bb84cf6a9 Mon Sep 17 00:00:00 2001
From: John Gebbie <me@johngebbie.com>
Date: Mon, 6 Feb 2023 12:29:07 +0000
Subject: [PATCH] New package: numen-0.6

---
 srcpkgs/numen/files/numen/conf |  7 ++++++
 srcpkgs/numen/files/numen/run  | 11 ++++++++++
 srcpkgs/numen/template         | 40 ++++++++++++++++++++++++++++++++++
 3 files changed, 58 insertions(+)
 create mode 100644 srcpkgs/numen/files/numen/conf
 create mode 100755 srcpkgs/numen/files/numen/run
 create mode 100644 srcpkgs/numen/template

diff --git a/srcpkgs/numen/files/numen/conf b/srcpkgs/numen/files/numen/conf
new file mode 100644
index 000000000000..2d814396e2d9
--- /dev/null
+++ b/srcpkgs/numen/files/numen/conf
@@ -0,0 +1,7 @@
+# Example to run the service as a specific user:
+
+# NUMENUSER=john
+# NUMENGROUP="$NUMENUSER"
+# NUMENHOME="/home/$NUMENUSER"
+# export HOME="$NUMENHOME"
+# export XAUTHORITY="/run/user/$(id -u "$NUMENUSER")/Xauthority"
diff --git a/srcpkgs/numen/files/numen/run b/srcpkgs/numen/files/numen/run
new file mode 100755
index 000000000000..da29f62904da
--- /dev/null
+++ b/srcpkgs/numen/files/numen/run
@@ -0,0 +1,11 @@
+#!/bin/sh
+exec 2>&1
+[ -r ./conf ] && . ./conf
+: ${NUMENUSER:=_numen}
+: ${NUMENGROUP:=_numen}
+if [ -z "$NUMENHOME" ]; then
+	mkdir -p /usr/share/numen
+	chown "$NUMENUSER:$NUMENGROUP" /usr/share/numen
+	export XDG_DATA_HOME=/usr/share
+fi
+exec chpst -u "$NUMENUSER:$NUMENGROUP:input:audio" numen ${OPTS}
diff --git a/srcpkgs/numen/template b/srcpkgs/numen/template
new file mode 100644
index 000000000000..c6509bf98cac
--- /dev/null
+++ b/srcpkgs/numen/template
@@ -0,0 +1,40 @@
+# Template file for 'numen'
+pkgname=numen
+version=0.6
+revision=1
+build_style=go
+go_import_path="git.sr.ht/~geb/numen"
+go_package="speech.go"
+hostmakedepends="scdoc"
+makedepends="vosk-api libgomp-devel"
+depends="alsa-utils dotool>=1.1"
+short_desc="Voice control for handsfree computing"
+maintainer="John Gebbie <me@johngebbie.com>"
+license="GPL-3.0-only"
+homepage="https://numenvoice.com"
+changelog="https://git.sr.ht/~geb/numen/blob/master/CHANGELOG.md"
+distfiles="https://git.sr.ht/~geb/numen/archive/${version}.tar.gz"
+checksum=c3483d993c944f49ddbb885aec367056d148c1c1411200c4e7462d9df30bfde6
+conf_files="/etc/sv/numen/conf"
+
+if [ "$XBPS_TARGET_LIBC" = musl ]; then
+	makedepends+=" libexecinfo-devel"
+fi
+
+system_accounts="_numen"
+
+pre_build() {
+	# for the vosk-api package (openblas)
+	export CGO_LDFLAGS="$CGO_LDFLAGS -fopenmp"
+
+	if [ "$XBPS_TARGET_LIBC" = musl ]; then
+		# for the vosk-api package (openfst)
+		export CGO_LDFLAGS="$CGO_LDFLAGS -lexecinfo"
+	fi
+}
+
+post_install() {
+	mv "${DESTDIR}/usr/bin/speech" .
+	PACKAGING=true ./install-numen.sh "${DESTDIR}" /usr/bin
+	vsv numen
+}

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

* Re: [PR PATCH] [Updated] New package: numen-0.6
  2022-10-04 16:56 [PR PATCH] New package: numen-0.1 JohnGebbie
                   ` (69 preceding siblings ...)
  2023-04-03 20:14 ` JohnGebbie
@ 2023-06-01 17:44 ` johngebbie
  2023-06-01 17:46 ` johngebbie
                   ` (14 subsequent siblings)
  85 siblings, 0 replies; 87+ messages in thread
From: johngebbie @ 2023-06-01 17:44 UTC (permalink / raw)
  To: ml

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

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

https://github.com/johngebbie/void-packages numen3
https://github.com/void-linux/void-packages/pull/39716

New package: numen-0.6
#### Testing the changes
- I tested the changes in this PR: **YES**

#### 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)

This is [my voice control](https://numenvoice.com) for handsfree computing, mainly for accessibility needs.

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

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

From b7ffc638bca2dfe2b12a9929663454e9624efd32 Mon Sep 17 00:00:00 2001
From: John Gebbie <me@johngebbie.com>
Date: Thu, 1 Jun 2023 18:44:05 +0100
Subject: [PATCH] New package: numen-0.7

---
 srcpkgs/numen/files/numen/conf |  7 ++++++
 srcpkgs/numen/files/numen/run  | 11 +++++++++
 srcpkgs/numen/template         | 43 ++++++++++++++++++++++++++++++++++
 3 files changed, 61 insertions(+)
 create mode 100644 srcpkgs/numen/files/numen/conf
 create mode 100755 srcpkgs/numen/files/numen/run
 create mode 100644 srcpkgs/numen/template

diff --git a/srcpkgs/numen/files/numen/conf b/srcpkgs/numen/files/numen/conf
new file mode 100644
index 000000000000..2d814396e2d9
--- /dev/null
+++ b/srcpkgs/numen/files/numen/conf
@@ -0,0 +1,7 @@
+# Example to run the service as a specific user:
+
+# NUMENUSER=john
+# NUMENGROUP="$NUMENUSER"
+# NUMENHOME="/home/$NUMENUSER"
+# export HOME="$NUMENHOME"
+# export XAUTHORITY="/run/user/$(id -u "$NUMENUSER")/Xauthority"
diff --git a/srcpkgs/numen/files/numen/run b/srcpkgs/numen/files/numen/run
new file mode 100755
index 000000000000..da29f62904da
--- /dev/null
+++ b/srcpkgs/numen/files/numen/run
@@ -0,0 +1,11 @@
+#!/bin/sh
+exec 2>&1
+[ -r ./conf ] && . ./conf
+: ${NUMENUSER:=_numen}
+: ${NUMENGROUP:=_numen}
+if [ -z "$NUMENHOME" ]; then
+	mkdir -p /usr/share/numen
+	chown "$NUMENUSER:$NUMENGROUP" /usr/share/numen
+	export XDG_DATA_HOME=/usr/share
+fi
+exec chpst -u "$NUMENUSER:$NUMENGROUP:input:audio" numen ${OPTS}
diff --git a/srcpkgs/numen/template b/srcpkgs/numen/template
new file mode 100644
index 000000000000..29b5434724d7
--- /dev/null
+++ b/srcpkgs/numen/template
@@ -0,0 +1,43 @@
+# Template file for 'numen'
+pkgname=numen
+version=0.7
+revision=1
+build_style=go
+go_import_path="git.sr.ht/~geb/numen"
+go_ldflags="-X main.Version=${version}
+	-X main.DefaultModelPackage=vosk-model-small-en-us
+	-X 'main.DefaultModelPaths=/usr/local/share/vosk-models/small-en-us /usr/share/vosk-models/small-en-us'
+	-X main.DefaultPhrasesDir=/etc/numen/phrases"
+hostmakedepends="scdoc"
+makedepends="vosk-api libgomp-devel"
+depends="alsa-utils dotool>=1.1"
+short_desc="Voice control for handsfree computing"
+maintainer="John Gebbie <me@johngebbie.com>"
+license="GPL-3.0-only"
+homepage="https://numenvoice.com"
+changelog="https://git.sr.ht/~geb/numen/blob/master/CHANGELOG.md"
+distfiles="https://git.sr.ht/~geb/numen/archive/${version}.tar.gz"
+checksum=c3483d993c944f49ddbb885aec367056d148c1c1411200c4e7462d9df30bfde6
+conf_files="/etc/sv/numen/conf"
+
+if [ "$XBPS_TARGET_LIBC" = musl ]; then
+	makedepends+=" libexecinfo-devel"
+fi
+
+system_accounts="_numen"
+
+pre_build() {
+	# for the vosk-api package (openblas)
+	export CGO_LDFLAGS="$CGO_LDFLAGS -fopenmp"
+
+	if [ "$XBPS_TARGET_LIBC" = musl ]; then
+		# for the vosk-api package (openfst)
+		export CGO_LDFLAGS="$CGO_LDFLAGS -lexecinfo"
+	fi
+}
+
+post_install() {
+	NUMEN_SKIP_CHECKS=yes NUMEN_SKIP_BINARY=yes \
+		./install-numen.sh "${DESTDIR}" /usr/bin
+	vsv numen
+}

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

* Re: [PR PATCH] [Updated] New package: numen-0.6
  2022-10-04 16:56 [PR PATCH] New package: numen-0.1 JohnGebbie
                   ` (70 preceding siblings ...)
  2023-06-01 17:44 ` johngebbie
@ 2023-06-01 17:46 ` johngebbie
  2023-06-01 18:08 ` johngebbie
                   ` (13 subsequent siblings)
  85 siblings, 0 replies; 87+ messages in thread
From: johngebbie @ 2023-06-01 17:46 UTC (permalink / raw)
  To: ml

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

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

https://github.com/johngebbie/void-packages numen3
https://github.com/void-linux/void-packages/pull/39716

New package: numen-0.6
#### Testing the changes
- I tested the changes in this PR: **YES**

#### 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)

This is [my voice control](https://numenvoice.com) for handsfree computing, mainly for accessibility needs.

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

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

From f6a42d5fa08303cb3d502582bf31e4b2a50632ce Mon Sep 17 00:00:00 2001
From: John Gebbie <me@johngebbie.com>
Date: Thu, 1 Jun 2023 18:46:13 +0100
Subject: [PATCH] New package: numen-0.7

---
 srcpkgs/numen/files/numen/conf |  7 ++++++
 srcpkgs/numen/files/numen/run  | 11 +++++++++
 srcpkgs/numen/template         | 43 ++++++++++++++++++++++++++++++++++
 3 files changed, 61 insertions(+)
 create mode 100644 srcpkgs/numen/files/numen/conf
 create mode 100755 srcpkgs/numen/files/numen/run
 create mode 100644 srcpkgs/numen/template

diff --git a/srcpkgs/numen/files/numen/conf b/srcpkgs/numen/files/numen/conf
new file mode 100644
index 000000000000..2d814396e2d9
--- /dev/null
+++ b/srcpkgs/numen/files/numen/conf
@@ -0,0 +1,7 @@
+# Example to run the service as a specific user:
+
+# NUMENUSER=john
+# NUMENGROUP="$NUMENUSER"
+# NUMENHOME="/home/$NUMENUSER"
+# export HOME="$NUMENHOME"
+# export XAUTHORITY="/run/user/$(id -u "$NUMENUSER")/Xauthority"
diff --git a/srcpkgs/numen/files/numen/run b/srcpkgs/numen/files/numen/run
new file mode 100755
index 000000000000..da29f62904da
--- /dev/null
+++ b/srcpkgs/numen/files/numen/run
@@ -0,0 +1,11 @@
+#!/bin/sh
+exec 2>&1
+[ -r ./conf ] && . ./conf
+: ${NUMENUSER:=_numen}
+: ${NUMENGROUP:=_numen}
+if [ -z "$NUMENHOME" ]; then
+	mkdir -p /usr/share/numen
+	chown "$NUMENUSER:$NUMENGROUP" /usr/share/numen
+	export XDG_DATA_HOME=/usr/share
+fi
+exec chpst -u "$NUMENUSER:$NUMENGROUP:input:audio" numen ${OPTS}
diff --git a/srcpkgs/numen/template b/srcpkgs/numen/template
new file mode 100644
index 000000000000..926b0c7efbbc
--- /dev/null
+++ b/srcpkgs/numen/template
@@ -0,0 +1,43 @@
+# Template file for 'numen'
+pkgname=numen
+version=0.123 #TODO
+revision=1
+build_style=go
+go_import_path="git.sr.ht/~geb/numen"
+go_ldflags="-X main.Version=${version}
+	-X main.DefaultModelPackage=vosk-model-small-en-us
+	-X 'main.DefaultModelPaths=/usr/local/share/vosk-models/small-en-us /usr/share/vosk-models/small-en-us'
+	-X main.DefaultPhrasesDir=/etc/numen/phrases"
+hostmakedepends="scdoc"
+makedepends="vosk-api libgomp-devel"
+depends="alsa-utils dotool>=1.1"
+short_desc="Voice control for handsfree computing"
+maintainer="John Gebbie <me@johngebbie.com>"
+license="GPL-3.0-only"
+homepage="https://numenvoice.com"
+changelog="https://git.sr.ht/~geb/numen/blob/master/CHANGELOG.md"
+distfiles="https://git.sr.ht/~geb/numen/archive/${version}.tar.gz"
+checksum=c3483d993c944f49ddbb885aec367056d148c1c1411200c4e7462d9df30bfde6
+conf_files="/etc/sv/numen/conf"
+
+if [ "$XBPS_TARGET_LIBC" = musl ]; then
+	makedepends+=" libexecinfo-devel"
+fi
+
+system_accounts="_numen"
+
+pre_build() {
+	# for the vosk-api package (openblas)
+	export CGO_LDFLAGS="$CGO_LDFLAGS -fopenmp"
+
+	if [ "$XBPS_TARGET_LIBC" = musl ]; then
+		# for the vosk-api package (openfst)
+		export CGO_LDFLAGS="$CGO_LDFLAGS -lexecinfo"
+	fi
+}
+
+post_install() {
+	NUMEN_SKIP_CHECKS=yes NUMEN_SKIP_BINARY=yes \
+		./install-numen.sh "${DESTDIR}" /usr/bin
+	vsv numen
+}

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

* Re: [PR PATCH] [Updated] New package: numen-0.6
  2022-10-04 16:56 [PR PATCH] New package: numen-0.1 JohnGebbie
                   ` (71 preceding siblings ...)
  2023-06-01 17:46 ` johngebbie
@ 2023-06-01 18:08 ` johngebbie
  2023-06-01 18:13 ` johngebbie
                   ` (12 subsequent siblings)
  85 siblings, 0 replies; 87+ messages in thread
From: johngebbie @ 2023-06-01 18:08 UTC (permalink / raw)
  To: ml

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

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

https://github.com/johngebbie/void-packages numen3
https://github.com/void-linux/void-packages/pull/39716

New package: numen-0.6
#### Testing the changes
- I tested the changes in this PR: **YES**

#### 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)

This is [my voice control](https://numenvoice.com) for handsfree computing, mainly for accessibility needs.

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

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

From 2583383fc23090195286d0549f6af22b4c30830f Mon Sep 17 00:00:00 2001
From: John Gebbie <me@johngebbie.com>
Date: Thu, 1 Jun 2023 18:46:13 +0100
Subject: [PATCH] New package: numen-0.7

---
 srcpkgs/numen/files/numen/conf |  7 ++++++
 srcpkgs/numen/files/numen/run  | 11 +++++++++
 srcpkgs/numen/template         | 43 ++++++++++++++++++++++++++++++++++
 3 files changed, 61 insertions(+)
 create mode 100644 srcpkgs/numen/files/numen/conf
 create mode 100755 srcpkgs/numen/files/numen/run
 create mode 100644 srcpkgs/numen/template

diff --git a/srcpkgs/numen/files/numen/conf b/srcpkgs/numen/files/numen/conf
new file mode 100644
index 000000000000..2d814396e2d9
--- /dev/null
+++ b/srcpkgs/numen/files/numen/conf
@@ -0,0 +1,7 @@
+# Example to run the service as a specific user:
+
+# NUMENUSER=john
+# NUMENGROUP="$NUMENUSER"
+# NUMENHOME="/home/$NUMENUSER"
+# export HOME="$NUMENHOME"
+# export XAUTHORITY="/run/user/$(id -u "$NUMENUSER")/Xauthority"
diff --git a/srcpkgs/numen/files/numen/run b/srcpkgs/numen/files/numen/run
new file mode 100755
index 000000000000..da29f62904da
--- /dev/null
+++ b/srcpkgs/numen/files/numen/run
@@ -0,0 +1,11 @@
+#!/bin/sh
+exec 2>&1
+[ -r ./conf ] && . ./conf
+: ${NUMENUSER:=_numen}
+: ${NUMENGROUP:=_numen}
+if [ -z "$NUMENHOME" ]; then
+	mkdir -p /usr/share/numen
+	chown "$NUMENUSER:$NUMENGROUP" /usr/share/numen
+	export XDG_DATA_HOME=/usr/share
+fi
+exec chpst -u "$NUMENUSER:$NUMENGROUP:input:audio" numen ${OPTS}
diff --git a/srcpkgs/numen/template b/srcpkgs/numen/template
new file mode 100644
index 000000000000..67a7643ba173
--- /dev/null
+++ b/srcpkgs/numen/template
@@ -0,0 +1,43 @@
+# Template file for 'numen'
+pkgname=numen
+version=0.123 #TODO
+revision=1
+build_style=go
+go_import_path="git.sr.ht/~geb/numen"
+go_ldflags="-X main.Version=${version}
+	-X main.DefaultModelPackage=vosk-model-small-en-us
+	-X 'main.DefaultModelPaths=/usr/local/share/vosk-models/small-en-us /usr/share/vosk-models/small-en-us'
+	-X main.DefaultPhrasesDir=/etc/numen/phrases"
+hostmakedepends="scdoc"
+makedepends="vosk-api libgomp-devel"
+depends="alsa-utils dotool>=1.1"
+short_desc="Voice control for handsfree computing"
+maintainer="John Gebbie <me@johngebbie.com>"
+license="GPL-3.0-only"
+homepage="https://numenvoice.com"
+changelog="https://git.sr.ht/~geb/numen/blob/master/CHANGELOG.md"
+distfiles="https://git.sr.ht/~geb/numen/archive/${version}.tar.gz"
+checksum=6109274a4d9b411ba5e9b8c7d1b52aa764fa1b25162ee79e52bff9594174532f
+conf_files="/etc/sv/numen/conf"
+
+if [ "$XBPS_TARGET_LIBC" = musl ]; then
+	makedepends+=" libexecinfo-devel"
+fi
+
+system_accounts="_numen"
+
+pre_build() {
+	# for the vosk-api package (openblas)
+	export CGO_LDFLAGS="$CGO_LDFLAGS -fopenmp"
+
+	if [ "$XBPS_TARGET_LIBC" = musl ]; then
+		# for the vosk-api package (openfst)
+		export CGO_LDFLAGS="$CGO_LDFLAGS -lexecinfo"
+	fi
+}
+
+post_install() {
+	NUMEN_SKIP_CHECKS=yes NUMEN_SKIP_BINARY=yes \
+		./install-numen.sh "${DESTDIR}" /usr/bin
+	vsv numen
+}

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

* Re: [PR PATCH] [Updated] New package: numen-0.6
  2022-10-04 16:56 [PR PATCH] New package: numen-0.1 JohnGebbie
                   ` (72 preceding siblings ...)
  2023-06-01 18:08 ` johngebbie
@ 2023-06-01 18:13 ` johngebbie
  2023-06-01 19:09 ` johngebbie
                   ` (11 subsequent siblings)
  85 siblings, 0 replies; 87+ messages in thread
From: johngebbie @ 2023-06-01 18:13 UTC (permalink / raw)
  To: ml

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

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

https://github.com/johngebbie/void-packages numen3
https://github.com/void-linux/void-packages/pull/39716

New package: numen-0.6
#### Testing the changes
- I tested the changes in this PR: **YES**

#### 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)

This is [my voice control](https://numenvoice.com) for handsfree computing, mainly for accessibility needs.

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

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

From 97d5cd14ca23e2b09c8275aa774f8032d1058cd2 Mon Sep 17 00:00:00 2001
From: John Gebbie <me@johngebbie.com>
Date: Thu, 1 Jun 2023 18:46:13 +0100
Subject: [PATCH] New package: numen-0.7

---
 srcpkgs/numen/files/numen/conf |  7 +++++
 srcpkgs/numen/files/numen/run  | 11 ++++++++
 srcpkgs/numen/template         | 48 ++++++++++++++++++++++++++++++++++
 3 files changed, 66 insertions(+)
 create mode 100644 srcpkgs/numen/files/numen/conf
 create mode 100755 srcpkgs/numen/files/numen/run
 create mode 100644 srcpkgs/numen/template

diff --git a/srcpkgs/numen/files/numen/conf b/srcpkgs/numen/files/numen/conf
new file mode 100644
index 000000000000..2d814396e2d9
--- /dev/null
+++ b/srcpkgs/numen/files/numen/conf
@@ -0,0 +1,7 @@
+# Example to run the service as a specific user:
+
+# NUMENUSER=john
+# NUMENGROUP="$NUMENUSER"
+# NUMENHOME="/home/$NUMENUSER"
+# export HOME="$NUMENHOME"
+# export XAUTHORITY="/run/user/$(id -u "$NUMENUSER")/Xauthority"
diff --git a/srcpkgs/numen/files/numen/run b/srcpkgs/numen/files/numen/run
new file mode 100755
index 000000000000..da29f62904da
--- /dev/null
+++ b/srcpkgs/numen/files/numen/run
@@ -0,0 +1,11 @@
+#!/bin/sh
+exec 2>&1
+[ -r ./conf ] && . ./conf
+: ${NUMENUSER:=_numen}
+: ${NUMENGROUP:=_numen}
+if [ -z "$NUMENHOME" ]; then
+	mkdir -p /usr/share/numen
+	chown "$NUMENUSER:$NUMENGROUP" /usr/share/numen
+	export XDG_DATA_HOME=/usr/share
+fi
+exec chpst -u "$NUMENUSER:$NUMENGROUP:input:audio" numen ${OPTS}
diff --git a/srcpkgs/numen/template b/srcpkgs/numen/template
new file mode 100644
index 000000000000..648878bede74
--- /dev/null
+++ b/srcpkgs/numen/template
@@ -0,0 +1,48 @@
+# Template file for 'numen'
+pkgname=numen
+version=0.123 #TODO
+revision=1
+build_style=go
+go_import_path="git.sr.ht/~geb/numen"
+go_ldflags="-X main.Version=${version}
+	-X main.DefaultModelPackage=vosk-model-small-en-us
+	-X 'main.DefaultModelPaths=/usr/local/share/vosk-models/small-en-us /usr/share/vosk-models/small-en-us'
+	-X main.DefaultPhrasesDir=/etc/numen/phrases"
+hostmakedepends="scdoc"
+makedepends="vosk-api libgomp-devel"
+depends="alsa-utils dotool>=1.1"
+short_desc="Voice control for handsfree computing"
+maintainer="John Gebbie <me@johngebbie.com>"
+license="GPL-3.0-only"
+homepage="https://numenvoice.com"
+changelog="https://git.sr.ht/~geb/numen/blob/master/CHANGELOG.md"
+distfiles="https://git.sr.ht/~geb/numen/archive/${version}.tar.gz"
+checksum=6109274a4d9b411ba5e9b8c7d1b52aa764fa1b25162ee79e52bff9594174532f
+conf_files="/etc/sv/numen/conf"
+
+if [ "$XBPS_TARGET_LIBC" = musl ]; then
+	makedepends+=" libexecinfo-devel"
+fi
+
+system_accounts="_numen"
+
+pre_build() {
+	# for the vosk-api package (openblas)
+	export CGO_LDFLAGS="$CGO_LDFLAGS -fopenmp"
+
+	if [ "$XBPS_TARGET_LIBC" = musl ]; then
+		# for the vosk-api package (openfst)
+		export CGO_LDFLAGS="$CGO_LDFLAGS -lexecinfo"
+	fi
+}
+
+do_check() {
+	cd test
+	./test.sh
+}
+
+post_install() {
+	NUMEN_SKIP_CHECKS=yes NUMEN_SKIP_BINARY=yes \
+		./install-numen.sh "${DESTDIR}" /usr/bin
+	vsv numen
+}

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

* Re: [PR PATCH] [Updated] New package: numen-0.6
  2022-10-04 16:56 [PR PATCH] New package: numen-0.1 JohnGebbie
                   ` (73 preceding siblings ...)
  2023-06-01 18:13 ` johngebbie
@ 2023-06-01 19:09 ` johngebbie
  2023-06-01 19:16 ` johngebbie
                   ` (10 subsequent siblings)
  85 siblings, 0 replies; 87+ messages in thread
From: johngebbie @ 2023-06-01 19:09 UTC (permalink / raw)
  To: ml

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

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

https://github.com/johngebbie/void-packages numen3
https://github.com/void-linux/void-packages/pull/39716

New package: numen-0.6
#### Testing the changes
- I tested the changes in this PR: **YES**

#### 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)

This is [my voice control](https://numenvoice.com) for handsfree computing, mainly for accessibility needs.

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

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

From 2e73b5bdaf478f60c1c155f1c3a7d485ded62e78 Mon Sep 17 00:00:00 2001
From: John Gebbie <me@johngebbie.com>
Date: Thu, 1 Jun 2023 18:46:13 +0100
Subject: [PATCH] New package: numen-0.7

---
 srcpkgs/numen/files/numen/conf |  7 +++++
 srcpkgs/numen/files/numen/run  | 11 ++++++++
 srcpkgs/numen/template         | 49 ++++++++++++++++++++++++++++++++++
 3 files changed, 67 insertions(+)
 create mode 100644 srcpkgs/numen/files/numen/conf
 create mode 100755 srcpkgs/numen/files/numen/run
 create mode 100644 srcpkgs/numen/template

diff --git a/srcpkgs/numen/files/numen/conf b/srcpkgs/numen/files/numen/conf
new file mode 100644
index 000000000000..2d814396e2d9
--- /dev/null
+++ b/srcpkgs/numen/files/numen/conf
@@ -0,0 +1,7 @@
+# Example to run the service as a specific user:
+
+# NUMENUSER=john
+# NUMENGROUP="$NUMENUSER"
+# NUMENHOME="/home/$NUMENUSER"
+# export HOME="$NUMENHOME"
+# export XAUTHORITY="/run/user/$(id -u "$NUMENUSER")/Xauthority"
diff --git a/srcpkgs/numen/files/numen/run b/srcpkgs/numen/files/numen/run
new file mode 100755
index 000000000000..da29f62904da
--- /dev/null
+++ b/srcpkgs/numen/files/numen/run
@@ -0,0 +1,11 @@
+#!/bin/sh
+exec 2>&1
+[ -r ./conf ] && . ./conf
+: ${NUMENUSER:=_numen}
+: ${NUMENGROUP:=_numen}
+if [ -z "$NUMENHOME" ]; then
+	mkdir -p /usr/share/numen
+	chown "$NUMENUSER:$NUMENGROUP" /usr/share/numen
+	export XDG_DATA_HOME=/usr/share
+fi
+exec chpst -u "$NUMENUSER:$NUMENGROUP:input:audio" numen ${OPTS}
diff --git a/srcpkgs/numen/template b/srcpkgs/numen/template
new file mode 100644
index 000000000000..e599f5f607dd
--- /dev/null
+++ b/srcpkgs/numen/template
@@ -0,0 +1,49 @@
+# Template file for 'numen'
+pkgname=numen
+version=0.123 #TODO
+revision=1
+build_style=go
+go_import_path="git.sr.ht/~geb/numen"
+go_ldflags="-X main.Version=${version}
+	-X main.DefaultModelPackage=vosk-model-small-en-us
+	-X 'main.DefaultModelPaths=/usr/local/share/vosk-models/small-en-us /usr/share/vosk-models/small-en-us'
+	-X main.DefaultPhrasesDir=/etc/numen/phrases"
+hostmakedepends="scdoc"
+makedepends="vosk-api libgomp-devel"
+depends="alsa-utils dotool>=1.1"
+short_desc="Voice control for handsfree computing"
+maintainer="John Gebbie <me@johngebbie.com>"
+license="GPL-3.0-only"
+homepage="https://numenvoice.com"
+changelog="https://git.sr.ht/~geb/numen/blob/master/CHANGELOG.md"
+distfiles="https://git.sr.ht/~geb/numen/archive/${version}.tar.gz"
+checksum=6109274a4d9b411ba5e9b8c7d1b52aa764fa1b25162ee79e52bff9594174532f
+conf_files="/etc/sv/numen/conf"
+
+if [ "$XBPS_TARGET_LIBC" = musl ]; then
+	makedepends+=" libexecinfo-devel"
+fi
+
+system_accounts="_numen"
+
+pre_build() {
+	# for the vosk-api package (openblas)
+	export CGO_LDFLAGS="$CGO_LDFLAGS -fopenmp"
+
+	if [ "$XBPS_TARGET_LIBC" = musl ]; then
+		# for the vosk-api package (openfst)
+		export CGO_LDFLAGS="$CGO_LDFLAGS -lexecinfo"
+	fi
+}
+
+do_check() {
+	ln -s "${GOPATH}"/bin/**/numen numen
+	cd test
+	./test.sh
+}
+
+post_install() {
+	NUMEN_SKIP_CHECKS=yes NUMEN_SKIP_BINARY=yes \
+		./install-numen.sh "${DESTDIR}" /usr/bin
+	vsv numen
+}

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

* Re: [PR PATCH] [Updated] New package: numen-0.6
  2022-10-04 16:56 [PR PATCH] New package: numen-0.1 JohnGebbie
                   ` (74 preceding siblings ...)
  2023-06-01 19:09 ` johngebbie
@ 2023-06-01 19:16 ` johngebbie
  2023-06-01 19:21 ` johngebbie
                   ` (9 subsequent siblings)
  85 siblings, 0 replies; 87+ messages in thread
From: johngebbie @ 2023-06-01 19:16 UTC (permalink / raw)
  To: ml

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

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

https://github.com/johngebbie/void-packages numen3
https://github.com/void-linux/void-packages/pull/39716

New package: numen-0.6
#### Testing the changes
- I tested the changes in this PR: **YES**

#### 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)

This is [my voice control](https://numenvoice.com) for handsfree computing, mainly for accessibility needs.

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

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

From 61014924e54035c3d76ad77ea98d00376827543c Mon Sep 17 00:00:00 2001
From: John Gebbie <me@johngebbie.com>
Date: Thu, 1 Jun 2023 18:46:13 +0100
Subject: [PATCH] New package: numen-0.7

---
 srcpkgs/numen/files/numen/conf |  7 +++++
 srcpkgs/numen/files/numen/run  | 11 ++++++++
 srcpkgs/numen/template         | 49 ++++++++++++++++++++++++++++++++++
 3 files changed, 67 insertions(+)
 create mode 100644 srcpkgs/numen/files/numen/conf
 create mode 100755 srcpkgs/numen/files/numen/run
 create mode 100644 srcpkgs/numen/template

diff --git a/srcpkgs/numen/files/numen/conf b/srcpkgs/numen/files/numen/conf
new file mode 100644
index 000000000000..2d814396e2d9
--- /dev/null
+++ b/srcpkgs/numen/files/numen/conf
@@ -0,0 +1,7 @@
+# Example to run the service as a specific user:
+
+# NUMENUSER=john
+# NUMENGROUP="$NUMENUSER"
+# NUMENHOME="/home/$NUMENUSER"
+# export HOME="$NUMENHOME"
+# export XAUTHORITY="/run/user/$(id -u "$NUMENUSER")/Xauthority"
diff --git a/srcpkgs/numen/files/numen/run b/srcpkgs/numen/files/numen/run
new file mode 100755
index 000000000000..da29f62904da
--- /dev/null
+++ b/srcpkgs/numen/files/numen/run
@@ -0,0 +1,11 @@
+#!/bin/sh
+exec 2>&1
+[ -r ./conf ] && . ./conf
+: ${NUMENUSER:=_numen}
+: ${NUMENGROUP:=_numen}
+if [ -z "$NUMENHOME" ]; then
+	mkdir -p /usr/share/numen
+	chown "$NUMENUSER:$NUMENGROUP" /usr/share/numen
+	export XDG_DATA_HOME=/usr/share
+fi
+exec chpst -u "$NUMENUSER:$NUMENGROUP:input:audio" numen ${OPTS}
diff --git a/srcpkgs/numen/template b/srcpkgs/numen/template
new file mode 100644
index 000000000000..86dd462dc531
--- /dev/null
+++ b/srcpkgs/numen/template
@@ -0,0 +1,49 @@
+# Template file for 'numen'
+pkgname=numen
+version=0.123 #TODO
+revision=1
+build_style=go
+go_import_path="git.sr.ht/~geb/numen"
+go_ldflags="-X main.Version=${version}
+	-X main.DefaultModelPackage=vosk-model-small-en-us
+	-X 'main.DefaultModelPaths=/usr/local/share/vosk-models/small-en-us /usr/share/vosk-models/small-en-us'
+	-X main.DefaultPhrasesDir=/etc/numen/phrases"
+hostmakedepends="scdoc"
+makedepends="vosk-api libgomp-devel"
+depends="alsa-utils dotool>=1.1"
+short_desc="Voice control for handsfree computing"
+maintainer="John Gebbie <me@johngebbie.com>"
+license="GPL-3.0-only"
+homepage="https://numenvoice.com"
+changelog="https://git.sr.ht/~geb/numen/blob/master/CHANGELOG.md"
+distfiles="https://git.sr.ht/~geb/numen/archive/${version}.tar.gz"
+checksum=6109274a4d9b411ba5e9b8c7d1b52aa764fa1b25162ee79e52bff9594174532f
+conf_files="/etc/sv/numen/conf"
+
+if [ "$XBPS_TARGET_LIBC" = musl ]; then
+	makedepends+=" libexecinfo-devel"
+fi
+
+system_accounts="_numen"
+
+pre_build() {
+	# for the vosk-api package (openblas)
+	export CGO_LDFLAGS="$CGO_LDFLAGS -fopenmp"
+
+	if [ "$XBPS_TARGET_LIBC" = musl ]; then
+		# for the vosk-api package (openfst)
+		export CGO_LDFLAGS="$CGO_LDFLAGS -lexecinfo"
+	fi
+}
+
+do_check() {
+	cp "${GOPATH}"/bin/**/numen numen
+	cd test
+	./test.sh
+}
+
+post_install() {
+	NUMEN_SKIP_CHECKS=yes NUMEN_SKIP_BINARY=yes \
+		./install-numen.sh "${DESTDIR}" /usr/bin
+	vsv numen
+}

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

* Re: [PR PATCH] [Updated] New package: numen-0.6
  2022-10-04 16:56 [PR PATCH] New package: numen-0.1 JohnGebbie
                   ` (75 preceding siblings ...)
  2023-06-01 19:16 ` johngebbie
@ 2023-06-01 19:21 ` johngebbie
  2023-06-01 19:24 ` johngebbie
                   ` (8 subsequent siblings)
  85 siblings, 0 replies; 87+ messages in thread
From: johngebbie @ 2023-06-01 19:21 UTC (permalink / raw)
  To: ml

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

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

https://github.com/johngebbie/void-packages numen3
https://github.com/void-linux/void-packages/pull/39716

New package: numen-0.6
#### Testing the changes
- I tested the changes in this PR: **YES**

#### 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)

This is [my voice control](https://numenvoice.com) for handsfree computing, mainly for accessibility needs.

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

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

From 5aafc86ae59375e218d7d039088dd478233a33e8 Mon Sep 17 00:00:00 2001
From: John Gebbie <me@johngebbie.com>
Date: Thu, 1 Jun 2023 18:46:13 +0100
Subject: [PATCH] New package: numen-0.7

---
 srcpkgs/numen/files/numen/conf |  7 +++++
 srcpkgs/numen/files/numen/run  | 11 ++++++++
 srcpkgs/numen/template         | 49 ++++++++++++++++++++++++++++++++++
 3 files changed, 67 insertions(+)
 create mode 100644 srcpkgs/numen/files/numen/conf
 create mode 100755 srcpkgs/numen/files/numen/run
 create mode 100644 srcpkgs/numen/template

diff --git a/srcpkgs/numen/files/numen/conf b/srcpkgs/numen/files/numen/conf
new file mode 100644
index 000000000000..2d814396e2d9
--- /dev/null
+++ b/srcpkgs/numen/files/numen/conf
@@ -0,0 +1,7 @@
+# Example to run the service as a specific user:
+
+# NUMENUSER=john
+# NUMENGROUP="$NUMENUSER"
+# NUMENHOME="/home/$NUMENUSER"
+# export HOME="$NUMENHOME"
+# export XAUTHORITY="/run/user/$(id -u "$NUMENUSER")/Xauthority"
diff --git a/srcpkgs/numen/files/numen/run b/srcpkgs/numen/files/numen/run
new file mode 100755
index 000000000000..da29f62904da
--- /dev/null
+++ b/srcpkgs/numen/files/numen/run
@@ -0,0 +1,11 @@
+#!/bin/sh
+exec 2>&1
+[ -r ./conf ] && . ./conf
+: ${NUMENUSER:=_numen}
+: ${NUMENGROUP:=_numen}
+if [ -z "$NUMENHOME" ]; then
+	mkdir -p /usr/share/numen
+	chown "$NUMENUSER:$NUMENGROUP" /usr/share/numen
+	export XDG_DATA_HOME=/usr/share
+fi
+exec chpst -u "$NUMENUSER:$NUMENGROUP:input:audio" numen ${OPTS}
diff --git a/srcpkgs/numen/template b/srcpkgs/numen/template
new file mode 100644
index 000000000000..af4c97f9f221
--- /dev/null
+++ b/srcpkgs/numen/template
@@ -0,0 +1,49 @@
+# Template file for 'numen'
+pkgname=numen
+version=0.123 #TODO
+revision=1
+build_style=go
+go_import_path="git.sr.ht/~geb/numen"
+go_ldflags="-X main.Version=${version}
+	-X main.DefaultModelPackage=vosk-model-small-en-us
+	-X 'main.DefaultModelPaths=/usr/local/share/vosk-models/small-en-us /usr/share/vosk-models/small-en-us'
+	-X main.DefaultPhrasesDir=/etc/numen/phrases"
+hostmakedepends="scdoc"
+makedepends="vosk-api libgomp-devel"
+depends="alsa-utils dotool>=1.1"
+short_desc="Voice control for handsfree computing"
+maintainer="John Gebbie <me@johngebbie.com>"
+license="GPL-3.0-only"
+homepage="https://numenvoice.com"
+changelog="https://git.sr.ht/~geb/numen/blob/master/CHANGELOG.md"
+distfiles="https://git.sr.ht/~geb/numen/archive/${version}.tar.gz"
+checksum=6109274a4d9b411ba5e9b8c7d1b52aa764fa1b25162ee79e52bff9594174532f
+conf_files="/etc/sv/numen/conf"
+
+if [ "$XBPS_TARGET_LIBC" = musl ]; then
+	makedepends+=" libexecinfo-devel"
+fi
+
+system_accounts="_numen"
+
+pre_build() {
+	# for the vosk-api package (openblas)
+	export CGO_LDFLAGS="$CGO_LDFLAGS -fopenmp"
+
+	if [ "$XBPS_TARGET_LIBC" = musl ]; then
+		# for the vosk-api package (openfst)
+		export CGO_LDFLAGS="$CGO_LDFLAGS -lexecinfo"
+	fi
+}
+
+do_check() {
+	GOBIN=. do_build
+	cd test
+	./test.sh
+}
+
+post_install() {
+	NUMEN_SKIP_CHECKS=yes NUMEN_SKIP_BINARY=yes \
+		./install-numen.sh "${DESTDIR}" /usr/bin
+	vsv numen
+}

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

* Re: [PR PATCH] [Updated] New package: numen-0.6
  2022-10-04 16:56 [PR PATCH] New package: numen-0.1 JohnGebbie
                   ` (76 preceding siblings ...)
  2023-06-01 19:21 ` johngebbie
@ 2023-06-01 19:24 ` johngebbie
  2023-06-01 19:28 ` johngebbie
                   ` (7 subsequent siblings)
  85 siblings, 0 replies; 87+ messages in thread
From: johngebbie @ 2023-06-01 19:24 UTC (permalink / raw)
  To: ml

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

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

https://github.com/johngebbie/void-packages numen3
https://github.com/void-linux/void-packages/pull/39716

New package: numen-0.6
#### Testing the changes
- I tested the changes in this PR: **YES**

#### 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)

This is [my voice control](https://numenvoice.com) for handsfree computing, mainly for accessibility needs.

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

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

From 0e0bd26adf0f86b8bee8594f5bc9481e39c082cc Mon Sep 17 00:00:00 2001
From: John Gebbie <me@johngebbie.com>
Date: Thu, 1 Jun 2023 18:46:13 +0100
Subject: [PATCH] New package: numen-0.7

---
 srcpkgs/numen/files/numen/conf |  7 +++++
 srcpkgs/numen/files/numen/run  | 11 ++++++++
 srcpkgs/numen/template         | 49 ++++++++++++++++++++++++++++++++++
 3 files changed, 67 insertions(+)
 create mode 100644 srcpkgs/numen/files/numen/conf
 create mode 100755 srcpkgs/numen/files/numen/run
 create mode 100644 srcpkgs/numen/template

diff --git a/srcpkgs/numen/files/numen/conf b/srcpkgs/numen/files/numen/conf
new file mode 100644
index 000000000000..2d814396e2d9
--- /dev/null
+++ b/srcpkgs/numen/files/numen/conf
@@ -0,0 +1,7 @@
+# Example to run the service as a specific user:
+
+# NUMENUSER=john
+# NUMENGROUP="$NUMENUSER"
+# NUMENHOME="/home/$NUMENUSER"
+# export HOME="$NUMENHOME"
+# export XAUTHORITY="/run/user/$(id -u "$NUMENUSER")/Xauthority"
diff --git a/srcpkgs/numen/files/numen/run b/srcpkgs/numen/files/numen/run
new file mode 100755
index 000000000000..da29f62904da
--- /dev/null
+++ b/srcpkgs/numen/files/numen/run
@@ -0,0 +1,11 @@
+#!/bin/sh
+exec 2>&1
+[ -r ./conf ] && . ./conf
+: ${NUMENUSER:=_numen}
+: ${NUMENGROUP:=_numen}
+if [ -z "$NUMENHOME" ]; then
+	mkdir -p /usr/share/numen
+	chown "$NUMENUSER:$NUMENGROUP" /usr/share/numen
+	export XDG_DATA_HOME=/usr/share
+fi
+exec chpst -u "$NUMENUSER:$NUMENGROUP:input:audio" numen ${OPTS}
diff --git a/srcpkgs/numen/template b/srcpkgs/numen/template
new file mode 100644
index 000000000000..cbb6e0a1eb28
--- /dev/null
+++ b/srcpkgs/numen/template
@@ -0,0 +1,49 @@
+# Template file for 'numen'
+pkgname=numen
+version=0.123 #TODO
+revision=1
+build_style=go
+go_import_path="git.sr.ht/~geb/numen"
+go_ldflags="-X main.Version=${version}
+	-X main.DefaultModelPackage=vosk-model-small-en-us
+	-X 'main.DefaultModelPaths=/usr/local/share/vosk-models/small-en-us /usr/share/vosk-models/small-en-us'
+	-X main.DefaultPhrasesDir=/etc/numen/phrases"
+hostmakedepends="scdoc"
+makedepends="vosk-api libgomp-devel"
+depends="alsa-utils dotool>=1.1"
+short_desc="Voice control for handsfree computing"
+maintainer="John Gebbie <me@johngebbie.com>"
+license="GPL-3.0-only"
+homepage="https://numenvoice.com"
+changelog="https://git.sr.ht/~geb/numen/blob/master/CHANGELOG.md"
+distfiles="https://git.sr.ht/~geb/numen/archive/${version}.tar.gz"
+checksum=6109274a4d9b411ba5e9b8c7d1b52aa764fa1b25162ee79e52bff9594174532f
+conf_files="/etc/sv/numen/conf"
+
+if [ "$XBPS_TARGET_LIBC" = musl ]; then
+	makedepends+=" libexecinfo-devel"
+fi
+
+system_accounts="_numen"
+
+pre_build() {
+	# for the vosk-api package (openblas)
+	export CGO_LDFLAGS="$CGO_LDFLAGS -fopenmp"
+
+	if [ "$XBPS_TARGET_LIBC" = musl ]; then
+		# for the vosk-api package (openfst)
+		export CGO_LDFLAGS="$CGO_LDFLAGS -lexecinfo"
+	fi
+}
+
+do_check() {
+	cp "${GOPATH}"/**/numen numen
+	cd test
+	./test.sh
+}
+
+post_install() {
+	NUMEN_SKIP_CHECKS=yes NUMEN_SKIP_BINARY=yes \
+		./install-numen.sh "${DESTDIR}" /usr/bin
+	vsv numen
+}

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

* Re: [PR PATCH] [Updated] New package: numen-0.6
  2022-10-04 16:56 [PR PATCH] New package: numen-0.1 JohnGebbie
                   ` (77 preceding siblings ...)
  2023-06-01 19:24 ` johngebbie
@ 2023-06-01 19:28 ` johngebbie
  2023-06-15  8:22 ` [PR PATCH] [Updated] New package: numen-0.7 johngebbie
                   ` (6 subsequent siblings)
  85 siblings, 0 replies; 87+ messages in thread
From: johngebbie @ 2023-06-01 19:28 UTC (permalink / raw)
  To: ml

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

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

https://github.com/johngebbie/void-packages numen3
https://github.com/void-linux/void-packages/pull/39716

New package: numen-0.6
#### Testing the changes
- I tested the changes in this PR: **YES**

#### 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)

This is [my voice control](https://numenvoice.com) for handsfree computing, mainly for accessibility needs.

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

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

From ec561ce927d39545220872128a75c9fb76874de6 Mon Sep 17 00:00:00 2001
From: John Gebbie <me@johngebbie.com>
Date: Thu, 1 Jun 2023 18:46:13 +0100
Subject: [PATCH] New package: numen-0.7

---
 srcpkgs/numen/files/numen/conf |  7 +++++
 srcpkgs/numen/files/numen/run  | 11 ++++++++
 srcpkgs/numen/template         | 50 ++++++++++++++++++++++++++++++++++
 3 files changed, 68 insertions(+)
 create mode 100644 srcpkgs/numen/files/numen/conf
 create mode 100755 srcpkgs/numen/files/numen/run
 create mode 100644 srcpkgs/numen/template

diff --git a/srcpkgs/numen/files/numen/conf b/srcpkgs/numen/files/numen/conf
new file mode 100644
index 000000000000..2d814396e2d9
--- /dev/null
+++ b/srcpkgs/numen/files/numen/conf
@@ -0,0 +1,7 @@
+# Example to run the service as a specific user:
+
+# NUMENUSER=john
+# NUMENGROUP="$NUMENUSER"
+# NUMENHOME="/home/$NUMENUSER"
+# export HOME="$NUMENHOME"
+# export XAUTHORITY="/run/user/$(id -u "$NUMENUSER")/Xauthority"
diff --git a/srcpkgs/numen/files/numen/run b/srcpkgs/numen/files/numen/run
new file mode 100755
index 000000000000..da29f62904da
--- /dev/null
+++ b/srcpkgs/numen/files/numen/run
@@ -0,0 +1,11 @@
+#!/bin/sh
+exec 2>&1
+[ -r ./conf ] && . ./conf
+: ${NUMENUSER:=_numen}
+: ${NUMENGROUP:=_numen}
+if [ -z "$NUMENHOME" ]; then
+	mkdir -p /usr/share/numen
+	chown "$NUMENUSER:$NUMENGROUP" /usr/share/numen
+	export XDG_DATA_HOME=/usr/share
+fi
+exec chpst -u "$NUMENUSER:$NUMENGROUP:input:audio" numen ${OPTS}
diff --git a/srcpkgs/numen/template b/srcpkgs/numen/template
new file mode 100644
index 000000000000..e0aa32568094
--- /dev/null
+++ b/srcpkgs/numen/template
@@ -0,0 +1,50 @@
+# Template file for 'numen'
+pkgname=numen
+version=0.123 #TODO
+revision=1
+build_style=go
+go_import_path="git.sr.ht/~geb/numen"
+go_ldflags="-X main.Version=${version}
+	-X main.DefaultModelPackage=vosk-model-small-en-us
+	-X 'main.DefaultModelPaths=/usr/local/share/vosk-models/small-en-us /usr/share/vosk-models/small-en-us'
+	-X main.DefaultPhrasesDir=/etc/numen/phrases"
+hostmakedepends="scdoc"
+makedepends="vosk-api libgomp-devel"
+depends="alsa-utils dotool>=1.1"
+checkdepends="vosk-model-small-en-us"
+short_desc="Voice control for handsfree computing"
+maintainer="John Gebbie <me@johngebbie.com>"
+license="GPL-3.0-only"
+homepage="https://numenvoice.com"
+changelog="https://git.sr.ht/~geb/numen/blob/master/CHANGELOG.md"
+distfiles="https://git.sr.ht/~geb/numen/archive/${version}.tar.gz"
+checksum=6109274a4d9b411ba5e9b8c7d1b52aa764fa1b25162ee79e52bff9594174532f
+conf_files="/etc/sv/numen/conf"
+
+if [ "$XBPS_TARGET_LIBC" = musl ]; then
+	makedepends+=" libexecinfo-devel"
+fi
+
+system_accounts="_numen"
+
+pre_build() {
+	# for the vosk-api package (openblas)
+	export CGO_LDFLAGS="$CGO_LDFLAGS -fopenmp"
+
+	if [ "$XBPS_TARGET_LIBC" = musl ]; then
+		# for the vosk-api package (openfst)
+		export CGO_LDFLAGS="$CGO_LDFLAGS -lexecinfo"
+	fi
+}
+
+do_check() {
+	cp "${GOPATH}"/**/numen numen
+	cd test
+	./test.sh
+}
+
+post_install() {
+	NUMEN_SKIP_CHECKS=yes NUMEN_SKIP_BINARY=yes \
+		./install-numen.sh "${DESTDIR}" /usr/bin
+	vsv numen
+}

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

* Re: [PR PATCH] [Updated] New package: numen-0.7
  2022-10-04 16:56 [PR PATCH] New package: numen-0.1 JohnGebbie
                   ` (78 preceding siblings ...)
  2023-06-01 19:28 ` johngebbie
@ 2023-06-15  8:22 ` johngebbie
  2023-06-15  9:34 ` johngebbie
                   ` (5 subsequent siblings)
  85 siblings, 0 replies; 87+ messages in thread
From: johngebbie @ 2023-06-15  8:22 UTC (permalink / raw)
  To: ml

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

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

https://github.com/johngebbie/void-packages numen3
https://github.com/void-linux/void-packages/pull/39716

New package: numen-0.7
#### Testing the changes
- I tested the changes in this PR: **YES**

#### 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)

This is [my voice control](https://numenvoice.com) for handsfree computing, mainly for accessibility needs.

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

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

From db651a4af21bbf7d2bf34a54481f8165dc56e45c Mon Sep 17 00:00:00 2001
From: John Gebbie <me@johngebbie.com>
Date: Thu, 1 Jun 2023 18:46:13 +0100
Subject: [PATCH] New package: numen-0.7

---
 srcpkgs/numen/files/numen/conf |  7 +++++
 srcpkgs/numen/files/numen/run  | 11 ++++++++
 srcpkgs/numen/template         | 50 ++++++++++++++++++++++++++++++++++
 3 files changed, 68 insertions(+)
 create mode 100644 srcpkgs/numen/files/numen/conf
 create mode 100755 srcpkgs/numen/files/numen/run
 create mode 100644 srcpkgs/numen/template

diff --git a/srcpkgs/numen/files/numen/conf b/srcpkgs/numen/files/numen/conf
new file mode 100644
index 000000000000..2d814396e2d9
--- /dev/null
+++ b/srcpkgs/numen/files/numen/conf
@@ -0,0 +1,7 @@
+# Example to run the service as a specific user:
+
+# NUMENUSER=john
+# NUMENGROUP="$NUMENUSER"
+# NUMENHOME="/home/$NUMENUSER"
+# export HOME="$NUMENHOME"
+# export XAUTHORITY="/run/user/$(id -u "$NUMENUSER")/Xauthority"
diff --git a/srcpkgs/numen/files/numen/run b/srcpkgs/numen/files/numen/run
new file mode 100755
index 000000000000..da29f62904da
--- /dev/null
+++ b/srcpkgs/numen/files/numen/run
@@ -0,0 +1,11 @@
+#!/bin/sh
+exec 2>&1
+[ -r ./conf ] && . ./conf
+: ${NUMENUSER:=_numen}
+: ${NUMENGROUP:=_numen}
+if [ -z "$NUMENHOME" ]; then
+	mkdir -p /usr/share/numen
+	chown "$NUMENUSER:$NUMENGROUP" /usr/share/numen
+	export XDG_DATA_HOME=/usr/share
+fi
+exec chpst -u "$NUMENUSER:$NUMENGROUP:input:audio" numen ${OPTS}
diff --git a/srcpkgs/numen/template b/srcpkgs/numen/template
new file mode 100644
index 000000000000..869684c352ef
--- /dev/null
+++ b/srcpkgs/numen/template
@@ -0,0 +1,50 @@
+# Template file for 'numen'
+pkgname=numen
+version=0.7
+revision=1
+build_style=go
+go_import_path="git.sr.ht/~geb/numen"
+go_ldflags="-X main.Version=${version}
+	-X main.DefaultModelPackage=vosk-model-small-en-us
+	-X 'main.DefaultModelPaths=/usr/local/share/vosk-models/small-en-us /usr/share/vosk-models/small-en-us'
+	-X main.DefaultPhrasesDir=/etc/numen/phrases"
+hostmakedepends="scdoc"
+makedepends="vosk-api libgomp-devel"
+depends="alsa-utils dotool>=1.1"
+checkdepends="vosk-model-small-en-us"
+short_desc="Voice control for handsfree computing"
+maintainer="John Gebbie <me@johngebbie.com>"
+license="AGPL-3.0-only"
+homepage="https://numenvoice.com"
+changelog="https://git.sr.ht/~geb/numen/blob/master/CHANGELOG.md"
+distfiles="https://git.sr.ht/~geb/numen/archive/${version}.tar.gz"
+checksum=6109274a4d9b411ba5e9b8c7d1b52aa764fa1b25162ee79e52bff9594174532f
+conf_files="/etc/sv/numen/conf"
+
+if [ "$XBPS_TARGET_LIBC" = musl ]; then
+	makedepends+=" libexecinfo-devel"
+fi
+
+system_accounts="_numen"
+
+pre_build() {
+	# for the vosk-api package (openblas)
+	export CGO_LDFLAGS="$CGO_LDFLAGS -fopenmp"
+
+	if [ "$XBPS_TARGET_LIBC" = musl ]; then
+		# for the vosk-api package (openfst)
+		export CGO_LDFLAGS="$CGO_LDFLAGS -lexecinfo"
+	fi
+}
+
+do_check() {
+	cp "${GOPATH}"/**/numen numen
+	cd test
+	./test.sh
+}
+
+post_install() {
+	NUMEN_SKIP_CHECKS=yes NUMEN_SKIP_BINARY=yes \
+		./install-numen.sh "${DESTDIR}" /usr/bin
+	vsv numen
+}

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

* Re: [PR PATCH] [Updated] New package: numen-0.7
  2022-10-04 16:56 [PR PATCH] New package: numen-0.1 JohnGebbie
                   ` (79 preceding siblings ...)
  2023-06-15  8:22 ` [PR PATCH] [Updated] New package: numen-0.7 johngebbie
@ 2023-06-15  9:34 ` johngebbie
  2023-06-15  9:38 ` johngebbie
                   ` (4 subsequent siblings)
  85 siblings, 0 replies; 87+ messages in thread
From: johngebbie @ 2023-06-15  9:34 UTC (permalink / raw)
  To: ml

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

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

https://github.com/johngebbie/void-packages numen3
https://github.com/void-linux/void-packages/pull/39716

New package: numen-0.7
#### Testing the changes
- I tested the changes in this PR: **YES**

#### 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)

This is [my voice control](https://numenvoice.com) for handsfree computing, mainly for accessibility needs.

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

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

From 140e3692162c58c4777df4d69fc08eb142aa4440 Mon Sep 17 00:00:00 2001
From: John Gebbie <me@johngebbie.com>
Date: Thu, 1 Jun 2023 18:46:13 +0100
Subject: [PATCH] New package: numen-0.7

---
 srcpkgs/numen/files/numen/conf |  7 +++++
 srcpkgs/numen/files/numen/run  | 11 ++++++++
 srcpkgs/numen/template         | 51 ++++++++++++++++++++++++++++++++++
 3 files changed, 69 insertions(+)
 create mode 100644 srcpkgs/numen/files/numen/conf
 create mode 100755 srcpkgs/numen/files/numen/run
 create mode 100644 srcpkgs/numen/template

diff --git a/srcpkgs/numen/files/numen/conf b/srcpkgs/numen/files/numen/conf
new file mode 100644
index 000000000000..2d814396e2d9
--- /dev/null
+++ b/srcpkgs/numen/files/numen/conf
@@ -0,0 +1,7 @@
+# Example to run the service as a specific user:
+
+# NUMENUSER=john
+# NUMENGROUP="$NUMENUSER"
+# NUMENHOME="/home/$NUMENUSER"
+# export HOME="$NUMENHOME"
+# export XAUTHORITY="/run/user/$(id -u "$NUMENUSER")/Xauthority"
diff --git a/srcpkgs/numen/files/numen/run b/srcpkgs/numen/files/numen/run
new file mode 100755
index 000000000000..da29f62904da
--- /dev/null
+++ b/srcpkgs/numen/files/numen/run
@@ -0,0 +1,11 @@
+#!/bin/sh
+exec 2>&1
+[ -r ./conf ] && . ./conf
+: ${NUMENUSER:=_numen}
+: ${NUMENGROUP:=_numen}
+if [ -z "$NUMENHOME" ]; then
+	mkdir -p /usr/share/numen
+	chown "$NUMENUSER:$NUMENGROUP" /usr/share/numen
+	export XDG_DATA_HOME=/usr/share
+fi
+exec chpst -u "$NUMENUSER:$NUMENGROUP:input:audio" numen ${OPTS}
diff --git a/srcpkgs/numen/template b/srcpkgs/numen/template
new file mode 100644
index 000000000000..bbd318063279
--- /dev/null
+++ b/srcpkgs/numen/template
@@ -0,0 +1,51 @@
+# Template file for 'numen'
+pkgname=numen
+version=0.7
+revision=1
+build_style=go
+go_import_path="git.sr.ht/~geb/numen"
+go_ldflags="-X main.Version=${version}
+	-X main.DefaultModelPackage=vosk-model-small-en-us
+	-X 'main.DefaultModelPaths=/usr/local/share/vosk-models/small-en-us /usr/share/vosk-models/small-en-us'
+	-X main.DefaultPhrasesDir=/etc/numen/phrases"
+hostmakedepends="scdoc"
+makedepends="vosk-api libgomp-devel"
+depends="alsa-utils dotool>=1.1"
+checkdepends="vosk-model-small-en-us"
+short_desc="Voice control for handsfree computing"
+maintainer="Orphaned <orphan@voidlinux.org>"
+license="AGPL-3.0-only"
+homepage="https://numenvoice.com"
+changelog="https://git.sr.ht/~geb/numen/blob/master/CHANGELOG.md"
+distfiles="https://git.sr.ht/~geb/numen/archive/${version}.tar.gz"
+checksum=6109274a4d9b411ba5e9b8c7d1b52aa764fa1b25162ee79e52bff9594174532f
+conf_files="/etc/sv/numen/conf"
+
+if [ "$XBPS_TARGET_LIBC" = musl ]; then
+	makedepends+=" libexecinfo-devel"
+fi
+
+system_accounts="_numen"
+
+pre_build() {
+	# for the vosk-api package (openblas)
+	export CGO_LDFLAGS="$CGO_LDFLAGS -fopenmp"
+
+	if [ "$XBPS_TARGET_LIBC" = musl ]; then
+		# for the vosk-api package (openfst)
+		export CGO_LDFLAGS="$CGO_LDFLAGS -lexecinfo"
+	fi
+}
+
+do_check() {
+	cp "${GOPATH}"/**/numen numen
+	cd test
+	./test.sh
+}
+
+post_install() {
+	NUMEN_SKIP_CHECKS=yes NUMEN_SKIP_BINARY=yes \
+		./install-numen.sh "${DESTDIR}" /usr/bin
+	vsv numen
+	vlicense LICENSE
+}

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

* Re: [PR PATCH] [Updated] New package: numen-0.7
  2022-10-04 16:56 [PR PATCH] New package: numen-0.1 JohnGebbie
                   ` (80 preceding siblings ...)
  2023-06-15  9:34 ` johngebbie
@ 2023-06-15  9:38 ` johngebbie
  2023-06-15  9:42 ` johngebbie
                   ` (3 subsequent siblings)
  85 siblings, 0 replies; 87+ messages in thread
From: johngebbie @ 2023-06-15  9:38 UTC (permalink / raw)
  To: ml

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

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

https://github.com/johngebbie/void-packages numen3
https://github.com/void-linux/void-packages/pull/39716

New package: numen-0.7
#### Testing the changes
- I tested the changes in this PR: **YES**

#### 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)

This is [my voice control](https://numenvoice.com) for handsfree computing, mainly for accessibility needs.

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

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

From 4482018ea39c7cae78162f91f2be5a2751882f7e Mon Sep 17 00:00:00 2001
From: John Gebbie <me@johngebbie.com>
Date: Thu, 1 Jun 2023 18:46:13 +0100
Subject: [PATCH] New package: numen-0.7

---
 srcpkgs/numen/files/numen/conf |  7 +++++
 srcpkgs/numen/files/numen/run  | 11 ++++++++
 srcpkgs/numen/template         | 51 ++++++++++++++++++++++++++++++++++
 3 files changed, 69 insertions(+)
 create mode 100644 srcpkgs/numen/files/numen/conf
 create mode 100755 srcpkgs/numen/files/numen/run
 create mode 100644 srcpkgs/numen/template

diff --git a/srcpkgs/numen/files/numen/conf b/srcpkgs/numen/files/numen/conf
new file mode 100644
index 000000000000..2d814396e2d9
--- /dev/null
+++ b/srcpkgs/numen/files/numen/conf
@@ -0,0 +1,7 @@
+# Example to run the service as a specific user:
+
+# NUMENUSER=john
+# NUMENGROUP="$NUMENUSER"
+# NUMENHOME="/home/$NUMENUSER"
+# export HOME="$NUMENHOME"
+# export XAUTHORITY="/run/user/$(id -u "$NUMENUSER")/Xauthority"
diff --git a/srcpkgs/numen/files/numen/run b/srcpkgs/numen/files/numen/run
new file mode 100755
index 000000000000..da29f62904da
--- /dev/null
+++ b/srcpkgs/numen/files/numen/run
@@ -0,0 +1,11 @@
+#!/bin/sh
+exec 2>&1
+[ -r ./conf ] && . ./conf
+: ${NUMENUSER:=_numen}
+: ${NUMENGROUP:=_numen}
+if [ -z "$NUMENHOME" ]; then
+	mkdir -p /usr/share/numen
+	chown "$NUMENUSER:$NUMENGROUP" /usr/share/numen
+	export XDG_DATA_HOME=/usr/share
+fi
+exec chpst -u "$NUMENUSER:$NUMENGROUP:input:audio" numen ${OPTS}
diff --git a/srcpkgs/numen/template b/srcpkgs/numen/template
new file mode 100644
index 000000000000..4d6737399aae
--- /dev/null
+++ b/srcpkgs/numen/template
@@ -0,0 +1,51 @@
+# Template file for 'numen'
+pkgname=numen
+version=0.7
+revision=1
+build_style=go
+go_import_path="git.sr.ht/~geb/numen"
+go_ldflags="-X main.Version=${version}
+	-X main.DefaultModelPackage=vosk-model-small-en-us
+	-X 'main.DefaultModelPaths=/usr/local/share/vosk-models/small-en-us /usr/share/vosk-models/small-en-us'
+	-X main.DefaultPhrasesDir=/etc/numen/phrases"
+hostmakedepends="scdoc"
+makedepends="vosk-api libgomp-devel"
+depends="alsa-utils dotool>=1.1"
+checkdepends="vosk-model-small-en-us"
+short_desc="Voice control for handsfree computing"
+maintainer="Orphaned <orphan@voidlinux.org>"
+license="AGPL-3.0-only"
+homepage="https://numenvoice.com"
+changelog="https://git.sr.ht/~geb/numen/blob/master/CHANGELOG.md"
+distfiles="https://git.sr.ht/~geb/numen/archive/${version}.tar.gz"
+checksum=314de269501ca6c4104977774e32cd00e295569888771f7ec91d65e423a38e75
+conf_files="/etc/sv/numen/conf"
+
+if [ "$XBPS_TARGET_LIBC" = musl ]; then
+	makedepends+=" libexecinfo-devel"
+fi
+
+system_accounts="_numen"
+
+pre_build() {
+	# for the vosk-api package (openblas)
+	export CGO_LDFLAGS="$CGO_LDFLAGS -fopenmp"
+
+	if [ "$XBPS_TARGET_LIBC" = musl ]; then
+		# for the vosk-api package (openfst)
+		export CGO_LDFLAGS="$CGO_LDFLAGS -lexecinfo"
+	fi
+}
+
+do_check() {
+	cp "${GOPATH}"/**/numen numen
+	cd test
+	./test.sh
+}
+
+post_install() {
+	NUMEN_SKIP_CHECKS=yes NUMEN_SKIP_BINARY=yes \
+		./install-numen.sh "${DESTDIR}" /usr/bin
+	vsv numen
+	vlicense LICENSE
+}

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

* Re: [PR PATCH] [Updated] New package: numen-0.7
  2022-10-04 16:56 [PR PATCH] New package: numen-0.1 JohnGebbie
                   ` (81 preceding siblings ...)
  2023-06-15  9:38 ` johngebbie
@ 2023-06-15  9:42 ` johngebbie
  2023-06-15  9:53 ` [PR PATCH] [Closed]: " johngebbie
                   ` (2 subsequent siblings)
  85 siblings, 0 replies; 87+ messages in thread
From: johngebbie @ 2023-06-15  9:42 UTC (permalink / raw)
  To: ml

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

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

https://github.com/johngebbie/void-packages numen3
https://github.com/void-linux/void-packages/pull/39716

New package: numen-0.7
#### Testing the changes
- I tested the changes in this PR: **YES**

#### 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)

This is [my voice control](https://numenvoice.com) for handsfree computing, mainly for accessibility needs.

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

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

From db284d63d5821eb77dbbaf0e18dd5f844e8ef7aa Mon Sep 17 00:00:00 2001
From: John Gebbie <me@johngebbie.com>
Date: Thu, 1 Jun 2023 18:46:13 +0100
Subject: [PATCH] New package: numen-0.7

---
 srcpkgs/numen/files/numen/conf |  7 +++++
 srcpkgs/numen/files/numen/run  | 11 ++++++++
 srcpkgs/numen/template         | 51 ++++++++++++++++++++++++++++++++++
 3 files changed, 69 insertions(+)
 create mode 100644 srcpkgs/numen/files/numen/conf
 create mode 100755 srcpkgs/numen/files/numen/run
 create mode 100644 srcpkgs/numen/template

diff --git a/srcpkgs/numen/files/numen/conf b/srcpkgs/numen/files/numen/conf
new file mode 100644
index 000000000000..2d814396e2d9
--- /dev/null
+++ b/srcpkgs/numen/files/numen/conf
@@ -0,0 +1,7 @@
+# Example to run the service as a specific user:
+
+# NUMENUSER=john
+# NUMENGROUP="$NUMENUSER"
+# NUMENHOME="/home/$NUMENUSER"
+# export HOME="$NUMENHOME"
+# export XAUTHORITY="/run/user/$(id -u "$NUMENUSER")/Xauthority"
diff --git a/srcpkgs/numen/files/numen/run b/srcpkgs/numen/files/numen/run
new file mode 100755
index 000000000000..da29f62904da
--- /dev/null
+++ b/srcpkgs/numen/files/numen/run
@@ -0,0 +1,11 @@
+#!/bin/sh
+exec 2>&1
+[ -r ./conf ] && . ./conf
+: ${NUMENUSER:=_numen}
+: ${NUMENGROUP:=_numen}
+if [ -z "$NUMENHOME" ]; then
+	mkdir -p /usr/share/numen
+	chown "$NUMENUSER:$NUMENGROUP" /usr/share/numen
+	export XDG_DATA_HOME=/usr/share
+fi
+exec chpst -u "$NUMENUSER:$NUMENGROUP:input:audio" numen ${OPTS}
diff --git a/srcpkgs/numen/template b/srcpkgs/numen/template
new file mode 100644
index 000000000000..54b22f197e1b
--- /dev/null
+++ b/srcpkgs/numen/template
@@ -0,0 +1,51 @@
+# Template file for 'numen'
+pkgname=numen
+version=0.7
+revision=1
+build_style=go
+go_import_path="git.sr.ht/~geb/numen"
+go_ldflags="-X main.Version=${version}
+	-X main.DefaultModelPackage=vosk-model-small-en-us
+	-X 'main.DefaultModelPaths=/usr/local/share/vosk-models/small-en-us /usr/share/vosk-models/small-en-us'
+	-X main.DefaultPhrasesDir=/etc/numen/phrases"
+hostmakedepends="scdoc"
+makedepends="vosk-api libgomp-devel"
+depends="alsa-utils dotool>=1.1"
+checkdepends="vosk-model-small-en-us"
+short_desc="Voice control for handsfree computing"
+maintainer="Orphaned <orphan@voidlinux.org>"
+license="AGPL-3.0-only"
+homepage="https://numenvoice.org"
+changelog="https://git.sr.ht/~geb/numen/blob/master/CHANGELOG.md"
+distfiles="https://git.sr.ht/~geb/numen/archive/${version}.tar.gz"
+checksum=314de269501ca6c4104977774e32cd00e295569888771f7ec91d65e423a38e75
+conf_files="/etc/sv/numen/conf"
+
+if [ "$XBPS_TARGET_LIBC" = musl ]; then
+	makedepends+=" libexecinfo-devel"
+fi
+
+system_accounts="_numen"
+
+pre_build() {
+	# for the vosk-api package (openblas)
+	export CGO_LDFLAGS="$CGO_LDFLAGS -fopenmp"
+
+	if [ "$XBPS_TARGET_LIBC" = musl ]; then
+		# for the vosk-api package (openfst)
+		export CGO_LDFLAGS="$CGO_LDFLAGS -lexecinfo"
+	fi
+}
+
+do_check() {
+	cp "${GOPATH}"/**/numen numen
+	cd test
+	./test.sh
+}
+
+post_install() {
+	NUMEN_SKIP_CHECKS=yes NUMEN_SKIP_BINARY=yes \
+		./install-numen.sh "${DESTDIR}" /usr/bin
+	vsv numen
+	vlicense LICENSE
+}

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

* Re: [PR PATCH] [Closed]: New package: numen-0.7
  2022-10-04 16:56 [PR PATCH] New package: numen-0.1 JohnGebbie
                   ` (82 preceding siblings ...)
  2023-06-15  9:42 ` johngebbie
@ 2023-06-15  9:53 ` johngebbie
  2024-03-19 16:42 ` meator
  2024-03-19 21:05 ` johngebbie
  85 siblings, 0 replies; 87+ messages in thread
From: johngebbie @ 2023-06-15  9:53 UTC (permalink / raw)
  To: ml

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

There's a closed pull request on the void-packages repository

New package: numen-0.7
https://github.com/void-linux/void-packages/pull/39716

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

#### 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)

This is [my voice control](https://numenvoice.com) for handsfree computing, mainly for accessibility needs.

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

* Re: New package: numen-0.7
  2022-10-04 16:56 [PR PATCH] New package: numen-0.1 JohnGebbie
                   ` (83 preceding siblings ...)
  2023-06-15  9:53 ` [PR PATCH] [Closed]: " johngebbie
@ 2024-03-19 16:42 ` meator
  2024-03-19 21:05 ` johngebbie
  85 siblings, 0 replies; 87+ messages in thread
From: meator @ 2024-03-19 16:42 UTC (permalink / raw)
  To: ml

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

New comment by meator on void-packages repository

https://github.com/void-linux/void-packages/pull/39716#issuecomment-2007657727

Comment:
@johngebbie Hey, why did you close this PR?

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

* Re: New package: numen-0.7
  2022-10-04 16:56 [PR PATCH] New package: numen-0.1 JohnGebbie
                   ` (84 preceding siblings ...)
  2024-03-19 16:42 ` meator
@ 2024-03-19 21:05 ` johngebbie
  85 siblings, 0 replies; 87+ messages in thread
From: johngebbie @ 2024-03-19 21:05 UTC (permalink / raw)
  To: ml

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

New comment by johngebbie on void-packages repository

https://github.com/void-linux/void-packages/pull/39716#issuecomment-2008134720

Comment:
Hi @meator, I closed this because I no longer use Void. I'd be very happy for someone to take this forward again though!

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

end of thread, other threads:[~2024-03-19 21:05 UTC | newest]

Thread overview: 87+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-04 16:56 [PR PATCH] New package: numen-0.1 JohnGebbie
2022-10-09  9:49 ` [PR PATCH] [Updated] " JohnGebbie
2022-10-09 14:30 ` JohnGebbie
2022-10-09 16:38 ` JohnGebbie
2022-10-14  9:27 ` JohnGebbie
2022-10-14  9:53 ` JohnGebbie
2022-10-30 11:20 ` JohnGebbie
2022-10-31 12:08 ` JohnGebbie
2022-10-31 12:22 ` New package: numen-0.2 JohnGebbie
2022-11-09 17:25 ` [PR PATCH] [Updated] " JohnGebbie
2022-11-09 17:29 ` New package: numen-0.3 JohnGebbie
2022-11-15 15:20 ` [PR PATCH] [Updated] " JohnGebbie
2022-12-04 16:06 ` JohnGebbie
2022-12-04 16:12 ` JohnGebbie
2022-12-05 10:04 ` JohnGebbie
2022-12-05 10:10 ` JohnGebbie
2022-12-05 10:11 ` JohnGebbie
2022-12-08 11:17 ` [PR PATCH] [Updated] New package: numen-0.4 JohnGebbie
2022-12-08 11:34 ` JohnGebbie
2022-12-08 22:17 ` JohnGebbie
2022-12-08 23:01 ` [PR PATCH] [Updated] " JohnGebbie
2022-12-08 23:01 ` JohnGebbie
2022-12-08 23:02 ` JohnGebbie
2022-12-17 17:30 ` [PR PATCH] [Updated] " JohnGebbie
2022-12-17 17:33 ` JohnGebbie
2022-12-28 10:12 ` [PR PATCH] [Updated] " JohnGebbie
2022-12-29 20:36 ` [PR PATCH] [Updated] New package: numen-0.5 JohnGebbie
2022-12-29 21:56 ` [PR REVIEW] " paper42
2022-12-29 22:10 ` [PR PATCH] [Updated] " JohnGebbie
2022-12-29 22:11 ` [PR REVIEW] " JohnGebbie
2022-12-30 11:19 ` [PR PATCH] [Updated] " JohnGebbie
2022-12-30 11:21 ` JohnGebbie
2022-12-30 11:48 ` JohnGebbie
2022-12-31 11:56 ` JohnGebbie
2022-12-31 11:58 ` JohnGebbie
2022-12-31 13:30 ` JohnGebbie
2022-12-31 14:43 ` [PR REVIEW] " paper42
2022-12-31 16:36 ` [PR PATCH] [Updated] " JohnGebbie
2022-12-31 16:52 ` [PR REVIEW] " JohnGebbie
2022-12-31 21:46 ` JohnGebbie
2022-12-31 21:46 ` JohnGebbie
2023-01-02 21:35 ` [PR PATCH] [Updated] " JohnGebbie
2023-01-02 21:38 ` JohnGebbie
2023-01-06 14:22 ` Eloitor
2023-01-06 14:23 ` Eloitor
2023-01-06 14:23 ` Eloitor
2023-01-06 15:05 ` JohnGebbie
2023-01-06 15:06 ` JohnGebbie
2023-01-06 15:08 ` [PR PATCH] [Updated] " JohnGebbie
2023-01-06 15:09 ` JohnGebbie
2023-01-10 14:39 ` [PR PATCH] [Updated] " JohnGebbie
2023-01-12 14:06 ` JohnGebbie
2023-01-15 14:12 ` JohnGebbie
2023-01-20 11:33 ` JohnGebbie
2023-01-25 15:36 ` JohnGebbie
2023-01-25 15:41 ` JohnGebbie
2023-01-31 11:06 ` [PR PATCH] [Updated] " JohnGebbie
2023-02-04 18:47 ` JohnGebbie
2023-02-06 12:23 ` JohnGebbie
2023-02-06 12:29 ` [PR PATCH] [Updated] New package: numen-0.6 JohnGebbie
2023-02-06 12:32 ` JohnGebbie
2023-02-16 18:38 ` [PR PATCH] [Updated] " JohnGebbie
2023-02-16 18:45 ` JohnGebbie
2023-02-21 17:56 ` JohnGebbie
2023-02-25  9:46 ` [PR PATCH] [Updated] " JohnGebbie
2023-02-25  9:49 ` JohnGebbie
2023-03-29 10:39 ` [PR PATCH] [Updated] " JohnGebbie
2023-03-29 10:46 ` JohnGebbie
2023-03-31 17:16 ` JohnGebbie
2023-04-03 20:02 ` [PR PATCH] [Updated] " JohnGebbie
2023-04-03 20:14 ` JohnGebbie
2023-06-01 17:44 ` johngebbie
2023-06-01 17:46 ` johngebbie
2023-06-01 18:08 ` johngebbie
2023-06-01 18:13 ` johngebbie
2023-06-01 19:09 ` johngebbie
2023-06-01 19:16 ` johngebbie
2023-06-01 19:21 ` johngebbie
2023-06-01 19:24 ` johngebbie
2023-06-01 19:28 ` johngebbie
2023-06-15  8:22 ` [PR PATCH] [Updated] New package: numen-0.7 johngebbie
2023-06-15  9:34 ` johngebbie
2023-06-15  9:38 ` johngebbie
2023-06-15  9:42 ` johngebbie
2023-06-15  9:53 ` [PR PATCH] [Closed]: " johngebbie
2024-03-19 16:42 ` meator
2024-03-19 21:05 ` 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).