From bd7be2f0d6d2316882068542073ce4f448b6a37d Mon Sep 17 00:00:00 2001 From: yosh Date: Wed, 26 Apr 2023 23:34:05 -0400 Subject: [PATCH] NoiseTorch: update to 0.12.2. --- srcpkgs/NoiseTorch/template | 26 +++++++++++++++++++++----- 1 file changed, 21 insertions(+), 5 deletions(-) diff --git a/srcpkgs/NoiseTorch/template b/srcpkgs/NoiseTorch/template index a9e9fb2c92d4..123fcccaabb4 100644 --- a/srcpkgs/NoiseTorch/template +++ b/srcpkgs/NoiseTorch/template @@ -1,17 +1,33 @@ # Template file for 'NoiseTorch' pkgname=NoiseTorch -version=0.11.4 +version=0.12.2 revision=1 +build_wrksrc="NoiseTorch-${version}" 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 " +maintainer="Orphaned " license="GPL-3.0-or-later" -homepage="https://github.com/lawl/NoiseTorch" -distfiles="https://github.com/lawl/NoiseTorch/archive/${version}.tar.gz" -checksum=3da6cad119ecca6f4e131c8bca86eb122d2363d5d30dcd1da41974af5887a3c1 +homepage="https://github.com/NoiseTorch/NoiseTorch" +_c_ringbuf_commit=2037560fb90dea5d2538611d983964d790bdbac2 +_rnnoise_commit=1cbdbcf1283499bbb2230a6b0f126eb9b236defd +distfiles="https://github.com/NoiseTorch/NoiseTorch/archive/v${version}.tar.gz + https://github.com/NoiseTorch/c-ringbuf/archive/${_c_ringbuf_commit}.tar.gz + https://github.com/NoiseTorch/rnnoise/archive/${_rnnoise_commit}.tar.gz" +checksum="4a30650314a6f83d979f3303d49618847ba58e39e3e26482dfe58b5e261c5611 + 877b08413c59baac56b4cc7720fa56cf0eb399192a0ec652ce7b590c9cd9ad8a + 68c7ab4e408426088603e19955e746bb2a412d84bb121b6f39834c60fc8068b7" + +post_extract() { + ln -sf ${wrksrc}/c-ringbuf-${_c_ringbuf_commit}/* ${build_wrksrc}/c/c-ringbuf + ln -sf ${wrksrc}/rnnoise-${_rnnoise_commit}/* ${build_wrksrc}/c/rnnoise +} + +post_patch() { + vsed -e '/git submodule/d' -i Makefile +} pre_build() { make rnnoise