Github messages for voidlinux
 help / color / mirror / Atom feed
From: JohnGebbie <JohnGebbie@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] New package: numen-0.5
Date: Tue, 10 Jan 2023 15:39:23 +0100	[thread overview]
Message-ID: <20230110143923.J2qSqGQXADYkacMx6AYpQbnkZzQ7NcNU2uLEX_fIQnU@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-39716@inbox.vuxu.org>

[-- 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
+}

  parent reply	other threads:[~2023-01-10 14:39 UTC|newest]

Thread overview: 87+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 ` JohnGebbie [this message]
2023-01-12 14:06 ` [PR PATCH] [Updated] " 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230110143923.J2qSqGQXADYkacMx6AYpQbnkZzQ7NcNU2uLEX_fIQnU@z \
    --to=johngebbie@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).