community/rubberband to 2.0.1-1

This commit is contained in:
Kevin Mihelich 2022-01-20 22:12:55 +00:00
parent f81d4d9a12
commit 30ef5c4fba

View file

@ -7,26 +7,26 @@
# - explicitly link v5/v6 with libatomic # - explicitly link v5/v6 with libatomic
pkgname=rubberband pkgname=rubberband
pkgver=2.0.0 pkgver=2.0.1
pkgrel=1 pkgrel=1
pkgdesc="Time-stretching and pitch-shifting audio library and utility" pkgdesc="Time-stretching and pitch-shifting audio library and utility"
arch=('x86_64') arch=(x86_64)
url="https://www.breakfastquay.com/rubberband/" url="https://www.breakfastquay.com/rubberband/"
license=('GPL2') license=(GPL2)
depends=('gcc-libs' 'glibc') depends=(gcc-libs glibc)
makedepends=('fftw' 'ladspa' 'meson' 'java-environment' 'libsamplerate' makedepends=(fftw java-environment ladspa meson libsamplerate libsndfile
'libsndfile' 'vamp-plugin-sdk') vamp-plugin-sdk)
optdepends=( optdepends=(
'ladspa-host: for LADSPA plugin' 'ladspa-host: for LADSPA plugin'
'vamp-host: for VAMP plugin' 'vamp-host: for VAMP plugin'
'vamp-plugin-sdk: for VAMP plugin' 'vamp-plugin-sdk: for VAMP plugin'
) )
provides=('librubberband.so' 'librubberband-jni.so') provides=(librubberband.so librubberband-jni.so)
source=("$pkgname-$pkgver.tar.gz::https://github.com/breakfastquay/rubberband/archive/v$pkgver.tar.gz" source=("$pkgname-$pkgver.tar.gz::https://github.com/breakfastquay/rubberband/archive/v$pkgver.tar.gz"
'0001-fix-armv5-build.patch') '0001-fix-armv5-build.patch')
sha512sums=('e8ad34d77f196df971630a182dc214775386a43f35aa990678170e9203d97c19550a8f6467d46df29b5766702b10df5aaf612f804068da83872af621a8ea1d67' sha512sums=('e51c2845036af6799b94026275f669f598293f0b721f4ac66bcf855b55d6ceee62251d4df8338fce5dee0e8f87c60f4dc9a20b9149da9968ec979a6855b4dd28'
'2b9935a702c1198eae93e00b0c88429737064b0d3a252f314044eef02e1c8a09ff9c98124be6339b502a5821412e6a45f67860290a88f7295c2d05c060efcb7c') '2b9935a702c1198eae93e00b0c88429737064b0d3a252f314044eef02e1c8a09ff9c98124be6339b502a5821412e6a45f67860290a88f7295c2d05c060efcb7c')
b2sums=('48cc6fd80b182c87ed5fcc1fe3d9eb9c3bb748b713866099c6deceba70435fbc2035240ab7055a8aea2f89f8bf80dc29c5fb567506532504fd2b0151248215c0' b2sums=('1d6077e3a91d6002ebdaa4841d60b11180e5fb44c870cb0a14a1398ab093bd002e47003321f24c11910ca7f9277e45f86b36d23e3b524d4b2bec814332076e0f'
'4a28b09d40a60b7bddd939690999137a864fafe1aaef315bf0ef89c69d85751ebda671ad8f132e2e9e7b518180c8c0751288bc7cb07f3c7496620a33a1509b91') '4a28b09d40a60b7bddd939690999137a864fafe1aaef315bf0ef89c69d85751ebda671ad8f132e2e9e7b518180c8c0751288bc7cb07f3c7496620a33a1509b91')
prepare() { prepare() {
@ -42,6 +42,7 @@ prepare() {
build() { build() {
local java_major=$(java --version 2>/dev/null |grep 'openjdk'| cut -d ' ' -f2| cut -d '.' -f1) 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" export JAVA_HOME="/usr/lib/jvm/java-${java_major}-openjdk"
cd "$pkgname-$pkgver" cd "$pkgname-$pkgver"
arch-meson -Dfft=fftw \ arch-meson -Dfft=fftw \
-Dresampler=libsamplerate \ -Dresampler=libsamplerate \
@ -51,10 +52,10 @@ build() {
} }
package() { package() {
depends+=('libfftw3.so' 'libsamplerate.so' 'libsndfile.so') depends+=(libfftw3.so libsamplerate.so libsndfile.so)
cd "$pkgname-$pkgver" cd "$pkgname-$pkgver"
DESTDIR="${pkgdir}" meson install -C build DESTDIR="${pkgdir}" meson install -C build
# docs # docs
install -vDm 644 {CHANGELOG,README.md} \ install -vDm 644 {CHANGELOG,README.md} -t "${pkgdir}/usr/share/doc/${pkgname}/"
-t "${pkgdir}/usr/share/doc/${pkgname}/"
} }