diff --git a/Ports/AvailablePorts.md b/Ports/AvailablePorts.md index 2f0478200b3..7c511bb4ffb 100644 --- a/Ports/AvailablePorts.md +++ b/Ports/AvailablePorts.md @@ -275,6 +275,7 @@ This list is also available at [ports.serenityos.net](https://ports.serenityos.n | [`RetroArch`](RetroArch/) | RetroArch | 1.12.0 | https://www.retroarch.com | | [`RISCVEmu`](RISCVEmu/) | A Basic C++ RISC-V Emulator | ad8ad6a | https://github.com/IdanHo/RISCVEmu | | [`rsync`](rsync/) | rsync | 3.1.3 | https://rsync.samba.org/ | +| [`rubberband`](rubberband/) | Rubberband | 3.3.0 | https://breakfastquay.com/rubberband/ | | [`ruby`](ruby/) | Ruby | 3.2.2 | https://www.ruby-lang.org/ | | [`rvvm`](rvvm/) | RVVM - The RISC-V Virtual Machine | 0.5 | https://github.com/LekKit/RVVM | | [`sam`](sam/) | Software Automatic Mouth (SAM) | c86ea39 | https://github.com/vidarh/SAM | diff --git a/Ports/rubberband/package.sh b/Ports/rubberband/package.sh new file mode 100755 index 00000000000..dc77078fedf --- /dev/null +++ b/Ports/rubberband/package.sh @@ -0,0 +1,37 @@ +#!/usr/bin/env -S bash ../.port_include.sh +port='rubberband' +version='3.3.0' +depends=( + 'libfftw3' + 'libopus' + 'libsamplerate' + 'libsndfile' +) +useconfigure='true' +configopts=( + "--cross-file=${SERENITY_BUILD_DIR}/meson-cross-file.txt" + '-Dfft=fftw' + '-Dresampler=libsamplerate' + '-Djni=disabled' + '-Dvamp=disabled' + '-Dladspa=disabled' + '-Dlv2=disabled' + '-Dtests=disabled' + '-Ddefault_library=shared' +) +files=( + "https://breakfastquay.com/files/releases/rubberband-${version}.tar.bz2#d9ef89e2b8ef9f85b13ac3c2faec30e20acf2c9f3a9c8c45ce637f2bc95e576c" +) + +configure() { + run meson setup build "${configopts[@]}" +} + +build() { + run ninja -C build +} + +install() { + export DESTDIR="${SERENITY_INSTALL_ROOT}" + run ninja -C build install +}