26 lines
808 B
Bash
26 lines
808 B
Bash
# Template file for 'NoiseTorch'
|
|
pkgname=NoiseTorch
|
|
version=0.11.4
|
|
revision=1
|
|
build_style=go
|
|
go_ldflags="-X main.version=${version} -X main.distribution=VoidLinux"
|
|
go_import_path="noisetorch"
|
|
depends="libcap-progs"
|
|
short_desc="Real-time microphone noise suppression on Linux"
|
|
maintainer="Soc Virnyl S. Estela <renegan.ronin@gmail.com>"
|
|
license="GPL-3.0-or-later"
|
|
homepage="https://github.com/lawl/NoiseTorch"
|
|
distfiles="https://github.com/lawl/NoiseTorch/archive/${version}.tar.gz"
|
|
checksum=3da6cad119ecca6f4e131c8bca86eb122d2363d5d30dcd1da41974af5887a3c1
|
|
|
|
pre_build() {
|
|
make rnnoise
|
|
GOARCH= go build scripts/embedlicenses.go
|
|
./embedlicenses
|
|
}
|
|
|
|
post_install() {
|
|
vinstall assets/noisetorch.desktop 644 usr/share/applications
|
|
vinstall assets/icon/noisetorch.png 644 usr/share/icons/hicolor/256x256/apps
|
|
}
|