mirror of
https://github.com/void-linux/void-packages.git
synced 2025-07-28 08:22:56 +02:00
New package: sprec-0.1
This commit is contained in:
parent
c6a0a10871
commit
2e9c177788
1 changed files with 33 additions and 0 deletions
33
srcpkgs/sprec/template
Normal file
33
srcpkgs/sprec/template
Normal 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
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue