mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-06-04 12:26:24 +02:00
57 lines
1.3 KiB
Text
57 lines
1.3 KiB
Text
# Contributor: David Demelier <markand@malikania.fr>
|
|
# Maintainer: David Demelier <markand@malikania.fr>
|
|
pkgname=rubberband
|
|
pkgver=4.0.0
|
|
pkgrel=0
|
|
pkgdesc="library for audio time-stretching and pitch-shifting"
|
|
url="https://www.breakfastquay.com/rubberband"
|
|
arch="all"
|
|
license="GPL-2.0-only"
|
|
makedepends="
|
|
fftw-dev
|
|
ladspa-dev
|
|
libsamplerate-dev
|
|
libsndfile-dev
|
|
lv2-dev
|
|
meson
|
|
vamp-sdk-dev
|
|
"
|
|
checkdepends="boost-dev"
|
|
subpackages="$pkgname-libs $pkgname-static $pkgname-dev"
|
|
source="https://breakfastquay.com/files/releases/rubberband-$pkgver.tar.bz2"
|
|
|
|
# slight numerical rounding difference
|
|
case "$CARCH" in
|
|
x86|ppc64le) options="$options !check" ;;
|
|
esac
|
|
|
|
build() {
|
|
# release needed since sets extra defines
|
|
abuild-meson \
|
|
--buildtype=release \
|
|
-Db_lto=true \
|
|
-Dresampler=libsamplerate \
|
|
-Dfft=fftw \
|
|
. output
|
|
meson compile -C output
|
|
}
|
|
|
|
check() {
|
|
case "$CARCH" in
|
|
riscv64)
|
|
meson test --timeout-multiplier=30 --print-errorlogs -C output
|
|
# 8/8 Stretcher TIMEOUT 30.04s killed by signal 15 SIGTERM
|
|
;;
|
|
*)
|
|
meson test --print-errorlogs -C output
|
|
;;
|
|
esac
|
|
}
|
|
|
|
package() {
|
|
DESTDIR="$pkgdir" meson install --no-rebuild -C output
|
|
}
|
|
|
|
sha512sums="
|
|
975ceead691c9fb9cb8b876d00d5661986d85ba59a97bb3c17bc8a835e8aeaf0bc324dd43ffa20f2854e019572b404d37d5e4868a99076d422f279359c44a7b4 rubberband-4.0.0.tar.bz2
|
|
"
|