void-packages/srcpkgs/codec2/template

68 lines
2.1 KiB
Bash

# Template file for 'codec2'
pkgname=codec2
version=1.0.1
revision=1
build_style=cmake
checkdepends="gnuplot octave python3-numpy sox valgrind"
short_desc="Low bit rate speech codec"
maintainer="Evgeny Ermakov <evgeny.v.ermakov@gmail.com>"
license="LGPL-2.1-only"
homepage="https://www.rowetel.com/codec2.html"
distfiles="https://github.com/drowe67/codec2/archive/v${version}.tar.gz"
# https://github.com/drowe67/codec2#older-code
# In July 2023 this repo was refactored, older code can be found in
# https://github.com/drowe67/codec2-dev
# diffed, no change
distfiles="https://github.com/drowe67/codec2-dev/archive/refs/tags/v1.0.1.tar.gz"
checksum=e6f12129f0f63d65a3c7b2c9bf8ddf4ec3b481123279890bf87271a8bb55d8be
do_check() {
cd build
ctest -E "test_CML_ldpcut|\
test_COHPSK_modem_octave_port|\
test_OFDM_modem_burst_acq_port|\
test_OFDM_modem_datac0_octave_burst|\
test_OFDM_modem_datac1_octave|\
test_OFDM_modem_datac3_octave|\
test_OFDM_modem_esno_est_c|\
test_OFDM_modem_esno_est_octave|\
test_OFDM_modem_fading_BER|\
test_OFDM_modem_fading_DPSK_BER|\
test_OFDM_modem_octaeve_datac0_mpp|\
test_OFDM_modem_octave_burst_acq|\
test_OFDM_modem_octave_datac0_mpp|\
test_OFDM_modem_octave_datac0_mpp_coded|\
test_OFDM_modem_octave_datac0_postamble|\
test_OFDM_modem_octave_port|\
test_OFDM_modem_octave_port_Nc_31|\
test_OFDM_modem_octave_qam16_uncoded|\
test_OFDM_modem_phase_est_bw|\
test_OFDM_modem_time_sync_700D|\
test_codec2_700c_octave_port|\
test_demo_700d|\
test_demo_700d_python|\
test_freedv_api_700D_backwards_compatability|\
test_freedv_api_700D_burble|\
test_freedv_data_raw_fsk_ldpc_100|\
test_freedv_reliable_text_awgn_700D|\
test_freedv_reliable_text_fade_1600|\
test_freedv_reliable_text_fade_700D|\
test_freedv_reliable_text_fade_700E|\
test_fsk_lib_4fsk_ldpc|\
test_fsk_modem_octave_port|\
test_ldpc_enc_dec_HRA_56_56|\
test_ldpc_enc_dec_H_16200_9720|\
test_ldpc_enc_dec_H_2064_516_sparse"
}
codec2-devel_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/cmake
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
}
}