# Contributor: John Gebbie # Maintainer: John Gebbie pkgname=numen pkgver=0.7 pkgrel=2 pkgdesc="Voice control for handsfree computing" url="https://sr.ht/~geb/numen" # limited by vosk-api arch="x86_64 aarch64 armv7" license="AGPL-3.0-only" depends="alsa-utils dotool" makedepends="go scdoc vosk-api-dev" checkdepends="vosk-model-small-en-us" subpackages="$pkgname-doc" source="$pkgname-$pkgver.tar.gz::https://git.sr.ht/~geb/numen/archive/$pkgver.tar.gz" options="net" # golang export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}" export GOTMPDIR="${GOTMPDIR:-"$srcdir"}" export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}" export NUMEN_VERSION="$pkgver" export NUMEN_SKIP_CHECKS=yes build() { NUMEN_SKIP_INSTALL=yes ./install-numen.sh "$pkgdir" /usr/bin } check() { cd "$builddir/test" ./test.sh } package() { install -Dm755 numen -t "$pkgdir/usr/bin" NUMEN_SKIP_BINARY=yes ./install-numen.sh "$pkgdir" /usr/bin } sha512sums=" 99dc883f7de187e241353d4fa5a1deb84cb24c32ac8cdc9138daffc7747c020b66428f576401bda2f139a3c022fd15c4ff4df1b8c9b87a09bc829b50035fc57b numen-0.7.tar.gz "