# Description: Kyutai's pocket-sized text-to-speech on the CPU, without Python # URL: https://github.com/kyutai-labs/pocket-tts # Maintainer: Erich Eckner, crux at eckner dot net # Depends on: name=pocket-tts version=4.0.1 release=1 source=("https://github.com/kyutai-labs/pocket-tts/archive/refs/tags/v${version}.tar.gz") build() { cd "${name}-${version}/rust" rm .cargo/config.toml export RUSTUP_TOOLCHAIN=stable cargo fetch --locked --target host-tuple export CARGO_TARGET_DIR=target cargo build --frozen --release cargo test --frozen --release cd .. install -Dm755 rust/target/release/pocket-tts -t "${PKG}/usr/bin" install -Dm644 LICENSE -t "${PKG}/usr/share/licenses/${name}" }