mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
45 lines
1.5 KiB
Bash
45 lines
1.5 KiB
Bash
# Maintainer: David Runge <dvzrv@archlinux.org>
|
|
# Contributor: Ray Rashif <schiv@archlinux.org>
|
|
# Contributor: Felipe Machado aka arch_audio <machado.felipe@gmail.com>
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
# - patch to fix build on v5
|
|
|
|
pkgname=rubberband
|
|
pkgver=1.8.2
|
|
pkgrel=3
|
|
pkgdesc="Time-stretching and pitch-shifting audio library and utility"
|
|
arch=('x86_64')
|
|
url="https://www.breakfastquay.com/rubberband/"
|
|
license=('GPL2')
|
|
depends=('fftw' 'gcc-libs' 'glibc' 'libsamplerate' 'libsndfile'
|
|
'libvamp-sdk.so')
|
|
makedepends=('ladspa' 'java-environment')
|
|
provides=('librubberband.so' 'librubberband-jni.so')
|
|
source=("$pkgname-$pkgver.tar.gz::https://github.com/breakfastquay/rubberband/archive/v$pkgver.tar.gz"
|
|
'0001-fix-armv5-build.patch')
|
|
sha512sums=('b70e41fb1f68487d67b3935682100138ba898adeec9c8e7f8caa30f7bc94389c847d72a1b0b04f042d16d4b57019cc82c0fe79c8f302c3174e603e9bd0289abf'
|
|
'a67d567afba2dc5439a58a0e099ad574ccb8c2c7544185a818ce5ae60c344c3affdcfbf69dcbc8db37bed955fb7388bd7981b8172e3ec56986032b8be0828ec2')
|
|
|
|
prepare() {
|
|
cd "$pkgname-$pkgver"
|
|
[[ $CARCH == 'arm' ]] && patch -p1 -i ../0001-fix-armv5-build.patch
|
|
autoreconf -vfi
|
|
}
|
|
|
|
build() {
|
|
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"
|
|
cd "$pkgname-$pkgver"
|
|
./configure --prefix=/usr
|
|
make
|
|
make jni
|
|
}
|
|
|
|
package() {
|
|
cd "$pkgname-$pkgver"
|
|
make DESTDIR="$pkgdir" install
|
|
# docs
|
|
install -vDm 644 {CHANGELOG,README.txt} \
|
|
-t "${pkgdir}/usr/share/doc/${pkgname}/"
|
|
}
|