2019-11-13 13:37:04 +00:00
|
|
|
# Maintainer: David Runge <dvzrv@archlinux.org>
|
2018-06-12 23:39:41 +00:00
|
|
|
# Contributor: Ray Rashif <schiv@archlinux.org>
|
2014-01-03 02:32:30 +00:00
|
|
|
# Contributor: Felipe Machado aka arch_audio <machado.felipe@gmail.com>
|
|
|
|
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
|
|
# - patch to fix build on v5
|
|
|
|
|
|
|
|
pkgname=rubberband
|
2021-11-04 12:54:42 +00:00
|
|
|
pkgver=2.0.0
|
2020-09-11 14:03:42 +00:00
|
|
|
pkgrel=1
|
2014-01-03 02:32:30 +00:00
|
|
|
pkgdesc="Time-stretching and pitch-shifting audio library and utility"
|
2018-02-06 19:47:27 +00:00
|
|
|
arch=('x86_64')
|
2018-06-12 23:39:41 +00:00
|
|
|
url="https://www.breakfastquay.com/rubberband/"
|
|
|
|
license=('GPL2')
|
2020-09-11 14:03:42 +00:00
|
|
|
depends=('gcc-libs' 'glibc')
|
2021-03-12 20:05:22 +00:00
|
|
|
makedepends=('fftw' 'ladspa' 'meson' 'java-environment' 'libsamplerate'
|
|
|
|
'libsndfile' 'vamp-plugin-sdk')
|
|
|
|
optdepends=(
|
|
|
|
'ladspa-host: for LADSPA plugin'
|
|
|
|
'vamp-host: for VAMP plugin'
|
|
|
|
'vamp-plugin-sdk: for VAMP plugin'
|
|
|
|
)
|
2019-11-13 13:37:04 +00:00
|
|
|
provides=('librubberband.so' 'librubberband-jni.so')
|
2018-06-12 23:39:41 +00:00
|
|
|
source=("$pkgname-$pkgver.tar.gz::https://github.com/breakfastquay/rubberband/archive/v$pkgver.tar.gz"
|
|
|
|
'0001-fix-armv5-build.patch')
|
2021-11-04 12:54:42 +00:00
|
|
|
sha512sums=('e8ad34d77f196df971630a182dc214775386a43f35aa990678170e9203d97c19550a8f6467d46df29b5766702b10df5aaf612f804068da83872af621a8ea1d67'
|
2020-09-11 14:03:42 +00:00
|
|
|
'2b9935a702c1198eae93e00b0c88429737064b0d3a252f314044eef02e1c8a09ff9c98124be6339b502a5821412e6a45f67860290a88f7295c2d05c060efcb7c')
|
2021-11-04 12:54:42 +00:00
|
|
|
b2sums=('48cc6fd80b182c87ed5fcc1fe3d9eb9c3bb748b713866099c6deceba70435fbc2035240ab7055a8aea2f89f8bf80dc29c5fb567506532504fd2b0151248215c0'
|
2020-09-11 14:03:42 +00:00
|
|
|
'4a28b09d40a60b7bddd939690999137a864fafe1aaef315bf0ef89c69d85751ebda671ad8f132e2e9e7b518180c8c0751288bc7cb07f3c7496620a33a1509b91')
|
2014-01-03 02:32:30 +00:00
|
|
|
|
2018-06-12 23:39:41 +00:00
|
|
|
prepare() {
|
|
|
|
cd "$pkgname-$pkgver"
|
2021-03-12 20:05:22 +00:00
|
|
|
if [[ $CARCH == 'arm' ]]; then
|
|
|
|
patch -p1 -i ../0001-fix-armv5-build.patch
|
|
|
|
fi
|
2018-06-12 23:39:41 +00:00
|
|
|
}
|
2014-01-03 02:32:30 +00:00
|
|
|
|
2018-06-12 23:39:41 +00:00
|
|
|
build() {
|
2019-06-18 18:14:36 +00:00
|
|
|
local java_major=$(java --version 2>/dev/null |grep 'openjdk'| cut -d ' ' -f2| cut -d '.' -f1)
|
|
|
|
export JAVA_HOME="/usr/lib/jvm/java-${java_major}-openjdk"
|
2018-06-12 23:39:41 +00:00
|
|
|
cd "$pkgname-$pkgver"
|
2021-03-12 20:05:22 +00:00
|
|
|
arch-meson -Dfft=fftw \
|
|
|
|
-Dresampler=libsamplerate \
|
|
|
|
-Dextra_include_dirs="/usr/lib/jvm/java-${java_major}-openjdk/include,/usr/lib/jvm/java-${java_major}-openjdk/include/linux" \
|
|
|
|
build
|
|
|
|
ninja -C build
|
2014-01-03 02:32:30 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2021-03-12 20:05:22 +00:00
|
|
|
depends+=('libfftw3.so' 'libsamplerate.so' 'libsndfile.so')
|
2018-06-12 23:39:41 +00:00
|
|
|
cd "$pkgname-$pkgver"
|
2021-03-12 20:05:22 +00:00
|
|
|
DESTDIR="${pkgdir}" meson install -C build
|
2018-06-12 23:39:41 +00:00
|
|
|
# docs
|
2020-09-11 14:03:42 +00:00
|
|
|
install -vDm 644 {CHANGELOG,README.md} \
|
2018-06-12 23:39:41 +00:00
|
|
|
-t "${pkgdir}/usr/share/doc/${pkgname}/"
|
2014-01-03 02:32:30 +00:00
|
|
|
}
|