New package: sprec-0.1

This commit is contained in:
Anachron 2024-08-13 08:36:20 +02:00 committed by Duncan Overbruck
parent c6a0a10871
commit 2e9c177788

33
srcpkgs/sprec/template Normal file
View file

@ -0,0 +1,33 @@
# Template file for 'sprec'
pkgname=sprec
version=0.1
revision=1
build_style=go
go_import_path="git.sr.ht/~geb/sprec"
hostmakedepends="scdoc"
makedepends="vosk-api libgomp-devel"
short_desc="Simple speech recognition for transcription using vosk-api"
maintainer="Anachron <gith@cron.world>"
license="GPL-3.0-or-later"
homepage="https://git.sr.ht/~geb/sprec"
distfiles="https://git.sr.ht/~geb/sprec/archive/${version}.tar.gz"
checksum=085b7e0bd54ce79d7bb9b1f26cb72c6099264763a1b2c0743f15401b523aaae9
if [ "$XBPS_TARGET_LIBC" = musl ]; then
makedepends+=" libexecinfo-devel"
fi
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_build() {
scdoc < doc/sprec.1.scd > sprec.1
vman sprec.1
}