PKGBUILDs/community/rubberband/PKGBUILD

46 lines
1.5 KiB
Bash
Raw Normal View History

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
2018-06-12 23:39:41 +00:00
pkgver=1.8.2
2019-11-13 13:37:04 +00:00
pkgrel=3
2014-01-03 02:32:30 +00:00
pkgdesc="Time-stretching and pitch-shifting audio library and utility"
arch=('x86_64')
2018-06-12 23:39:41 +00:00
url="https://www.breakfastquay.com/rubberband/"
license=('GPL2')
2019-11-13 13:37:04 +00:00
depends=('fftw' 'gcc-libs' 'glibc' 'libsamplerate' 'libsndfile'
'libvamp-sdk.so')
2019-06-18 18:14:36 +00:00
makedepends=('ladspa' 'java-environment')
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')
sha512sums=('b70e41fb1f68487d67b3935682100138ba898adeec9c8e7f8caa30f7bc94389c847d72a1b0b04f042d16d4b57019cc82c0fe79c8f302c3174e603e9bd0289abf'
'a67d567afba2dc5439a58a0e099ad574ccb8c2c7544185a818ce5ae60c344c3affdcfbf69dcbc8db37bed955fb7388bd7981b8172e3ec56986032b8be0828ec2')
2014-01-03 02:32:30 +00:00
2018-06-12 23:39:41 +00:00
prepare() {
cd "$pkgname-$pkgver"
[[ $CARCH == 'arm' ]] && patch -p1 -i ../0001-fix-armv5-build.patch
autoreconf -vfi
}
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"
2014-01-03 02:32:30 +00:00
./configure --prefix=/usr
make
2018-06-12 23:39:41 +00:00
make jni
2014-01-03 02:32:30 +00:00
}
package() {
2018-06-12 23:39:41 +00:00
cd "$pkgname-$pkgver"
2014-01-03 02:32:30 +00:00
make DESTDIR="$pkgdir" install
2018-06-12 23:39:41 +00:00
# docs
install -vDm 644 {CHANGELOG,README.txt} \
-t "${pkgdir}/usr/share/doc/${pkgname}/"
2014-01-03 02:32:30 +00:00
}