diff --git a/srcpkgs/deepfilternet-ladspa/template b/srcpkgs/deepfilternet-ladspa/template new file mode 100644 index 00000000000..4de54f75639 --- /dev/null +++ b/srcpkgs/deepfilternet-ladspa/template @@ -0,0 +1,21 @@ +# Template file for 'deepfilternet-ladspa' +pkgname=deepfilternet-ladspa +version=0.5.6 +revision=1 +build_style=cargo +configure_args="-p deep-filter-ladspa" +short_desc="Noise supression using deep filtering" +maintainer="John " +license="MIT OR Apache-2.0" +homepage="https://huggingface.co/spaces/hshr/DeepFilterNet2" +distfiles="https://github.com/Rikorose/DeepFilterNet/archive/refs/tags/v${version}.tar.gz" +checksum=0f9a219d06c404bc4200f228e7e224f108cbbca04d7227a6de7d2ce974c2f579 + +do_install() { + vlicense LICENSE + vlicense LICENSE-MIT + vlicense LICENSE-APACHE + vinstall target/${RUST_TARGET}/release/libdeep_filter_ladspa.so 755 usr/lib/ladspa + vinstall ladspa/filter-chain-configs/deepfilter-mono-source.conf 644 usr/share/pipewire/filter-chain + vinstall ladspa/filter-chain-configs/deepfilter-stereo-sink.conf 644 usr/share/pipewire/filter-chain +}